[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7B3HAQD6J2GQY9FSYQ0YW9E":3,"skill-same:01M7B3HAQD6J2GQY9FSYQ0YW9E":45},{"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":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":27,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":29,"updatedAt":30,"install":31,"resources":44},"01M7B3HAQD6J2GQY9FSYQ0YW9E","pruning-tests",null,"Use when auditing a test suite for low-value tests, or when deleting, merging or rewriting existing tests or test doubles.","vadimvitvickiy\u002Fvv-agent-kit","vadimvitvickiy","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F5019512?v=4","01M7B3ABRYF7KHBCDW6GB2XH0C","Vadim Vitvitskii","01M7B3ABSZYG9MXP1CC7BQYM25",0,"MIT","https:\u002F\u002Fgithub.com\u002Fvadimvitvickiy\u002Fvv-agent-kit\u002Fblob\u002Fmain\u002Fskills\u002Fpruning-tests\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: pruning-tests\ndescription: Use when auditing a test suite for low-value tests, or when deleting, merging or rewriting existing tests or test doubles.\n---\n\n# Pruning tests\n\n**Report first, edit second, prove every batch.** A deleted test changes what the suite protects.\n\n- The candidate list goes to the person before any test is edited — \"clean it up\" asks for the list,\n  not permission to skip it.\n- The pruner does not grade itself: the proof is numbers, or a separate reviewer.\n- What makes a test low-value is decided in `vvkit:writing-tests`. This skill covers removing it\n  without losing protection.\n\n## Audit\n\n1. **Baseline.** Record every in-scope test's pass\u002Ffail before touching anything. A failing test is a\n   bug report until shown otherwise — in one subsystem-wide prune, all three baseline failures were\n   real delivery bugs. Fix them at the owner; never delete them.\n2. **Read and mark each test by its assertions, not its name** — one named for clearing a window\n   asserted it was *not* cleared. Read the production owner, callers and history (did a bug fix add\n   it?).\n3. **Report and stop**, as one table:\n\n   | Test | Mark | Bug it claims to catch | Proof that remains | Seam freed |\n   |-|-|-|-|-|\n\n   Marks: **retain**; **fix** (keep the contract, repair the assertion); **consolidate** (name the\n   absorbing test); **delete** (name the remaining proof, or why no contract exists). No evidence, no\n   delete.\n\n## What stays\n\n- Race and hang proofs; the only test of a filesystem or database failure mode; regressions from real\n  bugs; observable ordering; public API, protocol, config, migration, security and default-value\n  contracts. Slow or static is no reason to delete.\n- **A weak test that is the only one reaching a path is rewritten, not deleted.** Deleting one that\n  slept and asserted loosely took its path from 65% coverage to 0%.\n\n## While pruning\n\n- **Audit doubles too.** Replace a hand-written double with the shared one, keep it with a comment\n  naming the control the shared one lacks, or merge copies. The third copy gets promoted.\n- **Duplicated production code behind a cluster of tests:** extract it and test it once.\n- **Never weaken a test** to improve the deletion count. One coherent batch per change.\n- **A whole subsystem** splits by production owner: one read-only agent marks each area, then one pass\n  across the marks looks for a redundant layer.\n\n## Prove the prune\n\nCopy into the work for every batch that deletes, merges or rewrites tests:\n\n```\n- [ ] Mutant per removed claim: the bug each removed test claimed to catch, applied as a one-line\n      mutant; its killer named before and after\n- [ ] Coverage per function, before (worktree at the merge base) and after; report non-empty\n- [ ] Every function dropped to 0%, or newly over CRAP 30, has a rewritten test or a stated reason\n- [ ] Up to ~6 more mutants where coverage dropped or tests changed; all old kills still killed\n- [ ] Independent review of deleted coverage against what remains (batches beyond a handful)\n- [ ] Report: mutant table with killers before and after, coverage drops with reasons, seams removed\n```\n\n- **The first item is never skipped.** \"The remaining tests already catch it\" is an argument, not a\n  run. Apply the mutant.\n- **Coverage before mutants.** Mutants only reach paths some test still runs — twelve missed the\n  65%-to-0% drop that coverage caught.\n- **Each mutant is tied to the deletion:** a killer before the prune is a test this batch removes or\n  rewrites. One at a time; restore by reversing the edit, confirm by file hash.\n- **A survivor means restore or rewrite a test.** Surviving on both sides is an old gap — add a test\n  only if it clears the acceptance filter, watched failing under the mutant.\n- **Some runners return an empty coverage report, without warning,** when coverage was not enabled.\n- **An independent reviewer finds what the pruner misses** — on one prune, nine contracts that lost\n  their only proof and one new assertion that could not fail.\n- Tests written after seeing survivors: say so; the score only fits that sample.\n\nCRAP = complexity² × (1 − coverage)³ + complexity. Where the project has tools for coverage, CRAP,\nduplication or mutation testing, use them over hand-run mutants. Coverage commands for a stack are in\nits testing skill — for Swift, `vvkit-swift:swift-testing`.\n\nAdapted from sergdort's \"Pragmatic Testing\" agent skill and post (2026), and OpenClaw's `test-audit`\nskill, the source of the baseline and review figures.\n","# Pruning tests\n\n**Report first, edit second, prove every batch.** A deleted test changes what the suite protects.\n\n- The candidate list goes to the person before any test is edited — \"clean it up\" asks for the list,\n  not permission to skip it.\n- The pruner does not grade itself: the proof is numbers, or a separate reviewer.\n- What makes a test low-value is decided in `vvkit:writing-tests`. This skill covers removing it\n  without losing protection.\n\n## Audit\n\n1. **Baseline.** Record every in-scope test's pass\u002Ffail before touching anything. A failing test is a\n   bug report until shown otherwise — in one subsystem-wide prune, all three baseline failures were\n   real delivery bugs. Fix them at the owner; never delete them.\n2. **Read and mark each test by its assertions, not its name** — one named for clearing a window\n   asserted it was *not* cleared. Read the production owner, callers and history (did a bug fix add\n   it?).\n3. **Report and stop**, as one table:\n\n   | Test | Mark | Bug it claims to catch | Proof that remains | Seam freed |\n   |-|-|-|-|-|\n\n   Marks: **retain**; **fix** (keep the contract, repair the assertion); **consolidate** (name the\n   absorbing test); **delete** (name the remaining proof, or why no contract exists). No evidence, no\n   delete.\n\n## What stays\n\n- Race and hang proofs; the only test of a filesystem or database failure mode; regressions from real\n  bugs; observable ordering; public API, protocol, config, migration, security and default-value\n  contracts. Slow or static is no reason to delete.\n- **A weak test that is the only one reaching a path is rewritten, not deleted.** Deleting one that\n  slept and asserted loosely took its path from 65% coverage to 0%.\n\n## While pruning\n\n- **Audit doubles too.** Replace a hand-written double with the shared one, keep it with a comment\n  naming the control the shared one lacks, or merge copies. The third copy gets promoted.\n- **Duplicated production code behind a cluster of tests:** extract it and test it once.\n- **Never weaken a test** to improve the deletion count. One coherent batch per change.\n- **A whole subsystem** splits by production owner: one read-only agent marks each area, then one pass\n  across the marks looks for a redundant layer.\n\n## Prove the prune\n\nCopy into the work for every batch that deletes, merges or rewrites tests:\n\n```\n- [ ] Mutant per removed claim: the bug each removed test claimed to catch, applied as a one-line\n      mutant; its killer named before and after\n- [ ] Coverage per function, before (worktree at the merge base) and after; report non-empty\n- [ ] Every function dropped to 0%, or newly over CRAP 30, has a rewritten test or a stated reason\n- [ ] Up to ~6 more mutants where coverage dropped or tests changed; all old kills still killed\n- [ ] Independent review of deleted coverage against what remains (batches beyond a handful)\n- [ ] Report: mutant table with killers before and after, coverage drops with reasons, seams removed\n```\n\n- **The first item is never skipped.** \"The remaining tests already catch it\" is an argument, not a\n  run. Apply the mutant.\n- **Coverage before mutants.** Mutants only reach paths some test still runs — twelve missed the\n  65%-to-0% drop that coverage caught.\n- **Each mutant is tied to the deletion:** a killer before the prune is a test this batch removes or\n  rewrites. One at a time; restore by reversing the edit, confirm by file hash.\n- **A survivor means restore or rewrite a test.** Surviving on both sides is an old gap — add a test\n  only if it clears the acceptance filter, watched failing under the mutant.\n- **Some runners return an empty coverage report, without warning,** when coverage was not enabled.\n- **An independent reviewer finds what the pruner misses** — on one prune, nine contracts that lost\n  their only proof and one new assertion that could not fail.\n- Tests written after seeing survivors: say so; the score only fits that sample.\n\nCRAP = complexity² × (1 − coverage)³ + complexity. Where the project has tools for coverage, CRAP,\nduplication or mutation testing, use them over hand-run mutants. Coverage commands for a stack are in\nits testing skill — for Swift, `vvkit-swift:swift-testing`.\n\nAdapted from sergdort's \"Pragmatic Testing\" agent skill and post (2026), and OpenClaw's `test-audit`\nskill, the source of the baseline and review figures.\n",{"name":5,"description":7},"main","cc22a222a76add5759a2df5fadf231a758691db5","skills\u002Fpruning-tests","https:\u002F\u002Fgithub.com\u002Fvadimvitvickiy\u002Fvv-agent-kit","https:\u002F\u002Fgithub.com\u002Fvadimvitvickiy","Senior iOS engineer. Architecture, SDKs and apps for iOS, tvOS and watchOS.","2026-11-13 19:10:29",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add vadimvitvickiy\u002Fvv-agent-kit --skill pruning-tests",{"tool":37,"command":38},"bunx","bunx skills add vadimvitvickiy\u002Fvv-agent-kit --skill pruning-tests",{"tool":40,"command":41},"pnpm","pnpm dlx skills add vadimvitvickiy\u002Fvv-agent-kit --skill pruning-tests","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fvadimvitvickiy\u002Fvv-agent-kit\u002Fblob\u002Fmain\u002Fskills\u002Fpruning-tests\u002FSKILL.md",true,[],[46,53,60,67,74,81],{"skillNo":47,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":50,"categories":51,"keywords":52,"publishedAt":19},"01M7B3JN7VG0YJ4JB8RP6HYZSJ","no-heading","Use when proving that the validator rejects a body with no H1 and a force-loading @-link.","https:\u002F\u002Fgithub.com\u002Fvadimvitvickiy\u002Fvv-agent-kit\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills\u002Fno-heading\u002FSKILL.md",[],[],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":19},"01M7B3JJMEW4E710ZG6HYJ7BWV","wrong-name-does-not-match-dir","Dispatches a subagent per task and reviews between each one.","https:\u002F\u002Fgithub.com\u002Fvadimvitvickiy\u002Fvv-agent-kit\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills\u002Fbroken-skill\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":19},"01M7B3JGE9MFT1HRP41YRVKN97","writing-tests","Use when adding or changing behavior, fixing a bug, or judging whether an existing or generated test earns its place.","https:\u002F\u002Fgithub.com\u002Fvadimvitvickiy\u002Fvv-agent-kit\u002Fblob\u002Fmain\u002Fskills\u002Fwriting-tests\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":19},"01M7B3JD5X32VEBDBN7HB8E17Z","writing-skills","Use when authoring or editing a skill, agent, command or hook for this kit, or when deciding whether a piece of guidance belongs in a skill at all.","https:\u002F\u002Fgithub.com\u002Fvadimvitvickiy\u002Fvv-agent-kit\u002Fblob\u002Fmain\u002Fskills\u002Fwriting-skills\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M7B3J992MZH2QVZRED0DRPD9","writing-project-instructions","Use when creating or editing a CLAUDE.md or AGENTS.md, when it has grown long, or when a rule in it also exists in an installed skill.","https:\u002F\u002Fgithub.com\u002Fvadimvitvickiy\u002Fvv-agent-kit\u002Fblob\u002Fmain\u002Fskills\u002Fwriting-project-instructions\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M7B3J55C5WPWN20QXP9ET848","writing-logs","Use when adding or reviewing log statements, or when deciding what level a message belongs at.","https:\u002F\u002Fgithub.com\u002Fvadimvitvickiy\u002Fvv-agent-kit\u002Fblob\u002Fmain\u002Fskills\u002Fwriting-logs\u002FSKILL.md",[],[]]