[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7ATFVQW36VB8KSWT0KNC0F0":3,"skill-same:01M7ATFVQW36VB8KSWT0KNC0F0":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":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":29,"updatedAt":30,"install":31,"resources":44},"01M7ATFVQW36VB8KSWT0KNC0F0","tny-mutation-testing",null,"Run and interpret tny's mutation-testing harness (tests\u002Fmutation\u002Fmutate.py) to verify that the test suite actually notices behavior changes. Use when asked to mutation-test a change, to \"test extensively\", or when adding code the unit suite might cover only nominally.","thehumanworks\u002Ftny","thehumanworks","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F178243268?v=4","01M7ATFN18HGD2MMZM8798C4T9","Tomas Roda","01M7ATFN1Y1WDK31RADZB53QSC",0,"MIT","https:\u002F\u002Fgithub.com\u002Fthehumanworks\u002Ftny\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Ftny-mutation-testing\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: tny-mutation-testing\ndescription: Run and interpret tny's mutation-testing harness (tests\u002Fmutation\u002Fmutate.py) to verify that the test suite actually notices behavior changes. Use when asked to mutation-test a change, to \"test extensively\", or when adding code the unit suite might cover only nominally.\n---\n\n# Mutation testing in tny\n\n## How to run\n\n```sh\npython3 tests\u002Fmutation\u002Fmutate.py            # full: unit kill, then pty integration for survivors\npython3 tests\u002Fmutation\u002Fmutate.py --fast     # unit-only (minutes instead of an hour)\npython3 tests\u002Fmutation\u002Fmutate.py --only tui_prewarm   # one file\n```\n\nThe harness mutates one operator site at a time inside the functions listed\nin `TARGETS`, rebuilds `make debug`, runs `.\u002Fbuild\u002Ftny-test`, and (full mode)\nrebuilds `make release` and runs `tests\u002Fintegration\u002Ftest_tui.py` for anything\nthe unit suite missed. Nonzero exit = at least one mutant survived.\n\n## Scoping rule\n\nTarget **the code the current change touched**: whole new files\u002Ffunctions,\nbut only the changed lines inside pre-existing functions (use the per-target\n`line_re` filter). Mutating untouched legacy code produces survivors that are\nsomeone else's missing tests and drowns the signal.\n\n## Traps learned the hard way\n\n- **Stale-object false survivors.** macOS ships GNU make 3.81 with 1-second\n  mtime granularity: a mutant written \u003C1 s after the previous restore of the\n  same file does NOT rebuild, so tests pass against the *original* code and\n  the mutant is reported as survived. The harness bumps `os.utime` +2 s after\n  every write and restore; keep that if you rewrite it. If a survivor looks\n  absurd (\"this must fail the suite\"), re-apply it by hand and run the tests\n  before believing the report.\n- **Comment-text mutants.** Operator regexes match inside `\u002F* ... *\u002F` and\n  `\u002F\u002F` text and \"survive\" trivially; the harness skips full-comment lines and\n  trailing comments. An `EQUIVALENT` list exists for genuinely unobservable\n  sites — annotate, don't delete the operator.\n- **Hangs are kills.** Prewarm\u002Fcondvar mutants can hang the test binary; the\n  subprocess timeout counts as killed (the healthy suite runs in ~0.02 s).\n- **Don't touch the tree or `build\u002F` while it runs.** The harness rewrites\n  target sources in place and relinks both build dirs; live-test against a\n  copied binary (`cp build\u002Ftny scratch\u002Ftny-pristine`), never `build\u002Ftny`.\n\n## Interpreting results\n\nKill ratio on scoped new code should be ≥95 % with only annotated\nequivalents surviving. Every legitimate survivor is a missing assertion —\nwrite the unit test that kills it (cheap) rather than leaning on the\nintegration stage (minutes per mutant).\n","# Mutation testing in tny\n\n## How to run\n\n```sh\npython3 tests\u002Fmutation\u002Fmutate.py            # full: unit kill, then pty integration for survivors\npython3 tests\u002Fmutation\u002Fmutate.py --fast     # unit-only (minutes instead of an hour)\npython3 tests\u002Fmutation\u002Fmutate.py --only tui_prewarm   # one file\n```\n\nThe harness mutates one operator site at a time inside the functions listed\nin `TARGETS`, rebuilds `make debug`, runs `.\u002Fbuild\u002Ftny-test`, and (full mode)\nrebuilds `make release` and runs `tests\u002Fintegration\u002Ftest_tui.py` for anything\nthe unit suite missed. Nonzero exit = at least one mutant survived.\n\n## Scoping rule\n\nTarget **the code the current change touched**: whole new files\u002Ffunctions,\nbut only the changed lines inside pre-existing functions (use the per-target\n`line_re` filter). Mutating untouched legacy code produces survivors that are\nsomeone else's missing tests and drowns the signal.\n\n## Traps learned the hard way\n\n- **Stale-object false survivors.** macOS ships GNU make 3.81 with 1-second\n  mtime granularity: a mutant written \u003C1 s after the previous restore of the\n  same file does NOT rebuild, so tests pass against the *original* code and\n  the mutant is reported as survived. The harness bumps `os.utime` +2 s after\n  every write and restore; keep that if you rewrite it. If a survivor looks\n  absurd (\"this must fail the suite\"), re-apply it by hand and run the tests\n  before believing the report.\n- **Comment-text mutants.** Operator regexes match inside `\u002F* ... *\u002F` and\n  `\u002F\u002F` text and \"survive\" trivially; the harness skips full-comment lines and\n  trailing comments. An `EQUIVALENT` list exists for genuinely unobservable\n  sites — annotate, don't delete the operator.\n- **Hangs are kills.** Prewarm\u002Fcondvar mutants can hang the test binary; the\n  subprocess timeout counts as killed (the healthy suite runs in ~0.02 s).\n- **Don't touch the tree or `build\u002F` while it runs.** The harness rewrites\n  target sources in place and relinks both build dirs; live-test against a\n  copied binary (`cp build\u002Ftny scratch\u002Ftny-pristine`), never `build\u002Ftny`.\n\n## Interpreting results\n\nKill ratio on scoped new code should be ≥95 % with only annotated\nequivalents surviving. Every legitimate survivor is a missing assertion —\nwrite the unit test that kills it (cheap) rather than leaning on the\nintegration stage (minutes per mutant).\n",{"name":5,"description":7},"main","f170ea8f9d04357df828f92f51cadb46dc37b054",".claude\u002Fskills\u002Ftny-mutation-testing","https:\u002F\u002Fgithub.com\u002Fthehumanworks\u002Ftny","https:\u002F\u002Fgithub.com\u002Fthehumanworks","Fluffy Pupster during the day; Agentic Doggo at night.","2026-11-14 22:10:19",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add thehumanworks\u002Ftny --skill tny-mutation-testing",{"tool":37,"command":38},"bunx","bunx skills add thehumanworks\u002Ftny --skill tny-mutation-testing",{"tool":40,"command":41},"pnpm","pnpm dlx skills add thehumanworks\u002Ftny --skill tny-mutation-testing","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fthehumanworks\u002Ftny\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Ftny-mutation-testing\u002FSKILL.md",true,[],[46,53,60,67,74],{"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},"01M7ATG9M1W5Q5DVY6XH23YQSK","usr","Fixture whose name collides with a path component","https:\u002F\u002Fgithub.com\u002Fthehumanworks\u002Ftny\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills-ws\u002Fskills\u002Fusr\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},"01M7ATG8CW7AYB97K6TTNE81AB","deploy","Ship the current branch to staging","https:\u002F\u002Fgithub.com\u002Fthehumanworks\u002Ftny\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills-ws\u002Fskills\u002Fdeploy\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},"01M7ATG5D2V2817D8KN0WBJ8DX","deploy-prod","Promote staging to production","https:\u002F\u002Fgithub.com\u002Fthehumanworks\u002Ftny\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills-ws\u002Fskills\u002Fdeploy-prod\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},"01M7ATG0G2KHVKABCTHZ9X4585","tny-tool-extensions","Write, test and debug tny Python tool extensions (@tny.tool, tny.group, tny.proxy, folder modules, schemas). Use when asked to add a tool, command or MCP proxy to tny.","https:\u002F\u002Fgithub.com\u002Fthehumanworks\u002Ftny\u002Fblob\u002Fmain\u002Fskills\u002Ftny-tool-extensions\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},"01M7ATFR3936K9MTVYTHD47C48","tny-live-testing","Run tny against the user's real provider accounts (codex subscription, CURSOR_API_KEY) and drive the real TUI in a pty. Use for \"full integration\" or \"test against my accounts\" requests, and for verifying host process lifecycle (pre-warm, adoption, shutdown, orphans).","https:\u002F\u002Fgithub.com\u002Fthehumanworks\u002Ftny\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Ftny-live-testing\u002FSKILL.md",[],[]]