Check for .agentmap.yaml and guide initial setup if missing
Bootstrap agentmap support for a project.
When this skill is invoked, immediately:
.agentmap.yaml in the working directory (fall back to the repository root).Agentmap already present — no setup needed. Run /agentmap-read to load it or /agentmap-generate to regenerate. Then continue to Step 2 (auto-load instruction).Use AskUserQuestion to ask whether to generate an agentmap now. Provide two options: "Yes, run /agentmap-generate" and "No, skip".
agentmap-generate skill.Offer to insert an auto-load instruction into the project's instruction file:
CLAUDE.md at the repository root, then AGENTS.md. Use the first one found. If neither exists, skip this step entirely (do not create a new file).agentmap-read. If the string is already present, skip silently (this keeps the check idempotent).#) in the file (on the next line, before any existing content):AGENT INSTRUCTION: ALWAYS run `/agentmap-read` if skill and `.agentmap.yaml` exists in the project root to prime context
If the user declines, acknowledge and continue without changes.