[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7ES04N08J3V1SA3KC9X6K98":3,"skill-same:01M7ES04N08J3V1SA3KC9X6K98":54},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":14,"repositoryHtmlUrl":30,"repositoryHomepageUrl":6,"ownerHtmlUrl":31,"ownerBlogUrl":6,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M7ES04N08J3V1SA3KC9X6K98","skill-tdd",null,"Prove a skill change with evals before it lands, a pressure case that fails without the change and passes with it, then the routing and trigger suites with no regression. Use before creating or editing any skill, pack skill, playbook or description, and to apply a queued proposal.","Ventorius\u002Fven-stack","Ventorius","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F5689509?v=4","01M7ERRDPQ5YXCNXJZWEKQNP50","Sebastian Basznianin","01M7ERRDQ9S0ZD9YMH1RN1WVP7",0,"MIT","https:\u002F\u002Fgithub.com\u002FVentorius\u002Fven-stack\u002Fblob\u002Fmain\u002Fplugins\u002Fven\u002Fskills\u002Fskill-tdd\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: skill-tdd\ndescription: Prove a skill change with evals before it lands, a pressure case that fails without the change and passes with it, then the routing and trigger suites with no regression. Use before creating or editing any skill, pack skill, playbook or description, and to apply a queued proposal.\nmetadata:\n  layer: L3\n  source: obra\u002Fsuperpowers@bb92a77:skills\u002Fwriting-skills\u002FSKILL.md\n  license: MIT\n---\n\n# Skill TDD\n\nNo skill change without a failing eval first. This covers new skills, edits, descriptions, playbook steps and \"just one line\". If you did not watch the case fail without the change and pass with it, you do not know that the change teaches anything.\n\nA skill never edits itself in the session that proposed the change: a proposal written while reviewing a session is applied in a later one. Work the user starts for its own sake, such as forging a new skill or updating their mode overlay, is proven in the same session.\n\n## Proposals\n\nSkills that find a change queue it as `$(ven-profile path)\u002Fproposals\u002F\u003CYYYY-MM-DD>-\u003Cslug>.md`:\n\n```markdown\n---\ntarget: \u003Cskill, playbook or eval path; core or pack>\nkind: \u003Cskill-edit | description | new-skill | routing-case | check | pattern-fix>\nproposed_by: \u003Cskill name>\ndate: \u003CYYYY-MM-DD>\nstatus: proposed\n---\n## Rule\n\u003CThe behavior the change must produce, in one sentence.>\n## Evidence\n- \u003CVerbatim quote, with session id or transcript turn.>\n## Change\n\u003CThe smallest diff that produces the rule.>\n```\n\nWhen done, set `status: applied` or `status: rejected` and append `## Result` with the eval delta. A `check` proposal is not a skill change: hand it to the ratchet workflow.\n\n## 1. Red: write the case first\n\nBefore touching the skill, write a pressure case under the plugin's `evals\u002Fskills\u002F\u003Cskill>\u002F\u003Cskill>-\u003Cscenario>\u002F`: a `prompt.md` and `graders\u002F*.md`. A pack keeps its cases in `\u003Cpack>\u002Fevals\u002F\u003Cskill>-\u003Cscenario>\u002F` and runs them with `--eval-dir evals`. How to build the pressure and the graders: `references\u002Fpressure-cases.md`.\n\n## 2. Baseline: watch it fail\n\nMake a copy of the plugin as it was before the change:\n\n- Plugin in git: `git worktree add \u003Ctmp> HEAD`, then copy the skill's eval directory (`evals\u002Fskills\u002F\u003Cskill>\u002F`, with the new case) to the same path under `\u003Ctmp>`, so both copies run the same cases.\n- Plugin outside git (a pack in the state directory, a personal overlay): copy the plugin directory to `\u003Ctmp>` before editing anything.\n\nEvals run on the `claude` CLI. Without it, say the change is unproven and stop; never land it on a reading alone. Eval runs execute the plugin and its scaffold scripts as the user. Ask once before the first run; on yes, pass `--trust-plugin`. Run the baseline (all commands in this skill also take `--no-publish`, keeping reports local):\n\n```bash\nclaude plugin eval \u003Ctmp>\u002F\u003Cplugin> --eval-dir evals\u002Fskills\u002F\u003Cskill> --case \u003Ccase> --runs 3 --ablation none --scaffold --max-cost-usd 15 --no-publish --output-dir \u003Cresults>\u002Fbaseline\n```\n\nThe case must fail: at most 1 of 3 runs passes. If the baseline passes, there is nothing to fix. Reject the proposal with that result and stop.\n\nA new skill has no \"before\": run the candidate once with `--ablation with-without`; the without arm is the baseline.\n\n## 3. Green: smallest change that passes\n\nMake the smallest change that addresses the failure you watched, nothing for hypothetical cases. Run the same command against the working copy with `--output-dir \u003Cresults>\u002Fcandidate`. It must pass 3 of 3. When it doesn't, read the traces, find the excuse the agent used, counter that excuse, and rerun.\n\n## 4. No regression\n\nRun each suite against both copies and compare:\n\n```bash\nclaude plugin eval \u003Cplugin> --eval-dir evals\u002Frouting --runs 3 --ablation none --scaffold --max-cost-usd 10 --no-publish --output-dir \u003Cresults>\u002F\u003Ccopy>\u002Frouting\nclaude plugin eval \u003Cplugin> --eval-dir evals\u002Fskills\u002F\u003Cskill> --runs 3 --ablation none --scaffold --max-cost-usd 15 --no-publish --output-dir \u003Cresults>\u002F\u003Ccopy>\u002Ftrigger\n```\n\nFor a pack, both suites are the pack's own `evals\u002F`: routing cases for its playbooks, trigger cases for its skills.\n\nThe skill's suite holds at least one case where it should fire and one where it should stay quiet. Add them if missing; a description change always gets both.\n\n## 5. Decide\n\nRead pass rate, `costUsd` and token totals from each `aggregate-result.json`. Reject the change when:\n\n- the pressure case did not go from failing to passing,\n- the pass rate of any suite dropped, or\n- cost or tokens on any suite rose more than 20%.\n\nThen run `ven-lint-skills`. The core line budget (`core_line_budget` in the plugin's `lint.json`) is a cap: an edit that would exceed it removes lines elsewhere. Never raise the budget in the same change.\n\n## 6. Land it\n\nCommit the skill change and its case together. The message body carries the delta:\n\n```text\n\u003Cimperative subject>\n\ncase \u003Ccase>: 0\u002F3 -> 3\u002F3\nrouting: \u003Cn>\u002F\u003Cn> -> \u003Cn>\u002F\u003Cn>; trigger: \u003Cn>\u002F\u003Cn> -> \u003Cn>\u002F\u003Cn>\ncost \u003C+\u002F-n>%, tokens \u003C+\u002F-n>%\n```\n\nA pack outside git records the same lines under the proposal's `## Result`. Remove the worktree with `git worktree remove \u003Ctmp>`.\n\n## Excuses\n\n| Excuse | Answer |\n|---|---|\n| \"It's one line.\" | One line changes behavior. One case proves which way. |\n| \"The wording is obviously clear.\" | Clear to you is not clear to the next agent. |\n| \"A vibe check with the user is enough.\" | A vibe check measures taste, not behavior. Write the case. |\n| \"I'll add the eval after.\" | A case that never failed proves nothing. |\n| \"The evals cost too much.\" | The suites are capped. A bad skill costs every future session. |\n","# Skill TDD\n\nNo skill change without a failing eval first. This covers new skills, edits, descriptions, playbook steps and \"just one line\". If you did not watch the case fail without the change and pass with it, you do not know that the change teaches anything.\n\nA skill never edits itself in the session that proposed the change: a proposal written while reviewing a session is applied in a later one. Work the user starts for its own sake, such as forging a new skill or updating their mode overlay, is proven in the same session.\n\n## Proposals\n\nSkills that find a change queue it as `$(ven-profile path)\u002Fproposals\u002F\u003CYYYY-MM-DD>-\u003Cslug>.md`:\n\n```markdown\n---\ntarget: \u003Cskill, playbook or eval path; core or pack>\nkind: \u003Cskill-edit | description | new-skill | routing-case | check | pattern-fix>\nproposed_by: \u003Cskill name>\ndate: \u003CYYYY-MM-DD>\nstatus: proposed\n---\n## Rule\n\u003CThe behavior the change must produce, in one sentence.>\n## Evidence\n- \u003CVerbatim quote, with session id or transcript turn.>\n## Change\n\u003CThe smallest diff that produces the rule.>\n```\n\nWhen done, set `status: applied` or `status: rejected` and append `## Result` with the eval delta. A `check` proposal is not a skill change: hand it to the ratchet workflow.\n\n## 1. Red: write the case first\n\nBefore touching the skill, write a pressure case under the plugin's `evals\u002Fskills\u002F\u003Cskill>\u002F\u003Cskill>-\u003Cscenario>\u002F`: a `prompt.md` and `graders\u002F*.md`. A pack keeps its cases in `\u003Cpack>\u002Fevals\u002F\u003Cskill>-\u003Cscenario>\u002F` and runs them with `--eval-dir evals`. How to build the pressure and the graders: `references\u002Fpressure-cases.md`.\n\n## 2. Baseline: watch it fail\n\nMake a copy of the plugin as it was before the change:\n\n- Plugin in git: `git worktree add \u003Ctmp> HEAD`, then copy the skill's eval directory (`evals\u002Fskills\u002F\u003Cskill>\u002F`, with the new case) to the same path under `\u003Ctmp>`, so both copies run the same cases.\n- Plugin outside git (a pack in the state directory, a personal overlay): copy the plugin directory to `\u003Ctmp>` before editing anything.\n\nEvals run on the `claude` CLI. Without it, say the change is unproven and stop; never land it on a reading alone. Eval runs execute the plugin and its scaffold scripts as the user. Ask once before the first run; on yes, pass `--trust-plugin`. Run the baseline (all commands in this skill also take `--no-publish`, keeping reports local):\n\n```bash\nclaude plugin eval \u003Ctmp>\u002F\u003Cplugin> --eval-dir evals\u002Fskills\u002F\u003Cskill> --case \u003Ccase> --runs 3 --ablation none --scaffold --max-cost-usd 15 --no-publish --output-dir \u003Cresults>\u002Fbaseline\n```\n\nThe case must fail: at most 1 of 3 runs passes. If the baseline passes, there is nothing to fix. Reject the proposal with that result and stop.\n\nA new skill has no \"before\": run the candidate once with `--ablation with-without`; the without arm is the baseline.\n\n## 3. Green: smallest change that passes\n\nMake the smallest change that addresses the failure you watched, nothing for hypothetical cases. Run the same command against the working copy with `--output-dir \u003Cresults>\u002Fcandidate`. It must pass 3 of 3. When it doesn't, read the traces, find the excuse the agent used, counter that excuse, and rerun.\n\n## 4. No regression\n\nRun each suite against both copies and compare:\n\n```bash\nclaude plugin eval \u003Cplugin> --eval-dir evals\u002Frouting --runs 3 --ablation none --scaffold --max-cost-usd 10 --no-publish --output-dir \u003Cresults>\u002F\u003Ccopy>\u002Frouting\nclaude plugin eval \u003Cplugin> --eval-dir evals\u002Fskills\u002F\u003Cskill> --runs 3 --ablation none --scaffold --max-cost-usd 15 --no-publish --output-dir \u003Cresults>\u002F\u003Ccopy>\u002Ftrigger\n```\n\nFor a pack, both suites are the pack's own `evals\u002F`: routing cases for its playbooks, trigger cases for its skills.\n\nThe skill's suite holds at least one case where it should fire and one where it should stay quiet. Add them if missing; a description change always gets both.\n\n## 5. Decide\n\nRead pass rate, `costUsd` and token totals from each `aggregate-result.json`. Reject the change when:\n\n- the pressure case did not go from failing to passing,\n- the pass rate of any suite dropped, or\n- cost or tokens on any suite rose more than 20%.\n\nThen run `ven-lint-skills`. The core line budget (`core_line_budget` in the plugin's `lint.json`) is a cap: an edit that would exceed it removes lines elsewhere. Never raise the budget in the same change.\n\n## 6. Land it\n\nCommit the skill change and its case together. The message body carries the delta:\n\n```text\n\u003Cimperative subject>\n\ncase \u003Ccase>: 0\u002F3 -> 3\u002F3\nrouting: \u003Cn>\u002F\u003Cn> -> \u003Cn>\u002F\u003Cn>; trigger: \u003Cn>\u002F\u003Cn> -> \u003Cn>\u002F\u003Cn>\ncost \u003C+\u002F-n>%, tokens \u003C+\u002F-n>%\n```\n\nA pack outside git records the same lines under the proposal's `## Result`. Remove the worktree with `git worktree remove \u003Ctmp>`.\n\n## Excuses\n\n| Excuse | Answer |\n|---|---|\n| \"It's one line.\" | One line changes behavior. One case proves which way. |\n| \"The wording is obviously clear.\" | Clear to you is not clear to the next agent. |\n| \"A vibe check with the user is enough.\" | A vibe check measures taste, not behavior. Write the case. |\n| \"I'll add the eval after.\" | A case that never failed proves nothing. |\n| \"The evals cost too much.\" | The suites are capped. A bad skill costs every future session. |\n",{"name":5,"metadata":24,"description":7},{"layer":25,"source":26,"license":15},"L3","obra\u002Fsuperpowers@bb92a77:skills\u002Fwriting-skills\u002FSKILL.md","main","e57e3dd5c8aec0fe40658397aee9fd9b1d77bb60","plugins\u002Fven\u002Fskills\u002Fskill-tdd","https:\u002F\u002Fgithub.com\u002FVentorius\u002Fven-stack","https:\u002F\u002Fgithub.com\u002FVentorius","Heavy testing believer. Workflow automation fan. Fullstack JS developer.","2026-11-04 04:05:46",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add Ventorius\u002Fven-stack --skill skill-tdd",{"tool":40,"command":41},"bunx","bunx skills add Ventorius\u002Fven-stack --skill skill-tdd",{"tool":43,"command":44},"pnpm","pnpm dlx skills add Ventorius\u002Fven-stack --skill skill-tdd","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FVentorius\u002Fven-stack\u002Fblob\u002Fmain\u002Fplugins\u002Fven\u002Fskills\u002Fskill-tdd\u002FSKILL.md",true,[48],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"references\u002Fpressure-cases.md","REFERENCE","参考文档",3895,"https:\u002F\u002Fgithub.com\u002FVentorius\u002Fven-stack\u002Fblob\u002Fmain\u002Fplugins\u002Fven\u002Fskills\u002Fskill-tdd\u002Freferences\u002Fpressure-cases.md",[55,62,69,76,83,90],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M7ES1P06ZPAGTT7YS4V6MS32","yeet","Take every local change green through the repo's own checks, slice it into conventional commits, push, and with --pr open a pull request on the code host. Use only when the user explicitly asks to yeet, or to commit and push everything; never on your own initiative.","https:\u002F\u002Fgithub.com\u002FVentorius\u002Fven-stack\u002Fblob\u002Fmain\u002Fplugins\u002Fven\u002Fskills\u002Fyeet\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M7ES1JHVQEN3YYMRZEBM2E79","write-docs","Write or update documentation from the code: gather facts, pick the shape for the reader, write it plain, and prove every command and path in it. Use when asked to document a repo, module or feature, or to bring stale docs up to date.","https:\u002F\u002Fgithub.com\u002FVentorius\u002Fven-stack\u002Fblob\u002Fmain\u002Fplugins\u002Fven\u002Fskills\u002Fwrite-docs\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M7ES1DD3YVMF1MY7D51R6516","why","Find why code is shaped the way it is (design rationale, trade-offs, regressions, odd thresholds) from history, tickets, docs and chat, citing every claim and stating its confidence. Use for 'why does X work this way', 'why did we pick Y', or before changing code whose purpose is unclear.","https:\u002F\u002Fgithub.com\u002FVentorius\u002Fven-stack\u002Fblob\u002Fmain\u002Fplugins\u002Fven\u002Fskills\u002Fwhy\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M7ES18XVRZGQ0V1BBZH63Q8W","verify","Prove a change works with the check that matches its type, do the read-back, and log the pass against the exact tree. Use when a change is ready to call done, before review, commit or stopping, and whenever ven-decisions end refuses an unverified tree.","https:\u002F\u002Fgithub.com\u002FVentorius\u002Fven-stack\u002Fblob\u002Fmain\u002Fplugins\u002Fven\u002Fskills\u002Fverify\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M7ES15Z3W8QTJH4CRAJ53D2G","unslop","Cut AI writing tells (filler, model vocabulary, metaphor nouns, hedging, formatting tics) from text while keeping every fact. Use when editing or checking any prose before it ships: docs, PR bodies, reports, skill text.","https:\u002F\u002Fgithub.com\u002FVentorius\u002Fven-stack\u002Fblob\u002Fmain\u002Fplugins\u002Fven\u002Fskills\u002Funslop\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":19},"01M7ES12GT9WD9NE2X3M1B29ZZ","type-discipline","Apply when designing types or data shapes, reviewing a signature, or handling outside data, in any language. Make wrong states fail early: in the compiler for typed languages, in validated runtime contracts for untyped ones.","https:\u002F\u002Fgithub.com\u002FVentorius\u002Fven-stack\u002Fblob\u002Fmain\u002Fplugins\u002Fven\u002Fskills\u002Ftype-discipline\u002FSKILL.md",[],[]]