gtrabanco/agentic-workflow

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. Triggers: "discover repository state", "normalize repository state", "freeze repository facts".

First seen Jul 31, 2026

Installation

$ npx skills add gtrabanco/agentic-workflow --skill discover-repository-state

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from gtrabanco/agentic-workflow · top by installs.

npx skills add gtrabanco/agentic-workflow

Browse all from gtrabanco/agentic-workflow

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 21
License LICENSE
Default branch main
Open issues 21
Status Active

Skill metadata

Parsed from SKILL.md frontmatter.

Version1.2.1

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 3,320 B
  • docs SUMMARY.md 401 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 35 installs

SKILL.md

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 last

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.

  1. Inspect repository files, tests, git state, and declared tooling. Record only

directly observed statements in Repository Facts, each with file:line or command evidence.

  1. 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.

  1. Place reasoning under Inference and unresolved ambiguity under **Open

Questions**.

  1. 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.

  1. 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: /plan-feature <slug> — plan from frozen facts · implementation-ready feature → /execute-phase <NN> (planned is not executable: no current PLAN-REVIEW-PASS → /review-plan <NN>)