agentleFS
timmo001timmo001/skills/staged-implementation/SKILL.md

staged-implementation

Skill2 starsChanged todayApache-2.0View on GitHub

Execute broad changes one coherent, independently verifiable stage at a time. Use when work spans multiple independently reviewable changes, or when contracts, producer-consumer migrations, generated artefacts, or release packaging create an ordered multi-stage rollout; skip small single-purpose changes.

We split this skill into the rules it gives an agent

14 rules. About 0 are common, 10 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈10

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this workflow when finishing the whole request in one uninterrupted change would create several independently reviewable changes.

    line 9
  2. Distinctive:

    Keep exactly one active stage.

    line 13
  3. Distinctive:

    Keep every checkpoint usable and independently verifiable.

    line 14
  4. Distinctive:

    Do not turn a small, single-purpose change into artificial phases.

    line 16
  5. Distinctive:

    Read the applicable instructions and inspect the existing source and test layout.

    line 22
  6. Distinctive:

    When a public contract must change, define its final shape and rollout order before parallel work.

    line 28
  7. Very specific:

    Keep stage tracking in the current plan.

    line 38
  8. Very specific:

    Update any existing plan or handoff when its tracked work changes.

    line 39
  9. Very specific:

    Use session-coordination to choose each worker's model and effort for its assignment.

    line 45
  10. Distinctive:

    Do not duplicate delegated work.

    line 48
  11. Distinctive:

    Use the fastest reliable feedback while iterating: the exact reproduction, affected test, touched-package type check, lint, format, or …

    line 53
  12. Distinctive:

    If final-gate fixes were needed, confirm those fixes and their affected risk area rather than reopening the entire diff.

    line 57
  13. Distinctive:

    When blocked work moves to another session, prepare a compact handoff containing the active contract, current diff state, validation …

    line 59
  14. Very specific:

    When the active stage completes all work tracked by a loaded handoff or plan, perform its planned retirement step last.

    line 60

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

Staged Implementation

Use this workflow when finishing the whole request in one uninterrupted change would create several independently reviewable changes. A stage is one coherent purpose with any required verification and documentation, not an arbitrary file or line limit.

Boundaries

  • Keep exactly one active stage. Record dependent or unrelated work as deferred stages instead of editing towards all of them at once.
  • Keep every checkpoint usable and independently verifiable. Do not leave an intermediate stage knowingly broken.
  • A stage checkpoint pauses implementation; it does not mark a wider requested outcome complete while requested stages remain.
  • Do not turn a small, single-purpose change into artificial phases.
  • Reuse specialised skills for diagnosis, review, commits, handoffs, documentation, and framework work. This skill owns sequencing, not their domain rules.

Plan The Work

  1. Confirm repository conventions before proposing edits.
    • Read the applicable instructions and inspect the existing source and test layout.
    • Identify generated files and their source of truth.
    • For package or release work, choose the validation source up front: committed remote source, the current worktree, or a prepared source tree overlaid with local changes.
  2. Split by coherent purpose and dependency order.
    • Separate prerequisites, contract changes, consumer migration, implementation replacement, generated output, and packaging when each can stand alone.
    • Apply testing before adding tests. Keep worthwhile test edits and documentation with the behaviour they prove or explain; splitting work into stages does not itself justify more tests.
    • When a public contract must change, define its final shape and rollout order before parallel work. Migrate tolerant consumers first only when old and new shapes genuinely need to coexist.
  3. Define the active stage contract.
    • Goal and observable acceptance.
    • In-scope and deferred work.
    • One owner for shared interfaces, models, schemas, error shapes, migrations, and generated artefacts.
    • Anticipated files as a directory tree, split by repository or workspace root.
    • Targeted checks and any repository-required validation.
    • Commit-ready checkpoint conditions.
    • Whether execution stops at that checkpoint or continues through later named stages because the user requested one combined delivery.
  4. List later stages briefly. Do not design their implementation in detail until they become active unless their interface constrains the active stage.
  5. Keep stage tracking in the current plan. Use handoff only when work must continue in another session or the user requests a durable record. Record the remaining work in one concise handoff unless separate owners need separate briefs.
  6. Update any existing plan or handoff when its tracked work changes. Follow handoff and notes-cli for its retirement; do not create extra files solely to track stage completion.

Delegate Safely

  • For substantial independent work within the active stage, load session-coordination to propose a Herdr split and obtain agreement before launching workers. Coordinate from the current agent; keep small or tightly coupled work direct. Use native subagents only when explicitly requested.
  • Parallelise independent discovery, tests, or disjoint implementation only. Keep ordered reasoning and shared mutable files with one integrator.
  • Use session-coordination to choose each worker's model and effort for its assignment. Propose useful Herdr splits instead of keeping independent work on the coordinator's model by default; keep routine check execution distinct from test design, diagnosis and reasoning-heavy review.
  • Define shared contracts before delegation. Workers consume them; they do not independently redesign them.
  • Give each worker a bounded brief: objective, authoritative inputs, exact file scope, prohibited shared files, expected output, verification, and required concise summary.
  • Do not duplicate delegated work. Reconcile worker results through the contract owner before integration.

Implement And Verify

  1. Edit only the active stage and keep the diff focused on its stated purpose.
  2. Use the fastest reliable feedback while iterating: the exact reproduction, affected test, touched-package type check, lint, format, or build command.
  3. Once targeted checks pass and the diff stabilises, perform one focused review by risk area and file. Classify concrete findings as blocking or deferred follow-up.
  4. Fix blocking findings, then run the relevant existing checks and repository-required validation. Reuse passing results for unchanged code; a stage boundary alone does not require another full suite.
  5. During final verification, freeze scope. Make only fixes for failures attributable to the active stage or unresolved blocking findings. Report pre-existing or unrelated failures separately. Record new hardening or cleanup ideas for a later stage.
  6. If final-gate fixes were needed, confirm those fixes and their affected risk area rather than reopening the entire diff.
  7. Do not repeat an unchanged fix-and-check cycle. Repeated rereads, duplicate edits, unchanged validation retries, stale review findings, scope drift, or loss of the stage acceptance criteria are context-pressure signals. If the same failure persists and another attempt has no new hypothesis or evidence, stop as blocked.
  8. When blocked work moves to another session, prepare a compact handoff containing the active contract, current diff state, validation evidence, and unresolved findings.
  9. When the active stage completes all work tracked by a loaded handoff or plan, perform its planned retirement step last. Obtain explicit confirmation immediately before deleting a note, as required by notes-cli.

Checkpoint

At the commit-ready boundary, report:

  • Active stage and outcome: complete or blocked.
  • Files changed and contracts established.
  • Verification results and any remaining limits.
  • Blocking review findings resolved and follow-ups deferred.
  • The next independent stage, if any.
  • A handoff reference only when work is moving to another session.
  • The completed handoff or plan retired after user confirmation, when no tracked work remains.

Stop at this checkpoint when remaining work is a separate reviewable change. Continue automatically only when it belongs to the same coherent review unit or the user explicitly requested the listed stages as one delivery. If requested stages remain, report the wider request as partial rather than complete. A request for one final commit does not by itself make several stages one implementation scope.

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.

Reviews can't be read right now.

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.