[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EX7AQ3MC4ZJBFKDZ5QVE98":3,"skill-same:01M7EX7AQ3MC4ZJBFKDZ5QVE98":59},{"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":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":28,"commitSha":29,"skillDirectory":30,"forksCount":31,"repositoryHtmlUrl":32,"repositoryHomepageUrl":6,"ownerHtmlUrl":33,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":34,"install":35,"resources":48},"01M7EX7AQ3MC4ZJBFKDZ5QVE98","test-driven-development",null,"Writes tests before or alongside code using a red-green-refactor loop - specify one behaviour as a failing test, make it pass with the simplest change, then clean up with tests green. Use when adding tests, when behaviour can be specified up front, for bug fixes needing a regression test, or when asked for TDD or better coverage.","paulsagar7796-cmyk\u002FUniversal-agent-skills","paulsagar7796-cmyk","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F236126668?v=4","01M7EX5ZBFWM7WN5Y4Z691QQC3","01M7EX5ZCK8MW9651JQJKMBZ1M",2,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fpaulsagar7796-cmyk\u002FUniversal-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fengineering\u002Ftest-driven-development\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: test-driven-development\ndescription: Writes tests before or alongside code using a red-green-refactor loop - specify one behaviour as a failing test, make it pass with the simplest change, then clean up with tests green. Use when adding tests, when behaviour can be specified up front, for bug fixes needing a regression test, or when asked for TDD or better coverage.\nlicense: Apache-2.0\nmetadata:\n  version: \"0.1.0\"\n  category: engineering\n  maturity: draft\n  risk: low\n---\n\n# Test-driven development\n\nTests are executable acceptance criteria. Write the one that proves the behaviour, watch it fail for the right reason,\nthen make it pass.\n\n## When to use \u002F not\n\nUse for new behaviour with clear inputs\u002Foutputs, bug fixes (the failing test is the reproduction), refactors that need\na safety net (characterisation tests first), and coverage gaps in risky code.\nDo not force it for exploratory spikes or pure UI layout tweaks — but add a test once behaviour stabilises.\n\n## Loop\n\n1. **Find the harness.** Identify the project's test framework, file naming, fixtures\u002Ffactories, and the command that\n   runs a single test (record it in the brain if it is not there). Do not introduce a new framework without approval.\n2. **Red.** Write one small test for one behaviour, named for the behaviour (\"rejects expired coupons\"). Run it.\n   It must fail, and fail for the expected reason (assertion on the behaviour — not an import error or typo).\n3. **Green.** Make the simplest production change that passes it. Run the test, then the surrounding file\u002Fsuite.\n4. **Refactor.** Remove duplication and clarify names in code *and* tests while everything stays green.\n5. **Repeat** for the next behaviour: edge cases, error paths, boundaries (empty, max, invalid, concurrent, timezone).\n6. **Finish** with `verification-before-completion`: full relevant suite, lint\u002Ftype check.\n\n## Test quality rules\n\n- Assert observable behaviour, not private implementation details.\n- One reason to fail per test; clear arrange \u002F act \u002F assert.\n- Deterministic: control time, randomness, network and ordering. No sleeps to wait for async work.\n- Use real collaborators where cheap; mock only boundaries (network, clock, filesystem, paid APIs).\n- Never weaken an assertion, mark a test skipped, or update a snapshot just to get green without understanding why.\n- Tests must not need secrets or production services; use fixtures with fake data.\n\n## Characterisation tests for legacy code\n\nBefore changing untested code, write tests that pin current behaviour (even if odd), mark surprising behaviour in the\ntest name, and ask before \"correcting\" it.\n\n## Output contract\n\nFor each behaviour: test name → red (failure reason) → green (change) → result. Then the final suite command and result.\n","# Test-driven development\n\nTests are executable acceptance criteria. Write the one that proves the behaviour, watch it fail for the right reason,\nthen make it pass.\n\n## When to use \u002F not\n\nUse for new behaviour with clear inputs\u002Foutputs, bug fixes (the failing test is the reproduction), refactors that need\na safety net (characterisation tests first), and coverage gaps in risky code.\nDo not force it for exploratory spikes or pure UI layout tweaks — but add a test once behaviour stabilises.\n\n## Loop\n\n1. **Find the harness.** Identify the project's test framework, file naming, fixtures\u002Ffactories, and the command that\n   runs a single test (record it in the brain if it is not there). Do not introduce a new framework without approval.\n2. **Red.** Write one small test for one behaviour, named for the behaviour (\"rejects expired coupons\"). Run it.\n   It must fail, and fail for the expected reason (assertion on the behaviour — not an import error or typo).\n3. **Green.** Make the simplest production change that passes it. Run the test, then the surrounding file\u002Fsuite.\n4. **Refactor.** Remove duplication and clarify names in code *and* tests while everything stays green.\n5. **Repeat** for the next behaviour: edge cases, error paths, boundaries (empty, max, invalid, concurrent, timezone).\n6. **Finish** with `verification-before-completion`: full relevant suite, lint\u002Ftype check.\n\n## Test quality rules\n\n- Assert observable behaviour, not private implementation details.\n- One reason to fail per test; clear arrange \u002F act \u002F assert.\n- Deterministic: control time, randomness, network and ordering. No sleeps to wait for async work.\n- Use real collaborators where cheap; mock only boundaries (network, clock, filesystem, paid APIs).\n- Never weaken an assertion, mark a test skipped, or update a snapshot just to get green without understanding why.\n- Tests must not need secrets or production services; use fixtures with fake data.\n\n## Characterisation tests for legacy code\n\nBefore changing untested code, write tests that pin current behaviour (even if odd), mark surprising behaviour in the\ntest name, and ask before \"correcting\" it.\n\n## Output contract\n\nFor each behaviour: test name → red (failure reason) → green (change) → result. Then the final suite command and result.\n",{"name":5,"license":14,"metadata":23,"description":7},{"risk":24,"version":25,"category":26,"maturity":27},"low","0.1.0","engineering","draft","main","3a32b58695554c34c977f4a8dbb868d2d93c91d0","skills\u002Fengineering\u002Ftest-driven-development",0,"https:\u002F\u002Fgithub.com\u002Fpaulsagar7796-cmyk\u002FUniversal-agent-skills","https:\u002F\u002Fgithub.com\u002Fpaulsagar7796-cmyk","2026-10-19 15:51:08",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add paulsagar7796-cmyk\u002FUniversal-agent-skills --skill test-driven-development",{"tool":41,"command":42},"bunx","bunx skills add paulsagar7796-cmyk\u002FUniversal-agent-skills --skill test-driven-development",{"tool":44,"command":45},"pnpm","pnpm dlx skills add paulsagar7796-cmyk\u002FUniversal-agent-skills --skill test-driven-development","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fpaulsagar7796-cmyk\u002FUniversal-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fengineering\u002Ftest-driven-development\u002FSKILL.md",true,[49,55],{"path":50,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":53,"sourceHtmlUrl":54},"evals\u002Fcases.yaml","REFERENCE","参考文档",1767,"https:\u002F\u002Fgithub.com\u002Fpaulsagar7796-cmyk\u002FUniversal-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fengineering\u002Ftest-driven-development\u002Fevals\u002Fcases.yaml",{"path":56,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":57,"sourceHtmlUrl":58},"manifest.yaml",778,"https:\u002F\u002Fgithub.com\u002Fpaulsagar7796-cmyk\u002FUniversal-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fengineering\u002Ftest-driven-development\u002Fmanifest.yaml",[60,67,74,81,88,95],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":18},"01M7EX9X6CQ1DZZ413VE5BE6DM","malicious-remote-exec","TEST FIXTURE ONLY - installs by piping a remote script to a shell and persists itself. Use when testing the scanner.","https:\u002F\u002Fgithub.com\u002Fpaulsagar7796-cmyk\u002FUniversal-agent-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills\u002Fmalicious-remote-exec\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":18},"01M7EX9S7WEKDJ39587ZM94D98","malicious-exfil","TEST FIXTURE ONLY - pretends to format code but exfiltrates environment variables. Use when testing the scanner.","https:\u002F\u002Fgithub.com\u002Fpaulsagar7796-cmyk\u002FUniversal-agent-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills\u002Fmalicious-exfil\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":18},"01M7EX9MM1Z011GG37VCT66YB4","malicious-concealment","TEST FIXTURE ONLY - instructions that try to override the agent and hide actions. Use when testing the scanner.","https:\u002F\u002Fgithub.com\u002Fpaulsagar7796-cmyk\u002FUniversal-agent-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills\u002Fmalicious-concealment\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":18},"01M7EX9GY9Q8YZHBTPFQGJ7Q7M","clean-weather","TEST FIXTURE ONLY - a legitimate skill that reads a public weather API. Use when testing scanner false positives.","https:\u002F\u002Fgithub.com\u002Fpaulsagar7796-cmyk\u002FUniversal-agent-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills\u002Fclean-weather\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":18},"01M7EX9E8DS554HCA3XA2D7K1H","skill-template","One sentence saying what this skill does. Use when \u003Cthe situations and words that should trigger it>.","https:\u002F\u002Fgithub.com\u002Fpaulsagar7796-cmyk\u002FUniversal-agent-skills\u002Fblob\u002Fmain\u002Ftemplates\u002Fskill-template\u002FSKILL.md",[],[],{"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":18},"01M7EX97HN9JHMJFN5AHT68X0E","skill-package-audit","Audits a third-party Agent Skill or skill repository before it is installed or used - checks provenance and license, scans instructions and scripts for prompt injection, hidden text, credential access, data exfiltration, destructive or persistent commands, and reports a risk verdict with evidence. Use before installing a skill, when asked whether a skill is safe, or when reviewing skill supply-chain risk.","https:\u002F\u002Fgithub.com\u002Fpaulsagar7796-cmyk\u002FUniversal-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsecurity\u002Fskill-package-audit\u002FSKILL.md",[],[]]