| name | move-init |
| description | Initialize Move workflow routing in the project CLAUDE.md |
Task
Add Move workflow routing instructions to the project's CLAUDE.md so that
future prompts automatically delegate to the right agent.
Steps
- Find the Move package root by looking for
Move.toml in the current
directory or its parents.
- If no
Move.toml found, tell the user this is not a Move package and stop.
- Read
CLAUDE.md at the package root. If it does not exist, create it.
- Check if the file already contains
<!-- move-flow-routing -->.
If yes, tell the user "Move workflow routing already configured" and stop.
- Append the following block to the end of CLAUDE.md:
<!-- move-flow-routing -->
## Move Workflow Routing
When working with Move code in this package, use the appropriate workflow.
If the user asks to run something "in an agent" or "as a subagent", use
the Agent tool with the agent name. Otherwise, use the Skill tool with
the /skill-name to load the workflow into the current conversation.
- **Spec inference** (infer specs, generate specifications, WP analysis):
Skill: `/move-inf`. Agent: `move-inf`.
- **Verification** (verify, prove, run prover, check specifications):
Skill: `/move-prove`. Agent: `move-verify`.
- **Testing** (generate tests, unit tests, improve coverage):
Skill: `/move-test`. Agent: `move-test`.
- **Fix compilation** (check errors, fix compilation, won't compile):
Skill: `/move-check`. Agent: `move-check`.
Do not call `move_package_wp` or `move_package_verify` MCP tools directly —
always use the skill or agent which has the full workflow context.
For general Move development (writing code, reading code, explaining),
use the `/move` skill for language and tool references.
- Tell the user that Move workflow routing has been configured.