[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71V4K3CXN6KZBSJTZ8XN98B":3,"skill-same:01M71V4K3CXN6KZBSJTZ8XN98B":81},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":62,"commitSha":63,"skillDirectory":64,"forksCount":13,"repositoryHtmlUrl":65,"repositoryHomepageUrl":6,"ownerHtmlUrl":66,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":67,"install":68,"resources":80},"01M71V4K3CXN6KZBSJTZ8XN98B","tdd-change",null,"Implement changes using strict test-driven development — red, green, refactor","strings77wzq\u002Fgoal-run","strings77wzq","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F184192027?v=4","01M71V4218PHCX3JS0WGM99C41","01M71V421WHQ3QPRVP9GWKQVGV",0,"MIT","https:\u002F\u002Fgithub.com\u002Fstrings77wzq\u002Fgoal-run\u002Fblob\u002Fmain\u002Fskills\u002Ftdd-change\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"change","tdd change","tdd","tests","test-driven","Existing","fixes","for","true","complete","critical","development","green","do","files","test suite","only","use","coverage","regression","2026-11-10 13:02:02",false,"---\nname: tdd-change\ndescription: Implement changes using strict test-driven development — red, green, refactor\nversion: '1.1.0'\nrisk: medium\npermissions:\n  - read_files\n  - write_files\n  - run_tests\nverify_commands: [] # Inherited from goal verification.commands at runtime\nfile_boundaries:\n  read_files:\n    - 'src\u002F**'\n    - 'lib\u002F**'\n    - 'test\u002F**'\n    - '__tests__\u002F**'\n    - 'packages\u002F*\u002Fsrc\u002F**'\n    - 'packages\u002F*\u002Ftest\u002F**'\n  write_files:\n    - 'src\u002F**'\n    - 'lib\u002F**'\n    - 'test\u002F**'\n    - '__tests__\u002F**'\n    - 'packages\u002F*\u002Fsrc\u002F**'\n    - 'packages\u002F*\u002Ftest\u002F**'\nlessons_required: true\nwhen_to_use: |\n  Use for bug fixes, features, and behavior-changing refactors where confidence\n  in correctness is critical. Required when the goal specifies regression tests.\nwhen_not_to_use: |\n  Do not use for documentation-only changes, formatting-only changes, or changes\n  where the existing test suite already provides complete coverage of the change.\n---\n\n# TDD Change\n\nImplement code changes using the test-driven development cycle: Red, Green, Refactor.\n\n## Workflow\n\n0. **Check lessons (MANDATORY)**\n   - Read `.goalrun\u002Flessons.json` for matching failure patterns\n   - Search for lessons matching the current skill, file paths, or error types\n   - If matches found, review them BEFORE writing any code\n   - If no lessons file exists, skip this step\n\n1. **Understand the change**\n   - Read the goal specification and implementation strategy (if provided)\n   - Identify the specific behavior that needs to change\n   - Understand the current behavior and expected new behavior\n\n2. **Locate related tests**\n   - Find existing tests that cover the affected code\n   - Run the existing test suite to establish a baseline\n   - If no tests exist for the affected behavior, note this as a test gap\n\n3. **Write a failing test (RED)**\n   - Write a test that describes the expected new behavior\n   - If tests don't exist, write a test for the current behavior first, then modify it\n   - Run the test to confirm it FAILS for the right reason\n   - DO NOT proceed if the test passes without code changes\n\n4. **Implement the minimal fix (GREEN)**\n   - Write the smallest amount of code needed to make the failing test pass\n   - Do not refactor during this step — just make it work\n   - Run the specific test to confirm it passes\n   - Run the broader test suite to check for regressions\n\n5. **Refactor (REFACTOR)**\n   - Clean up the implementation without changing behavior\n   - Remove duplication, improve naming, simplify logic\n   - Run all tests after each refactoring step\n   - If tests fail, revert the last refactoring step\n\n6. **Verify**\n   - Run ALL tests, not just the targeted ones\n   - Run goal verification commands (typecheck, lint)\n   - Confirm no regression in unrelated tests\n\n## Required Outputs\n\n- The failing test (before implementation)\n- The minimal implementation\n- The refactored implementation (if applicable)\n- Verification results: test output showing all tests pass\n\n## Verification Expectations\n\n- At least one new or modified test that specifically tests the change\n- All existing tests continue to pass (no regressions)\n- Goal verification commands all pass\n- Diff is focused: no unrelated changes\n\n## Safety Notes\n\n- NEVER skip the RED phase. Always confirm the test fails first.\n- NEVER modify tests to match broken code — fix the code, not the test.\n- If a test starts passing without code changes, investigate. Something is wrong.\n- Keep changes minimal. Do not refactor unrelated code.\n- Stop if you cannot make the test pass within the goal's budget.max_iterations.\n","# TDD Change\n\nImplement code changes using the test-driven development cycle: Red, Green, Refactor.\n\n## Workflow\n\n0. **Check lessons (MANDATORY)**\n   - Read `.goalrun\u002Flessons.json` for matching failure patterns\n   - Search for lessons matching the current skill, file paths, or error types\n   - If matches found, review them BEFORE writing any code\n   - If no lessons file exists, skip this step\n\n1. **Understand the change**\n   - Read the goal specification and implementation strategy (if provided)\n   - Identify the specific behavior that needs to change\n   - Understand the current behavior and expected new behavior\n\n2. **Locate related tests**\n   - Find existing tests that cover the affected code\n   - Run the existing test suite to establish a baseline\n   - If no tests exist for the affected behavior, note this as a test gap\n\n3. **Write a failing test (RED)**\n   - Write a test that describes the expected new behavior\n   - If tests don't exist, write a test for the current behavior first, then modify it\n   - Run the test to confirm it FAILS for the right reason\n   - DO NOT proceed if the test passes without code changes\n\n4. **Implement the minimal fix (GREEN)**\n   - Write the smallest amount of code needed to make the failing test pass\n   - Do not refactor during this step — just make it work\n   - Run the specific test to confirm it passes\n   - Run the broader test suite to check for regressions\n\n5. **Refactor (REFACTOR)**\n   - Clean up the implementation without changing behavior\n   - Remove duplication, improve naming, simplify logic\n   - Run all tests after each refactoring step\n   - If tests fail, revert the last refactoring step\n\n6. **Verify**\n   - Run ALL tests, not just the targeted ones\n   - Run goal verification commands (typecheck, lint)\n   - Confirm no regression in unrelated tests\n\n## Required Outputs\n\n- The failing test (before implementation)\n- The minimal implementation\n- The refactored implementation (if applicable)\n- Verification results: test output showing all tests pass\n\n## Verification Expectations\n\n- At least one new or modified test that specifically tests the change\n- All existing tests continue to pass (no regressions)\n- Goal verification commands all pass\n- Diff is focused: no unrelated changes\n\n## Safety Notes\n\n- NEVER skip the RED phase. Always confirm the test fails first.\n- NEVER modify tests to match broken code — fix the code, not the test.\n- If a test starts passing without code changes, investigate. Something is wrong.\n- Keep changes minimal. Do not refactor unrelated code.\n- Stop if you cannot make the test pass within the goal's budget.max_iterations.\n",{"name":5,"risk":43,"version":44,"description":7,"permissions":45,"when_to_use":49,"file_boundaries":50,"verify_commands":59,"when_not_to_use":60,"lessons_required":61},"medium","1.1.0",[46,47,48],"read_files","write_files","run_tests","Use for bug fixes, features, and behavior-changing refactors where confidence\nin correctness is critical. Required when the goal specifies regression tests.\n",{"read_files":51,"write_files":58},[52,53,54,55,56,57],"src\u002F**","lib\u002F**","test\u002F**","__tests__\u002F**","packages\u002F*\u002Fsrc\u002F**","packages\u002F*\u002Ftest\u002F**",[52,53,54,55,56,57],[],"Do not use for documentation-only changes, formatting-only changes, or changes\nwhere the existing test suite already provides complete coverage of the change.",true,"main","ea8458ad5d16f32f8e464369b6dfb656b907bf0a","skills\u002Ftdd-change","https:\u002F\u002Fgithub.com\u002Fstrings77wzq\u002Fgoal-run","https:\u002F\u002Fgithub.com\u002Fstrings77wzq","2026-05-31 10:20:34",{"source":8,"skillName":5,"commands":69,"prompt":79,"zipAvailable":61},[70,73,76],{"tool":71,"command":72},"npx","npx skills add strings77wzq\u002Fgoal-run --skill tdd-change",{"tool":74,"command":75},"bunx","bunx skills add strings77wzq\u002Fgoal-run --skill tdd-change",{"tool":77,"command":78},"pnpm","pnpm dlx skills add strings77wzq\u002Fgoal-run --skill tdd-change","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fstrings77wzq\u002Fgoal-run\u002Fblob\u002Fmain\u002Fskills\u002Ftdd-change\u002FSKILL.md",[],[82,95,114,132,146,162],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":38},"01M71V4NKDTPEZPWE5NQX3AACH","my-skill","A custom GoalRun skill","https:\u002F\u002Fgithub.com\u002Fstrings77wzq\u002Fgoal-run\u002Fblob\u002Fmain\u002Ftemplates\u002Fskill\u002FSKILL.md",[],[89,90,91,92,32,93,94],"my","my skill","when","read","custom","describe",{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":38},"01M71V4G13PXZTXWRT067RS9WT","implementation-strategy","Plan implementation strategy for medium-to-high risk changes before writing code","https:\u002F\u002Fgithub.com\u002Fstrings77wzq\u002Fgoal-run\u002Fblob\u002Fmain\u002Fskills\u002Fimplementation-strategy\u002FSKILL.md",[],[102,103,104,105,106,107,108,109,110,35,34,32,111,31,112,26,113,25,24,91],"strategy","implementation","implementation strategy","documentation","risk","blast radius","code","auth","writing","openspec","plan implementation","updates",{"skillNo":115,"name":116,"nameZh":6,"description":117,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":118,"categories":119,"keywords":120,"publishedAt":38},"01M71V4E2FSCAETRWN155NAG49","code-review","Review code changes for correctness, test coverage, security, performance, and maintainability","https:\u002F\u002Fgithub.com\u002Fstrings77wzq\u002Fgoal-run\u002Fblob\u002Fmain\u002Fskills\u002Fcode-review\u002FSKILL.md",[],[121,122,108,26,123,25,124,125,126,127,128,18,129,130,36,35,32,31,131,28],"code review","review","implementing","correctness","human code","you","performance","test","pr","assessment","as",{"skillNo":133,"name":134,"nameZh":6,"description":135,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":136,"categories":137,"keywords":138,"publishedAt":38},"01M71V4CZGBGV3GZ4P6HW8STPR","valid-skill","A valid skill for testing purposes","https:\u002F\u002Fgithub.com\u002Fstrings77wzq\u002Fgoal-run\u002Fblob\u002Fmain\u002Fpackages\u002Fharness\u002Ftest\u002Ffixtures\u002Fskills\u002Fvalid-skill\u002FSKILL.md",[],[139,140,35,141,142,143,92,144,32,31,25,145],"valid","valid skill","testing","harness","Production","write","static",{"skillNo":147,"name":148,"nameZh":6,"description":149,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":150,"categories":151,"keywords":152,"publishedAt":38},"01M71V4C3HXW8CG0YCW5N0Y26Y","dangerous-skill","A skill with dangerous content","https:\u002F\u002Fgithub.com\u002Fstrings77wzq\u002Fgoal-run\u002Fblob\u002Fmain\u002Fpackages\u002Fharness\u002Ftest\u002Ffixtures\u002Fskills\u002Fdangerous-skill\u002FSKILL.md",[],[153,154,155,156,157,158,32,159,28,160,161],"dangerous","dangerous skill","delete","content","shell","execute","commands","with","a skill",{"skillNo":163,"name":164,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":165,"categories":166,"keywords":167,"publishedAt":38},"01M71V4APGS84GHZFRZP356A1X","bad-skill","https:\u002F\u002Fgithub.com\u002Fstrings77wzq\u002Fgoal-run\u002Fblob\u002Fmain\u002Fpackages\u002Fharness\u002Ftest\u002Ffixtures\u002Fskills\u002Fbad-skill\u002FSKILL.md",[],[168,169,170],"bad","bad skill","unknown"]