[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75W68HA35GQFD8WC5ETKHGG":3,"skill-same:01M75W68HA35GQFD8WC5ETKHGG":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":25,"commitSha":26,"skillDirectory":27,"forksCount":14,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":30,"updatedAt":31,"install":32,"resources":44},"01M75W68HA35GQFD8WC5ETKHGG","test-writer-fixer",null,"Write tests for code that has none, and repair tests that broke, without weakening what they check. Use when code changed and its tests need to follow, when a module has no tests, when a suite is failing, or when a green suite is suspected of proving nothing.","stevengonsalvez\u002Fainb-toolkit","stevengonsalvez","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F9320602?v=4","01M75W59QRYZYANWY3XG8CJB1P","Steven Gonsalvez","01M75W59RD5YW1RT67BDV0EAZF",1,"MIT","https:\u002F\u002Fgithub.com\u002Fstevengonsalvez\u002Fainb-toolkit\u002Fblob\u002Fmain\u002Fpackages\u002Ftest-writer-pack\u002F.apm\u002Fskills\u002Ftest-writer-fixer\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: test-writer-fixer\ndescription: Write tests for code that has none, and repair tests that broke, without weakening what they check. Use when code changed and its tests need to follow, when a module has no tests, when a suite is failing, or when a green suite is suspected of proving nothing.\nuser-invocable: true\n---\n\nWrite the tests the code is missing, or repair the ones that broke, so the suite\ncatches real defects rather than turning green.\n\nA suite that cannot fail is worth nothing. Every test written here has to be\nable to go red for a real reason, and the quickest way to weaken a suite is to\nedit the code under test until its tests pass.\n\n## Step 1: Read before writing\n\nRead the code under test and the suite that already covers it. Name, before\nwriting anything:\n\n- the behaviour to pin, in terms of inputs and outputs, not function names\n- the input that would break that behaviour if it regressed\n- what the existing tests already cover, so the new ones add something\n\nNever edit the code under test to make a test pass. If the code looks wrong,\nsay so and leave it: a test that documents a bug is worth more than a green run\nthat hides one.\n\n## Step 2: Write the tests\n\n- Follow the conventions of the suite already in the repository: same runner,\n  same layout, same naming.\n- Assert on values, not on the fact that a call returned. `assert quote(...) ==\n  842` catches a regression; `assert quote(...) is not None` catches nothing.\n- Pin boundaries on the boundary itself and on both sides of it. Off-by-one is\n  the defect this catches and nothing else will.\n- Cover the error path as deliberately as the happy path: a rejected input, a\n  malformed body, a value out of range.\n- One behaviour per test, with a name that says what it pins.\n- No sleeps, no dependence on clock, ordering or network. A test that fails\n  every fiftieth run teaches the team to ignore failures.\n\n## Step 3: Run what you wrote\n\nRun the new tests, then run them again. A suite that passes once and fails the\nsecond time is not finished.\n\nIf a test fails, decide which of the three it is before touching anything:\n\n| The failure means | Do |\n|---|---|\n| The code genuinely changed behaviour | Update the expectation, keep the intent |\n| The test was brittle | Make the test robust, keep what it checked |\n| The code has a bug | Report it, leave the test red, change no source |\n\n## Step 4: Report what is now pinned\n\nSay which behaviour the tests pin and which input would break it. \"Added five\ntests\" tells a reviewer nothing. \"Pins the surcharge threshold at 20 kg, and a\nparcel of exactly 20 kg now fails the old rounding path\" tells them what they\ngained.\n","Write the tests the code is missing, or repair the ones that broke, so the suite\ncatches real defects rather than turning green.\n\nA suite that cannot fail is worth nothing. Every test written here has to be\nable to go red for a real reason, and the quickest way to weaken a suite is to\nedit the code under test until its tests pass.\n\n## Step 1: Read before writing\n\nRead the code under test and the suite that already covers it. Name, before\nwriting anything:\n\n- the behaviour to pin, in terms of inputs and outputs, not function names\n- the input that would break that behaviour if it regressed\n- what the existing tests already cover, so the new ones add something\n\nNever edit the code under test to make a test pass. If the code looks wrong,\nsay so and leave it: a test that documents a bug is worth more than a green run\nthat hides one.\n\n## Step 2: Write the tests\n\n- Follow the conventions of the suite already in the repository: same runner,\n  same layout, same naming.\n- Assert on values, not on the fact that a call returned. `assert quote(...) ==\n  842` catches a regression; `assert quote(...) is not None` catches nothing.\n- Pin boundaries on the boundary itself and on both sides of it. Off-by-one is\n  the defect this catches and nothing else will.\n- Cover the error path as deliberately as the happy path: a rejected input, a\n  malformed body, a value out of range.\n- One behaviour per test, with a name that says what it pins.\n- No sleeps, no dependence on clock, ordering or network. A test that fails\n  every fiftieth run teaches the team to ignore failures.\n\n## Step 3: Run what you wrote\n\nRun the new tests, then run them again. A suite that passes once and fails the\nsecond time is not finished.\n\nIf a test fails, decide which of the three it is before touching anything:\n\n| The failure means | Do |\n|---|---|\n| The code genuinely changed behaviour | Update the expectation, keep the intent |\n| The test was brittle | Make the test robust, keep what it checked |\n| The code has a bug | Report it, leave the test red, change no source |\n\n## Step 4: Report what is now pinned\n\nSay which behaviour the tests pin and which input would break it. \"Added five\ntests\" tells a reviewer nothing. \"Pins the surcharge threshold at 20 kg, and a\nparcel of exactly 20 kg now fails the old rounding path\" tells them what they\ngained.\n",{"name":5,"description":7,"user-invocable":24},true,"main","9cf32d1e636db09530158af14ba301bfa5d401e9","packages\u002Ftest-writer-pack\u002F.apm\u002Fskills\u002Ftest-writer-fixer","https:\u002F\u002Fgithub.com\u002Fstevengonsalvez\u002Fainb-toolkit","https:\u002F\u002Fgithub.com\u002Fstevengonsalvez","stevengonsalvez.com","2026-11-12 00:50:59",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":24},[34,37,40],{"tool":35,"command":36},"npx","npx skills add stevengonsalvez\u002Fainb-toolkit --skill test-writer-fixer",{"tool":38,"command":39},"bunx","bunx skills add stevengonsalvez\u002Fainb-toolkit --skill test-writer-fixer",{"tool":41,"command":42},"pnpm","pnpm dlx skills add stevengonsalvez\u002Fainb-toolkit --skill test-writer-fixer","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fstevengonsalvez\u002Fainb-toolkit\u002Fblob\u002Fmain\u002Fpackages\u002Ftest-writer-pack\u002F.apm\u002Fskills\u002Ftest-writer-fixer\u002FSKILL.md",[],[46,53,60,66,73,80],{"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},"01M75WK9B8DKVJBJJ4CX2QMJMX","well-formed","Fixture skill that satisfies every mechanical rule, used to prove the conformance check passes a clean tree instead of failing everything.","https:\u002F\u002Fgithub.com\u002Fstevengonsalvez\u002Fainb-toolkit\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fagentskills\u002Fclean\u002Fwell-formed\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},"01M75WK6ZGDXJJN8879K49QEYG","underscore-tools","Fixture skill that spells the tool allowlist key with an underscore instead of the hyphen the spec requires.","https:\u002F\u002Fgithub.com\u002Fstevengonsalvez\u002Fainb-toolkit\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fagentskills\u002Fbroken\u002Funderscore-tools\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M75WK524MVT2H9E27ZCEA3HR","no-frontmatter","https:\u002F\u002Fgithub.com\u002Fstevengonsalvez\u002Fainb-toolkit\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fagentskills\u002Fbroken\u002Fno-frontmatter\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M75WJWZBMKR8R60PG3T3MCCC","long-description","Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling.","https:\u002F\u002Fgithub.com\u002Fstevengonsalvez\u002Fainb-toolkit\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fagentskills\u002Fbroken\u002Flong-description\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M75WJVRH3J22WKED7E5D01S8","some-other-name","Fixture skill whose frontmatter name does not match its parent directory name.","https:\u002F\u002Fgithub.com\u002Fstevengonsalvez\u002Fainb-toolkit\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fagentskills\u002Fbroken\u002Fdir-mismatch\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M75WJTC7H5FRP6S129VBSMZC","bad_Name","Fixture skill whose name uses an underscore and a capital letter, so it violates the agentskills.io name pattern.","https:\u002F\u002Fgithub.com\u002Fstevengonsalvez\u002Fainb-toolkit\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fagentskills\u002Fbroken\u002Fbad_Name\u002FSKILL.md",[],[]]