Skip to content
Development
Skill

/discover-repository-state

Discover repository evidence and write a frozen Normalized Repository State. Produces verified repository evidence and keeps facts, decisions, planned work, documentation, and inference separate. It does not make recommendations or infer implementation from documentation.

From plugin
agentic-workflow
2228 skills

Claude Code

$ npx -y skills add gtrabanco/agentic-workflow --skill discover-repository-state --agent claude-code

SKILL.md

discover-repository-state.SKILL.md
name: discover-repository-state
user-invocable: true
version: 4.10.0
description: >
  Discover repository evidence and write a frozen Normalized Repository State.
  Produces verified repository evidence and keeps facts, decisions, planned
  work, documentation, and inference separate. It does not make
  recommendations or infer implementation from documentation. Triggers: "discover
  repository state", "normalize repository state", "freeze repository facts".

Discover Repository State

Create a reviewable evidence snapshot before planning or implementation.

Turn contract

Load and verify the **canonical** [Turn contract](../orchestration-envelope/references/TURN_CONTRACT.md) (11 boxes) before ending every turn. Skill-specific additions:

✓ Repository evidence was read or commands were run for every fact
✓ Facts, documentation, planned work, decisions, and inference are separated
✓ Snapshot status is frozen unless a contradiction was recorded
✓ No accepted decision or existing frozen fact was silently changed

Missing reference → STOP. About to end the turn with any box unchecked? The turn is NOT done — complete the missing box first.

Step 0 — Discover the project (always first)

Read the agent guide, documentation map, and any existing repository-state ledger before collecting evidence.

Process

1. Read the project guide, documentation map, and any existing `docs/workflow/REPOSITORY_STATE.md`. 2. Inspect repository files, tests, git state, and declared tooling. Record only directly observed statements in **Repository Facts**, each with file:line or command evidence. 3. Record design records under **Accepted Decisions**, roadmap entries under **Planned work**, and document-only claims under **Documentation**. Do not copy them into facts without separate implementation evidence. 4. Place reasoning under **Inference** and unresolved ambiguity under **Open Questions**. 5. If the existing snapshot is already `contradicted`, preserve that status and do not alter its unresolved contradiction; hand off to `resolve-repository-state`. Otherwise, if new evidence conflicts with a frozen fact, append a **Contradiction**, set snapshot status to `contradicted`, and do not alter the fact. Hand off to `resolve-repository-state`. 6. Only if neither an existing nor a newly recorded contradiction is present, set the snapshot status to `frozen`. Commit the artifact and cite the source revision.

Guardrails

  • Discovery records repository facts and preserves decisions, planned work,

documentation, inference, questions, and contradictions in their own sections.

  • The repository remains authoritative; refresh when the snapshot is stale.
  • Never create implementation recommendations or silently accept decisions.

Portability

Without a slash menu, open this file and follow its process in a fresh turn.

Relationship to other skills

`resolve-repository-state` resolves contradictions; planners and executors consume the frozen result.

Done when

The ledger is frozen or explicitly contradicted, and every fact carries direct evidence.

If a contradiction was recorded:

→ Next: /resolve-repository-state <contradiction-id> — resolve the contradicted snapshot first · provide missing evidence → rerun /discover-repository-state

Otherwise:

→ Next: /unit-lane <slug> — triage and run the lane from frozen facts · already-triaged unit → /execute-phase <NN>

Read more
@gtrabanco
Ships withagentic-workflow

A reusable set of agent skills that run a disciplined, doc-driven workflow for building software with agents — from idea/issue to a reviewed, classified, merge-ready change.

Stars on GitHub

Momentum

stars in total
22
Star history of gtrabanco/agentic-workflow on GitHub, a chart by star-history.com

Other skills on agentic-workflow.

audit-docs

audit-docs

Audit cross-document coherence: docs ↔ roadmap ↔ code ↔ fix index ↔ issues. Finds drift — features in docs/ not in the roadmap…

audit-pr

audit-pr

Audit a whole PR against the delivery contract and return MERGE-READY or evidenced blockers with the full URL. Consumes the…

fold-findings

fold-findings

Repair persisted fix-now findings in compatible atomic batches: root-cause fixes, green gate, commit/push, and per-row `folded:…

init-workspace

init-workspace

Adapt the workflow scaffold to a new repository or add only missing substrate blocks to an existing install. Every install, hook,…

log-session

log-session

Append a structured entry to the project's session log (`docs/LOGS.md`): what was done this session, files touched, decisions…

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills10d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc11d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react1d252k
@facebook@facebookInstall Skill

Questions about discover-repository-state.

Which coding agents can use discover-repository-state?
discover-repository-state installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.