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

License 许可
MIT
最近更新
2026-11-15
Stars
★ 23
Forks
4

01 前言 Front Matter

name
discover-repository-state
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".
user-invocable
true

03 SKILL.md 正文

Discover Repository State

Create a reviewable evidence snapshot before planning or implementation.

Turn contract

Load and verify the canonical Turn contract (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>

04 同仓库更多 Skills

gtrabanco
gtrabanco/agentic-workflow

runner-contract

The distributable runner's invocation contract: one train-stamped pin for every runtime command the workflow's skills cite. Referenced by the skills that run sensors, guards and ceremony operations; never a menu entry.

★ 23
gtrabanco
gtrabanco/agentic-workflow

verification-contract

Internal contract: the acceptance artifact per delivery unit — legacy (pre- feature 61) units may carry a frozen `ACCEPTANCE.md` (binding if present); post-feature 61 units use the unit doc's `## Acceptance criteria` section as the canonical acceptance source; the unit doc's evidence carrier — `## Evidence` table, or `## Log` `E` lines for a re-cut unit (#308) — serves as the execution receipt. Consumed by planners, execute-phase, and review-change.

★ 23
gtrabanco
gtrabanco/agentic-workflow

skill-lint

Internal agentic-workflow maintenance: after SKILL.md edits, lint the repo's authoring rules, the machine-surface registration rules and the skill-content smell/security checks. Triggers: "lint the skill", "skill authoring check", "check the skill rules", "scan skills for smells".

★ 23
gtrabanco
gtrabanco/agentic-workflow

review-seo

Internal SEO review pass of the agentic-workflow review pack — composed in-turn by review-change and product-audit; not a menu entry. Checks changed web pages/routes for indexability, metadata, and structured data — applies only to public web surfaces. Findings only; never edits code.

★ 23
gtrabanco
gtrabanco/agentic-workflow

review-security

Internal security review pass of the agentic-workflow review pack — composed in-turn by review-change and product-audit; not a menu entry. Checks secrets, input validation, injection, authn/authz, PII exposure, and dependency risk on the changed surface. Findings only; never edits code.

★ 23
gtrabanco
gtrabanco/agentic-workflow

review-perf

Internal performance review pass of the agentic-workflow review pack — composed in-turn by review-change and product-audit; not a menu entry. Checks the changed paths for algorithmic and resource regressions: N+1s, hot-path allocations, asset weight, and leaks. Findings only; never edits code.

★ 23