repo-map-refresh

repo-map-refresh is a skill for Claude Code from MostAshraf/ai-sdlc-harness. It costs 48 tokens per session (704 once invoked), scanned A, original, MIT.

A skill for regenerating an automatically created map of a code repository. The map is a navigation guide that helps a planner find important parts of the project.

In plain words
What is it for?
Use it only with /repo-map-refresh to check whether a repository map is missing or outdated and regenerate it when needed.
Why use it?
It updates the planner's view when the repository changes, without allowing the map to be edited by hand.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: mentions subagents.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the ai-sdlc-harness plugin — 8 skills, 4 commands, 3 agents, 4 hooks shipped together

Good fit Use it only with /repo-map-refresh to check whether a repository map is missing or outdated and regenerate it when needed.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add MostAshraf/ai-sdlc-harness
Claude Code
/plugin install ai-sdlc-harness

Made for: Claude Code.

Or install ai-sdlc-harness, the plugin that ships this one along with the rest of its 8 skills, 4 commands, 3 agents, 4 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for repo-map-refresh

README.md
[![agentmods](https://agentmods.dev/badge/skills/mostashraf/ai-sdlc-harness/repo-map-refresh/github.svg)](https://agentmods.dev/skills/mostashraf/ai-sdlc-harness/repo-map-refresh)
Your own site
<a href="https://agentmods.dev/skills/mostashraf/ai-sdlc-harness/repo-map-refresh"><img src="https://agentmods.dev/badge/skills/mostashraf/ai-sdlc-harness/repo-map-refresh/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for repo-map-refresh

Your own site · 80×15
<a href="https://agentmods.dev/skills/mostashraf/ai-sdlc-harness/repo-map-refresh"><img src="https://agentmods.dev/badge/skills/mostashraf/ai-sdlc-harness/repo-map-refresh.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 704 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00048 $0.00704
Opus 5 $0.00024 $0.00352
Sonnet 5 $0.00010 $0.00141
Haiku 4.5 $0.00005 $0.00070

Measured 11d ago against content hash c2a3304a19c5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

repo-map-refresh scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/repo-map-refresh/SKILL.md · 50 lines

What it actually says

repo-map-refresh

The repo map is a navigation aid, never hand-maintained — corrections go through regeneration (design.md piece 5B). /init-workspace and /add-repo both point here for the identical generate-or-regenerate procedure (step 2 below) — this is the one place it's maintained; don't fork a second copy of it elsewhere.

  1. ${CLAUDE_PLUGIN_ROOT}/bin/harness repo-map-check --repo-name <n> --repo <path> — report missing / fresh / stale (+ commits behind) to the user.
  2. To regenerate: spawn the planner shape with harness-mode: repo-map as the prompt's FIRST line (the spawn guard regex-matches this exact header — prose that merely mentions repo-map does not satisfy it; this is a declared out-of-run spawn, pipeline/surfaces.yaml's out_of_run_spawns, legal regardless of whether other runs exist in the workspace) and the repo path. Prefer run_in_background: false where the Agent tool has that parameter — the reply then flows back through PostToolUse. Where the tool defaults spawns to background or has no such parameter, the launch stub returns immediately and the platform's own completion notification is the ONLY signal: WAIT for it before step 3. Know that the harness cannot track THIS spawn in flight — capture early-returns for out-of-run spawns BEFORE the stub-recognition gate, so a backgrounded repo-map spawn records no spawn-pending, appears nowhere in show's outstanding_spawns, and an agent that dies mid-generation leaves zero trace while you wait. For the correct subagent_type and why a wrong identity is now blocked, see shared/spawn-identity.md — match the frontmatter name: ai-sdlc-planner, never a generic agent. The planner can only write under ai/<run>/ and .claude/context/ (guard-enforced — never repo source), so point it at .claude/context/repo-map/<name>/. It follows the map content contract (${CLAUDE_PLUGIN_ROOT}/skills/dev-workflow/steps/repo-map-task.md): index.md (purpose/stack/modules/cross-repo edges — intake's targeting tier), areas/* detail files (each loadable alone), and conventions.md (observed patterns with cited examples — what plan-review checks plans against).
  3. Stamp it yourself, not the planner: ${CLAUDE_PLUGIN_ROOT}/bin/harness repo-map-stamp --repo-name <n> --repo <path> — stamping is the orchestrator's job, never the planner's own.
  4. Remind the user: the planner still reads real code for areas it plans to touch — the map speeds targeting, it doesn't replace reading.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 50 lines · 48 tokens per session scan A c2a3304a19c5

Subscribe to this mod's changes

repo-map-refresh is a skill published in the GitHub repository MostAshraf/ai-sdlc-harness (19 stars, last pushed 14d ago), licensed MIT. It adds 48 tokens to every session and 704 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.