[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M70FMJCKA1E80083CV8KYRQ5":3,"skill-same:01M70FMJCKA1E80083CV8KYRQ5":67},{"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":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":44,"commitSha":45,"skillDirectory":46,"forksCount":47,"repositoryHtmlUrl":48,"repositoryHomepageUrl":6,"ownerHtmlUrl":49,"ownerBlogUrl":50,"ownerDescription":51,"updatedAt":52,"install":53,"resources":66},"01M70FMJCKA1E80083CV8KYRQ5","csharp-testing-standards",null,"Defines the testing standards, patterns, and conventions for all C# unit and integration test projects. Rules cover test framework usage, naming, structure, mocking, assertions, and parameterization. Apply these rules uniformly across all test projects.","linuxchata\u002Fai-playbook","linuxchata","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F4677708?v=4","01M70FKZZ754E4J9YW50S4W529","LinuxChata","01M70FKZZWGNFS9T7BBZ490ZW1",7,"MIT","https:\u002F\u002Fgithub.com\u002Flinuxchata\u002Fai-playbook\u002Fblob\u002Fmain\u002F.gemini\u002Fskills\u002Fcsharp-testing-standards\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"testing standards","csharp testing standards","csharp testing","testing","standards","csharp","integration test","Rules","patterns","structure","across","projects","unit","mocking","usage","cover","for","assertions","framework","apply","2026-11-10 10:12:30",false,"---\nname: csharp-testing-standards\ndescription: Defines the testing standards, patterns, and conventions for all C# unit and integration test projects. Rules cover test framework usage, naming, structure, mocking, assertions, and parameterization. Apply these rules uniformly across all test projects.\n---\n\n# C# Testing Standards\n\n## Description\n\nDefines the testing standards, patterns, and conventions for all C# unit and integration test projects. Rules cover test framework usage, naming, structure, mocking, assertions, and parameterization. Apply these rules uniformly across all test projects.\n\n---\n\n## 1. Framework & Tooling\n\n- **Test framework**: NUnit 3\n- **Mocking**: Moq\n- **Coverage**: coverlet.collector\n- **Test runner**: `Microsoft.NET.Test.Sdk` + `NUnit3TestAdapter`\n\nCore NUnit attributes in use:\n\n| Attribute | Purpose |\n|---|---|\n| `[TestFixture]` | Marks the test class |\n| `[Test]` | Marks a single test method |\n| `[SetUp]` | Runs before each test |\n| `[TearDown]` | Runs after each test |\n| `[OneTimeSetUp]` | Runs once before all tests in the fixture |\n| `[TestCase]` | Parameterized test inline values |\n\n---\n\n## 2. Test Class Structure\n\n### 2.1 Visibility\n\nTest classes are `internal`. They do not need to be `public` – NUnit discovers them via the test runner regardless.\n\n```csharp\n[TestFixture]\ninternal class OrderServiceTests { }\n```\n\n### 2.2 System Under Test Field\n\nName the field under test `_sut` (system under test) and initialize it in `[SetUp]`:\n\n```csharp\nprivate OrderService _sut = null!;\n```\n\n### 2.3 Mock Fields\n\nDeclare all mocks as class-level fields initialized in `[SetUp]`:\n\n```csharp\nprivate Mock\u003CIOrderRepository> _orderRepositoryMock = null!;\nprivate Mock\u003CILogger\u003COrderService>> _loggerMock = null!;\n```\n\n### 2.4 SetUp Method\n\n- Initialize all mocks and the SUT in the `[SetUp]` method.\n- Configure **happy-path** default behaviors here so individual tests only override what they specifically need.\n- Keep `[SetUp]` focused – it should not contain assertions or complex logic.\n\n```csharp\n[SetUp]\npublic void Setup()\n{\n    _orderRepositoryMock = new Mock\u003CIOrderRepository>();\n    _orderRepositoryMock\n        .Setup(r => r.GetByIdAsync(It.IsAny\u003CGuid>(), It.IsAny\u003CCancellationToken>()))\n        .ReturnsAsync((Order?)null);\n\n    _sut = new OrderService(\n        _orderRepositoryMock.Object,\n        NullLogger\u003COrderService>.Instance);\n}\n```\n\n---\n\n## 3. Test Method Naming\n\n### 3.1 Pattern\n\n```\nMethodName_WhenCondition_ThenExpectedBehavior\n```\n\n- **MethodName** – the method being tested (must match the implementation exactly).\n- **WhenCondition** – the specific input state or pre-condition being exercised.\n- **ThenExpectedBehavior** – the exact outcome that is asserted.\n\n```csharp\n\u002F\u002F ✅ Correct\npublic async Task GetByIdAsync_WhenOrderDoesNotExist_ThenReturnsNull()\npublic async Task CreateAsync_WhenRequestIsValid_ThenPersistsAndReturnsSuccess()\npublic void Validate_WhenAmountIsNegative_ThenReturnsInvalidResult()\n\n\u002F\u002F ❌ Wrong – vague and non-descriptive\npublic async Task TestGetOrder()\npublic async Task CreateOrder_Success()\n```\n\n### 3.2 Async Test Methods\n\nAll async test methods that are `async Task` must also follow the `Async` suffix rule:\n\n```csharp\n\u002F\u002F ✅ Correct\npublic async Task CreateAsync_WhenRequestIsValid_ThenReturnsSuccess()\n\n\u002F\u002F ❌ Wrong\npublic async Task Create_WhenRequestIsValid_ThenReturnsSuccess()\n```\n\n---\n\n## 4. Arrange \u002F Act \u002F Assert\n\nEvery test body must follow the three-section AAA structure, with explicit comments:\n\n```csharp\n[Test]\npublic async Task GetByIdAsync_WhenOrderExists_ThenReturnsOrder()\n{\n    \u002F\u002F Arrange\n    var orderId = Guid.NewGuid();\n    var order = new Order { Id = orderId, CustomerName = \"Alice\" };\n    _orderRepositoryMock\n        .Setup(r => r.GetByIdAsync(orderId, It.IsAny\u003CCancellationToken>()))\n        .ReturnsAsync(order);\n\n    \u002F\u002F Act\n    var result = await _sut.GetByIdAsync(orderId, It.IsAny\u003CCancellationToken>());\n\n    \u002F\u002F Assert\n    Assert.That(result, Is.Not.Null);\n    Assert.That(result!.CustomerName, Is.EqualTo(\"Alice\"));\n}\n```\n\n---\n\n## 5. Assertions\n\n### 5.1 Constraint Model\n\nAlways use `Assert.That(actual, constraint)` – the NUnit constraint model. Avoid the classic assertion API:\n\n```csharp\n\u002F\u002F ✅ Correct – constraint model\nAssert.That(result, Is.Not.Null);\nAssert.That(result.IsValid, Is.True);\nAssert.That(result.Message, Is.Null);\nAssert.That(items, Has.Length.EqualTo(2));\nAssert.That(items, Is.EquivalentTo(expected));\n\n\u002F\u002F ❌ Avoid – classic API\nAssert.IsNotNull(result);\nAssert.IsTrue(result.IsValid);\nAssert.AreEqual(2, items.Length);\n```\n\n### 5.2 Exception Assertions\n\nUse `Assert.ThrowsAsync\u003CT>` for async methods that are expected to throw:\n\n```csharp\nAssert.ThrowsAsync\u003CArgumentNullException>(\n    () => _sut.CreateAsync(null!, It.IsAny\u003CCancellationToken>()));\n```\n\n### 5.3 Mock Verification\n\nUse `.Verify()` only when asserting that a side-effecting call was (or was not) made. Do not use `.Verify()` as a substitute for return value assertions:\n\n```csharp\n\u002F\u002F ✅ Correct – asserting a save was triggered exactly once\n_orderRepositoryMock.Verify(\n    r => r.SaveAsync(It.IsAny\u003COrder>(), It.IsAny\u003CCancellationToken>()),\n    Times.Once);\n\n\u002F\u002F ✅ Correct – asserting a call was never made\n_orderRepositoryMock.Verify(\n    r => r.DeleteAsync(It.IsAny\u003CGuid>(), It.IsAny\u003CCancellationToken>()),\n    Times.Never);\n```\n\n---\n\n## 6. Parameterized Tests\n\nUse `[TestCase]` for boundary values (null, empty, whitespace, zero, negative) rather than duplicating test logic:\n\n```csharp\n[TestCase(null!)]\n[TestCase(\"\")]\n[TestCase(\"   \")]\npublic async Task CreateAsync_WhenCustomerNameIsEmpty_ThenReturnsFailure(string customerName)\n{\n    \u002F\u002F Arrange\n    var request = new CreateOrderRequest { CustomerName = customerName };\n\n    \u002F\u002F Act\n    var result = await _sut.CreateAsync(request, It.IsAny\u003CCancellationToken>());\n\n    \u002F\u002F Assert\n    Assert.That(result.IsValid, Is.False);\n}\n```\n\nFor multiple varying inputs, prefer `[TestCaseSource]` over stacking many `[TestCase]` attributes:\n\n```csharp\nprivate static IEnumerable\u003CTestCaseData> InvalidAmounts()\n{\n    yield return new TestCaseData(0m).SetName(\"Zero\");\n    yield return new TestCaseData(-1m).SetName(\"Negative\");\n    yield return new TestCaseData(decimal.MinValue).SetName(\"MinValue\");\n}\n\n[TestCaseSource(nameof(InvalidAmounts))]\npublic void Validate_WhenAmountIsInvalid_ThenReturnsInvalidResult(decimal amount) { ... }\n```\n\n---\n\n## 7. Mocking Best Practices\n\n### 7.1 Mock Only What You Control\n\nOnly mock types that your code directly depends on (interfaces, abstract classes in your own codebase). Never mock types owned by third-party libraries or the .NET runtime.\n\n### 7.2 Loose vs Strict Mocks\n\nUse the default **loose** mock behavior (`MockBehavior.Default`). Use `MockBehavior.Strict` only when you need to assert that no unexpected calls are made.\n\n### 7.3 Use `It.IsAny\u003CT>()` in SetUp\n\nConfigure broad default behaviours in `[SetUp]` using `It.IsAny\u003CT>()`. Narrow down to exact arguments only in tests that specifically need it:\n\n```csharp\n\u002F\u002F SetUp – broad default\n_repositoryMock\n    .Setup(r => r.GetByIdAsync(It.IsAny\u003CGuid>(), It.IsAny\u003CCancellationToken>()))\n    .ReturnsAsync((Order?)null);\n\n\u002F\u002F Individual test – specific input\n_repositoryMock\n    .Setup(r => r.GetByIdAsync(specificId, It.IsAny\u003CCancellationToken>()))\n    .ReturnsAsync(specificOrder);\n```\n\n### 7.4 Use `NullLogger\u003CT>` in Tests\n\nNever mock `ILogger\u003CT>`. Use `NullLogger\u003CT>.Instance` from `Microsoft.Extensions.Logging.Abstractions`:\n\n```csharp\n_sut = new OrderService(_repositoryMock.Object, NullLogger\u003COrderService>.Instance);\n```\n\n---\n\n## 8. Test Organization\n\n### 8.1 Test Project Naming\n\nEach production project has a corresponding test project with `.Tests` appended to the name:\n\n```\nMyApp.Core        → MyApp.Core.Tests\nMyApp.DataAccess  → MyApp.DataAccess.Tests\n```\n\n### 8.2 Folder Mirroring\n\nMirror the folder structure of the production project inside the test project. Each production class has a corresponding `\u003CClassName>Tests.cs` file in the same relative folder.\n\n### 8.3 Test Data Builders\n\nExtract repeated object construction into dedicated builder classes or static factory methods to keep tests readable:\n\n```csharp\ninternal static class OrderBuilder\n{\n    public static Order Build(Guid? id = null, string customerName = \"Default Customer\")\n    {\n        return new Order\n        {\n            Id = id ?? Guid.NewGuid(),\n            CustomerName = customerName,\n            TotalAmount = 100m,\n        };\n    }\n}\n```\n\n---\n\n## Quick Reference Checklist\n\nBefore submitting any test file, verify:\n\n- [ ] Test class is `internal` with `[TestFixture]`\n- [ ] SUT is named `_sut` and initialized in `[SetUp]`\n- [ ] All mocks declared as fields and initialized in `[SetUp]`\n- [ ] Test method follows `MethodName_WhenCondition_ThenExpectedBehavior`\n- [ ] Every test body has `\u002F\u002F Arrange`, `\u002F\u002F Act`, `\u002F\u002F Assert` sections\n- [ ] Assertions use `Assert.That(...)` constraint model\n- [ ] `ILogger\u003CT>` is not mocked – `NullLogger\u003CT>.Instance` used instead\n- [ ] `[TestCase]` used for boundary values, not duplicate test methods\n- [ ] `.Verify()` used only for side-effect assertions, not return value checks\n","# C# Testing Standards\n\n## Description\n\nDefines the testing standards, patterns, and conventions for all C# unit and integration test projects. Rules cover test framework usage, naming, structure, mocking, assertions, and parameterization. Apply these rules uniformly across all test projects.\n\n---\n\n## 1. Framework & Tooling\n\n- **Test framework**: NUnit 3\n- **Mocking**: Moq\n- **Coverage**: coverlet.collector\n- **Test runner**: `Microsoft.NET.Test.Sdk` + `NUnit3TestAdapter`\n\nCore NUnit attributes in use:\n\n| Attribute | Purpose |\n|---|---|\n| `[TestFixture]` | Marks the test class |\n| `[Test]` | Marks a single test method |\n| `[SetUp]` | Runs before each test |\n| `[TearDown]` | Runs after each test |\n| `[OneTimeSetUp]` | Runs once before all tests in the fixture |\n| `[TestCase]` | Parameterized test inline values |\n\n---\n\n## 2. Test Class Structure\n\n### 2.1 Visibility\n\nTest classes are `internal`. They do not need to be `public` – NUnit discovers them via the test runner regardless.\n\n```csharp\n[TestFixture]\ninternal class OrderServiceTests { }\n```\n\n### 2.2 System Under Test Field\n\nName the field under test `_sut` (system under test) and initialize it in `[SetUp]`:\n\n```csharp\nprivate OrderService _sut = null!;\n```\n\n### 2.3 Mock Fields\n\nDeclare all mocks as class-level fields initialized in `[SetUp]`:\n\n```csharp\nprivate Mock\u003CIOrderRepository> _orderRepositoryMock = null!;\nprivate Mock\u003CILogger\u003COrderService>> _loggerMock = null!;\n```\n\n### 2.4 SetUp Method\n\n- Initialize all mocks and the SUT in the `[SetUp]` method.\n- Configure **happy-path** default behaviors here so individual tests only override what they specifically need.\n- Keep `[SetUp]` focused – it should not contain assertions or complex logic.\n\n```csharp\n[SetUp]\npublic void Setup()\n{\n    _orderRepositoryMock = new Mock\u003CIOrderRepository>();\n    _orderRepositoryMock\n        .Setup(r => r.GetByIdAsync(It.IsAny\u003CGuid>(), It.IsAny\u003CCancellationToken>()))\n        .ReturnsAsync((Order?)null);\n\n    _sut = new OrderService(\n        _orderRepositoryMock.Object,\n        NullLogger\u003COrderService>.Instance);\n}\n```\n\n---\n\n## 3. Test Method Naming\n\n### 3.1 Pattern\n\n```\nMethodName_WhenCondition_ThenExpectedBehavior\n```\n\n- **MethodName** – the method being tested (must match the implementation exactly).\n- **WhenCondition** – the specific input state or pre-condition being exercised.\n- **ThenExpectedBehavior** – the exact outcome that is asserted.\n\n```csharp\n\u002F\u002F ✅ Correct\npublic async Task GetByIdAsync_WhenOrderDoesNotExist_ThenReturnsNull()\npublic async Task CreateAsync_WhenRequestIsValid_ThenPersistsAndReturnsSuccess()\npublic void Validate_WhenAmountIsNegative_ThenReturnsInvalidResult()\n\n\u002F\u002F ❌ Wrong – vague and non-descriptive\npublic async Task TestGetOrder()\npublic async Task CreateOrder_Success()\n```\n\n### 3.2 Async Test Methods\n\nAll async test methods that are `async Task` must also follow the `Async` suffix rule:\n\n```csharp\n\u002F\u002F ✅ Correct\npublic async Task CreateAsync_WhenRequestIsValid_ThenReturnsSuccess()\n\n\u002F\u002F ❌ Wrong\npublic async Task Create_WhenRequestIsValid_ThenReturnsSuccess()\n```\n\n---\n\n## 4. Arrange \u002F Act \u002F Assert\n\nEvery test body must follow the three-section AAA structure, with explicit comments:\n\n```csharp\n[Test]\npublic async Task GetByIdAsync_WhenOrderExists_ThenReturnsOrder()\n{\n    \u002F\u002F Arrange\n    var orderId = Guid.NewGuid();\n    var order = new Order { Id = orderId, CustomerName = \"Alice\" };\n    _orderRepositoryMock\n        .Setup(r => r.GetByIdAsync(orderId, It.IsAny\u003CCancellationToken>()))\n        .ReturnsAsync(order);\n\n    \u002F\u002F Act\n    var result = await _sut.GetByIdAsync(orderId, It.IsAny\u003CCancellationToken>());\n\n    \u002F\u002F Assert\n    Assert.That(result, Is.Not.Null);\n    Assert.That(result!.CustomerName, Is.EqualTo(\"Alice\"));\n}\n```\n\n---\n\n## 5. Assertions\n\n### 5.1 Constraint Model\n\nAlways use `Assert.That(actual, constraint)` – the NUnit constraint model. Avoid the classic assertion API:\n\n```csharp\n\u002F\u002F ✅ Correct – constraint model\nAssert.That(result, Is.Not.Null);\nAssert.That(result.IsValid, Is.True);\nAssert.That(result.Message, Is.Null);\nAssert.That(items, Has.Length.EqualTo(2));\nAssert.That(items, Is.EquivalentTo(expected));\n\n\u002F\u002F ❌ Avoid – classic API\nAssert.IsNotNull(result);\nAssert.IsTrue(result.IsValid);\nAssert.AreEqual(2, items.Length);\n```\n\n### 5.2 Exception Assertions\n\nUse `Assert.ThrowsAsync\u003CT>` for async methods that are expected to throw:\n\n```csharp\nAssert.ThrowsAsync\u003CArgumentNullException>(\n    () => _sut.CreateAsync(null!, It.IsAny\u003CCancellationToken>()));\n```\n\n### 5.3 Mock Verification\n\nUse `.Verify()` only when asserting that a side-effecting call was (or was not) made. Do not use `.Verify()` as a substitute for return value assertions:\n\n```csharp\n\u002F\u002F ✅ Correct – asserting a save was triggered exactly once\n_orderRepositoryMock.Verify(\n    r => r.SaveAsync(It.IsAny\u003COrder>(), It.IsAny\u003CCancellationToken>()),\n    Times.Once);\n\n\u002F\u002F ✅ Correct – asserting a call was never made\n_orderRepositoryMock.Verify(\n    r => r.DeleteAsync(It.IsAny\u003CGuid>(), It.IsAny\u003CCancellationToken>()),\n    Times.Never);\n```\n\n---\n\n## 6. Parameterized Tests\n\nUse `[TestCase]` for boundary values (null, empty, whitespace, zero, negative) rather than duplicating test logic:\n\n```csharp\n[TestCase(null!)]\n[TestCase(\"\")]\n[TestCase(\"   \")]\npublic async Task CreateAsync_WhenCustomerNameIsEmpty_ThenReturnsFailure(string customerName)\n{\n    \u002F\u002F Arrange\n    var request = new CreateOrderRequest { CustomerName = customerName };\n\n    \u002F\u002F Act\n    var result = await _sut.CreateAsync(request, It.IsAny\u003CCancellationToken>());\n\n    \u002F\u002F Assert\n    Assert.That(result.IsValid, Is.False);\n}\n```\n\nFor multiple varying inputs, prefer `[TestCaseSource]` over stacking many `[TestCase]` attributes:\n\n```csharp\nprivate static IEnumerable\u003CTestCaseData> InvalidAmounts()\n{\n    yield return new TestCaseData(0m).SetName(\"Zero\");\n    yield return new TestCaseData(-1m).SetName(\"Negative\");\n    yield return new TestCaseData(decimal.MinValue).SetName(\"MinValue\");\n}\n\n[TestCaseSource(nameof(InvalidAmounts))]\npublic void Validate_WhenAmountIsInvalid_ThenReturnsInvalidResult(decimal amount) { ... }\n```\n\n---\n\n## 7. Mocking Best Practices\n\n### 7.1 Mock Only What You Control\n\nOnly mock types that your code directly depends on (interfaces, abstract classes in your own codebase). Never mock types owned by third-party libraries or the .NET runtime.\n\n### 7.2 Loose vs Strict Mocks\n\nUse the default **loose** mock behavior (`MockBehavior.Default`). Use `MockBehavior.Strict` only when you need to assert that no unexpected calls are made.\n\n### 7.3 Use `It.IsAny\u003CT>()` in SetUp\n\nConfigure broad default behaviours in `[SetUp]` using `It.IsAny\u003CT>()`. Narrow down to exact arguments only in tests that specifically need it:\n\n```csharp\n\u002F\u002F SetUp – broad default\n_repositoryMock\n    .Setup(r => r.GetByIdAsync(It.IsAny\u003CGuid>(), It.IsAny\u003CCancellationToken>()))\n    .ReturnsAsync((Order?)null);\n\n\u002F\u002F Individual test – specific input\n_repositoryMock\n    .Setup(r => r.GetByIdAsync(specificId, It.IsAny\u003CCancellationToken>()))\n    .ReturnsAsync(specificOrder);\n```\n\n### 7.4 Use `NullLogger\u003CT>` in Tests\n\nNever mock `ILogger\u003CT>`. Use `NullLogger\u003CT>.Instance` from `Microsoft.Extensions.Logging.Abstractions`:\n\n```csharp\n_sut = new OrderService(_repositoryMock.Object, NullLogger\u003COrderService>.Instance);\n```\n\n---\n\n## 8. Test Organization\n\n### 8.1 Test Project Naming\n\nEach production project has a corresponding test project with `.Tests` appended to the name:\n\n```\nMyApp.Core        → MyApp.Core.Tests\nMyApp.DataAccess  → MyApp.DataAccess.Tests\n```\n\n### 8.2 Folder Mirroring\n\nMirror the folder structure of the production project inside the test project. Each production class has a corresponding `\u003CClassName>Tests.cs` file in the same relative folder.\n\n### 8.3 Test Data Builders\n\nExtract repeated object construction into dedicated builder classes or static factory methods to keep tests readable:\n\n```csharp\ninternal static class OrderBuilder\n{\n    public static Order Build(Guid? id = null, string customerName = \"Default Customer\")\n    {\n        return new Order\n        {\n            Id = id ?? Guid.NewGuid(),\n            CustomerName = customerName,\n            TotalAmount = 100m,\n        };\n    }\n}\n```\n\n---\n\n## Quick Reference Checklist\n\nBefore submitting any test file, verify:\n\n- [ ] Test class is `internal` with `[TestFixture]`\n- [ ] SUT is named `_sut` and initialized in `[SetUp]`\n- [ ] All mocks declared as fields and initialized in `[SetUp]`\n- [ ] Test method follows `MethodName_WhenCondition_ThenExpectedBehavior`\n- [ ] Every test body has `\u002F\u002F Arrange`, `\u002F\u002F Act`, `\u002F\u002F Assert` sections\n- [ ] Assertions use `Assert.That(...)` constraint model\n- [ ] `ILogger\u003CT>` is not mocked – `NullLogger\u003CT>.Instance` used instead\n- [ ] `[TestCase]` used for boundary values, not duplicate test methods\n- [ ] `.Verify()` used only for side-effect assertions, not return value checks\n",{"name":5,"description":7},"main","d9396b885cd7f0f2db22f78208565be82ba0d0b1",".gemini\u002Fskills\u002Fcsharp-testing-standards",0,"https:\u002F\u002Fgithub.com\u002Flinuxchata\u002Fai-playbook","https:\u002F\u002Fgithub.com\u002Flinuxchata","https:\u002F\u002Fshark-fido2.com","Improving a WebAuthn library for stronger, passwordless authentication","2026-05-15 14:54:09",{"source":8,"skillName":5,"commands":54,"prompt":64,"zipAvailable":65},[55,58,61],{"tool":56,"command":57},"npx","npx skills add linuxchata\u002Fai-playbook --skill csharp-testing-standards",{"tool":59,"command":60},"bunx","bunx skills add linuxchata\u002Fai-playbook --skill csharp-testing-standards",{"tool":62,"command":63},"pnpm","pnpm dlx skills add linuxchata\u002Fai-playbook --skill csharp-testing-standards","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flinuxchata\u002Fai-playbook\u002Fblob\u002Fmain\u002F.gemini\u002Fskills\u002Fcsharp-testing-standards\u002FSKILL.md",true,[],[68,76,85,103,119,124],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":39},"01M70FMR99EKK910WZNEA5Y3FC","{name=null}","{description=null}","https:\u002F\u002Fgithub.com\u002Flinuxchata\u002Fai-playbook\u002Fblob\u002Fmain\u002Ftemplates\u002F.gemini\u002FSKILL.md",[],[70,75],"name",{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":39},"01M70FMNCNTWPW39VHVKKH2Y2V","[name]","[description]","https:\u002F\u002Fgithub.com\u002Flinuxchata\u002Fai-playbook\u002Fblob\u002Fmain\u002Ftemplates\u002F.claude\u002FSKILL.md",[],[75,78,83,84],"version","metadata",{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":39},"01M70FMEPB0ZNVDWGSSH7WQH3A","csharp-coding-standards","Defines the C# coding standards, patterns, and conventions to be applied consistently across all C# projects. Rules cover naming, structure, async patterns, null handling, dependency injection, logging, result patterns, and formatting. Apply these rules uniformly in all production code.","https:\u002F\u002Fgithub.com\u002Flinuxchata\u002Fai-playbook\u002Fblob\u002Fmain\u002F.gemini\u002Fskills\u002Fcsharp-coding-standards\u002FSKILL.md",[],[92,23,93,24,94,95,30,28,26,38,96,97,29,98,99,34,27,100,101,102],"coding","coding standards","csharp coding standards","injection","C#","code","result","dependency","formatting","logging","dependency injection",{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":39},"01M70FMBREZHWVGG3HNSZ9WJ9Q","csharp-api-controller-standards","Defines the coding standards, patterns, and conventions for ASP.NET Core REST API controllers. Rules cover routing, HTTP verbs, response types, XML documentation, dependency injection, and asynchronous execution. Apply these rules uniformly to ensure a consistent, predictable, and well-documented API surface.","https:\u002F\u002Fgithub.com\u002Flinuxchata\u002Fai-playbook\u002Fblob\u002Fmain\u002F.gemini\u002Fskills\u002Fcsharp-api-controller-standards\u002FSKILL.md",[],[110,111,112,23,24,92,102,113,35,114,115,26,27,116,117,118,99,93,34,95],"csharp api controller standards","api","controller","core","execution","http","types","asynchronous","documentation",{"skillNo":120,"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":121,"categories":122,"keywords":123,"publishedAt":39},"01M70FM8TDR0AMB13QY51PWPJH","https:\u002F\u002Fgithub.com\u002Flinuxchata\u002Fai-playbook\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fcsharp-testing-standards\u002FSKILL.md",[],[19,21,23,24,20,22,32,31,30,29,28,34,27,37,33,35,25,36,26,38],{"skillNo":125,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":126,"categories":127,"keywords":128,"publishedAt":39},"01M70FM5038ENYXF2RSB4CKDH0","https:\u002F\u002Fgithub.com\u002Flinuxchata\u002Fai-playbook\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fcsharp-coding-standards\u002FSKILL.md",[],[93,92,94,24,23,98,28,29,97,30,38,26,129,102,101,100,27,95,34,99],"async"]