⏳ This skill is pending AI review.

Scores will appear once the review pipeline completes.

version unknown

proof-before-done

comos-federation@comos-federation⭐ 0 stars· last commit 1mo ago· 0 open issues

>-

Choose how to use this skill

You do not need every option. Choose the path your AI client supports. The stable page stays the same; versioned files are immutable.

1. Native installer

This listing has no registered native installer command. Use the complete package or source fallback below, depending on what your client supports.

Do not guess an installer command or replace an existing version without reviewing the diff.

2. Complete package recommended

Download the ZIP when available. It includes SKILL.md plus the references, security notes and version metadata.

No complete ProSkills package is published for this listing yet.

3. Prompt-only

Copy the prompt above when the agent can read the stable page or when you want to adopt the workflow without installing a skill.

Need only the instruction file?

Download SKILL.md only if your client requires a single file. The complete ZIP is safer for a full installation because it preserves the references and release context.

No path installs or executes anything by itself. Your agent still needs access to the project files. Before updating, compare the installed version and review the diff.

—/10

// RATINGS

⭐GitHub Stars
⭐ 0 on GitHubGitHub ↗

New / niche

🟢ProSkills Score
—
📍

Not yet listed on ClawHub or SkillsMP

// README

proof-before-done

A reusable skill that gates "done" claims with an eight-question verification protocol. The operational implementation of incremental engineering at the agent layer.

When an AI engineering agent (Claude Code, Codex, or any agent that consumes skill files) is about to claim work is "done," this skill fires and forces the agent to answer a specific set of questions in writing before the claim propagates downstream. Each question targets a recurring failure mode of agent-generated work.

The gate fires on every done-claim — there is no opt-out. What scales is depth: routine work passes with a short written statement, while risky surfaces (auth, migrations, deploy config, cross-service contracts, money paths) get the full eight questions. An agent that has mis-assessed its work will also mis-assess whether it needs a gate, so the decision to run it is not the agent's to make.

The eight questions

  1. Does my count match my list? Recount from ground truth, never from memory or from what the previous step said.
  2. Did I test what I asserted, or did I assert it? An unverified claim is fine when labeled unverified. Silent assertion is not.
  3. Are my magic numbers justified at the call site? Why 24h and not 12h, one line away from the constant.
  4. Are my string-encoded keys schemaed? One encoder, one decoder — not eighteen callers composing the same identifier inline.
  5. What does my work NOT solve? Written before the "what landed" section, or you don't know the boundary of what you fixed.
  6. Does my verification floor match my claim? A type-check proves syntax. If the claim is about runtime behavior, downgrade the claim or raise the floor.
  7. Is my framing honest about what I did? Re-read the opening sentence. Does it claim more than the floor proves?
  8. Did the verification's inputs come from reality, or from me? ← the one most teams are missing

Question 8 is the one that catches what the other seven structurally cannot. The first seven test whether the work was executed correctly; none of them tests whether the premise was right. If you wrote the artifact and also wrote its test fixtures, a green suite proves the two agree with each other — both can encode the same wrong assumption, so the suite cannot fail. For anything whose job is checking other work (a hook, a linter, a validator, a parser, an audit script), an invented fixture is an automatic block: capture at least one real input first.

The upstream companion

proof-before-done is the downstream half of a two-gate discipline:

StageGateFires atWhat it gates
Decideinitiate-changelet's change XWhether the proposal is well-formed enough to be built against
Do(the work itself)——
Declare doneproof-before-done (this repo)this is doneWhether the claim of done is well-formed enough to propagate

Together they bracket every deliberate change: one gate at the moment you decide to change something, one at the moment you claim it's finished. Each stands alone — installing this skill does not require the other.

What's in this repo

Two files, both useful on their own, more useful together:

  • SKILL.md — the portable skill. Copy it into your project's .claude/skills/ directory (or your agent's equivalent), fill in four placeholders, and the gate is installed.

  • INCREMENTAL-ENGINEERING.md — the longer methodology document that explains why the skill produces the results it does. Read this if you want to understand the discipline; skip it if you just want the tool.

Why this exists

Agents reach the bar the human holds, not the bar they state. Without an explicit gate at every step of the work, agents propagate plausible-looking "done" claims that don't survive contact with production. The cost compounds: each unverified step becomes a foundation that subsequent steps build on, and the bugs you find later are exponentially more expensive than the bugs you would have caught at the gate.

This skill is the gate. It is small, deliberate, and load-bearing. It was developed inside a multi-repository production codebase (ComOS — an AI-native commerce platform) and validated when a single afternoon's worth of work, run through the discipline, compressed roughly three weeks of architectural design into four hours across four repositories.

The QC series — what the gate produces at scale

The emergent behaviors this gate creates when run without exception — a corpus that converges instead of drifting, hunts its own flaws before symptoms appear, and learns its own shape — are documented in an eight-part series written from the production system the skill governs. Start at Part 1:

  1. The Skill That Grew a Mind
  2. Why "Done" Is the Most Dangerous Word in Software
  3. The Cure Is Cheap Because the Cause Is Close
  4. Self-Healing Is Search
  5. Question Everything — Especially Your Own Thoughts
  6. The Gate Binds Its Own Builders
  7. The Corpus Is a Neural Network
  8. The Quality of Your Aim — The Honesty Ratio Is the Loss Curve

Parts 1–5 make the case for why the gate works. Parts 6–8 show what it does at scale, including the constraints that bind the gate's own authors (Part 6) and the persisted loss curve the whole discipline optimizes (Part 8). If the README's neural-network framing below reads as metaphor, Part 7 is the article that argues it is structure.

What the skill is, structurally

The skill is not a checklist. It is a small neural network for high-quality coding, operating at the agent layer:

  • Activation function — the eight questions act as a per-step gate that decides whether "done" signals propagate forward to downstream work. Below the threshold (any question fails or is silent), work is reworked. At the threshold (all pass at the depth the work warrants), downstream work can safely depend on this step.

  • Backpropagation — when the gate catches a failure, the correction signal flows backward through the layers of work that produced it. The specific assertion, the reasoning chain, the missing convention, the discipline that didn't fire — each gets a credit-assigned update. Your team's documentation is the weight matrix; failures caught by the gate update the weights.

  • Bounded iteration — question 5 (what does my work NOT solve?) forces explicit scope declarations. This is what makes the methodology converge rather than thrash. Each iteration's contribution is scoped; future iterations land against a clear seam.

That mapping isn't decorative. The skill behaves like a network: forward pass produces the work, the activation function gates the "done" signal, the loss function (your judgment) fires when work falls short, backprop credit-assigns the correction, the weights (your docs) update permanently. Over many iterations, the network learns to catch its own failures before the human has to.

What you actually get when you install

The skill is the architecture of a quality-coding network. The weights — your team's accumulated documentation, conventions, decision logs, contributor docs — are what make the network produce your team's quality, not generic quality. Installing the template gives you the architecture. The firs

// HOW IT'S BUILT

// FILES

2 files shipped with this skill. Inline text is the catalog copy. The upstream link is the source repository.

  • SKILL.md7.9 KBupstream ↗
    ---
    name: proof-before-done
    description: >-
      Use BEFORE declaring any engineering task complete — feature, refactor, bugfix, audit sweep, or design doc. The gatekeeper for everything: it fires on every done-claim, no opt-out. The operational implementation of incremental engineering at the agent layer — an activation-function gate that blocks unverified "done" claims from propagating, surfaces credit-assigned correction signals when work fails the gate, enforces the bounded-iteration discipline that makes work compound rather than decay, and blocks self-consistent verification by requiring test fixtures be captured from reality rather than invented. Depth scales with risk (routine work: a short written pass; hard-mandatory surfaces: the full eight questions) but the gate is never skipped. Triggers on marking TodoWrite tasks complete, writing "✅ pass" / "ship it" / "Phase X complete", authoring "What landed" / "Verification" / "Status" sections, handing work back with "done" / "ready for review".
    ---
    
    <!--
    ================================================================================
    TEMPLATE — FIRST-RUN CUSTOMIZATION CHECKLIST
    
    This is a generic skill template. Before adopting, fill in the placeholders below
    and delete this entire HTML comment block. The eight questions are universal and
    should not be edited; everything else should be tuned to your project.
    
    ⚠️ Do not convert the gate to opt-in. See "When to engage" below — the escalation
    criteria an invitation-based gate depends on require the agent to correctly assess
    its own work, which is exactly what fails in the case the gate exists to catch.
    Scale the DEPTH to the risk; never the attendance.
    
    Required substitutions:
      {{PROJECT_NAME}}        Your codebase or organization name (e.g., "Acme Platform")
      {{PROJECT_STANDARD}}    The bar word your team holds (e.g., "amazing", "production-ready",
                              "ship-ready"). The skill contrasts this word against the weaker
                              "working" — pick a word that genuinely means more than "compiled".
      {{ORIGIN_INCIDENT}}     One sentence naming the audit or incident that motivated this
                              skill in your codebase. If you have no specific incident yet,
                              write: "anticipated failure modes from agents reaching the
                              plausible endpoint and reporting done."
      {{METHODOLOGY_DOC}}     Path to your team's methodology doc, if any. If you don't have
                              one, replace the entire "Cross-references" section's first bullet
                              with: "Your team's engineering standards doc."
    
    Optional tuning:
      - The closing test references "a staff engineer." If your team uses different role
        language (principal, senior, tech lead), substitute it.
      - The anti-patterns table examples (24h, 90d, 0.95, the duplicate-email failure) are
        universal but can be replaced with your codebase's actual past failure modes for
        higher resonance.
    
    Once filled in: delete this comment block. The skill should never ship with template
    placeholders in production.
    ================================================================================
    -->
    
    # proof-before-done
    
    ## When to engage
    
    **The gate fires on every done-claim. There is no opt-out.** It is the gatekeeper for everything — no artifact is declared complete without passing through it. What scales is *depth*, never *whether the gate runs*.
    
    Why not opt-in: the escalation criteria a discipline-by-invitation depends on ("am I uncertain this works," "would rollback be painful") require the agent to correctly assess its own work. **An agent that has mis-assessed its work will also mis-assess whether it needs the gate** — so the case the gate exists to catch is precisely the case where it would not be invoked. A gatekeeper the guarded party decides whether to consult is not a gatekeeper.
    
    ### Depth scales with risk
    
    **Routine work** — refactors, internal helpers, UI tweaks, doc updates, test additions, dependency bumps within a minor — passes with a **short written statement**: what was claimed, how it was verified, and (if the artifact is a checker) where its fixtures came from. One or two honest sentences. This is not ceremony; it is the minimum record that a claim was checked rather than assumed.
    
    **Escalate to the full eight questions** whenever any of these holds:
    - You're uncertain the change actually works (not just that it compiles)
    - You changed an interface, contract, or shape other code consumes
    - The change is hard to reverse once shipped
    - A bug here would be silent rather than loud (data corruption > crash)
    
    State the escalation explicitly: "Running the full gate because &lt;reason&gt;."
    
    **User-invoked** — "PbD this," "prove it before done," "run the gate" — always means the full eight questions in writing. No exceptions, no abbreviation.
    
    ### Hard-mandatory surfaces (full gate, never abbreviated)
    
    On these surfaces the full eight-question gate is mandatory regardless of how small the change looks or how confident the agent is. A one-line diff to an auth check gets the same gate as a rewrite. Tune this list to your system; the shape is "places where a silent failure is expensive or irreversible":
    
    - **Auth & identity** — OAuth flows, token/session handling, RBAC and permissions, signing keys
    - **Migrations & schema** — database migrations, schema changes, backfills, irreversible data transformations
    - **Deploy & infra config** — deploy scripts, container definitions, cloud service config, IAM bindings, secret bindings, env vars that ship to production
    - **Cross-service contracts** — API request/response shapes consumed by other services, event payload shapes, tool/function signatures, anything in a shared types or schemas directory
    - **Money paths** — checkout, payment, billing, subscription, invoicing — anything that moves funds
    - **First production writes** — the first time new code writes to a production data store, the gate fires even if the surface isn't otherwise flagged
    
    Your project's contributor docs may extend this list. They may not shrink it.
    
    ## Why this exists
    
    Agents reach the bar the human holds, not the bar they state. The standard in {{PROJECT_NAME}} is *{{PROJECT_STANDARD}}*, not *working*. "Working" means the code compiled and the happy path ran once. The standard of *{{PROJECT_STANDARD}}* means the counts match, the claims are tested not asserted, the magic numbers are justified, the failure modes are proven, and the doc tells the truth about what it does and does not do.
    
    The pattern this skill targets: {{ORIGIN_INCIDENT}} The agent reported the work done, and the verification floor only checked that the code compiled. This skill closes that gap.
    
    ## What this skill actually is — the methodology framing
    
    The name "proof-before-done" reads like a checklist. That undersells it. What this skill actually is, when injected at the right trigger points in an agent's reasoning loop, is **the operational implementation of incremental engineering at the agent layer.**
    
    Three roles the eight questions play together, each load-bearing for why this discipline produces results that ordinary checklists don't:
    
    ### 1. Activation function — the per-step gate that blocks unverified propagation
    
    In a neural network, an activation function intercepts signal at every layer boundary and decides whether it's strong enough to propagate. The triggers in this skill's frontmatter (TodoWrite complete, "✅ pass", "Phase X complete", "What landed", "done") are layer boundaries — points where signal would propagate forward to the next stage of work. The eight questions are the evaluation that decides whether the "done" signal passes through.
    
    - Signal passes (all eight answered affirmatively in writing) → downstream work can safely depend on this step
    - Signal blocks (any question is "no" or silent) → the step is reworked before propagation; the next layer never builds on a wrong foundation
    
    
  • README.mdupstream ↗

    Contents are not inlined in the catalog. Open the upstream file.

Plain-text copy, no login: /skill-bundles/comos-federation-proof-before-done.md

// REPO STATS

0 stars
0 open issues
Last commit: 1mo ago