/harness:repo-mapfrom Harness (обвязка)
Generates a ranked symbol map of a codebase within a token budget, using Aider-inspired regex extraction and PageRank. Use when onboarding to unfamiliar repos, before refactors, or when you need JIT context instead of dumping whole files.
Ships in Harness (обвязка). Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Produces a ranked list of the structurally-important symbol definitions in a codebase, capped to a token budget. The point: instead of dumping whole files (wasteful, blows the context window), get a cheap "skeleton" of the repo — the functions/classes everything else depends on — and read full files only where it matters.
This is our zero-dependency port of Aider's repo-map.
deep-review / workflow-orchestration fan-out — feed each
subagent the map so it knows the important entry points without re-scanning.practice_context_engineering) — load the map, not the files.python "${CLAUDE_SKILL_DIR}/scripts/repo_map.py" [ROOT] [--budget-tokens N] [--top N] [--json] [--no-signature] [--max-files N]
ROOT — repo root (default: cwd). If it's a git repo, only tracked files are
scanned (honors .gitignore); otherwise a filtered directory walk is used.--budget-tokens (default 1024) — stop emitting once ~this many tokens are used
(≈4 chars/token heuristic). Use 256–512 for a quick orientation, 2048+ for depth.--top N — hard cap on symbols before the budget applies.--json — machine-readable output (for piping into a workflow / another agent).--no-signature — emit path:line: name instead of the full signature line.JSON distinguishes symbols_extracted_total (before --top),
symbols_ranked_after_top (after that cap), and symbols_emitted (after the
token budget). The legacy symbols_total key retains its post---top meaning
for compatibility. None is a semantic coverage guarantee: extraction is regex-based
and --max-files can limit input. Never diagnose parser coverage from a capped map.
# Quick orientation in a new repo
python "${CLAUDE_SKILL_DIR}/scripts/repo_map.py" . --budget-tokens 512
# Feed a fan-out: JSON map of the most important 40 symbols
python "${CLAUDE_SKILL_DIR}/scripts/repo_map.py" /path/to/repo --top 40 --json > repo_map.json
# Focus a subdirectory (a single layer/service)
python "${CLAUDE_SKILL_DIR}/scripts/repo_map.py" /path/to/repo/services/auth --budget-tokens 800
F → D when file F references an identifier
defined in file D. Rare identifiers (defined in few files) weigh more.pagerank(def_file) × (1 + total_refs) × rarity. Emit highest
first until the token budget is hit.So the map surfaces the code everything else leans on, not just the first files alphabetically.
extract() with tree-sitter-language-pack tags — the graph/
PageRank stages stay identical. (Don't install tree-sitter casually: it trips the
7-day supply-chain gate; gate it like any fresh dep.)chars/4), not a real tokenizer. Treat the budget
as approximate; it errs slightly high on code with many short tokens.get, handle) ranks each def site separately —
expected, since each is a distinct definition. Use --top to trim noise.node_modules, dist, venv, …).
If your build output lives somewhere unusual, it may get scanned — point ROOT at the
source dir instead.src/gen/) can dominate ranks because it's referenced
everywhere. Point ROOT at hand-written source, or filter after the fact.| Symptom | Cause | Fix |
|---|---|---|
0 files scanned | ROOT has no recognized source extensions, or all gitignored | Check git ls-files; point ROOT at the source subdir |
| A key function is missing | Regex didn't match its signature style | Lower --budget-tokens pressure (raise budget) or accept the limitation; verify by grep |
--top 12 appears to find only 12 definitions | Post-cap count confused with extraction | Inspect symbols_extracted_total; remove caps before investigating actual extraction misses |
| Map dominated by one vendored file | A vendor//generated tree got scanned (non-git mode) | Run inside the git repo, or point ROOT at hand-written source |
| Wrong/old map | File moved; map is a point-in-time snapshot | Re-run — it's cheap and stateless |
scripts/repo_map.py is stdlib-only and was verified to run on real trees (it
correctly ranks shared-utility files to the top via PageRank). Re-run on any repo to
confirm; there is no state to corrupt.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
60 skills in this plugin
/agent-harness-designDesigning agent harnesses and tool systems — risk taxonomy for tools, permission decisions, draft/commit pattern, structured tool results, agent budgets (10 types), context trust labels against prompt injection, plan-artifact, approval records, observability and traces, evals (13 categories), event model, streaming buffering, 3rd-party skill install checklist, agentic RAG, self-improving SOP loops, model policy, reasoning effort, and Programmatic Tool Calling adoption gates. Use when building a new Agent SDK app, custom orchestrator, MCP server, Cloudflare Worker with tool calls, agentic RAG pipeline, model router, or model-tier policy; when designing tools and permissions; when writing an agent loop; or when you need trust labels for external content. Do NOT use for improving or auditing an already-built harness (use harness-audit / harness-design instead), nor for ordinary Claude Code sessions where the harness is already given./agents-best-practicesUse when designing, auditing, refactoring, or explaining an agentic harness for any domain, especially when work must continue from a measured gap to verified completion. Covers provider-neutral loops, tools, permissions, environment adaptation, planning, durable workflow state, context, skills, observability, evals, and safety for OpenAI, Anthropic, and compatible APIs. Not for implementing an ordinary app feature or reviewing one concrete diff./architecture-firstDecide module boundaries before the first file: what modules exist, which way dependencies point, who owns state, and what each module may know. Use when starting a project, service, site, API, or subsystem; adding a feature with no obvious home; resolving a circular import or inverted framework dependency; or writing an ARCHITECTURE.md or ADR. Do not use for a one-file script, throwaway experiment, bug fix inside an established seam, naming/function-shape cleanup (use code-complexity), an existing oversized module (use refactoring-safely), or capacity/data scaling decisions (use system-and-data-design). This defines earned boundaries; it does not license speculative layers.
/architecture-qualityKeep web applications, APIs and services readable as they grow: choose feature or domain seams, assign state ownership, enforce dependency direction, keep adapters thin, and verify file shape. Use when starting or extending a web app, backend, frontend, API or multi-page product; when a change makes a module hard to read; when architecture review finds a god file, cross-feature imports, a circular dependency or a framework-heavy domain. Load architecture-first first for a new system, and refactoring-safely for an existing oversized module. Do not use for a one-file script, throwaway spike or a purely local naming change.
/article-structure-reviewПроверить структуру технической статьи после черновика: задача читателя, жанр,
опора значимых утверждений на доказательства и честные ограничения.
Use after the first draft, before publication. Исправлять структуру, когда это
входит в запрос; не создавать обязательный конвейер из других навыков.
Для локальной языковой редактуры — humanize-english или humanize-russian.
/bug-reproducerFind likely software bugs in a codebase, rank concrete bug candidates, and prove or reject them with focused regression tests before proposing a fix. Also turn bug reports, stack traces, screenshots, failing behavior, support tickets, and regressions into minimal reproducible cases with red-to-green evidence. Use when Codex needs to hunt for unknown bugs, audit code for correctness defects, test suspicious edge cases, reproduce a reported failure, isolate root cause, or verify that an approved fix works without regressions. Honor explicit user authority for the requested fix; use approval gates only for authority that the request did not already grant or when scope materially changes. Do NOT use for ordinary implementation where no bug investigation or reproduction is needed.npx claudepluginhub anastasiyaw/codex-claude-code-config --plugin harnessOther plugins' skills for the same job