agentleFS
Diviner-DojoDiviner-Dojo/agent_framework_template/.claude/skills/running-build-checkpoints/SKILL.md

running-build-checkpoints

Skill4 starsChanged 3 months agoApache-2.0View on GitHub

Mid-build checkpoint review protocol for /build_module — trigger categories, the 2-specialist dispatch rule, the 2-iteration cap, and REVISE reflections. Use during /build_module after generating code for a task, to decide whether a checkpoint review fires and which two specialists to dispatch.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈9

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    After generating code for a build task, the facilitator evaluates whether the task matches any trigger category.

    line 14
  2. Distinctive:

    If a task matches multiple categories, the facilitator selects the two most relevant specialists — never more than two per checkpoint.

    line 26
  3. Distinctive:

    APPROVE: No concerns. Under 200 words.

    line 44
  4. Distinctive:

    If both APPROVE → continue to next task.

    line 47
  5. Distinctive:

    If any REVISE → implement the requested changes.

    line 48
  6. Distinctive:

    After implementing revisions, re-dispatch only the specialist(s) who requested REVISE.

    line 51
  7. Very specific:

    If still REVISE → capture the unresolved concern with risk_flags: ["unresolved-checkpoint"], log it, and continue.

    line 54
  8. Distinctive:

    NEVER exceed 2 checkpoint iterations per task: After Round 2, the build continues regardless.

    line 57
  9. Very specific:

    When a diff adds an import for a not-yet-existing call site, re-verify it survives the auto-format pass after the consumer lands …

    line 60
  10. Distinctive:

    When dispatching a checkpoint specialist, use this prompt structure:

    line 64
  11. Distinctive:

    All checkpoint events go into the build's discussion (created at build start):

    line 86

≈ “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.

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

Build Review Protocol

Enforces Principle #3 (the generator is never the sole evaluator) within /build_module execution.

Mid-build checkpoint reviews ensure that the agent generating code is not the sole evaluator during builds, not just at commit time.

Checkpoint Triggers

After generating code for a build task, the facilitator evaluates whether the task matches any trigger category. If it does, a checkpoint fires.

Trigger CategoryConditionSpecialists (2 max)
New module2+ new files created under src/architecture-consultant, qa-specialist
Architecture choicePattern selection, abstraction layer, dependency directionarchitecture-consultant, independent-perspective
Database schemaNew/modified SQLAlchemy models, Alembic migrationsperformance-analyst, security-specialist
Security-relevantAuth, encryption, token handling, input validationsecurity-specialist, architecture-consultant
API routesNew FastAPI endpoints, middleware, dependency injectionarchitecture-consultant, qa-specialist
External APIHTTP clients, third-party service integrationssecurity-specialist, performance-analyst
UI flow / user-facing changesNew user-facing pages, navigation changes, state feedbackux-evaluator, qa-specialist

If a task matches multiple categories, the facilitator selects the two most relevant specialists — never more than two per checkpoint. Priority order when categories overlap: security-relevant always claims one slot; the other slot goes to the highest-specificity remaining category.

Cost rationale: Checkpoints use sonnet-tier dispatch (not the agent's default tier) because the 200-word response cap and focused scope make full-tier unnecessary. This is an intentional cost optimization, not an error.

Exempt Tasks (No Checkpoint)

  • Project scaffolding (directory creation, initial config)
  • Dependency configuration (pyproject.toml, requirements.txt changes only)
  • Pure test writing (no production code changes)
  • Theme, style, or cosmetic UI-only changes
  • Documentation and comment updates
  • Final verification / quality gate runs

Checkpoint Protocol

Round 1

  1. Facilitator dispatches exactly 2 specialists in parallel via Task().
  2. Each specialist reviews the task's code and responds with:
    • APPROVE: No concerns. Under 200 words.
    • REVISE: Specific, actionable change request. Under 200 words.
  3. Facilitator captures both responses via write_event.py with tags checkpoint,task-N.
  4. If both APPROVE → continue to next task.
  5. If any REVISE → implement the requested changes.

Round 2 (max)

  1. After implementing revisions, re-dispatch only the specialist(s) who requested REVISE.
  2. Specialist responds APPROVE or REVISE (under 200 words).
  3. If APPROVE → continue.
  4. If still REVISE → capture the unresolved concern with risk_flags: ["unresolved-checkpoint"], log it, and continue. Flag for developer in the build summary.

Hard Limit

  • NEVER exceed 2 checkpoint iterations per task. After Round 2, the build continues regardless. Unresolved concerns are surfaced in the build summary, not blocked on.

Cross-task verification

  • When a diff adds an import for a not-yet-existing call site, re-verify it survives the auto-format pass after the consumer lands (autoformat-import-strip class — 3rd occurrence 2026-07-16, see memory/bugs/regression-ledger.md).

Specialist Prompt Template

When dispatching a checkpoint specialist, use this prompt structure:

Build Checkpoint Review: <discussion_id>
Task: <task number and title>
Trigger: <trigger category>

Review this code from your specialist perspective. This is a mid-build checkpoint, not a full review.

Focus on:
- Whether the implementation approach is sound
- Whether it aligns with existing ADRs and patterns
- Whether prior art or solution paths were considered (check memory/projects/ for relevant entries)
- Any risks that would be expensive to fix later

<code content or file paths>

Respond with APPROVE or REVISE (under 200 words).

Capture

All checkpoint events go into the build's discussion (created at build start):

  • Specialist responses → write_event.py with intent critique, tags checkpoint,task-N
  • Bypass notes (exempt tasks) → write_event.py with intent decision, tags checkpoint-bypass,task-N
  • Unresolved concerns → write_event.py with intent critique, tags checkpoint,task-N, risk_flags unresolved-checkpoint

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.