map — Claude Code command: semantic feature index for your repo
A slash command that hands off to the flow-next-map skill to build a semantic feature index of your repository with clawpatch, provider-free by default.
MIT ★ 730 updated 2026-10-29
/plugin marketplace add gmickel/flow-next
/plugin install flow-next@flow-nextWhat map does
The command is a pass-through. Whatever you type goes to the flow-next-map skill, and that skill does the real work: it checks whether clawpatch is there, guards the version range, runs clawpatch init when .clawpatch/ is missing and writes a .clawpatch/.gitignore skeleton.
The default run is clawpatch map --source heuristic, so no provider is involved and no API key is needed. Pick a different source with --source auto or --source agent; anything else meant for clawpatch goes after --. The index covers roughly 20 languages.
When it finishes, the skill prints a summary of the result. On Codex the same file sits at ~/.codex/prompts/map.md. The disable-model-invocation: true flag means you start the command yourself instead of the model firing it off.
What it helps with
- map out a repo's features before a large refactor
- index a codebase without calling an external provider
- bootstrap
clawpatchin a project with no.clawpatch/yet - rerun the index under a different source mode
Example prompts for the agent
/map --source heuristicand give me the summary./map --source autoif the heuristic leaves too much out./mapwith no arguments — let the skill use its default mode.
How to install map
1Plugin marketplace
/plugin marketplace add gmickel/flow-next/plugin install flow-next@flow-next2Manually: put the files in place
.claude/commands/map.mdCall it with /map. For all projects use ~/.claude/commands/
Manually: put the files in place
~/.codex/prompts/map.mdCall it with /prompts:map. Codex marks this format deprecated in favour of skills
Manually: put the files in place
.github/prompts/map.prompt.mdManually: put the files in place
.gemini/commands/map.tomlGemini stores commands as TOML: the prompt text goes into the prompt field
Questions about map
How do I install map in Claude Code?
Add the marketplace with /plugin marketplace add gmickel/flow-next, then install the plugin with /plugin install flow-next@flow-next. The command file lives at .claude/commands/map.md.
What does the map command do?
It calls the flow-next-map skill, which prepares the clawpatch setup and builds a semantic feature index of the repository.
Does it need an API key?
Not by default: the index is built heuristically with no provider. Other modes are selected with --source auto or --source agent.
Source text
map.md · MIT
--- name: map description: Wrap `clawpatch map` for a semantic feature index of the repo (~20 languages, provider-free by default) argument-hint: "[--source <heuristic|auto|agent>] [-- <extra clawpatch args>]" disable-model-invocation: true --- # IMPORTANT: This command MUST invoke the skill `flow-next-map` The ONLY purpose of this command is to call the `flow-next-map` skill. You MUST use that skill now. **Arguments:** $ARGUMENTS Pass the arguments to the skill. The skill handles install detection, version-range guard, `clawpatch init` (when `.clawpatch/` absent), the `.clawpatch/.gitignore` skeleton, the provider-free `clawpatch map --source heuristic` default invocation, and the result summary.
© Gordon Mickel · MIT · gmickel/flow-next