AGENT SKILL

ask-verification

Verification: Proves work is fixed or ready and cleans up changed repos. Use before claiming something works or handing off.

License 许可
MIT
最近更新
2026-11-09
Stars
★ 1
Forks
0

01 前言 Front Matter

name
ask-verification
triggers
[ "verify", "verifiëren", "prove", "controleren of het werkt", "bewijzen dat het werkt", "claim success", "done", "finished", "ready", "handoff", "klaar", "gereed", "wrap up", "hand off", "task complete", "finishing work", "workspace done", "afronden", "afgerond", "inleveren", "cleanup", "test de fix", "check result", "prove it works", "check of het klopt", "validate", "valideren", "werkt het", "is het klaar" ]
description
Verification: Proves work is fixed or ready and cleans up changed repos. Use before claiming something works or handing off.
execution_tier
standard
disable-model-invocation
true

03 SKILL.md 正文

ASK Verification

Match the proof to the claim. Bigger claim, stronger evidence.

For delegated validation, report ASK_WORKFLOW_PASS phase=VALIDATE, ASK_WORKFLOW_FINDINGS phase=VALIDATE, ASK_WORKFLOW_BLOCKED phase=VALIDATE, or ASK_WORKFLOW_FAILED phase=VALIDATE with commands and evidence. Never turn a timeout, missing output, or tool failure into a pass.

Validation proves defined technical checks. It does not replace review, independent audit, or release-gate evaluation when the workflow requires those gates.

Verification

Match the proof to the claim. Bigger claim, stronger evidence.

  • One bug fixed: reproduce the bug path and show the focused proof now passes
  • Feature works: run targeted tests and exercise the important path
  • Ready to merge or hand off: run the smallest relevant suite, build, or lint checks proportional to the workflow risk
  • Installer or deployer changed: run the installer into an isolated home and verify the installed copies of user-visible surfaces match the repo, including a refresh over a stale existing install — a green repo-side suite says nothing about what actually got deployed
  • Small workflow: prove the specific change with the smallest trustworthy check; do not add a separate review, audit, or smell-scan pass. Keep checks for security and error handling that are directly relevant to the changed path.
  • Normal or higher-risk code change: run a proportional smell scan after the main proof. Scan changed files for unbounded loops, sync-over-async, swallowed exceptions, missing cancellation, duplicated I/O or N+1 queries, hardcoded configuration, runtime artifacts, silent unknown-event handling, and relevant test gaps (report them; add tests only within the test budget). Expand to a repository-wide scan for cross-module changes, audits, or explicit tech-debt work.
  • Coding-rule compliance: inspect all changed function-like constructs for required intent comments and run the repository's source-comment check when it exists. Treat a missing comment or a skipped check as failed validation, not optional style feedback.
  • Long-poll or deploy→restart→verify loops: wait one full cycle once, bundle all state assertions into a single verification pass, and fail fast to a diagnostic set (a few key values) instead of repeating full waits. Do not re-run the full cycle for every surfaced sub-issue; investigate root cause off the accumulated state, fix, then re-verify once.

Rules

  1. Use fresh evidence, not memory.
  2. Verify the original symptom when possible, not just nearby tests.
  3. Report smell findings only with file and line or symbol evidence, concrete impact, and severity.
  4. Validate likely false positives before calling them defects; classify intentional trade-offs explicitly.
  5. Say plainly what was not checked.
  6. Report review debt as stale or mismatched when evidence does not match current edit generation or diff identity; never count it as satisfying the review gate.
  7. Do not inflate a partial check into a full-success statement.
  8. Treat repository-style preservation as a release gate: confirm the active file and nearby local style were inspected, formatting was scoped by language/file type, and a representative example still matches. For C#, verify ASK's 240-character default was applied unless .editorconfig explicitly overrides it; fitting signatures and calls must remain compact, newline braces must remain intact, and comments must mark meaningful workflow boundaries. Confirm that the complete Git tree has no unintended generated output or tracked bin//obj/ files. If any part is missing, do not claim completion.
  9. Discover the repository's own proof commands from manifests, CI workflows, and documented commands; never assume a default runner.

Quality floor

The standing bar every change must clear, separate from per-task acceptance criteria. Raising the bar is silent; lowering it is loud:

  • No new lint/type suppressions, stubs, or skipped tests, and no stripped assertions, to get to green. Deleting a redundant test needs a one-line rationale.
  • No weakened thresholds, assertions stripped out, or previously enforced checks disabled without an explicit, accepted rationale.
  • The original symptom is proven fixed: an existing test, or one new regression test within the test budget, fails without the fix; otherwise record a scripted or manual reproduction.

Test budget

New tests are a cost. Match them to the workflow risk. The user or repository can opt back into strict behavior with strict tests (TDD and a regression test per fix).

Risk New tests
small None unless existing tests cannot prove the change; run the relevant existing tests.
normal New behavior at the public boundary. A bug fix gets one regression test only when the symptom is cheap to reproduce there. TDD only on request.
significant As normal, plus one test per P0/P1 audit finding; report other findings without adding tests.
release-sensitive Unchanged: the full proof set.

Rules: no tests for trivial, private, generated, or configuration code; extend or parametrize an existing test before adding a file; report test gaps instead of closing them unless the budget allows.

Workspace wrap-up

Close out multi-repo work: verify integrated state, leave the workspace intentional.

  1. Identify every repo touched by the task.
  2. Use the repo's existing wrap-up helper or state system when one exists.
  3. Check each repo: branch of record, remote target, working tree cleanliness.
  4. Define the proof target for each repo before mutating anything.
  5. Remove disposable worktrees before disposable branches; leave branch of record clean.
  6. Before final claim, check whether the session exposed a reusable workflow improvement or skill usage gap. If so, run session-review to file an improvement issue.
  7. Claim completion only when every touched repo is either reconciled or explicitly blocked.

Use with

  • code-review after verification only when the workflow includes a REVIEW gate; final review must consume fresh validation evidence
  • agent-workflows when multiple agents or terminals touched different repos
  • session-review when the session uncovered skill usage gaps worth tracking
  • write-skill when improvement needs a new or revised skill

Avoid

  • "Should work now"
  • Equating green unit tests with full integration confidence
  • Hiding unverified risk behind confident wording
  • Guessing integration steps when branch or remote intent is unclear
  • Saying the task is done while touched repos still disagree about final state

04 同仓库更多 Skills