Command Palette

Search for a command to run...

Назад к скиллам
скилл № 01968

cross-validate

Cross-validate code changes with independent subagents, execute on-device test witnesses, and generate GitHub issues for discovered follow-ons by default (DOS…

БесплатноБез исполняемых скриптов
anthony-chaudharyот anthony-chaudhary★ 50 звёзд на GitHub

Установить cross-validate в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

cross-validate — adversarial subagent audit, on-device proof & auto-ticketing

DOS discipline: never believe an authoring agent's self-report. A return string claiming "implemented, all tests pass" is narrative, not proof. This skill coordinates independent on-device verification, spawns a dedicated subagent to adversarial-audit the work, and durable-tickets discovered follow-on issues by default.

Load-Bearing Rule

Do not report completion without:

  1. On-device test execution (CLAIM_TEST_GREEN)
  2. DOS diff audit (dos commit-audit HEAD -> diff-witnessed)
  3. Independent subagent cross-validation (CONFIRMED_VALID) — S0/S1 (<=3-file) leaf exemption: S0/S1 leaves with an observed fak validate --mine <paths> (or WSL) pass are exempt from the mandatory 3-agent Verification Triad, redundant re-testing, and 3..50+ fak-dev issue fanout; verify with dos commit-audit HEAD + fak done (or one lightweight diff check) and file targeted gh issue create only if a concrete gap is found.
  4. Follow-on issue generation (tickets filed by default for S2+ / multi-package changes or discovered edge cases)

Step 0 — Identify Scope & Staged Changes

Inspect the exact changeset to verify what was touched:

git status -s
git diff --stat HEAD~1..HEAD

Ensure no extraneous files are included. All changes must fall within the lane's declared tree.

For native tuning, apply the AGENTS.md default before expensive execution: independently review validity and planned cost against existing authorization and budget, binding the review to exact source/configuration/workload identity, objective, load, and SLO. Check the full configuration delta and justification for inseparable bundles; attribute results to the bundle only. Require fresh reference measurements where changed objective or load makes history incompatible; SLO-only changes may use reassessed compatible history. Candidate changes invalidate affected review and witnesses only. This review grants neither spend nor security authority and preserves existing user authorization, budget limits, and security controls.


Step 1 — On-Device Build & Test Verification

Compile without modifying in-tree binaries:

fak-dev buildcheck --vet

Execute the affected package tests via fak validate --mine <paths> or WSL routing (never run native Windows go test or ./test.ps1 directly on the Windows host):

# Isolated build, vet, and test for your changed paths:
fak validate --mine <changed-paths>

# Or route explicit package tests through WSL on Windows:
wsl go test -v ./internal/<changed-pkg>/...

Only proceed when the status is CLAIM_TEST_GREEN. An unrun or faulted test is CLAIM_TEST_UNRUN, never a pass.


Step 2 — DOS Commit Audit & Stamp Witness

Verify that the commit subject follows Conventional Commits with a recognized (fak <leaf>) trailer and DCO sign-off:

fak commit --preview
dos commit-audit HEAD

Confirm the witness level is diff-witnessed. If the audit returns CLAIM_UNWITNESSED or subject-only, the commit makes a claim that the diff does not corroborate — fix the diff or the message before proceeding.


Step 3 — Spawn Concurrent Verification Triad (S2+ / Multi-Package)

S0/S1 (<=3-file) leaf exemption: Skip this 3-agent triad and redundant re-testing when the change is an S0/S1 leaf (<=3 files) that already has an observed fak validate --mine <paths> (or WSL) green witness; proceed directly to Step 5 after dos commit-audit HEAD.

For S2+ or multi-package changes, spawn a concurrent Verification Triad in a single message turn using multiple task tool calls to independently audit the landed work: cross-validator (adversarial audit) + issue-auditor (edge cases & ticket generation) + tester (regression & matrix execution).

[
  {
    "tool": "task",
    "parameters": {
      "subagent_type": "cross-validator",
      "description": "Adversarial cross-validation of HEAD",
      "prompt": "You are an adversarial verifier auditing recent code changes in commit HEAD.\nDo NOT trust the author's narrative or claims.\n\nYour task:\n1. Run `git show --stat HEAD` and inspect the raw diff with `git show HEAD`.\n2. Verify that edits did not leak outside declared package boundaries.\n3. Check for regressions, concurrency hazards, race conditions, memory leaks, boundary conditions, and nil-pointer risks.\n4. Verify whether the tests actually test the fix/feature or merely pass vacuously.\n\nEmit a structured verdict:\n- VERDICT: CONFIRMED_VALID | DEFECT_DETECTED\n- EVIDENCE: diff inspection + invariant audit\n- DIFF_AUDIT: analysis of edge cases and invariants"
    }
  },
  {
    "tool": "task",
    "parameters": {
      "subagent_type": "issue-auditor",
      "description": "Audit edge cases & file tickets",
      "prompt": "You are an issue auditor inspecting the changes in commit HEAD.\nYour task:\n1. Uncover unhandled edge cases, bou
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл cross-validate?

Cross-validate code changes with independent subagents, execute on-device test witnesses, and generate GitHub issues for discovered follow-ons by default (DOS style). Use after implementing any fix or feature, before reporting completion.

Как установить скилл cross-validate?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл cross-validate запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить cross-validate с