rpamis/comet/eval/local/skills/benchmarks/039-release/comet-classic-039-verify/SKILL.md
comet-verify
Comet Phase 4: Verify and Close. Invoke with /comet-verify. Verify implementation matches design, handle development branch.
- Source repository stars
- 2,841
- Declared platforms
- 0
- Static risk flags
- 2
- Last source update
- 2026-08-26
- Source checked
- 2026-08-26
Decision brief
What it does: where it fits
Comet Phase 4: Verify and Close. Invoke with /comet-verify.
Not for
- Tasks that require unconfirmed production actions or broad system permissions.
- Environments where the pinned source and install steps cannot be inspected.
Compatibility matrix
Platform support, with evidence labels
| Platform | Status | Evidence | What to check |
|---|---|---|---|
| Codex | Not declared | No explicit evidence | Portability before use |
| Claude Code | Not declared | No explicit evidence | Portability before use |
| Cursor | Not declared | No explicit evidence | Portability before use |
| Gemini CLI | Not declared | No explicit evidence | Portability before use |
Installation
Inspect first. Install second.
The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.
npx skills add https://github.com/rpamis/comet --skill "eval/local/skills/benchmarks/039-release/comet-classic-039-verify"Inspect the Agent Skill "comet-verify" from https://github.com/rpamis/comet/blob/99fd7495f8b9217efbaae3a46d885f6fa7f4102a/eval/local/skills/benchmarks/039-release/comet-classic-039-verify/SKILL.md at commit 99fd7495f8b9217efbaae3a46d885f6fa7f4102a. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.
Workflow
What the source asks the agent to do
- 01
0b. Entry State Verification (Entry Check)
Execute entry verification:
Execute entry verification:Proceed to Step 1 after verification passes. The script outputs specific failure reasons when verification fails.Idempotency: All verify phase checks can be safely re-executed. If verifyresult is already pass and branchstatus is handled, verification is complete — execute guard to transition. If verifyresult is pending, start veri… - 02
1. Scale Assessment
Execute scale assessment:
If dirty diff belongs to current change and involves implementation, tests, tasks, delta spec, or design doc changes, do not fix or commit directly in verify phase; report failures and enter Step 1b verification failure…If dirty diff is only verify phase artifacts (e.g., verification report draft, branch handling records), may continue and record state in verify phaseIf dirty diff shows implementation but tasks.md not checked, treat as build state lag; report failures and enter Step 1b, let user decide to roll back for fix or accept deviation - 03
1b. Verification Failure Decision (Blocking Point)
When verification does not pass, must follow the comet/reference/decision-point.md protocol to pause and wait for the user to decide whether to fix or accept the deviation. Must not automatically run "$COMETBASH" "$COMETSTATE" transition verify-fail, nor automatically invoke /co…
Failed itemsWhether CRITICAL or IMPORTANT (build failure, test failure, security issues, core acceptance scenario failure, lightweight code review correctness/security/edge-case issue)Recommended handling approach - 04
2a. Lightweight Verification (Small Changes)
1. All tasks.md tasks completed [x] 2. Changed files match tasks.md descriptions (git diff --stat / git diff --cached --stat / git diff --stat ...HEAD compared against tasks content) 3. Build passes (run project-specific build command, e.g., npm run build, mvn compile, cargo bui…
All tasks.md tasks completed [x]Changed files match tasks.md descriptions (git diff --stat / git diff --cached --stat / git diff --stat ...HEAD compared against tasks content)Build passes (run project-specific build command, e.g., npm run build, mvn compile, cargo build, etc.) - 05
2b. Full Verification (Large Changes)
When scale assessment result is "large":
All tasks.md tasks completed ([x])Implementation matches openspec/changes//design.md high-level design decisionsImplementation matches Design Doc (technical design documents under docs/superpowers/specs/)
Permission review
Static risk signals and limitations
Reads files
The documentation asks the agent to read local files, directories, or repositories.
Note: If every task in build phase was committed, the script's file count based on working tree diff may underestimate change scale. In this case, must read plan file header `base-ref` and verify with commit range:Runs scripts
The documentation asks the agent to run terminal commands or scripts.
git diff --stat "$BASE_REF"...HEADRuns scripts
The documentation asks the agent to run terminal commands or scripts.
Build passes (run project-specific build command, e.g., `npm run build`, `mvn compile`, `cargo build`, etc.)Evidence record
Why each signal appears
| Signal | Value | Evidence type | Meaning |
|---|---|---|---|
| Quality score | 92/100 | Computed | Documentation, specificity, maintenance, and trust rules |
| Repository stars | 2,841 | Source | Repository attention, not individual Skill quality |
| Compatibility | 0 platforms | Source | Declared in the catalog source record |
| Usage guide | automated source guide | Editorial | Generated or reviewed according to the visible evidence level |
Pinned source
Provenance and original SKILL.md
- Repository
- rpamis/comet
- Skill path
- eval/local/skills/benchmarks/039-release/comet-classic-039-verify/SKILL.md
- Commit
- 99fd7495f8b9217efbaae3a46d885f6fa7f4102a
- License
- MIT
- Collected
- 2026-08-26
- Default branch
- master
View the original SKILL.md
Comet Phase 4: Verify and Close (Verify)
Prerequisites
- Code committed (Phase 3 complete)
- All tasks.md tasks completed
Steps
0a. Output Language Constraint
Verification reports and branch-handling notes must use the language of the user request that triggered this workflow.
0b. Entry State Verification (Entry Check)
Execute entry verification:
COMET_ENV="${COMET_ENV:-$(find . "$HOME"/.*/skills "$HOME/.config" "$HOME/.gemini" -path '*/comet/scripts/comet-env.sh' -type f -print -quit 2>/dev/null)}"
if [ -z "$COMET_ENV" ]; then
echo "ERROR: comet-env.sh not found. Ensure the comet skill is installed." >&2
return 1
fi
. "$COMET_ENV"
"$COMET_BASH" "$COMET_STATE" check <change-name> verify
Proceed to Step 1 after verification passes. The script outputs specific failure reasons when verification fails.
Idempotency: All verify phase checks can be safely re-executed. If verify_result is already pass and branch_status is handled, verification is complete — execute guard to transition. If verify_result is pending, start verification from the beginning.
1. Scale Assessment
Execute scale assessment:
"$COMET_BASH" "$COMET_STATE" scale <change-name>
The script automatically counts tasks, delta spec count, changed file count, determines light or full verification mode, and sets the verify_mode field. Decision rule (any condition triggers full): tasks > 3, delta spec capabilities > 1, changed files > 4.
Before verification begins, handle uncommitted changes through comet/reference/dirty-worktree.md protocol. Verify phase special handling:
- If dirty diff belongs to current change and involves implementation, tests, tasks, delta spec, or design doc changes, do not fix or commit directly in verify phase; report failures and enter Step 1b verification failure decision blocking point
- If dirty diff is only verify phase artifacts (e.g., verification report draft, branch handling records), may continue and record state in verify phase
- If dirty diff shows implementation but tasks.md not checked, treat as build state lag; report failures and enter Step 1b, let user decide to roll back for fix or accept deviation
Only after user chooses fix, allow rollback to build phase:
# Execute only after user confirms fix
"$COMET_BASH" "$COMET_STATE" transition <change-name> verify-fail
Note: When verify-fail rolls back to build, branch_status is not reset. If branch handling was already completed during the first verify attempt, skip the branch handling step on re-verify and keep the existing branch_status: handled.
Note: If every task in build phase was committed, the script's file count based on working tree diff may underestimate change scale. In this case, must read plan file header base-ref and verify with commit range:
PLAN=$("$COMET_BASH" "$COMET_STATE" get <change-name> plan)
BASE_REF=$(grep '^base-ref:' "$PLAN" 2>/dev/null | head -1 | sed 's/^base-ref: *//')
git diff --stat "$BASE_REF"...HEAD
If commit range shows changes exceed lightweight threshold (> 4 files, cross-module coordination, or delta spec spans more than 1 capability), manually set to full verification:
"$COMET_BASH" "$COMET_STATE" set <change-name> verify_mode full
Override mechanism: If the agent or user believes the automated assessment is inappropriate, override at any time with "$COMET_BASH" "$COMET_STATE" set <change-name> verify_mode <light|full>.
1b. Verification Failure Decision (Blocking Point)
When verification does not pass, must follow the comet/reference/decision-point.md protocol to pause and wait for the user to decide whether to fix or accept the deviation. Must not automatically run "$COMET_BASH" "$COMET_STATE" transition <change-name> verify-fail, nor automatically invoke /comet-build.
When pausing, must list:
- Failed items
- Whether CRITICAL or IMPORTANT (build failure, test failure, security issues, core acceptance scenario failure, lightweight code review correctness/security/edge-case issue)
- Recommended handling approach
Uncertainty principle: When severity is unclear, downgrade (SUGGESTION > WARNING > CRITICAL). Only use CRITICAL for build failures, test failures, and security issues; ambiguous or uncertain issues should be WARNING or SUGGESTION.
After user selection, continue as follows:
- Fix all: Run
"$COMET_BASH" "$COMET_STATE" transition <change-name> verify-fail, then invoke/comet-buildto fix - Handle item by item: CRITICAL or IMPORTANT failures must be fixed; WARNING/SUGGESTION failures may choose to accept deviation, but must record acceptance reason and impact scope in verification report. If any CRITICAL or IMPORTANT failure exists, skipping fix to accept all is not allowed
Retry limit: After 3 consecutive verify-fail cycles, on the 4th failure the agent must not automatically choose to continue fixing; must use the current platform's available user input/confirmation mechanism to pause with only two options: "Accept all deviations and record" or "Continue fixing", for the user to explicitly decide.
2. Artifact Context Loading (Hash On-Demand Read)
When verification needs to read OpenSpec artifacts, first check whether they have changed since the design phase:
RECORDED_HASH=$("$COMET_BASH" "$COMET_STATE" get <change-name> handoff_hash)
CURRENT_HASH=$("$COMET_BASH" "$COMET_HANDOFF" <change-name> --hash-only 2>/dev/null || echo "")
- If
RECORDED_HASH=CURRENT_HASHand both are non-empty and neither isnull: OpenSpec artifacts are unchanged. tasks.md does not need to be re-read in full (usegrep -c '\- \[ \]' tasks.mdto confirm completion count). proposal.md, design.md, and delta specs must still be read for comparison checks. - If
RECORDED_HASHis empty, isnull, or differs fromCURRENT_HASH: artifacts have changed or hash was never recorded. Read all required files in full normally.
This optimization only skips re-reading tasks.md in full. proposal.md and design.md contain the full context needed for verification checks and must not be skipped due to hash match.
Immediately execute: Use the Skill tool to load the Superpowers verification-before-completion skill. Skipping this step is prohibited.
After the skill loads, follow the verify_mode branch:
2a. Lightweight Verification (Small Changes)
Run these 6 checks:
- All tasks.md tasks completed
[x] - Changed files match tasks.md descriptions (
git diff --stat/git diff --cached --stat/git diff --stat <base-ref>...HEADcompared against tasks content) - Build passes (run project-specific build command, e.g.,
npm run build,mvn compile,cargo build, etc.) - Related tests pass
- No obvious security issues (no hardcoded keys, no new unsafe operations)
- Lightweight code review passes: use the Skill tool to load the Superpowers
requesting-code-reviewskill and request a lightweight review that checks only correctness, security, and edge cases
The lightweight code review input should be limited to this change's diff, tasks.md, and necessary test results; the review scope covers implementation correctness, security risk, and edge cases only, and does not perform spec coverage, Design Doc consistency, or drift checks. If the review finds CRITICAL or IMPORTANT issues, treat verification as failed and enter Step 1b.
Pass criteria: All 6 items OK, no CRITICAL or IMPORTANT issues.
When not passing: Report failures, enter Step 1b verification failure decision blocking point. Only after user confirms fix, execute the following command to record failure and roll back to build phase, then invoke /comet-build to fix:
# Execute only after user confirms fix
"$COMET_BASH" "$COMET_STATE" transition <change-name> verify-fail
Report format: Brief table listing 6 check results + PASS/FAIL.
Skipped items (not checked in lightweight verification):
- spec scenario coverage
- design doc consistency deep comparison
- code pattern consistency suggestions that do not affect correctness, security, or edge cases
- delta spec and design doc drift detection
2b. Full Verification (Large Changes)
When scale assessment result is "large":
Immediately execute: Use the Skill tool to load the openspec-verify-change skill. Skipping this step is prohibited.
After the skill loads, follow its guidance to verify. Check items:
- All tasks.md tasks completed (
[x]) - Implementation matches
openspec/changes/<name>/design.mdhigh-level design decisions - Implementation matches Design Doc (technical design documents under
docs/superpowers/specs/) - All capability spec scenarios pass
- proposal.md goals are satisfied
- No contradictions between delta spec and design doc (if Build phase had incremental spec modifications, check if design doc has corresponding records)
- Associated design documents under
docs/superpowers/specs/are locatable (file exists and is related to current change)
When verification does not pass: report missing items, enter Step 1b verification failure decision blocking point. Only after user confirms fix, execute the following command to record failure and roll back to build phase, then invoke /comet-build to supplement:
# Execute only after user confirms fix
"$COMET_BASH" "$COMET_STATE" transition <change-name> verify-fail
Spec Drift Handling (user decision point):
- If check item 6 finds contradictions (delta spec has content but design doc does not reflect it), must use the current platform's available user input/confirmation mechanism as a single-select question to pause and wait for the user to choose the handling method; must not select automatically. Options:
- Option A: Append "Implementation Divergence" section to design doc recording deviation reason. Option A is a verify phase allowed artifact; after writing, must not re-trigger Step 1b dirty-worktree decision due to that design doc change
- Option B: After user selects B, run
"$COMET_BASH" "$COMET_STATE" transition <change-name> verify-fail, then invoke/comet-build;/comet-build's Spec Incremental Update rules will load the Superpowersbrainstormingskill to update Design Doc + delta spec - Option C: Confirm deviation is acceptable, continue verification (design doc will be marked as
superseded-by-main-specduring archiving)
3. Finishing (Superpowers)
Immediately execute: Use the Skill tool to load the Superpowers finishing-a-development-branch skill. Skipping this step is prohibited.
If the Superpowers finishing-a-development-branch skill is unavailable, stop the process and prompt to install or enable Superpowers skills. Do not substitute this step with normal conversation.
After the skill loads, follow its guidance to finish. Branch handling options:
- Merge to main branch locally
- Push and create PR
- Keep branch (handle later)
- Discard work
This is a user decision point. Must follow the comet/reference/decision-point.md protocol to pause and wait for the user to choose branch handling method. Must not select based on recommendations, defaults, or current branch status. Only after the user completes selection and the corresponding operation finishes, may branch_status: handled be written.
Confirmation items:
- All tests pass
- No hardcoded keys or security issues
4. Record Verification Evidence
Verification report must be saved to disk and recorded in .comet.yaml; after branch handling completes, state fields must also be written. Do not manually set verify_result: pass; use guard for auto-transition.
mkdir -p docs/superpowers/reports
# Write verification conclusions to report file, e.g.:
# docs/superpowers/reports/YYYY-MM-DD-<change-name>-verify.md
"$COMET_BASH" "$COMET_STATE" set <change-name> verification_report docs/superpowers/reports/YYYY-MM-DD-<change-name>-verify.md
"$COMET_BASH" "$COMET_STATE" set <change-name> branch_status handled
Exit Conditions
- Verification report passed
- Branch handled
verification_reportin.comet.yamlpoints to an existing verification report filebranch_status: handledin.comet.yaml- Phase guard: Run
"$COMET_BASH" "$COMET_GUARD" <change-name> verify --apply; after all PASS, auto-transitions tophase: archivethroughcomet-state transition verify-pass
After both verification and branch handling are complete, run guard for auto-transition:
"$COMET_BASH" "$COMET_GUARD" <change-name> verify --apply
State file auto-updates to phase: archive, verify_result: pass, verified_at: YYYY-MM-DD.
Automatic Handoff to Next Phase
Follow comet/reference/auto-transition.md. Key command:
"$COMET_BASH" "$COMET_STATE" next <change-name>
NEXT: auto→ invoke the skill pointed to bySKILLto enter the next phaseNEXT: manual→ do not invoke the next skill; prompt user to run/<SKILL>manuallyNEXT: done→ workflow is complete, no further action needed
Note: after comet-archive starts, it must first execute the final archive confirmation blocking point and wait for the user to explicitly choose "Confirm archive" before running the archive script. Must not automatically archive just because verification passed.
Context Compression Recovery
Follow comet/reference/context-recovery.md with phase set to verify.
Frequently asked questions
What to verify before installation and use
What does the comet-verify source document cover?
Comet Phase 4: Verify and Close. Invoke with /comet-verify.
How do I install comet-verify?
The source record exposes this install command: npx skills add https://github.com/rpamis/comet --skill "eval/local/skills/benchmarks/039-release/comet-classic-039-verify". Inspect the command and pinned source before running it.
Which permission-related actions were detected?
Static rules flagged read-files, exec-script in the source; the page lists the matching lines and excerpts.
Alternatives
Compare before choosing
rpamis/comet
comet-verify
Phase 4 of Comet Classic — verify a change, record evidence, and drive repair loops.
coreyhaines31/marketingskills
ab-testing
When the user wants to plan, design, or implement an A/B test or experiment, or build a growth experimentation program. Also use when the user mentions "A/B test," "split test," "experiment," "test this change," "variant copy," "multivariate test," "hypothesis," "should I test this," "which version is better," "test two versions," "statistical significance," "how long should I run this test," "growth experiments," "experiment velocity," "experiment backlog," "ICE score," "experimentation program
coreyhaines31/marketingskills
churn-prevention
When the user wants to reduce churn, build cancellation flows, set up save offers, recover failed payments, or implement retention strategies. Also use when the user mentions 'churn,' 'cancel flow,' 'offboarding,' 'save offer,' 'dunning,' 'failed payment recovery,' 'win-back,' 'retention,' 'exit survey,' 'pause subscription,' 'involuntary churn,' 'people keep canceling,' 'churn rate is too high,' 'how do I keep users,' or 'customers are leaving.' Use this whenever someone is losing subscribers o
prowler-cloud/prowler
postgresql-indexing
PostgreSQL indexing best practices for Prowler: index design, partial indexes, partitioned table indexing, EXPLAIN ANALYZE validation, concurrent operations, monitoring, and maintenance. Trigger: When creating or modifying PostgreSQL indexes, analyzing query performance with EXPLAIN, debugging slow queries, reviewing index usage statistics, reindexing, dropping indexes, or working with partitioned table indexes. Also trigger when discussing index strategies, partial indexes, or index maintenance