Claude Cursor GitHub Copilot opencode Skill

verification-before-completion

Use when about to claim work is complete, fixed, passing, verified, release-ready, or ready to commit, merge, publish, or hand off.

LLM Mart · 0 points · 1 views 0 listing impressions 0 install-command copies
Virus-scanned Reviewed automatically before listing.

Full trust report

Download ganyuanran-aegis-skills_verification-before-completion-5b16eb9.zip · 6 KB
Part of ganyuanran/aegis — 21 skills

Install

skills CLI npx skills add https://github.com/GanyuanRan/Aegis/tree/main/skills/verification-before-completion
Claude Code claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install ganyuanran-aegis@llmmart
Git git clone https://github.com/GanyuanRan/Aegis.git

The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole ganyuanran/aegis collection as a plugin from our marketplace. Git is the plain clone.

Skill manifest

Execute

Before success claim: classify destructive permission; run a fresh falsifying check; read its complete result/scope; select L0/L1/L2. Downgrade for partial, stale, failing, or narrower evidence; never claim complete then verify later.

This Method Pack grants no authoritative GateDecision, PolicySnapshot, evidence sufficiency, requirement acceptance, or completion authority.

Stop Signals

  • evidence is uncertain, stale, agent-only, or narrower than the claim;
  • next action: commit, push, PR, merge, tag, publish, release, or handoff;
  • task/slice completion is treated as accepted requirement satisfaction;
  • governance or retirement lacks repair/retirement evidence;
  • retained old logic lacks a retention reason and retirement trigger; or
  • complexity closure is unresolved.

Destructive/irreversible work needs scoped permission; broad assent is not scoped permission.

Required Evidence Slots

- Evidence action / check performed:
- Result / exit status:
- Covered scope:
- Uncovered scope:
- Residual risk:
- Confidence grade: A | B | C
  • A: target + regression; no meaningful unknown.
  • B: target evidence; bounded residual risk.
  • C: partial only; no full-completion claim.

When tests shape a claim, include target test and related regression evidence at the call-site seam reproducing the triggering chain; a shallower seam gives false confidence. Missing seam is an architecture gap. Blocked automation needs reproducible manual steps. Both lower confidence.

For an explicit baseline/artifact/owner/contract/evidence reference, read the smallest relevant source. Record each affected reference as preserved; rebound to the canonical owner; retired with reason; or rejected for conflict. Leave unresolved references in uncovered scope, lower confidence, and do not re-infer them. Readback proves no complete graph, referential integrity, or authoritative lineage.

Task Git Closeout

For modifications, diff against TaskStartSnapshot. Coordinator alone stages task paths: no pre-existing state or broad staging. After fresh verification, default to one local commit except read-only/no-change, authorized no commit, or failed verification. Read back HEAD, message, files, and task delta. Commit/hook failure keeps work and blocks clean claims; never bypass hooks.

Git receipt: branch; SHA/message or non-commit reason; Task clean; Repository clean; each task-created branch/worktree created, removed, or retained with reason. Task-clean never implies repo-clean; it is not external integration.

Classify commit scope: business, process-only, mixed, or no-commit. Failed-attempt telemetry is no commit reason. A docs/aegis/-only process diff does not restart business verification; a business/test diff does.

Aegis Visibility / Single Closeout

Use one completion surface. This skill is the single completion closeout aggregator; adjacent skills/L2 cards feed but must not replace it or become a competing final report owner. Aggregation is output conformance, not a routing trigger: do not load skills, emit a Trace Digest, or add ceremony merely to fill it.

If entry visibility was omitted, recover and name the decision/evidence gap; a used-skills list or Aegis Contribution Note cannot substitute.

L0 Fast-Path

For tiny low-risk work, one natural sentence can name check/result, uncovered scope/risk, and confidence.

L1 Default Receipt

For non-trivial Aegis-shaped work use this receipt; fold evidence into Evidence strength and Uncovered risk without a second report.

Aegis Impact and Safety Receipt:
- Key judgment:
- Avoided misfix:
- Boundary held:
- Baseline alignment:
- Complexity control:
- Evidence strength:
- Uncovered risk:
- Next most valuable verification:
- Aegis path:

Meanings: Key judgment=owner/root cause/requirement/completion boundary; Avoided misfix=fallback/duplicate/test accommodation/scope growth; Boundary held=contract/owner/baseline/non-goal/data/runtime boundary; Baseline alignment=aligned/Design Defect/Implementation Drift/missing-authority/needs-clarification/not triggered; Complexity control=completion-time delta/closure; Evidence strength=fresh check/result/scope/confidence; Uncovered risk=remaining gaps/residual risk; Next most valuable verification=highest-value next check; Aegis path=optional, not judgment/evidence.

Natural wording is valid when every semantic slot stays auditable. Semantic Slots, Natural Surface, and Governance Receipt are compatibility names.

Report done/verified/risked/blocked. Do not explain obvious trade-offs; do not list actions not taken.

L2 Expanded Triggers

On any match read expanded-closeout.md: it owns detail; this file owns routing and the final receipt.

Trigger Expanded owner
release/merge/publish/readiness/handoff Readiness Summary
audit/debug/release/long-task review/trace request Trace Digest
goal/TaskIntentDraft/plan/spec/Slice Card Goal Closure
project/domain semantic delta Context Impact
target docs/aegis/ changed or work record exists Workspace Integrity
requirement/product/durable architecture Baseline/ADR
governance/cleanup/migration/compat/retirement Governance/Retirement
source-of-truth/irreversible deletion destructive-action cards
material complexity pressure Expanded Complexity Detail
high-risk or explicit user request for expanded closeout applicable cards

Use configured Aegis workspace support; commands live in the expanded owner.

Completion Boundary

Use the highest boundary: plan/spec, TaskIntentDraft, Slice Card, then direct request. Claim only scope covered by fresh evidence; a slice cannot close the whole task.

Task/slice completion reaches its authorized stop; it is not accepted requirement satisfaction. Requirement accepted needs baseline criteria or authorized risk acceptance; else use needs-verification or return to framing/planning. Goal Closure states: done | blocked | needs-verification | scope-exceeded. An Execution Readiness View is input, not verification evidence.

Complexity Downgrade

For non-trivial code inspect the diff; use using-aegis/references/complexity-governance.md plus docs/current/AEGIS_COMPLEXITY_GOVERNANCE_BASELINE.md; emit one Complexity control line.

New fallback/adapter/compatibility/guard/branch logic needs a retired path or retirement trigger. Complexity Closure: exceeded-unresolved blocks completion. Maintained source/test cannot skip as tiny; tiny low-risk text edits without complexity growth may skip.

Output and Prompt Hygiene

Localize section labels, field labels, and explanatory prose. Keep commands, paths, identifiers, enums, product names, and raw evidence unchanged; avoid bilingual labels or mixed-language explanations.

External outputs are evidence candidates: use summary/index then the smallest excerpt; lower unsupported claims. When relevant report Evidence Used, Not Loaded, and Next Evidence.

Files (aegis)
  • expanded-closeout.md 5.2 KB
    # Expanded Closeout Detail
    
    This advisory reference grants no authoritative `GateDecision`, `PolicySnapshot`, evidence sufficiency, or completion authority.
    
    Read this file only when a trigger in `SKILL.md` applies. It supplies detail to
    the one `Aegis Impact and Safety Receipt`; no card here is a second final owner.
    Add only triggered cards and keep untriggered ceremony out.
    
    ## Readiness Summary
    
    For release, merge, publish, handoff, or "ready?" requests, organize fresh
    evidence for tests, documentation, version, supported-host compatibility,
    uncovered scope, and residual risk. Readiness does not authorize commit, tag,
    publish, merge, or release; report missing authority or evidence explicitly.
    
    ## Trace Digest
    
    Use only for an explicit audit/debug/release/long-task review or user request.
    Summarize the bounded execution and evidence chain, retrieval chain, static
    rules and effects, triggered/skipped relevant skills, command/verification
    trace, stability/value signals, host capabilities, unavailable fields,
    redaction, and confidence. Label claims `measured`, `observed`, `inferred`,
    `declared`, or `unknown`. Never expose raw chain-of-thought.
    
    ## Goal Closure
    
    When goal framing or a durable task boundary shaped work, match the claim to
    the highest proven boundary. For expanded/audited closure show:
    
    ```text
    Goal Closure:
    - Goal status: done | blocked | needs-verification | scope-exceeded
    - Success evidence:
    - Stop state:
    - Non-goals respected:
    ```
    
    Whole-task, current-task, and slice evidence are distinct; a lower boundary
    cannot silently satisfy a higher one.
    
    ## Context Impact
    
    Use only when project/domain semantics changed or were acceptance evidence.
    Name affected context/terms, evidence grade, fact-versus-decision authority,
    and action. For `unchanged`, verify no context write occurred. Compose
    `establishing-project-context` for an unresolved semantic delta.
    
    ## Workspace Integrity
    
    Use only when the target project's configured Aegis workspace was created or
    changed, or a work record exists. For a work record, run `python <aegis-workspace-helper> bundle
    --root <target-project-root> --work YYYY-MM-DD-<slug>`, then `python
    <aegis-workspace-helper> check --root <target-project-root>`. Report work record,
    results, target root, and the structural-only boundary: these commands prove
    structure, not evidence sufficiency, semantic correctness, or completion.
    
    ## Baseline and ADR Closure
    
    For product/requirement or durable architecture work, use
    `docs/current/AEGIS_PROCESS_BASELINE.md` §3.0e and §16. Record:
    
    ```text
    Baseline Alignment:
    - Product / Requirement Baseline:
    - Architecture / Runtime Boundary Baseline:
    - Result: aligned | Design Defect | Implementation Drift | missing-authority | needs-clarification
    - scope: requirements | architecture | both
    ```
    
    `Architecture Alignment` is the architecture-scoped compatibility alias, not a
    second default card.
    
    For completed medium/high durable architecture work, run `ADR Backfill Check`
    against `docs/current/AEGIS_ADR_AUTO_BACKFILL.md`. If the action is create,
    amend, supersede, or baseline sync is needed/unknown, use
    `recording-architecture-decisions` before the final claim.
    
    ## Governance and Retirement Closure
    
    For governance, cleanup, migration, compatibility, namespace cutover, public release, deprecation, policy boundary, or retirement work, keep this dual track
    visible even when implementation was small:
    
    ```text
    Governance Closure:
    - Repair Track:
    - Retirement Track:
    - Residual Risk:
    ```
    
    When work adds, replaces, retains, or removes old logic, also record the old
    owner/path found, deleted or retained status, retention reason, retirement trigger,
    and lingering-reference check. A retained internal owner means bounded
    mitigation/debt, not clean retirement.
    
    Use `anti-entropy-governance` to choose delete-first, a proven external
    compatibility exception, or confirmation-first. Its decision surface feeds the
    receipt; it does not become another completion report.
    
    ## Destructive-Action Cards
    
    For code retirement, record:
    
    ```text
    Anti-Entropy Declaration:
    - Deletion Class:
    - Old Path/Object:
    - New Canonical Owner:
    - Expected Preserved Behavior:
    - Expected Retired Behavior:
    - External Boundary Touched: no | yes
    - Source-of-Truth Data Risk: none | possible | confirmed
    - User Confirmation Required: no | yes
    ```
    
    If the target is persistent state or another irreversible source-of-truth
    object, use confirmation-first and stop at:
    
    ```text
    Data Destruction Guard:
    - Target Class:
    - Exact Target(s):
    - Environment:
    - Why Irreversible:
    - Backup / Rollback Note:
    - Allowed Read-Only Next Steps:
    - Blocked Destructive Steps:
    - Confirmation Required: yes
    - Status: awaiting scoped confirmation
    ```
    
    Broad assent such as "OK", "continue", or "sounds good" is not scoped confirmation.
    If scope changes, request fresh confirmation. Until then, only read-only analysis
    is allowed and the closeout status remains incomplete.
    
    ## Expanded Complexity Detail
    
    When complexity pressure is material, state `Complexity Delta`, `Complexity Closure`,
    `Completion-Time Complexity Repair Decision`, `Complexity Governance Suggestion`,
    or `Major Complexity Alert` as applicable. Maintained test source
    is not a cheap tests-only exception. Pair new fallback/adapter/compatibility
    logic with the retirement evidence above.
    
  • SKILL.md 7.3 KB
    ---
    name: verification-before-completion
    description: "Use when about to claim work is complete, fixed, passing, verified, release-ready, or ready to commit, merge, publish, or hand off."
    ---
    
    <EXPLICIT-MODE-GATE>
    If `activation_mode = "explicit"` or `AEGIS_ACTIVATION_MODE=explicit` is visible
    and the request names neither Aegis nor this skill, return to the fast path
    without checklist/ceremony; otherwise continue.
    </EXPLICIT-MODE-GATE>
    
    # Execute
    
    Before success claim: classify destructive permission; run a fresh falsifying
    check; read its complete result/scope; select L0/L1/L2. Downgrade for partial,
    stale, failing, or narrower evidence; never claim complete then verify later.
    
    This Method Pack grants no authoritative `GateDecision`, `PolicySnapshot`,
    evidence sufficiency, requirement acceptance, or completion authority.
    
    ## Stop Signals
    
    - evidence is uncertain, stale, agent-only, or narrower than the claim;
    - next action: commit, push, PR, merge, tag, publish, release, or handoff;
    - task/slice completion is treated as accepted requirement satisfaction;
    - governance or retirement lacks repair/retirement evidence;
    - retained old logic lacks a retention reason and retirement trigger; or
    - complexity closure is unresolved.
    
    Destructive/irreversible work needs scoped permission; broad assent is not scoped permission.
    
    ## Required Evidence Slots
    
    ```text
    - Evidence action / check performed:
    - Result / exit status:
    - Covered scope:
    - Uncovered scope:
    - Residual risk:
    - Confidence grade: A | B | C
    ```
    
    - `A`: target + regression; no meaningful unknown.
    - `B`: target evidence; bounded residual risk.
    - `C`: partial only; no full-completion claim.
    
    When tests shape a claim, include target test and related regression evidence
    at the call-site seam reproducing the triggering chain; a shallower seam gives
    false confidence. Missing seam is an architecture gap. Blocked automation needs
    reproducible manual steps. Both lower confidence.
    
    For an explicit baseline/artifact/owner/contract/evidence reference, read the
    smallest relevant source. Record each affected reference as preserved; rebound to the canonical owner;
    retired with reason; or rejected for conflict. Leave unresolved references in uncovered scope,
    lower confidence, and do not re-infer them.
    Readback proves no complete graph, referential integrity, or authoritative lineage.
    
    ## Task Git Closeout
    
    For modifications, diff against `TaskStartSnapshot`. Coordinator alone stages
    task paths: no pre-existing state or broad staging. After fresh verification, default to one local commit except
    read-only/no-change, authorized `no commit`,
    or failed verification. Read back `HEAD`, message, files, and task delta.
    Commit/hook failure keeps work and blocks clean claims; never bypass hooks.
    
    Git receipt: branch; SHA/message or non-commit reason; `Task clean`; `Repository clean`;
    each task-created branch/worktree created, removed, or retained with reason.
    Task-clean never implies repo-clean; it is not external integration.
    
    Classify commit scope: `business`, `process-only`, `mixed`, or `no-commit`.
    Failed-attempt telemetry is no commit reason. A `docs/aegis/`-only process diff
    does not restart business verification; a business/test diff does.
    
    ## Aegis Visibility / Single Closeout
    
    Use one completion surface. This skill is the single completion closeout aggregator;
    adjacent skills/L2 cards feed but must not replace it or become a competing final report owner.
    Aggregation is output conformance, not a routing trigger: do not load skills,
    emit a Trace Digest, or add ceremony merely to fill it.
    
    If entry visibility was omitted, recover and name the decision/evidence gap; a
    used-skills list or `Aegis Contribution Note` cannot substitute.
    
    ## L0 Fast-Path
    
    For tiny low-risk work, one natural sentence can name check/result, uncovered
    scope/risk, and confidence.
    
    ## L1 Default Receipt
    
    For non-trivial Aegis-shaped work use this receipt; fold evidence into `Evidence
    strength` and `Uncovered risk` without a second report.
    
    ```text
    Aegis Impact and Safety Receipt:
    - Key judgment:
    - Avoided misfix:
    - Boundary held:
    - Baseline alignment:
    - Complexity control:
    - Evidence strength:
    - Uncovered risk:
    - Next most valuable verification:
    - Aegis path:
    ```
    
    Meanings: `Key judgment`=owner/root cause/requirement/completion boundary;
    `Avoided misfix`=fallback/duplicate/test accommodation/scope growth;
    `Boundary held`=contract/owner/baseline/non-goal/data/runtime boundary;
    `Baseline alignment`=aligned/Design Defect/Implementation Drift/missing-authority/needs-clarification/not triggered;
    `Complexity control`=completion-time delta/closure;
    `Evidence strength`=fresh check/result/scope/confidence;
    `Uncovered risk`=remaining gaps/residual risk;
    `Next most valuable verification`=highest-value next check;
    `Aegis path`=optional, not judgment/evidence.
    
    Natural wording is valid when every semantic slot stays auditable. `Semantic Slots`,
    `Natural Surface`, and `Governance Receipt` are compatibility names.
    
    Report done/verified/risked/blocked. Do not explain obvious trade-offs; do not list actions not taken.
    
    ## L2 Expanded Triggers
    
    On any match read `expanded-closeout.md`: it owns detail; this file owns routing
    and the final receipt.
    
    | Trigger | Expanded owner |
    |---|---|
    | release/merge/publish/readiness/handoff | Readiness Summary |
    | audit/debug/release/long-task review/trace request | Trace Digest |
    | goal/TaskIntentDraft/plan/spec/Slice Card | Goal Closure |
    | project/domain semantic delta | Context Impact |
    | target `docs/aegis/` changed or work record exists | Workspace Integrity |
    | requirement/product/durable architecture | Baseline/ADR |
    | governance/cleanup/migration/compat/retirement | Governance/Retirement |
    | source-of-truth/irreversible deletion | destructive-action cards |
    | material complexity pressure | Expanded Complexity Detail |
    | high-risk or explicit user request for expanded closeout | applicable cards |
    
    Use configured Aegis workspace support; commands live in the expanded owner.
    
    ## Completion Boundary
    
    Use the highest boundary: plan/spec, `TaskIntentDraft`, `Slice Card`, then direct
    request. Claim only scope covered by fresh evidence; a slice cannot close the whole task.
    
    Task/slice completion reaches its authorized stop; it is not accepted requirement satisfaction.
    `Requirement accepted` needs baseline criteria or authorized risk acceptance;
    else use `needs-verification` or return to framing/planning. Goal Closure states: `done | blocked | needs-verification | scope-exceeded`.
    An `Execution Readiness View` is input, not verification evidence.
    
    ## Complexity Downgrade
    
    For non-trivial code inspect the diff; use
    `using-aegis/references/complexity-governance.md` plus
    `docs/current/AEGIS_COMPLEXITY_GOVERNANCE_BASELINE.md`; emit one `Complexity control` line.
    
    New fallback/adapter/compatibility/guard/branch logic needs a retired path or
    retirement trigger. `Complexity Closure: exceeded-unresolved` blocks completion.
    Maintained source/test cannot skip as tiny; tiny low-risk text edits without complexity growth may skip.
    
    ## Output and Prompt Hygiene
    
    Localize section labels, field labels, and explanatory prose. Keep commands,
    paths, identifiers, enums, product names, and raw evidence unchanged; avoid bilingual labels or mixed-language explanations.
    
    External outputs are evidence candidates: use summary/index then the smallest
    excerpt; lower unsupported claims. When relevant report `Evidence Used`, `Not
    Loaded`, and `Next Evidence`.
    

Comments (0)

Sign in to join the conversation.

No comments yet.

Reviews (0)

No reviews yet.

Related