Agent skill
repository-audit
Survey repo reality (stack, docs/code/skills drift, CI/lint/tests/docker/Makefile) and produce a compact Repo Survey + suggested tasks for the orchestrator.
Install this agent skill to your Project
npx add-skill https://github.com/frostaura/ai.toolkit.gaia/tree/main/.github/skills/repository-audit
SKILL.md
Repository Audit (Repo Explorer)
When to use
Run on every request before planning. Output is chat-only (no repo files). Keep it compact.
Inputs
- Working tree contents (paths + key files)
- Recent changes (if available)
- CI status signals (workflows present; failures if visible)
/docscontents and relevance to current code
Output (exact format)
Return a Repo Survey with these sections (bullets, short lines):
- Stack & Tooling
- Docs State
- Drift Checks (Docs↔Code, Skills↔Reality)
- Quality Infrastructure
- Suggested Tasks (titles + gates)
Step 1 — Identify stack & tooling
Look for (examples, not exhaustive):
- Languages:
.csproj,package.json,pyproject.toml,requirements.txt,go.mod,pubspec.yaml - Build:
Makefile,docker-compose.yml,*.sln,gradle,mvnw,nx.json,turbo.jsonReport: - Primary stack(s)
- Build entrypoints (Make targets preferred)
- Package manager(s)
Step 2 — Check docs presence & shape
Inspect /docs:
- Does it exist?
- Is there
/docs/use-cases/? Are use cases one-per-file withUC-NNNnaming? - Is there
/docs/architecture/? Are decisions documented withARCH-NNNnaming? - Is there
/docs/testing/? Are test strategies documented withTEST-NNNnaming? Report: - What's present
- What's missing (templates exist at
*-000-template.mdin each folder) - Any obvious staleness/duplication
Step 3 — Drift checks (blocking signals)
Docs ↔ Code drift (blocking)
Look for mismatches such as:
- Documented endpoints that don’t exist
- Implemented endpoints/flows not documented
- Behavior described differently than code/tests imply
Return:
drift_docs_code: none | suspected | confirmedwith 1–2 bullet reasons.
Skills ↔ Reality drift (blocking)
Compare repo reality against skills assumptions:
- Lint tool differs from skill
- Test runner differs
- CI structure differs
- Docker/Make conventions differ
Return:
drift_skills: none | suspected | confirmedwith 1–2 bullet reasons.
Step 4 — Quality infrastructure inventory
CI (blocking if missing/failing)
- Check
.github/workflows/ - Identify primary workflow(s): lint/build/test
- If evidence of failing CI exists, report it Return:
ci: missing | present | failing
Lint/format
- Identify lint tools and where configured Return:
lint: missing | presentand the tool
Tests
- Identify unit/integration/e2e presence
- Note Playwright presence for web Return:
tests: none | unit | unit+integration | unit+e2e | full(best match)
Dockerization (required for HTTP APIs)
- Check for
docker-compose.ymland.env.exampleReturn: docker: missing | presentand whether it includes the API
Makefile (preferred local UX)
- Check for
Makefile - List key targets if present:
up/down/test/lint/buildReturn: make: missing | presentand key targets
Step 5 — Suggested Tasks (orchestrator will create real tasks)
Provide 5–12 suggested tasks max, each as:
- Title
- Why (one short line)
- Suggested required_gates[] (explicit list)
Rules:
- If
drift_docs_code != none: include “Resolve docs↔code drift” as the top task (blocking). - If
ci != present: include “Add/Fix CI” as a top task (blocking). - If HTTP API and
docker: missing: include “Add docker-compose stack” (blocking for use-case work). - If
drift_skills != none: include “Update affected skills to match reality” (blocking).
References (read/consult)
AGENTS.md(non-negotiables).github/copilot-instructions.md(repo instructions).github/skills/gaia-process/SKILL.md(workflow contract).github/workflows/(CI)/docs/(source of truth)Makefile(local commands)
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
stack-default-dotnet-api
Opinionated baseline for .NET HTTP APIs: analyzers/formatting, unit+integration strategy, docker-compose, Makefile targets, and CI wiring.
tasking-and-proof
How the orchestrator must create/manage MCP tasks (todo/doing/done), set required_gates, handle blockers/questions, and record low-context proof for completion.
integration-testing-http
Run curl-style integration checks against the docker-compose stack for HTTP APIs. Required for use-case changes.
spec-consistency
Prevent and repair drift between `/docs` (source of truth), code, tests, CI, and runtime artifacts. Use before marking work done.
gaia-process
End-to-end Gaia SDLC workflow (Repo Explorer → drift/CI fixes → task graph → gated delivery → QA veto → MCP proof). Use for any work in a repo.
stack-default-web-ts
Opinionated baseline for JS/TS web repos: lint/format, tests, Playwright, docker (if HTTP API), Makefile targets, and CI wiring.
Didn't find tool you were looking for?