[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7F6T7QDH3ZE0R07YVTGV4Q3":3,"skill-same:01M7F6T7QDH3ZE0R07YVTGV4Q3":46},{"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":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":30,"updatedAt":31,"install":32,"resources":45},"01M7F6T7QDH3ZE0R07YVTGV4Q3","tdd",null,"Test-driven development for ASP.NET Core and EF Core with xUnit. Use when building a feature or fixing a bug test-first, when the user mentions TDD or red-green-refactor, or when adding integration tests for endpoints or data access.","dmamulashvili\u002Fdotnet-agent-kit","dmamulashvili","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F32094385?v=4","01M7F6R8EG5R0X2HR19YM28J1Z","Dimitri Mamulashvili","01M7F6R8F5T8SPRP0F43P2HBM0",2,"MIT","https:\u002F\u002Fgithub.com\u002Fdmamulashvili\u002Fdotnet-agent-kit\u002Fblob\u002Fmain\u002Ftemplate\u002F.claude\u002Fskills\u002Ftdd\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: tdd\ndescription: Test-driven development for ASP.NET Core and EF Core with xUnit. Use when building a feature or fixing a bug test-first, when the user mentions TDD or red-green-refactor, or when adding integration tests for endpoints or data access.\n---\n\n# Test-Driven Development (.NET)\n\nLoop rules adapted from Matt Pocock's `tdd` skill (https:\u002F\u002Fgithub.com\u002Fmattpocock\u002Fskills, MIT), rewritten for .NET.\n\n## Agree on the seams first\n\nA seam is the public boundary a test observes behavior through: an HTTP endpoint, a service's public method, a domain type's public API. Before writing any test, list the seams you intend to test, with one line each on what the test catches and what it misses, and confirm them with the user.\n\nPrefer the outermost seam that is still fast and deterministic:\n\n| Seam | Test type | Tooling |\n|---|---|---|\n| HTTP endpoint | Integration | `WebApplicationFactory\u003CProgram>` (`Microsoft.AspNetCore.Mvc.Testing`) and `HttpClient` |\n| Data access with real queries | Integration | Testcontainers module for the project's database, e.g. `Testcontainers.PostgreSql` or `Testcontainers.MsSql` |\n| Domain logic with no I\u002FO | Unit | Plain xUnit tests, no mocks |\n\nDo not test EF Core queries against the in-memory provider or SQLite when production uses another database: translation and behavior differ.\n\n## The loop\n\n1. **Red.** Write one failing test at an agreed seam. Run it and confirm it fails for the expected reason, not a compile error or setup problem.\n2. **Green.** Write the minimum production code to pass it. No speculative parameters, branches, or abstractions.\n3. **Repeat** with the next test. One seam, one test, one minimal change per cycle. Each test should respond to what the previous cycle taught you.\n4. **Refactor** only once the tests for the slice are green, and keep them green while you do.\n\nNever write a batch of tests up front and then implement them all: that tests imagined behavior and locks in structure before you understand it.\n\n## Changing existing code\n\n- Before optimizing or refactoring code without tests, write tests that pin its current behavior, including odd cases like duplicates or malformed input.\n- When fixing a bug, keep the test that reproduced it as a regression test.\n\n## What a good test looks like\n\n- **Behavior, not implementation.** It asserts on what a caller can observe: the response status and body, the returned value, the persisted state read back through the public API. It survives a refactor that keeps behavior the same.\n- **Independent expected values.** The expected value comes from a literal, a worked example, or the spec, never recomputed the way the code computes it.\n- **Arrange, Act, Assert**, with one behavior per test.\n- **Named for the behavior**: `Method_Scenario_ExpectedResult`, e.g. `CreateOrder_WithEmptyCart_Returns400`.\n- **Isolated.** No shared mutable state between tests. Integration tests reset or isolate their data (a fresh database per test class, or a transaction per test).\n\n## Mocking\n\n- Mock only what you don't own or can't run: third-party HTTP APIs, email, clocks (`TimeProvider`), randomness.\n- Don't mock `DbContext`, repositories over it, or your own services to test their callers: test through the real thing at a higher seam instead.\n- In endpoint tests, replace external dependencies in `WebApplicationFactory.ConfigureWebHost` via `ConfigureTestServices`.\n\n## Anti-patterns\n\n- Asserting that a mock was called instead of asserting the outcome.\n- Testing private methods, or making members `internal` only so tests can reach them.\n- `Assert.True(result != null)` style assertions that pass for wrong values.\n- `Thread.Sleep` or timing-based waits; use `TimeProvider` or polling with a timeout.\n- Catching exceptions in a test to make it pass.\n\n## Practicalities\n\n- Since .NET 10, a source generator makes the top-level `Program` class public, so `WebApplicationFactory\u003CProgram>` works without declaring `public partial class Program { }`. Add that declaration only on earlier versions.\n- Pass `TestContext.Current.CancellationToken` (xUnit v3) to async calls in tests.\n- Run the narrowest set of tests that covers the change while iterating, then the full suite before finishing.\n","# Test-Driven Development (.NET)\n\nLoop rules adapted from Matt Pocock's `tdd` skill (https:\u002F\u002Fgithub.com\u002Fmattpocock\u002Fskills, MIT), rewritten for .NET.\n\n## Agree on the seams first\n\nA seam is the public boundary a test observes behavior through: an HTTP endpoint, a service's public method, a domain type's public API. Before writing any test, list the seams you intend to test, with one line each on what the test catches and what it misses, and confirm them with the user.\n\nPrefer the outermost seam that is still fast and deterministic:\n\n| Seam | Test type | Tooling |\n|---|---|---|\n| HTTP endpoint | Integration | `WebApplicationFactory\u003CProgram>` (`Microsoft.AspNetCore.Mvc.Testing`) and `HttpClient` |\n| Data access with real queries | Integration | Testcontainers module for the project's database, e.g. `Testcontainers.PostgreSql` or `Testcontainers.MsSql` |\n| Domain logic with no I\u002FO | Unit | Plain xUnit tests, no mocks |\n\nDo not test EF Core queries against the in-memory provider or SQLite when production uses another database: translation and behavior differ.\n\n## The loop\n\n1. **Red.** Write one failing test at an agreed seam. Run it and confirm it fails for the expected reason, not a compile error or setup problem.\n2. **Green.** Write the minimum production code to pass it. No speculative parameters, branches, or abstractions.\n3. **Repeat** with the next test. One seam, one test, one minimal change per cycle. Each test should respond to what the previous cycle taught you.\n4. **Refactor** only once the tests for the slice are green, and keep them green while you do.\n\nNever write a batch of tests up front and then implement them all: that tests imagined behavior and locks in structure before you understand it.\n\n## Changing existing code\n\n- Before optimizing or refactoring code without tests, write tests that pin its current behavior, including odd cases like duplicates or malformed input.\n- When fixing a bug, keep the test that reproduced it as a regression test.\n\n## What a good test looks like\n\n- **Behavior, not implementation.** It asserts on what a caller can observe: the response status and body, the returned value, the persisted state read back through the public API. It survives a refactor that keeps behavior the same.\n- **Independent expected values.** The expected value comes from a literal, a worked example, or the spec, never recomputed the way the code computes it.\n- **Arrange, Act, Assert**, with one behavior per test.\n- **Named for the behavior**: `Method_Scenario_ExpectedResult`, e.g. `CreateOrder_WithEmptyCart_Returns400`.\n- **Isolated.** No shared mutable state between tests. Integration tests reset or isolate their data (a fresh database per test class, or a transaction per test).\n\n## Mocking\n\n- Mock only what you don't own or can't run: third-party HTTP APIs, email, clocks (`TimeProvider`), randomness.\n- Don't mock `DbContext`, repositories over it, or your own services to test their callers: test through the real thing at a higher seam instead.\n- In endpoint tests, replace external dependencies in `WebApplicationFactory.ConfigureWebHost` via `ConfigureTestServices`.\n\n## Anti-patterns\n\n- Asserting that a mock was called instead of asserting the outcome.\n- Testing private methods, or making members `internal` only so tests can reach them.\n- `Assert.True(result != null)` style assertions that pass for wrong values.\n- `Thread.Sleep` or timing-based waits; use `TimeProvider` or polling with a timeout.\n- Catching exceptions in a test to make it pass.\n\n## Practicalities\n\n- Since .NET 10, a source generator makes the top-level `Program` class public, so `WebApplicationFactory\u003CProgram>` works without declaring `public partial class Program { }`. Add that declaration only on earlier versions.\n- Pass `TestContext.Current.CancellationToken` (xUnit v3) to async calls in tests.\n- Run the narrowest set of tests that covers the change while iterating, then the full suite before finishing.\n",{"name":5,"description":7},"main","242eef0b3c5b79c1c3929fa1a13ca9283ac5e5a3","template\u002F.claude\u002Fskills\u002Ftdd",1,"https:\u002F\u002Fgithub.com\u002Fdmamulashvili\u002Fdotnet-agent-kit","https:\u002F\u002Fgithub.com\u002Fdmamulashvili","Lead Software Engineer | .NET & Cloud Architecture | Building Scalable Platforms from Scratch","2026-11-10 22:36:20",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add dmamulashvili\u002Fdotnet-agent-kit --skill tdd",{"tool":38,"command":39},"bunx","bunx skills add dmamulashvili\u002Fdotnet-agent-kit --skill tdd",{"tool":41,"command":42},"pnpm","pnpm dlx skills add dmamulashvili\u002Fdotnet-agent-kit --skill tdd","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdmamulashvili\u002Fdotnet-agent-kit\u002Fblob\u002Fmain\u002Ftemplate\u002F.claude\u002Fskills\u002Ftdd\u002FSKILL.md",true,[],[47,55,63,71,79,87],{"skillNo":48,"name":49,"nameZh":6,"description":50,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":51,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M7F6TD596H0YHC5Y93RKVHW4","writing-for-agents","Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.","https:\u002F\u002Fgithub.com\u002Fdmamulashvili\u002Fdotnet-agent-kit\u002Fblob\u002Fmain\u002Ftemplate\u002F.claude\u002Fskills\u002Fwriting-for-agents\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fdmamulashvili\u002Fdotnet-agent-kit\u002Fblob\u002Fmain\u002Ftemplate\u002F.claude\u002Fskills\u002Fwriting-for-agents\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":59,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":19},"01M7F6T5EECW5H51CVE7B95HJE","retro","Conduct a retrospective on a coding session.","https:\u002F\u002Fgithub.com\u002Fdmamulashvili\u002Fdotnet-agent-kit\u002Fblob\u002Fmain\u002Ftemplate\u002F.claude\u002Fskills\u002Fretro\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fdmamulashvili\u002Fdotnet-agent-kit\u002Fblob\u002Fmain\u002Ftemplate\u002F.claude\u002Fskills\u002Fretro\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":67,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":19},"01M7F6T1KNSPD0035BE6XCV8E1","pr","Use when writing a PR body.","https:\u002F\u002Fgithub.com\u002Fdmamulashvili\u002Fdotnet-agent-kit\u002Fblob\u002Fmain\u002Ftemplate\u002F.claude\u002Fskills\u002Fpr\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fdmamulashvili\u002Fdotnet-agent-kit\u002Fblob\u002Fmain\u002Ftemplate\u002F.claude\u002Fskills\u002Fpr\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":75,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M7F6SVBZXQHS5HCQEHMZDT7X","postgresql","PostgreSQL gotchas and version-gated facts - indexing (B-tree, GIN, GiST, BRIN, partial, expression), JSONB, EXPLAIN ANALYZE and tuning, row-level security and multi-tenancy, full-text search, partitioning, connection pooling, extensions, logical replication, pgvector and RAG. Use when designing tables or indexes for PostgreSQL, writing or reviewing raw SQL, diagnosing a slow query, or choosing a PostgreSQL feature. For EF Core query performance use the optimizing-ef-core-queries skill; for migrations follow the ef-migrations rule.","https:\u002F\u002Fgithub.com\u002Fdmamulashvili\u002Fdotnet-agent-kit\u002Fblob\u002Fmain\u002Ftemplate\u002F.claude\u002Fskills\u002Fpostgresql\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fdmamulashvili\u002Fdotnet-agent-kit\u002Fblob\u002Fmain\u002Ftemplate\u002F.claude\u002Fskills\u002Fpostgresql\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":83,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M7F6SP3MCZGD6H6QE5MB5NRW","improve-codebase-architecture","Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.","https:\u002F\u002Fgithub.com\u002Fdmamulashvili\u002Fdotnet-agent-kit\u002Fblob\u002Fmain\u002Ftemplate\u002F.claude\u002Fskills\u002Fimprove-codebase-architecture\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fdmamulashvili\u002Fdotnet-agent-kit\u002Fblob\u002Fmain\u002Ftemplate\u002F.claude\u002Fskills\u002Fimprove-codebase-architecture\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":91,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":19},"01M7F6SHH53X7AEAH8DHY2SWN6","handoff","Compact the current conversation into a handoff document for another agent to pick up.","https:\u002F\u002Fgithub.com\u002Fdmamulashvili\u002Fdotnet-agent-kit\u002Fblob\u002Fmain\u002Ftemplate\u002F.claude\u002Fskills\u002Fhandoff\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fdmamulashvili\u002Fdotnet-agent-kit\u002Fblob\u002Fmain\u002Ftemplate\u002F.claude\u002Fskills\u002Fhandoff\u002FSKILL.md",[],[]]