[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M72D99Z2E0DBRPZ5THR3Z63W":3,"skill-same:01M72D99Z2E0DBRPZ5THR3Z63W":66},{"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":36,"commitSha":37,"skillDirectory":38,"forksCount":13,"repositoryHtmlUrl":39,"repositoryHomepageUrl":6,"ownerHtmlUrl":40,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":41,"install":42,"resources":55},"01M72D99Z2E0DBRPZ5THR3Z63W","rtk-tdd",null,"Enforces TDD (Red-Green-Refactor) for Rust development. Auto-triggers on implementation, testing, refactoring, and bug fixing tasks. Provides Rust-idiomatic testing patterns with anyhow\u002Fthiserror, cfg(test), and Arrange-Act-Assert workflow.","Sansar35\u002Fclaude-agent","Sansar35","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F145020281?v=4","01M724CQ2SCC86MGNSD87D0D4K","01M724CQ3965G9WJ3QXE3AJ5YY",1,"MIT","https:\u002F\u002Fgithub.com\u002FSansar35\u002Fclaude-agent\u002Fblob\u002Fmain\u002Fclaude-config\u002Fskills\u002Frtk-tdd\u002FSKILL.md",[],[],"2026-11-10 18:39:20",false,"---\nname: rtk-tdd\ndescription: >\n  Enforces TDD (Red-Green-Refactor) for Rust development. Auto-triggers on\n  implementation, testing, refactoring, and bug fixing tasks. Provides\n  Rust-idiomatic testing patterns with anyhow\u002Fthiserror, cfg(test), and\n  Arrange-Act-Assert workflow.\nallowed-tools:\n  - Read\n  - Write\n  - Edit\n  - Bash\neffort: medium\ntags: [tdd, testing, rust, red-green-refactor, rtk]\n---\n\n# Rust TDD Workflow\n\n## Three Laws of TDD\n\n1. Do NOT write production code without a failing test\n2. Write only enough test to fail (including compilation failure)\n3. Write only enough production code to pass the failing test\n\nCycle: **RED** (test fails) -> **GREEN** (minimum to pass) -> **REFACTOR** (cleanup, cargo test)\n\n## Red-Green-Refactor Steps\n\n```\n1. Write test in #[cfg(test)] mod tests of the SAME file\n2. cargo test MODULE::tests::test_name  -- must FAIL (red)\n3. Implement the minimum in the function\n4. cargo test MODULE::tests::test_name  -- must PASS (green)\n5. Refactor if needed, re-run cargo test (still green)\n6. cargo fmt && cargo clippy --all-targets && cargo test  (final gate)\n```\n\nNever skip step 2. If the test passes immediately, it tests nothing.\n\n## Idiomatic Rust Test Patterns\n\n| Pattern | Usage | When |\n|---------|-------|------|\n| Arrange-Act-Assert | Base structure for every test | Always |\n| `assert_eq!` \u002F `assert!` | Direct comparison \u002F booleans | Deterministic values |\n| `assert!(result.is_err())` | Error path testing | Invalid inputs |\n| `Result\u003C()>` return type | Tests with `?` operator | Fallible functions |\n| `#[should_panic]` | Expected panic | Invariants, preconditions |\n| `tempfile::NamedTempFile` | File\u002FI\u002FO tests | Filesystem-dependent code |\n\n## Patterns by Code Type\n\n| Code Type | Test Pattern | Example |\n|-----------|-------------|---------|\n| Pure function (str -> str) | Input literal -> assert output | `assert_eq!(truncate(\"hello\", 3), \"...\")` |\n| Parsing\u002Ffiltering | Raw string -> filter -> contains\u002Fnot-contains | `assert!(filter(raw).contains(\"expected\"))` |\n| Validation\u002Fsecurity | Boundary inputs -> assert bool | `assert!(!is_valid(\"..\u002Fetc\u002Fpasswd\"))` |\n| Error handling | Bad input -> `is_err()` | `assert!(parse(\"garbage\").is_err())` |\n| Struct\u002Fenum roundtrip | Construct -> serialize -> deserialize -> eq | `assert_eq!(from_str(to_str(x)), x)` |\n\n## Naming Convention\n\n```\ntest_{function}_{scenario}\ntest_{function}_{input_type}\n```\n\nExamples: `test_truncate_edge_case`, `test_parse_invalid_input`, `test_filter_empty_string`\n\n## When NOT to Use Pure TDD\n\n- Functions calling `Command::new()` -> test the parser, not the execution\n- `std::process::exit()` -> refactor to `Result` first, then test the Result\n- Direct I\u002FO (SQLite, network) -> use tempfile\u002Fmock or test the pure logic separately\n- Main\u002FCLI wiring -> covered by integration\u002Fsmoke tests\n\n## Pre-Commit Gate\n\n```bash\ncargo fmt --all --check\ncargo clippy --all-targets\ncargo test\n```\n\nAll 3 must pass. No exceptions. No `#[allow(...)]` without documented justification.\n","# Rust TDD Workflow\n\n## Three Laws of TDD\n\n1. Do NOT write production code without a failing test\n2. Write only enough test to fail (including compilation failure)\n3. Write only enough production code to pass the failing test\n\nCycle: **RED** (test fails) -> **GREEN** (minimum to pass) -> **REFACTOR** (cleanup, cargo test)\n\n## Red-Green-Refactor Steps\n\n```\n1. Write test in #[cfg(test)] mod tests of the SAME file\n2. cargo test MODULE::tests::test_name  -- must FAIL (red)\n3. Implement the minimum in the function\n4. cargo test MODULE::tests::test_name  -- must PASS (green)\n5. Refactor if needed, re-run cargo test (still green)\n6. cargo fmt && cargo clippy --all-targets && cargo test  (final gate)\n```\n\nNever skip step 2. If the test passes immediately, it tests nothing.\n\n## Idiomatic Rust Test Patterns\n\n| Pattern | Usage | When |\n|---------|-------|------|\n| Arrange-Act-Assert | Base structure for every test | Always |\n| `assert_eq!` \u002F `assert!` | Direct comparison \u002F booleans | Deterministic values |\n| `assert!(result.is_err())` | Error path testing | Invalid inputs |\n| `Result\u003C()>` return type | Tests with `?` operator | Fallible functions |\n| `#[should_panic]` | Expected panic | Invariants, preconditions |\n| `tempfile::NamedTempFile` | File\u002FI\u002FO tests | Filesystem-dependent code |\n\n## Patterns by Code Type\n\n| Code Type | Test Pattern | Example |\n|-----------|-------------|---------|\n| Pure function (str -> str) | Input literal -> assert output | `assert_eq!(truncate(\"hello\", 3), \"...\")` |\n| Parsing\u002Ffiltering | Raw string -> filter -> contains\u002Fnot-contains | `assert!(filter(raw).contains(\"expected\"))` |\n| Validation\u002Fsecurity | Boundary inputs -> assert bool | `assert!(!is_valid(\"..\u002Fetc\u002Fpasswd\"))` |\n| Error handling | Bad input -> `is_err()` | `assert!(parse(\"garbage\").is_err())` |\n| Struct\u002Fenum roundtrip | Construct -> serialize -> deserialize -> eq | `assert_eq!(from_str(to_str(x)), x)` |\n\n## Naming Convention\n\n```\ntest_{function}_{scenario}\ntest_{function}_{input_type}\n```\n\nExamples: `test_truncate_edge_case`, `test_parse_invalid_input`, `test_filter_empty_string`\n\n## When NOT to Use Pure TDD\n\n- Functions calling `Command::new()` -> test the parser, not the execution\n- `std::process::exit()` -> refactor to `Result` first, then test the Result\n- Direct I\u002FO (SQLite, network) -> use tempfile\u002Fmock or test the pure logic separately\n- Main\u002FCLI wiring -> covered by integration\u002Fsmoke tests\n\n## Pre-Commit Gate\n\n```bash\ncargo fmt --all --check\ncargo clippy --all-targets\ncargo test\n```\n\nAll 3 must pass. No exceptions. No `#[allow(...)]` without documented justification.\n",{"name":5,"tags":23,"effort":29,"description":30,"allowed-tools":31},[24,25,26,27,28],"tdd","testing","rust","red-green-refactor","rtk","medium","Enforces TDD (Red-Green-Refactor) for Rust development. Auto-triggers on implementation, testing, refactoring, and bug fixing tasks. Provides Rust-idiomatic testing patterns with anyhow\u002Fthiserror, cfg(test), and Arrange-Act-Assert workflow.\n",[32,33,34,35],"Read","Write","Edit","Bash","main","d046d088ce5a79a083f0abc0fe1b7ded73bc5b1f","claude-config\u002Fskills\u002Frtk-tdd","https:\u002F\u002Fgithub.com\u002FSansar35\u002Fclaude-agent","https:\u002F\u002Fgithub.com\u002FSansar35","2026-05-10 16:04:53",{"source":8,"skillName":5,"commands":43,"prompt":53,"zipAvailable":54},[44,47,50],{"tool":45,"command":46},"npx","npx skills add Sansar35\u002Fclaude-agent --skill rtk-tdd",{"tool":48,"command":49},"bunx","bunx skills add Sansar35\u002Fclaude-agent --skill rtk-tdd",{"tool":51,"command":52},"pnpm","pnpm dlx skills add Sansar35\u002Fclaude-agent --skill rtk-tdd","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FSansar35\u002Fclaude-agent\u002Fblob\u002Fmain\u002Fclaude-config\u002Fskills\u002Frtk-tdd\u002FSKILL.md",true,[56,62],{"path":57,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":60,"sourceHtmlUrl":61},".skill-source.json","REFERENCE","参考文档",202,"https:\u002F\u002Fgithub.com\u002FSansar35\u002Fclaude-agent\u002Fblob\u002Fmain\u002Fclaude-config\u002Fskills\u002Frtk-tdd\u002F.skill-source.json",{"path":63,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":64,"sourceHtmlUrl":65},"references\u002Ftesting-patterns.md",3572,"https:\u002F\u002Fgithub.com\u002FSansar35\u002Fclaude-agent\u002Fblob\u002Fmain\u002Fclaude-config\u002Fskills\u002Frtk-tdd\u002Freferences\u002Ftesting-patterns.md",[67,74,81,88,95,103],{"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},"01M72DVAN1JYEA302MT0C5MGD6","zustand-store-ts","Create Zustand stores following established patterns with proper TypeScript types and middleware.","https:\u002F\u002Fgithub.com\u002FSansar35\u002Fclaude-agent\u002Fblob\u002Fmain\u002Fclaude-config\u002Fskills\u002Fzustand-store-ts\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},"01M72DV8J5NBRRM4RPDFRV95N7","zod-validation-expert","Expert in Zod — TypeScript-first schema validation. Covers parsing, custom errors, refinements, type inference, and integration with React Hook Form, Next.js, and tRPC.","https:\u002F\u002Fgithub.com\u002FSansar35\u002Fclaude-agent\u002Fblob\u002Fmain\u002Fclaude-config\u002Fskills\u002Fzod-validation-expert\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},"01M72DV5EMHW0BHP9BZ167MDCB","zinc-database","Access ZINC (230M+ purchasable compounds). Search by ZINC ID\u002FSMILES, similarity searches, 3D-ready structures for docking, analog discovery, for virtual screening and drug discovery.","https:\u002F\u002Fgithub.com\u002FSansar35\u002Fclaude-agent\u002Fblob\u002Fmain\u002Fclaude-config\u002Fskills\u002Fzinc-database\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},"01M72DV216QY0E693ZPEVQ0DBS","zarr-python","Chunked N-D arrays for cloud storage. Compressed arrays, parallel I\u002FO, S3\u002FGCS integration, NumPy\u002FDask\u002FXarray compatible, for large-scale scientific computing pipelines.","https:\u002F\u002Fgithub.com\u002FSansar35\u002Fclaude-agent\u002Fblob\u002Fmain\u002Fclaude-config\u002Fskills\u002Fzarr-python\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":99,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":18},"01M72DTXQREMCRKA8NHCVKHN4W","zapier-workflows","Manage and trigger pre-built Zapier workflows and MCP tool orchestration. Use when user mentions workflows, Zaps, automations, daily digest, research, search, lead tracking, expenses, or asks to \"run\" any process. Also handles Perplexity-based research and Google Sheets data tracking.","https:\u002F\u002Fgithub.com\u002FSansar35\u002Fclaude-agent\u002Fblob\u002Fmain\u002Fclaude-config\u002Fskills\u002Fzapier-workflows\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FSansar35\u002Fclaude-agent\u002Fblob\u002Fmain\u002Fclaude-config\u002Fskills\u002Fzapier-workflows\u002FSKILL.md",[],[],{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":18},"01M72DTT17TBSJ0Y8J2XZ4C9TZ","zapier-make-patterns","No-code automation democratizes workflow building. Zapier and Make (formerly Integromat) let non-developers automate business processes without writing code. But no-code doesn't mean no-complexity - these platforms have their own patterns, pitfalls, and breaking points.  This skill covers when to use which platform, how to build reliable automations, and when to graduate to code-based solutions. Key insight: Zapier optimizes for simplicity and integrations (7000+ apps), Make optimizes for power","https:\u002F\u002Fgithub.com\u002FSansar35\u002Fclaude-agent\u002Fblob\u002Fmain\u002Fclaude-config\u002Fskills\u002Fzapier-make-patterns\u002FSKILL.md",[],[]]