discover-repository-state
Skill23 starsChanged 51 days agoMITView on GitHub
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".
In this repository30 other files it gives its agents.
- AGENTS.mdAGENTS.md
- template/AGENTS.mdAGENTS.md
- audit-docsSkill
- audit-prSkill
- batch-schedulerSkill
- execute-phaseSkill
- fold-findingsSkill
- init-workspaceSkill
- log-sessionSkill
- orchestration-envelopeSkill
- phase-contractSkill
- pre-execution-reviewSkill
- product-auditSkill
- resolve-repository-stateSkill
- review-a11ySkill
- review-brandSkill
- review-changeSkill
- review-codeSkill
- review-debtSkill
- review-designSkill
- review-implementationSkill
- review-perfSkill
- review-securitySkill
- review-seoSkill
- review-verifySkill
- skill-lintSkill
- triage-issueSkill
- unit-laneSkill
- verification-contractSkill
- workflow-statusSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 5 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
Create a reviewable evidence snapshot before planning or implementation.
- Distinctive: line 29
Read the agent guide, documentation map, and any existing repository-state ledger before collecting evidence.
- Very specific: line 34
Read the project guide, documentation map, and any existing docs/workflow/REPOSITORY_STATE.md.
- Distinctive: line 42
Place reasoning under Inference and unresolved ambiguity under Open Questions.
- Very specific: line 44
If the existing snapshot is already contradicted, preserve that status and do not alter its unresolved contradiction.
- Very specific: line 50
Only if neither an existing nor a newly recorded contradiction is present, set the snapshot status to frozen.
- Distinctive: line 59
Never create implementation recommendations or silently accept decisions.
- Distinctive: line 75
If a contradiction was recorded:
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Discover Repository State
Create a reviewable evidence snapshot before planning or implementation.
Turn contract
✓ 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
✓ The closing → Next: block is printed lastStep 0 — Discover the project (always first)
Read the agent guide, documentation map, and any existing repository-state ledger before collecting evidence.
Process
- Read the project guide, documentation map, and any existing
docs/workflow/REPOSITORY_STATE.md. - Inspect repository files, tests, git state, and declared tooling. Record only directly observed statements in Repository Facts, each with file:line or command evidence.
- 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.
- Place reasoning under Inference and unresolved ambiguity under Open Questions.
- If the existing snapshot is already
contradicted, preserve that status and do not alter its unresolved contradiction; hand off toresolve-repository-state. Otherwise, if new evidence conflicts with a frozen fact, append a Contradiction, set snapshot status tocontradicted, and do not alter the fact. Hand off toresolve-repository-state. - 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>
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

