npx skills add ...
npx skills add momentic-ai/skills --skill momentic-explore-prompt
Generate an explore-prompt.md file that gives Momentic's explore agent (`momentic ai explore diff` / `momentic ai explore latest`) repo-specific context — which applications to test, the URLs tests must target, how to authenticate, where to save generated tests, and repo quirks. Use when setting up or improving the prompt file passed via `--prompt-file`.
npx skills add momentic-ai/skills --skill momentic-explore-prompt
The explore agent (momentic ai explore diff over a git range, or
momentic ai explore latest over the whole app) identifies changed user
journeys and builds Momentic tests for them. Both accept extra instructions
appended to the explorer's system prompt via two repeatable options:
--prompt <text> — inline text. Repeatable.--prompt-file <path> — a file whose contents are appended. Repeatable.Passing any --prompt or --prompt-file replaces the project's cloud custom
prompt. The combined instructions are all --prompt-file contents followed by
all --prompt values, each in the order passed — so multiple flags stack rather
than one overriding the other.
explore-prompt.md is the conventional file passed to --prompt-file. It is
repo-specific: it tells the explorer which apps exist in this repo, the URLs
its tests must target, how to sign in, exactly where to save generated tests,
and any quirks it must respect. It is NOT a place to restate general Momentic
behavior — that already lives in the momentic-test skill.
Usage:
Do not write the prompt from memory. Inspect the repo and confirm each fact:
momentic.config.yaml
environments[].baseUrl and how each app is started in CI (the workflow that
runs momentic ai explore diff).name and id. Note access assumptions (e.g. "this
user can reach all parts of the app").momentic/junk/
folder). Confirm which path is gitignored.Write concise, imperative markdown. Recommended sections:
HARD RULE callouts for any mandatory prefix. The explorer will otherwise
save tests in the wrong place.junk-* does NOT count.HARD RULE: callouts — path
mistakes are the most common and most costly explorer failure.name and id so the explorer can pin the
exact module.Below is a placeholder-only skeleton with the sections a good prompt has. Fill in the bracketed values with your repo's real apps, URLs, modules, and folders — do not ship the placeholders.