| name | repo-context |
| description | Use when the user explicitly asks to ground repository work, map real files, commands, entry points, project docs or classes, preview AGENTS/project-map content, inventory existing page/component or Rust interface reuse candidates, or compare docs and code before implementation. |
Repository Context
Overview
Establish repository context from real files, not assumptions. Use this when the requested deliverable is onboarding, a targeted reuse/interface inventory, doc bootstrap, or doc/code alignment. Generic implementation stays with implement-frontend, implement-rust, or the repository's implementation workflow, which performs its own targeted search when no current context report exists. This skill explains what exists and where ownership lives; it does not judge a repository, range, or change set for defects.
Workflow
- Read repo guidance first: root
AGENTS.md, nearest subproject AGENTS.md, or AGENT.md fallback.
- Run
git status --short before drawing conclusions or planning writes.
- Select the smallest sufficient profile:
- Quick grounding: for one known app, page, component, crate, command, or API surface.
- Targeted inventory: for reuse candidates, interface chains, or a bounded cross-file change.
- Alignment: for docs/code consistency, project classification, or structural lifecycle review.
- Bootstrap: for previewing missing repository guidance from bundled templates.
- Inspect only the manifests, configs, commands, entry points, and docs needed for the selected profile.
- Identify the project class and any repository-defined toolchain, directory, naming, reuse, or structural lifecycle standard.
- Before page, component, or Rust interface work, build a targeted inventory of analogous implementations. For frontend work include routes, pages, layouts, components, hooks or composables, services, stores, and shared UI. For Rust/API work include architecture docs, route registration, handlers, services, repositories, traits, types/DTOs, error mapping, migrations, callers, and tests. Identify reuse and reference candidates before proposing new files or interfaces.
- For monorepos, inspect the workspace root first, then only relevant app/package boundaries; mark unrelated areas
Not verified.
- Stop once the requested context is supported by evidence. Do not continue scanning to make the report look comprehensive.
- Escalate from Quick grounding to a broader profile only when a discovered dependency, contract, or ownership boundary materially affects the task; state why the broader read is required.
- Run only repo-defined checks when checks are needed and safe.
Modes
- Quick grounding: read guidance, status, the owning manifest/config, the target entry point, and the nearest analogous implementation; return a compact fact set rather than a repository report.
- Targeted inventory: map the minimum route/page/component or Rust interface chain needed to make a reuse or design decision.
- Bootstrap: preview missing
AGENTS.md, docs/project-map.md, or equivalent docs from bundled templates; write only after explicit confirmation.
- Alignment: compare existing docs against manifests, configs, commands, entry points, project classification, current source layout, reuse/reference inventory, and structural lifecycle; report stale, missing, incorrect, or duplicated claims.
Do Not Use For
- Ordinary implementation when the user did not ask for a separate context deliverable; implementation skills must perform their own bounded grounding.
- Existing local diff review, dirty-tree ownership, commit grouping, or staging plans; use
code-review.
- Independent review of a repository snapshot, branch comparison, commit range, pull request, release candidate, or review package; use
repo-review.
- Future implementation planning or subagent task splitting; use
code-planner.
- Root-cause investigation of a concrete failure; use
diagnose.
- Browser page operation or real desktop-client verification; use
ops-browser or ops-client.
- Security-only review after the target surface is known; use
audit-security.
Hard Rules
- Keep context discovery and doc review read-only unless the user explicitly asks for writes.
- Use real paths, commands, configs, and code evidence; do not invent missing layers.
- Say
Not found for missing files, layers, or commands.
- Say
Not verified for unchecked areas or runtime claims.
- Treat local
prompts/ as optional; bundled references must be sufficient after publishing.
- Preview generated docs before writing unless implementation is explicitly requested.
- Preserve unrelated local changes.
- Do not turn inventory observations into P0-P3 findings or claim review approval; route evaluative review requests to
code-review or repo-review according to the target basis.
- Do not impose one directory or toolchain template across different project classes. Treat documented legacy, prototype, multi-process, framework-native, and protected production layouts as explicit evidence.
- Do not recommend a new page, component, endpoint, handler, service, repository, trait, type/DTO, helper, hook, composable, store, or shared layer before reading relevant docs and running a targeted existing-file and symbol search. Report the nearest reusable or reference implementation, or state
Not found and justify the new path or interface.
- Do not duplicate a full context report inside a later implementation or review response. Reuse the current inventory, refresh only stale facts, and report changed evidence.
- Do not measure quality by file count read. Every inspected path must answer a named context question.
Output Contract
Start with the selected profile, verified current truth, project class, and the reason the read stopped. Then report the targeted directory/file inventory, reuse and reference candidates, missing items, standards drift, doc/code mismatches, or proposed docs. Include commands run, new-file justification, validation status, escalation reason when applicable, structural lifecycle gaps, and anything Not verified. Do not produce severity-ranked defect findings unless the user separately requests a review workflow.
Skill Maintenance
When maintaining this package, update references/eval-cases.md, references/usage.md, and agents/openai.yaml with trigger, mode, boundary, or output changes. In AICraft, run python3 scripts/validate-skills.py --skill repo-context before publishing.
References