Refresh Context Map
Přestaví manifest AIDEV-anchor/AGENTS.md/ADR, který pohání kontextový hook PreToolUse claude-leverage.
Otestováno · Funguje
Co umí
Regeneruje .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. Spouští se after anchor edits, AGENTS.md/ADR changes, merges that touch anchor-bearing files, or when /stack-check reports manifest drift.
Testovací report
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.
Testováno: 2026-07-14 · Claude Code 2.x (agent harness)
Instalace
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
Příkazy a ukázkové prompty
/refresh-context-mapPřestaví manifest AIDEV-anchor/AGENTS.md/ADR, který pohání kontextový hook PreToolUse claude-leverage.
Skilly se spouštějí běžnými požadavky — žádné příkazy k zapamatování. Po instalaci ho aktivují prompty jako tyto (anglicky):
I just edited some AIDEV anchors, rebuild our context map nowOur AGENTS.md changed, regenerate the manifest the context hook readsThe stack-check reported manifest drift, please refresh the context map