Refresh Context Map

Rebuilds the AIDEV-anchor/AGENTS.md/ADR manifest that powers claude-leverage's PreToolUse context hook.

Tested · Works

Test report

Verdict
Tested · Works
Score
10.0/10
Tested
Jul 14, 2026
Environment
Claude Code 2.x (agent harness)
Upstream re-checked
Jul 18, 2026 · cc16a70

Actually cloned the repo and ran the real script live: output matched the SKILL.md's documented format exactly ('Wrote ... (26 files, 45 anchors)') — but a fresh HEAD checkout's own committed manifest was already stale by ~40 days (35->44 anchors), showing the project doesn't reliably run its own opt-in pre-commit hook.

Scored on four weighted criteria — install, triggering, output vs. baseline, docs. How scoring works

  • Installs cleanly 5/5
  • Triggers reliably 5/5
  • Output vs. baseline 10/10
  • Docs & honesty 5/5

What Refresh Context Map does

Regenerates .claude-leverage-context-map.json by running scripts/build-context-map.py, indexing AIDEV-* anchors, per-directory AGENTS.md chains, and ADR cross-references so the PreToolUse hook can inject per-file context. Triggers after anchor edits, AGENTS.md/ADR changes, merges that touch anchor-bearing files, or when /stack-check reports manifest drift.

How to install Refresh Context Map

git clone https://github.com/Filip-Podstavec/claude-leverage
cd claude-leverage
mkdir -p ~/.claude/skills
cp -r skills/refresh-context-map ~/.claude/skills/refresh-context-map

Skills live in ~/.claude/skills/ (global) or .claude/skills/ (per-project). Restart Claude Code after installing.

Commands — how to trigger Refresh Context Map

  • /refresh-context-map Rebuilds the AIDEV-anchor/AGENTS.md/ADR manifest that powers claude-leverage's PreToolUse context hook.

It also activates on plain-language prompts like these:

  • I just edited some AIDEV anchors, rebuild our context map now
  • Our AGENTS.md changed, regenerate the manifest the context hook reads
  • The stack-check reported manifest drift, please refresh the context map

Frequently asked questions

Is the Refresh Context Map skill free?
Yes. The skill itself is free from Filip-Podstavec/claude-leverage. SkillProof publishes the install command and an independent test verdict at no cost.
Does Refresh Context Map work with Claude Code?
We tested it with Claude Code 2.x (agent harness) on Jul 14, 2026. Verdict: Tested · Works. Actually cloned the repo and ran the real script live: output matched the SKILL.md's documented format exactly ('Wrote ... (26 files, 45 anchors)') — but a fresh HEAD checkout's own committed manifest was already stale by ~40 days (35->44 anchors), showing the project doesn't reliably run its own opt-in pre-commit hook.
What is the Refresh Context Map SkillProof Score?
10.0/10 — installs cleanly 5/5, triggers reliably 5/5, output vs. baseline 10/10, docs & honesty 5/5.
How do I install Refresh Context Map?
Copy the install command from this page, run it in your terminal, and restart Claude Code. Skills live in ~/.claude/skills/ (global) or .claude/skills/ inside a project.
Can I use Refresh Context Map with Cursor, Copilot, Gemini CLI, Codex or other AI tools?
The SKILL.md format is native to Claude (Claude Code, Desktop, claude.ai). The instructions inside adapt to other assistants: Cursor rules, GitHub Copilot instructions, Windsurf rules, Custom GPTs, AGENTS.md for OpenAI Codex, and GEMINI.md for Google Gemini CLI — our conversion guides cover each, and the free converter on the tools page does the wrapping for you.