用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/CodySwannGT/expostarter --skill lisa-codify-verification命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | lisa-codify-verification |
| description | Convert empirical verification… |
| allowed-tools | ["Bash","Read","Edit","Write","Glob","Grep","Skill"] |
Take the empirical verification that just passed and encode it as an automated regression test. The manual proof becomes a repeatable check that catches future regressions.
This skill is invoked from the verification lifecycle (between Execute and Spec Conformance) and from each work-type sub-flow (Build / Fix / Improve) after the local verification step.
Invoke once per empirical verification that produced PASS evidence. If a single change had three verifications (UI flow, API endpoint, DB query), this skill runs three times — or once with the three verifications batched, but each must produce its own committed test.
Skip codification only for verification types whose proof is inherently non-behavioral:
For every other verification type, codification is mandatory. If the codification is not possible (e.g., the test framework doesn't exist and can't be installed in scope), escalate via the lifecycle's Escalation Protocol — do not silently skip.
The caller must provide:
If any of these are missing, ask the caller before generating a test — a test built on guesswork will not match the verification it claims to encode.
Before creating anything new, find what the project already has. Use the Tool Discovery Process from verification-lifecycle. Specifically check for:
playwright.config.*, cypress.config.*, e2e/ directory, tests/e2e/, Playwright/Cypress in package.json devDependenciestests/integration/, spec/, test/integration/, supertest/fetch helpers, Vitest/Jest integration configsbenchmarks/, bench/), vitest bench, k6 scriptsDo NOT install a new framework if one already exists for the verification type. Use what's there.
| Verification type | Preferred framework (use whichever the project already has) |
|---|---|
| UI (web) | Playwright > Cypress > Selenium |
| UI (mobile) | Maestro > Detox > Playwright (mobile emulation) |
| API | project's integration test runner (Vitest / Jest / RSpec / pytest) with HTTP client (supertest / fetch / faraday) |
| Database | integration test with real DB + migrations applied |
| Auth | API or UI test asserting role-gated access (multi-role coverage) |
| Security | regression test that reproduces the attack and asserts safe handling |
| Performance | benchmark in the project's bench harness, asserting against the baseline captured in the verification |
| Background Jobs | integration test that enqueues, drains the queue, and asserts terminal state |
| Cache | integration test asserting hit/miss/invalidation behavior |
| Configuration | integration test that loads config and asserts effect |
| Email/Notification | test capturing outbound message via project's mailer test mode |
| Observability | test asserting structured log/metric/trace emission |
| Infrastructure | test or script asserting infra state (terraform plan diff, CDK snapshot test) |
If the project lacks the preferred framework AND no acceptable substitute exists, escalate.
The generated test must:
displays order confirmation after checkout not fixes PROJ-1234.For Playwright UI tests specifically:
test fixture / page fixture / auth helper if one existsgetByRole, getByText) over CSS/XPath — they survive markup churnConcrete verification (UAT) contract. Verification is UAT — codifying it is
how the playthrough becomes durable. For a runtime/behavioral feat/fix: place
the codified test where the project's e2e/Playwright tests live (tests/e2e/**)
so CI re-runs it, and commit the evidence artifact to evidence/<ticket>/
(verdict.json + state + screenshots). For a Phaser game, drive the canvas
through the in-game verification test bridge (seed RNG, read state, inject input,
step frames) with deterministic rendering. CI's verification-coverage check
requires a verification-spec delta on every behavioral change. See the
reference/verification.md "Making verification concrete (UAT)" section.
Run only the new test, using whatever per-test invocation the project supports:
npx playwright test path/to/new.spec.tsnpx vitest run path/to/new.spec.tsnpx jest path/to/new.test.tsbundle exec rspec path/to/new_spec.rbConfirm:
For a bug fix, step 2 is mandatory and easy: check out the failing commit, run the new test, see it fail, return to the fix branch. This proves the test actually guards the regression.
Confirm the test is picked up by the project's standard test command (the one CI runs). Run that command and confirm the count went up by exactly the number of tests added.
If the test is in a directory the standard test command excludes (e.g., E2E suite that runs separately in CI), confirm the appropriate CI workflow includes it.
Commit the test in the same PR as the change it codifies, in its own atomic commit:
test: add e2e for <behavior>test: add regression test for <bug behavior>test: add benchmark asserting <metric> <baseline>The commit message body should reference the verification it encodes (one line linking to the proof artifact or the verification report section).
Append to the verification report (or PR description):
### Codified Verifications
| # | Verification | Framework | Test file | Status |
|---|--------------|-----------|-----------|--------|
| 1 | <description> | Playwright | `e2e/checkout.spec.ts::displays order confirmation after checkout` | PASS |
This evidence shows the verification is now guarded.
For each empirical verification passed in:
If codification was skipped, an explicit reason recorded in the report (one of the skip conditions above) — never silent.
.skip() the new test "temporarily" to make CI green — fix the test or fix the underlying changeexpect(true).toBe(true) placeholders or smoke-only assertions that don't actually exercise the verified behavior