[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6MV45H1WS3DA3N1PM96VAV1":3,"skill-same:01M6MV45H1WS3DA3N1PM96VAV1":74},{"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":22,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":46,"commitSha":47,"skillDirectory":48,"forksCount":49,"repositoryHtmlUrl":50,"repositoryHomepageUrl":6,"ownerHtmlUrl":51,"ownerBlogUrl":6,"ownerDescription":52,"updatedAt":53,"install":54,"resources":67},"01M6MV45H1WS3DA3N1PM96VAV1","test-driven-development",null,"Unified TDD skill with three input modes — from spec, from task, or from description. Enforces test-first development using repository patterns, with proptest guidance and backpressure integration.","Kernel8901\u002Fai-agent-skills-classification","Kernel8901","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F72647553?v=4","01M6KV388J2H5PNC8D8P940BJD","01M6KV38CS5B3AY63RKZB410YM",7,"MIT","https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002FGit和GitHub\u002Ftest-driven-development\u002FSKILL.md",[17],{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000008","测试与质量","SCENARIO","使用场景",[23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"test","test driven development","development","driven","spec","tdd","integration","repository","first","guidance","task","patterns","three","input","with","modes","2026-11-10 10:12:30",false,"---\nname: test-driven-development\ndescription: Unified TDD skill with three input modes — from spec, from task, or from description. Enforces test-first development using repository patterns, with proptest guidance and backpressure integration.\ntype: anthropic-skill\nversion: \"1.0\"\n---\n\n# Test-Driven Development\n\n## Overview\n\nOne skill for all TDD workflows. Enforces test-first development using existing repository patterns. Three input modes handle different entry points — specs, task files, or ad-hoc descriptions — but the core cycle is always RED → GREEN → REFACTOR.\n\n## Input Modes\n\nDetect the input type and follow the corresponding mode:\n\n### Mode A: From Spec (`.spec.md`)\n\nUse when the input references a `.spec.md` file with Given\u002FWhen\u002FThen acceptance criteria.\n\n1. **Locate and parse** the spec file — extract all Given\u002FWhen\u002FThen triples\n2. **Generate one test stub per criterion** with `todo!()` bodies:\n   ```rust\n   \u002F\u002F\u002F Spec: \u003Cspec-file> — Criterion #\u003CN>\n   \u002F\u002F\u002F Given \u003Cgiven text>\n   \u002F\u002F\u002F When \u003Cwhen text>\n   \u002F\u002F\u002F Then \u003Cthen text>\n   #[test]\n   fn \u003Cspec_name>_criterion_\u003CN>_\u003Cslug>() {\n       todo!(\"Implement: \u003Cthen text>\");\n   }\n   ```\n3. **Verify stubs compile** but fail: `cargo test --no-run -p \u003Ccrate>`\n4. Proceed to the [TDD Cycle](#tdd-cycle) to make stubs pass\n\n**Programmatic support:** `ralph_core::preflight::{extract_acceptance_criteria, extract_criteria_from_file, extract_all_criteria}` can parse criteria from spec files.\n\n### Mode B: From Task (`.code-task.md`)\n\nUse when the input references a `.code-task.md` file or a specific implementation task.\n\n1. **Read the task** and identify acceptance criteria or requirements\n2. **Discover patterns** (see [Pattern Discovery](#pattern-discovery))\n3. **Design test scenarios** covering normal operation, edge cases, and error conditions\n4. **Write failing tests** for all requirements before any implementation\n5. Proceed to the [TDD Cycle](#tdd-cycle)\n\n### Mode C: From Description\n\nUse for ad-hoc tasks without a spec or task file.\n\n1. **Clarify requirements** from the description\n2. **Discover patterns** (see [Pattern Discovery](#pattern-discovery))\n3. **Write failing tests** targeting the described behavior\n4. Proceed to the [TDD Cycle](#tdd-cycle)\n\n## Pattern Discovery\n\nBefore writing tests, discover existing conventions:\n\n```bash\nrg --files -g \"crates\u002F*\u002Ftests\u002F*.rs\"\nrg -n \"#\\[cfg\\(test\\)\\]\" crates\u002F\n```\n\nRead 2-3 relevant test files near the target code. Mirror:\n- Test module layout, naming, and assertion style\n- Fixture helpers and test utilities\n- Use of `tempfile`, scenarios, or harnesses\n\n## TDD Cycle\n\n### 1) RED — Failing Tests\n\n- Write tests for the exact behavior required\n- Run tests to confirm failure **for the right reason**\n- If tests pass without implementation, the test is wrong\n\n### 2) GREEN — Minimal Implementation\n\n- Write the minimum code to make tests pass\n- No extra features or refactoring during this step\n\n### 3) REFACTOR — Clean Up\n\n- Improve implementation and tests while keeping tests green\n- Align with surrounding codebase conventions\n- Re-run tests after every change\n\n## Proptest Guidance\n\nUse `proptest` only when ALL of:\n- Function is pure (no I\u002FO, no time, no globals)\n- Deterministic output for given input\n- Non-trivial input space or edge cases\n\n```rust\nproptest! {\n    #[test]\n    fn round_trip(input in \"[a-z0-9]{0,32}\") {\n        let encoded = encode(input.as_str());\n        let decoded = decode(&encoded).expect(\"should decode\");\n        prop_assert_eq!(decoded, input);\n    }\n}\n```\n\nDon't introduce proptest as a new dependency without strong justification.\n\n## Backpressure Integration\n\nInclude coverage evidence in completion events:\n\n```bash\nralph emit \"build.done\" \"tests: pass, lint: pass, typecheck: pass, audit: pass, coverage: pass (82%)\"\n```\n\nRun `cargo tarpaulin --out Html --output-dir coverage --skip-clean` when feasible. If coverage cannot be run, state why and include targeted test evidence instead.\n\n## Test Location Rules\n\n- Spec maps to a single module → inline `#[cfg(test)]` tests\n- Spec spans multiple modules → integration test in `crates\u002F\u003Ccrate>\u002Ftests\u002F`\n- CLI behavior → `crates\u002Fralph-cli\u002Ftests\u002F`\n- Follow existing patterns in the target crate\n\n## Anti-Patterns\n\n- Writing implementation before tests\n- Generating tests that pass without implementation\n- Copying tests from other crates without adapting to local patterns\n- Adding proptest when a simple example test suffices\n- Emitting completion events without coverage evidence\n","# Test-Driven Development\n\n## Overview\n\nOne skill for all TDD workflows. Enforces test-first development using existing repository patterns. Three input modes handle different entry points — specs, task files, or ad-hoc descriptions — but the core cycle is always RED → GREEN → REFACTOR.\n\n## Input Modes\n\nDetect the input type and follow the corresponding mode:\n\n### Mode A: From Spec (`.spec.md`)\n\nUse when the input references a `.spec.md` file with Given\u002FWhen\u002FThen acceptance criteria.\n\n1. **Locate and parse** the spec file — extract all Given\u002FWhen\u002FThen triples\n2. **Generate one test stub per criterion** with `todo!()` bodies:\n   ```rust\n   \u002F\u002F\u002F Spec: \u003Cspec-file> — Criterion #\u003CN>\n   \u002F\u002F\u002F Given \u003Cgiven text>\n   \u002F\u002F\u002F When \u003Cwhen text>\n   \u002F\u002F\u002F Then \u003Cthen text>\n   #[test]\n   fn \u003Cspec_name>_criterion_\u003CN>_\u003Cslug>() {\n       todo!(\"Implement: \u003Cthen text>\");\n   }\n   ```\n3. **Verify stubs compile** but fail: `cargo test --no-run -p \u003Ccrate>`\n4. Proceed to the [TDD Cycle](#tdd-cycle) to make stubs pass\n\n**Programmatic support:** `ralph_core::preflight::{extract_acceptance_criteria, extract_criteria_from_file, extract_all_criteria}` can parse criteria from spec files.\n\n### Mode B: From Task (`.code-task.md`)\n\nUse when the input references a `.code-task.md` file or a specific implementation task.\n\n1. **Read the task** and identify acceptance criteria or requirements\n2. **Discover patterns** (see [Pattern Discovery](#pattern-discovery))\n3. **Design test scenarios** covering normal operation, edge cases, and error conditions\n4. **Write failing tests** for all requirements before any implementation\n5. Proceed to the [TDD Cycle](#tdd-cycle)\n\n### Mode C: From Description\n\nUse for ad-hoc tasks without a spec or task file.\n\n1. **Clarify requirements** from the description\n2. **Discover patterns** (see [Pattern Discovery](#pattern-discovery))\n3. **Write failing tests** targeting the described behavior\n4. Proceed to the [TDD Cycle](#tdd-cycle)\n\n## Pattern Discovery\n\nBefore writing tests, discover existing conventions:\n\n```bash\nrg --files -g \"crates\u002F*\u002Ftests\u002F*.rs\"\nrg -n \"#\\[cfg\\(test\\)\\]\" crates\u002F\n```\n\nRead 2-3 relevant test files near the target code. Mirror:\n- Test module layout, naming, and assertion style\n- Fixture helpers and test utilities\n- Use of `tempfile`, scenarios, or harnesses\n\n## TDD Cycle\n\n### 1) RED — Failing Tests\n\n- Write tests for the exact behavior required\n- Run tests to confirm failure **for the right reason**\n- If tests pass without implementation, the test is wrong\n\n### 2) GREEN — Minimal Implementation\n\n- Write the minimum code to make tests pass\n- No extra features or refactoring during this step\n\n### 3) REFACTOR — Clean Up\n\n- Improve implementation and tests while keeping tests green\n- Align with surrounding codebase conventions\n- Re-run tests after every change\n\n## Proptest Guidance\n\nUse `proptest` only when ALL of:\n- Function is pure (no I\u002FO, no time, no globals)\n- Deterministic output for given input\n- Non-trivial input space or edge cases\n\n```rust\nproptest! {\n    #[test]\n    fn round_trip(input in \"[a-z0-9]{0,32}\") {\n        let encoded = encode(input.as_str());\n        let decoded = decode(&encoded).expect(\"should decode\");\n        prop_assert_eq!(decoded, input);\n    }\n}\n```\n\nDon't introduce proptest as a new dependency without strong justification.\n\n## Backpressure Integration\n\nInclude coverage evidence in completion events:\n\n```bash\nralph emit \"build.done\" \"tests: pass, lint: pass, typecheck: pass, audit: pass, coverage: pass (82%)\"\n```\n\nRun `cargo tarpaulin --out Html --output-dir coverage --skip-clean` when feasible. If coverage cannot be run, state why and include targeted test evidence instead.\n\n## Test Location Rules\n\n- Spec maps to a single module → inline `#[cfg(test)]` tests\n- Spec spans multiple modules → integration test in `crates\u002F\u003Ccrate>\u002Ftests\u002F`\n- CLI behavior → `crates\u002Fralph-cli\u002Ftests\u002F`\n- Follow existing patterns in the target crate\n\n## Anti-Patterns\n\n- Writing implementation before tests\n- Generating tests that pass without implementation\n- Copying tests from other crates without adapting to local patterns\n- Adding proptest when a simple example test suffices\n- Emitting completion events without coverage evidence\n",{"name":5,"type":44,"version":45,"description":7},"anthropic-skill","1.0","main","f4cb2d49f7667e79ef7804f50396d5aaffdf1f56","Git和GitHub\u002Ftest-driven-development",1,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification","https:\u002F\u002Fgithub.com\u002FKernel8901","a little little little dobe in life but science geek","2026-04-05 16:43:56",{"source":8,"skillName":5,"commands":55,"prompt":65,"zipAvailable":66},[56,59,62],{"tool":57,"command":58},"npx","npx skills add Kernel8901\u002Fai-agent-skills-classification --skill test-driven-development",{"tool":60,"command":61},"bunx","bunx skills add Kernel8901\u002Fai-agent-skills-classification --skill test-driven-development",{"tool":63,"command":64},"pnpm","pnpm dlx skills add Kernel8901\u002Fai-agent-skills-classification --skill test-driven-development","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002FGit和GitHub\u002Ftest-driven-development\u002FSKILL.md",true,[68],{"path":69,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":72,"sourceHtmlUrl":73},"_meta.json","REFERENCE","参考文档",300,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002FGit和GitHub\u002Ftest-driven-development\u002F_meta.json",[75,99,133,144,154,184],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":39},"01M6Q5R6WZ06RRB9RQTW54B34B","zyfai","Earn yield on any Ethereum wallet on Base, Arbitrum, and Plasma. Use when a user wants passive DeFi yield on their funds. Deploys a non-custodial subaccount (Safe) linked to their EOA, enables automated yield optimization, and lets them deposit\u002Fwithdraw anytime.","https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Fzyfai-sdk\u002FSKILL.md",[],[77,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98],"safe","ethereum","defi","Optimization","user","use","Wallet","base","deposit","withdraw","yield","arbitrum","non-custodial","passive","defi yield","earn","yield optimization",{"skillNo":100,"name":101,"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":102,"categories":103,"keywords":115,"publishedAt":39},"01M6Q5R337B5JSNER4P4YS03TN","zerion-api","https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Fzerion-api\u002FSKILL.md",[104,107,110],{"categoryNo":105,"categoryName":106,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000010","后端与接口",{"categoryNo":108,"categoryName":109,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000023","Skill与智能体开发",{"categoryNo":111,"categoryName":112,"taxonomyType":113,"taxonomyTypeDesc":114},"01JBSEEDCAT000000000000030","开发工程师","PROFESSION","适用职业",[116,117,118,119,120,121,122,84,123,88,124,125,126,127,128,129,130,131,132],"api","zerion api","zerion","MCP","mcp server","server","blockchain","transactions","crypto wallet","crypto","evm","solana","query","across","positions","token","prices",{"skillNo":134,"name":135,"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":136,"categories":137,"keywords":141,"publishedAt":39},"01M6Q5QZFYTDAZMZ27BN5VZXAR","zerion-api-skill","https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Fzerion-api-skill\u002FSKILL.md",[138,139,140],{"categoryNo":105,"categoryName":106,"taxonomyType":20,"taxonomyTypeDesc":21},{"categoryNo":108,"categoryName":109,"taxonomyType":20,"taxonomyTypeDesc":21},{"categoryNo":111,"categoryName":112,"taxonomyType":113,"taxonomyTypeDesc":114},[116,142,143,117,118,119,120,121,122,84,123,88,125,126,127,128,129,130,131,132],"api skill","zerion api skill",{"skillNo":145,"name":146,"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":147,"categories":148,"keywords":152,"publishedAt":39},"01M6Q5QW17QW98RA3FE45E4RD8","zerion-api-mcp","https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Fzerion-api-mcp\u002FSKILL.md",[149,150,151],{"categoryNo":105,"categoryName":106,"taxonomyType":20,"taxonomyTypeDesc":21},{"categoryNo":108,"categoryName":109,"taxonomyType":20,"taxonomyTypeDesc":21},{"categoryNo":111,"categoryName":112,"taxonomyType":113,"taxonomyTypeDesc":114},[119,116,153,117,118,120,121,84,123,88,124,125,126,127,128,129,130,131,132],"zerion api mcp",{"skillNo":155,"name":156,"nameZh":6,"description":157,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":158,"categories":159,"keywords":163,"publishedAt":39},"01M6Q5QQYZB7A501BDEQWKGSJT","yahoo-finance-forex","Fetches real-time FOREX news and market data from Yahoo Finance for major currency pairs (EUR\u002FUSD, GBP\u002FUSD, USD\u002FJPY, etc.). Analyzes sentiment and provides trading context.","https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Fyahoo-finance-forex\u002FSKILL.md",[160],{"categoryNo":161,"categoryName":162,"taxonomyType":113,"taxonomyTypeDesc":114},"01JBSEEDCAT000000000000040","财务",[164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183],"finance","yahoo finance","forex","yahoo","yahoo finance forex","github","https","sentiment","real-time","python3","install","Market","usd","news","time","currency","gbp","pip","market data","for",{"skillNo":185,"name":186,"nameZh":6,"description":187,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":188,"categories":189,"keywords":191,"publishedAt":39},"01M6Q5QM6VS84WZVM7BKXXPF32","yahoo-finance","This skill should be used when the user asks to \"get stock prices\", \"check stock quotes\", \"look up earnings\", \"get financial data\", \"find trending stocks\", or needs stock market data from Yahoo Finance.","https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Fyahoo-finance-cli\u002FSKILL.md",[190],{"categoryNo":161,"categoryName":162,"taxonomyType":113,"taxonomyTypeDesc":114},[164,165,167,192,193,194,195,196,197,175,198,199,200,201,202,203,204,205,132,182],"cli","homebrew","find","check","brew","up","local","get","stock","link","trending","sf","quotes","ln"]