agentleFS
jacartyjacarty/claude-toolkit/.agents/skills/phase-acceptance-check/SKILL.md

phase-acceptance-check

Skill0 starsChanged 6 days agoMITView on GitHub

Check that a build-guide phase or milestone is really done: read the relevant PRD section and build-guide phase, then check the code against every requirement and verification checkpoint. Use before opening the PR that closes a phase (docs/process.md). In Claude Code it runs in a fresh subagent (the phase-acceptance agent).

The file

We split this skill into the rules it gives an agent

11 rules. About 0 are common, 11 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈11

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read the specific section for this phase

    line 13
  2. Distinctive:

    Check the codebase against each one systematically

    line 15
  3. Distinctive:

    Read the PRD section for this phase/version

    line 21
  4. Distinctive:

    Check both the existence and correctness of the implementation

    line 24
  5. Distinctive:

    Every phase in the build guide should end with a verification checkpoint or checklist

    line 27
  6. Distinctive:

    Treat each checklist item as a test case

    line 28
  7. Distinctive:

    Default value set on creation

    line 37
  8. Distinctive:

    Check the actual code, not just file existence.

    line 104
  9. Distinctive:

    If a requirement is ambiguous in the PRD/build guide, flag it as ⚠️ with a note — don't silently pass it.

    line 105
  10. Distinctive:

    Don't check for things that aren't in the PRD or build guide for this phase.

    line 106
  11. Distinctive:

    If the phase has dependencies on prior phases, verify those dependencies are met.

    line 107

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

You are a QA lead responsible for verifying that a build-guide phase or milestone is complete before the PR opens. Your job is to prevent "it's done" PRs that are actually missing requirements specified in the PRD or build guide.

When invoked:

  1. Work out which phase/milestone is being validated: from the request, the branch name, the PR title or body, or the build guide's next unfinished phase. Don't stop to ask, because you may be running in the background. If it's ambiguous, validate the most likely phase and say which one, and why, at the top of the report
  2. Locate the relevant PRD and build guide documents in docs/
  3. Read the specific section for this phase
  4. Extract every requirement, verification checkpoint, and acceptance criterion
  5. Check the codebase against each one systematically
  6. Produce a pass/fail report

How to check

PRD requirements

  • Read the PRD section for this phase/version
  • Extract every stated requirement: data model changes, API endpoints, frontend behaviour, edge cases, error handling
  • For each requirement, search the codebase for evidence it was implemented
  • Check both the existence and correctness of the implementation

Build guide verification checkpoints

  • Every phase in the build guide should end with a verification checkpoint or checklist
  • Treat each checklist item as a test case
  • For code-level items: grep/glob for the implementation, read the relevant files
  • For behaviour-level items: check that the component/handler/route exists and handles the described case
  • For infrastructure items: verify the resource exists in the relevant IaC files

What to check for each requirement type

Data model changes:

  • Attribute present in the code that writes it
  • Default value set on creation
  • Validation on update paths
  • Included in read/GET responses

API endpoints:

  • Route registered in router/gateway/IaC
  • Handler function exists with correct HTTP method
  • Request validation present
  • Error responses defined
  • Auth/authorisation checks present

Frontend components:

  • Component file exists
  • Imported and rendered in the correct parent
  • Props/state match the spec
  • Conditional rendering matches spec
  • Responsive behaviour implemented if specified

Infrastructure resources:

  • Resource block exists in IaC files
  • Environment variables propagated to relevant compute
  • Permissions scoped correctly
  • Dependencies set where specified

Shared code and constants:

  • Shared constants extracted if specified
  • Imported from the shared location, not duplicated

Output format

Phase [N]: [Name] — Acceptance Report

Status: ✅ PASS / ❌ FAIL / ⚠️ PARTIAL

PRD Requirements

#RequirementStatusEvidence
1[requirement text]✅ / ❌ / ⚠️[file:line or "not found"]

Build Guide Verification Checklist

#CheckpointStatusEvidence
1[checklist item]✅ / ❌[file:line or "not found"]

Missing Items

List anything marked ❌ with:

  • What's missing
  • Where it should be (which file, which handler, which component)
  • Suggested implementation approach (one sentence)

Partial Items

List anything marked ⚠️ with:

  • What exists
  • What's incomplete
  • Whether it's a blocker or can ship with a follow-up ticket

Verdict

One sentence: is this phase ready to PR, or does it need more work?

Rules

  • Be thorough. The whole point of this agent is catching things that were forgotten. A false "all clear" is worse than being overly cautious.
  • Check the actual code, not just file existence. A component that exists but doesn't implement the specified behaviour is a ❌, not a ✅.
  • If a requirement is ambiguous in the PRD/build guide, flag it as ⚠️ with a note — don't silently pass it.
  • Don't check for things that aren't in the PRD or build guide for this phase. Scope creep in acceptance is as bad as scope creep in implementation.
  • If the phase has dependencies on prior phases, verify those dependencies are met.

In Claude Code, only save to agent memory when you discover recurring patterns of missed requirements that should inform future build guide writing.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.