Repo map
Independent Agent Skills for repository analysis, planning, implementation, review, delivery, design, and runtime verification.
npx -y skills add idaibin/skills --skill repo-mapAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Use when current Git or non-Git workspace truth needs a durable map of roots, ownership, architecture, commands, task routes, and reusable contracts, or an existing map needs evidence-based repair; do not use for ordinary task-local discovery or change review.
SKILL.md
11.0 KB, as published. Nobody here has run it
Repository Map
Overview
Map stable workspace or repository semantics into a concise navigation layer rooted at <map-root>/docs/repo-map/README.md, unless the project already defines an equivalent. The map should let later work reach the correct working root, Git root when present, canonical owner, reusable contract, protocol authority, generated consumer, and verification source without rediscovering the project. Source remains proof; the map is a verified index, not a copied directory tree or substitute for task-time checks. It does not judge changes for defects or declare review readiness.
Workflow
- Resolve the requested scope, containing Git root, child/nested Git roots, map root, and
versionedorlocal-unversionedpersistence before reading broadly. Keep the deepest Git root as file owner unless current manifests prove otherwise; non-Git projects remain valid map targets. Use the root-resolution procedure inreferences/checklist.mdonly when boundaries are ambiguous. - Read effective repository guidance from the map root and each child Git root actually opened, including
AGENTS.md,CLAUDE.md, and host-provided instructions when present. Rungit status --shortin every applicable Git root before editing a document there; do not run Git commands as if a non-Git container were a repository. - Locate the existing repo-map artifact. Prefer a project-defined equivalent; otherwise consider
<map-root>/docs/repo-map/README.md. If multiple current or legacy candidates exist, inspect their ownership and references, select one authoritative root index, record any migration, and stop for clarification when evidence cannot choose safely; never silently overwrite or create a competing map. Treat verified specialist maps for UI, APIs, deployment, or another bounded owner as federated authorities: link and summarize their routing boundary from the root map instead of copying their detailed inventory. If the target artifact is inside Git and already modified, inspect its staged and unstaged diff, preserve unrelated hunks, and stop on an unsafe overlap. - Apply the creation gate: create or expand a map only when it will reduce wrong-root routing, repeated semantic discovery, duplicate implementation, or cross-boundary inference. If one directory listing or manifest answers the need, read it directly and keep the map absent or smaller.
- Select workspace, repository, or scoped level from real ownership, build, deploy, or runtime boundaries; never split from directory names alone.
- Define the questions the map must answer: real boundaries and owners, architecture, command sources, shortest task routes, reusable contracts, cross-boundary relationships, and validation entry points. When product positioning changes task routing, link the smallest verified product-fact authority set without restating or deciding product behavior. Treat canonical owner as the definition or contract owner; record build/deploy, runtime/operations, or data/schema ownership only when it changes routing.
- Search before opening files. Start with manifests/config, entry points, exports/registrations, and the nearest representative implementation. Read only evidence that can change the map.
- For monorepos or multi-repo workspaces, map the routing boundary first, then only the owning child repository or package needed. Do not scan every child by default.
- Write or update the repo-map artifact with:
- current directory and ownership map;
- technical architecture and runtime boundaries;
- install, start, test, lint, typecheck, and build commands from their real sources;
- repository-specific conventions and effective guidance;
- shortest reading path for common task types;
- a verified reuse index for shared components, functions/helpers, hooks/composables, stores, services, API clients/endpoints, routes, handlers, repositories, traits/types/DTOs, and reference implementations;
- each reusable entry's canonical owner/definition, access or registration entry with actual visibility, representative real consumers, usage boundary, and live verification source;
- cross-boundary contracts such as frontend-to-API, Tauri IPC, package exports, generated clients, events, persistence, and deployment edges;
- known exceptions, high-risk boundaries, and
Not verifiedgaps. For reusable UI components, record the product/design term, visual cue or semantic job, canonical path and symbol, export/registration path, owning provider root, representative consumers, states/variants, reuse boundary, and current-source evidence. Keep this a high-value index, not a catalog. For a requested HTTP API inventory, usereferences/api-contract-map.md. Record the repository-native authority/consumer chain and only existing or explicitly requested generated artifacts; do not introduce or copy schemas.
- Before recommending a new declaration, search bounded live source through explicit owner/provider edges, rank current candidates, and report
reuse,extend,wrap, justifiednew, orNot verified. Do not scan unrelated dependency graphs or persist task-local choices. - Revalidate an entry's current definition, access/registration, command, schema, and runtime role before use. Repair only the changed entry and directly dependent declared edges.
- Repair stale paths only inside their recorded owner/provider root. If that root is absent, mark stale and restart bounded live discovery from newly proven ownership. Git history may explain only a move already proven by current source; see
references/checklist.mdfor the bounded repair procedure. - Rebuild the whole repo-map artifact only when it is missing, corrupt, structurally unusable, or the user explicitly requests a rebuild.
- Stop when each selected common task reaches the correct working/Git root through the minimum decisive evidence chain, normally 1-8 unique entries per task. Reuse shared entries across tasks; exceed eight only when distinct required ownership or runtime boundaries cannot be represented safely with fewer entries, and record the reason. Mark unchecked areas
Not verified. - Run project-defined documentation or skill checks that match the edit, then verify the final diff contains only intended changes.
Modes
- Repo map: create the smallest useful workspace, repository, or scoped navigation artifact.
- Targeted update: add or refresh one architecture, command, ownership, component, or interface area.
- Reuse inventory: map the shortest chain to existing reusable or reference implementations before new development.
- API Contract Map profile: record a bounded native or generated authority/consumer chain and its available checks.
- Navigation repair: recover stale documented paths by ascending to the nearest existing ancestor and repairing only affected entries.
Do Not Use For
- Ordinary implementation when no separate repo-map deliverable was requested; implementation skills perform their own bounded discovery and live reuse search.
- Local diff readiness or fixed immutable review; use
repo-reviewwith Worktree/index, resolved SHA/range (including PR base/head), or verified package basis, plus the conditional Release profile when applicable. - Future implementation planning; use the host's built-in planning.
- Root-cause investigation of a concrete failure; use the host's built-in diagnosis under effective instructions.
Hard Rules
- Project files, configs, commands, and effective guidance are the source of truth.
- Use exact map-root-relative paths and state the working root plus every relevant Git root when ambiguity is possible.
- Prefer the shortest accurate reading path over a complete file inventory.
- Keep one root navigation authority while allowing verified specialist maps to own bounded detail. Do not duplicate their rows, tokens, schemas, or component inventories into the root map.
- Do not mirror the source directory structure, enumerate every leaf file/function/API, or store transient branch, dirty-tree, local-environment, or runtime status.
- Do not generate or copy an executable API schema into the map. Record authority, paths, symbols, commands, consumers, and evidence references only.
- Do not recommend a new component, function, endpoint, service, repository, trait, DTO, hook, composable, store, or helper before verifying the nearest reusable or reference implementation in live source.
- Treat the reuse index as high-value navigation, not an exhaustive symbol catalog. Include explicit shared contracts or proven reusable candidates; keep leaf-local details in source.
- Prefer verified existing components during implementation, but do not make a repo map or Component Map a mandatory implementation prerequisite.
- Never treat a map miss as proof that no implementation exists. Record the live search scope before allowing a new declaration.
- Say
Not foundfor missing items andNot verifiedfor unchecked or runtime claims. - Keep current truth separate from history, plans, and aspirational architecture.
- Repair stale navigation locally. Never rebuild the whole document merely because one path or parent directory disappeared.
- Never ascend or search outside a recorded owner/provider root to rescue a stale component entry. If that root no longer exists, mark the entry stale and use a fresh bounded live search with newly proven ownership.
- Use Git history only as corroboration for a current-source-proven move or rename; historical definitions and consumers do not prove current reusability.
- Preserve unrelated local changes.
- Do not produce P0-P3 findings or claim review approval.
Output Contract
Report the repo-map path, initial working scope, scope class, map root, discovered Git roots and containment, persistence state, relevant worktree state, sections created or updated, and validation performed. Summarize task routes, reuse decisions and canonical entries, duplicate-declaration risks avoided, semantic or path repairs, preserved sections, and remaining Not found or Not verified gaps. For stopped or partial execution, also report the stop reason, completed evidence chain, unresolved boundary, artifact state, and required follow-up. Do not duplicate the full map in chat.
References
- See references/usage.md for routing and examples.
- See references/checklist.md for evidence and incremental repair details.
- See references/reuse-index.md when mapping components, functions, types, or APIs and deciding whether a new declaration is justified.
- See references/api-contract-map.md only for a requested HTTP authority/consumer map.
- See references/prompt-templates.md for the repo-map structure.
- See references/eval-cases.md for trigger and quality evals.