[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6CWB9QTH9JYBMDGWHQ4YE8D":3,"skill-same:01M6CWB9QTH9JYBMDGWHQ4YE8D":76},{"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":34,"linkOnly":35,"markdownContent":36,"markdownBody":37,"frontMatter":38,"refName":39,"commitSha":40,"skillDirectory":41,"forksCount":42,"repositoryHtmlUrl":43,"repositoryHomepageUrl":6,"ownerHtmlUrl":44,"ownerBlogUrl":45,"ownerDescription":46,"updatedAt":47,"install":48,"resources":61},"01M6CWB9QTH9JYBMDGWHQ4YE8D","common-testing-conventions",null,"Mandatory testing conventions including AAA pattern, test naming, and assertions for Python with pytest. Use when writing unit tests, integration tests, or verifying mock interactions for any module in this project.","ametsCS\u002Fbiorce-mini","ametsCS","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F124674245?v=4","01M6CWAZ4K8DYKR0C3Q3V7NH65","Amets Carrera","01M6CWAZ8PS5QA55VC21A98E9S",2,"MIT","https:\u002F\u002Fgithub.com\u002FametsCS\u002Fbiorce-mini\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fcommon-testing-conventions\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33],"testing","common","conventions","testing conventions","common testing conventions","writing","python","test","integration tests","unit tests","integration","use","pytest","pattern","project","2026-11-10 10:12:30",false,"---\nname: common-testing-conventions\ndescription: Mandatory testing conventions including AAA pattern, test naming, and assertions for Python with pytest. Use when writing unit tests, integration tests, or verifying mock interactions for any module in this project.\n---\n\n# Testing Conventions Skill\n\nMandatory testing conventions for biorce-mini. All tests are written in Python using\npytest.\n\n## When to Use\n\n- Writing unit tests for LangGraph nodes, RAG functions, or LLM client\n- Writing integration tests against Chroma or the Gemini API\n- Setting up test class structure or fixtures\n- Verifying mock interactions\n\n## Supporting Files\n\n| File | Description |\n|------|-------------|\n| [python.md](.\u002Fpython.md) | Python testing stack (pytest, Mock\u002FAsyncMock, pytest-snapshot, Pydantic) |\n| [examples.md](.\u002Fexamples.md) | Full test examples |\n| [reference.md](.\u002Freference.md) | Naming rules, anti-patterns, checklist |\n\n## Core Principles\n\n### 1. AAA Pattern (Mandatory)\n\nAll tests **MUST** follow Arrange-Act-Assert with clear comments:\n\n```python\ndef test_should_return_chunks_when_query_matches_documents():\n    # Arrange\n    collection = build_test_collection(docs=[\"aspirin reduces inflammation\"])\n    sut = Retriever(collection)\n\n    # Act\n    actual = sut.retrieve(query=\"aspirin\")\n\n    # Assert\n    assert len(actual) > 0\n    assert \"aspirin\" in actual[0].lower()\n```\n\n**Rules:**\n\n- Each section clearly separated by comments\n- Never mix phases\n- **No `if`, `switch`, or conditional logic** inside Arrange, Act, or Assert\n- **No `try\u002Fcatch`** inside the AAA blocks — use `pytest.raises()` instead\n- Omit a comment only if that section is empty\n- If a test needs branching, split into separate test functions (one per scenario)\n\n### 2. Test Naming Convention\n\n```txt\ntest_should_{expected_behavior}_when_{condition}\n```\n\n| ✓ Good | ✗ Bad |\n|-------|-------|\n| `test_should_return_chunks_when_query_matches` | `test_retrieve` |\n| `test_should_raise_when_api_key_missing` | `test_error_case` |\n| `test_should_return_empty_when_no_documents` | `test_should_work` |\n\n### 3. Standard Variables\n\n| Purpose | Name |\n|---------|------|\n| Subject under test | `sut` |\n| Expected value | `expected` |\n| Actual result | `actual` |\n\n```python\nexpected = [\"chunk about aspirin\"]\nactual = sut.retrieve(query=\"aspirin\")\nassert actual == expected\n```\n\n## Test Structure\n\n```python\nimport pytest\nfrom unittest.mock import MagicMock\nfrom src.rag import Retriever\n\nclass TestRetriever:\n    def setup_method(self):\n        self.mock_collection = MagicMock()\n        self.sut = Retriever(self.mock_collection)\n\n    def test_should_return_chunks_when_query_matches(self):\n        # Arrange\n        self.mock_collection.query.return_value = {\n            \"documents\": [[\"aspirin reduces fever\"]],\n            \"distances\": [[0.12]],\n        }\n\n        # Act\n        actual = self.sut.retrieve(query=\"aspirin\")\n\n        # Assert\n        assert actual == [\"aspirin reduces fever\"]\n        self.mock_collection.query.assert_called_once()\n```\n\n## Related Skills\n\n- **python-testing:** Python-specific AAA pattern, pytest configuration, mocks, builders\n\n}\n```\n\n**Rules:**\n\n- Each section clearly separated by comments\n- Never mix phases\n- **No `if`, `switch`, or conditional logic** inside Arrange, Act, or Assert blocks\n- **No `try\u002Fcatch`** inside Arrange, Act, or Assert blocks\n- For exceptions, use `AwesomeAssertions` `.Should().ThrowAsync\u003CT>()` or Jest `expect(...).rejects.toThrow()`\n- Omit comment if section is empty\n- If a test needs branching, split it into separate test methods (one per scenario)\n\n### 2. Test Naming Convention\n\n```txt\nShould_{ExpectedBehavior}_When_{Condition}\n```\n\n| ✓ Good                                       | ✗ Bad             |\n| -------------------------------------------- | ----------------- |\n| `Should_CreateGroup_When_RequestIsValid`     | `TestCreateGroup` |\n| `Should_ThrowNotFound_When_UserDoesNotExist` | `\"should login\"`  |\n| `Should_ReturnEmptyList_When_NoRecordsFound` | `Should_Work`     |\n\n### 3. Standard Variables\n\n| Purpose | Name |\n| ------- | ---- |\n| Subject under test | `sut` |\n| Expected value | `expected` |\n| Actual result | `actual` |\n\n```csharp\nvar expected = GroupMother.Create(id: groupId);\nvar actual = await _sut.Handle(query, CancellationToken.None);\nactual.Id.Should().Be(expected.Id);\n```\n\n## Test Class Structure (C#)\n\n```csharp\npublic class CreateGroupCommandHandlerTests\n{\n    private readonly Fixture _fixture;\n    private readonly CreateGroupCommandHandler _sut;\n    private readonly IBoehringerRepository _repository;\n\n    public CreateGroupCommandHandlerTests()\n    {\n        _fixture = new();\n        _repository = Substitute.For\u003CIBoehringerRepository>();\n        _sut = new(_repository);\n    }\n\n    [Fact]\n    public async Task Should_CreateGroup_When_RequestIsValid()\n    {\n        \u002F\u002F Test implementation\n    }\n}\n```\n\n## Libraries by Stack\n\nSee the dedicated supporting file for each stack:\n\n- **.NET Backend:** [dotnet.md](.\u002Fdotnet.md) — xUnit, AwesomeAssertions, NSubstitute,\n  AutoFixture, Bogus, Verify.Xunit, WireMock.Net, Testcontainers (PostgreSQL,\n  LocalStack)\n- **Frontend & IaC (TypeScript):** [frontend.md](.\u002Ffrontend.md) — Jest,\n  @testing-library\u002Freact, Playwright, Biome\n- **Python:** [python.md](.\u002Fpython.md) — pytest, pytest-asyncio, pytest-snapshot,\n  unittest.mock, black, mypy, Pydantic\n\n## Related Skills\n\n- **dotnet-test-doubles:** Bogus, AutoFixture, NSubstitute, WireMock patterns\n- **dotnet-integration-testing:** Testcontainers, LocalStack, WebApplicationFactory\n- **python-testing:** Python-specific AAA pattern, pytest configuration\n","# Testing Conventions Skill\n\nMandatory testing conventions for biorce-mini. All tests are written in Python using\npytest.\n\n## When to Use\n\n- Writing unit tests for LangGraph nodes, RAG functions, or LLM client\n- Writing integration tests against Chroma or the Gemini API\n- Setting up test class structure or fixtures\n- Verifying mock interactions\n\n## Supporting Files\n\n| File | Description |\n|------|-------------|\n| [python.md](.\u002Fpython.md) | Python testing stack (pytest, Mock\u002FAsyncMock, pytest-snapshot, Pydantic) |\n| [examples.md](.\u002Fexamples.md) | Full test examples |\n| [reference.md](.\u002Freference.md) | Naming rules, anti-patterns, checklist |\n\n## Core Principles\n\n### 1. AAA Pattern (Mandatory)\n\nAll tests **MUST** follow Arrange-Act-Assert with clear comments:\n\n```python\ndef test_should_return_chunks_when_query_matches_documents():\n    # Arrange\n    collection = build_test_collection(docs=[\"aspirin reduces inflammation\"])\n    sut = Retriever(collection)\n\n    # Act\n    actual = sut.retrieve(query=\"aspirin\")\n\n    # Assert\n    assert len(actual) > 0\n    assert \"aspirin\" in actual[0].lower()\n```\n\n**Rules:**\n\n- Each section clearly separated by comments\n- Never mix phases\n- **No `if`, `switch`, or conditional logic** inside Arrange, Act, or Assert\n- **No `try\u002Fcatch`** inside the AAA blocks — use `pytest.raises()` instead\n- Omit a comment only if that section is empty\n- If a test needs branching, split into separate test functions (one per scenario)\n\n### 2. Test Naming Convention\n\n```txt\ntest_should_{expected_behavior}_when_{condition}\n```\n\n| ✓ Good | ✗ Bad |\n|-------|-------|\n| `test_should_return_chunks_when_query_matches` | `test_retrieve` |\n| `test_should_raise_when_api_key_missing` | `test_error_case` |\n| `test_should_return_empty_when_no_documents` | `test_should_work` |\n\n### 3. Standard Variables\n\n| Purpose | Name |\n|---------|------|\n| Subject under test | `sut` |\n| Expected value | `expected` |\n| Actual result | `actual` |\n\n```python\nexpected = [\"chunk about aspirin\"]\nactual = sut.retrieve(query=\"aspirin\")\nassert actual == expected\n```\n\n## Test Structure\n\n```python\nimport pytest\nfrom unittest.mock import MagicMock\nfrom src.rag import Retriever\n\nclass TestRetriever:\n    def setup_method(self):\n        self.mock_collection = MagicMock()\n        self.sut = Retriever(self.mock_collection)\n\n    def test_should_return_chunks_when_query_matches(self):\n        # Arrange\n        self.mock_collection.query.return_value = {\n            \"documents\": [[\"aspirin reduces fever\"]],\n            \"distances\": [[0.12]],\n        }\n\n        # Act\n        actual = self.sut.retrieve(query=\"aspirin\")\n\n        # Assert\n        assert actual == [\"aspirin reduces fever\"]\n        self.mock_collection.query.assert_called_once()\n```\n\n## Related Skills\n\n- **python-testing:** Python-specific AAA pattern, pytest configuration, mocks, builders\n\n}\n```\n\n**Rules:**\n\n- Each section clearly separated by comments\n- Never mix phases\n- **No `if`, `switch`, or conditional logic** inside Arrange, Act, or Assert blocks\n- **No `try\u002Fcatch`** inside Arrange, Act, or Assert blocks\n- For exceptions, use `AwesomeAssertions` `.Should().ThrowAsync\u003CT>()` or Jest `expect(...).rejects.toThrow()`\n- Omit comment if section is empty\n- If a test needs branching, split it into separate test methods (one per scenario)\n\n### 2. Test Naming Convention\n\n```txt\nShould_{ExpectedBehavior}_When_{Condition}\n```\n\n| ✓ Good                                       | ✗ Bad             |\n| -------------------------------------------- | ----------------- |\n| `Should_CreateGroup_When_RequestIsValid`     | `TestCreateGroup` |\n| `Should_ThrowNotFound_When_UserDoesNotExist` | `\"should login\"`  |\n| `Should_ReturnEmptyList_When_NoRecordsFound` | `Should_Work`     |\n\n### 3. Standard Variables\n\n| Purpose | Name |\n| ------- | ---- |\n| Subject under test | `sut` |\n| Expected value | `expected` |\n| Actual result | `actual` |\n\n```csharp\nvar expected = GroupMother.Create(id: groupId);\nvar actual = await _sut.Handle(query, CancellationToken.None);\nactual.Id.Should().Be(expected.Id);\n```\n\n## Test Class Structure (C#)\n\n```csharp\npublic class CreateGroupCommandHandlerTests\n{\n    private readonly Fixture _fixture;\n    private readonly CreateGroupCommandHandler _sut;\n    private readonly IBoehringerRepository _repository;\n\n    public CreateGroupCommandHandlerTests()\n    {\n        _fixture = new();\n        _repository = Substitute.For\u003CIBoehringerRepository>();\n        _sut = new(_repository);\n    }\n\n    [Fact]\n    public async Task Should_CreateGroup_When_RequestIsValid()\n    {\n        \u002F\u002F Test implementation\n    }\n}\n```\n\n## Libraries by Stack\n\nSee the dedicated supporting file for each stack:\n\n- **.NET Backend:** [dotnet.md](.\u002Fdotnet.md) — xUnit, AwesomeAssertions, NSubstitute,\n  AutoFixture, Bogus, Verify.Xunit, WireMock.Net, Testcontainers (PostgreSQL,\n  LocalStack)\n- **Frontend & IaC (TypeScript):** [frontend.md](.\u002Ffrontend.md) — Jest,\n  @testing-library\u002Freact, Playwright, Biome\n- **Python:** [python.md](.\u002Fpython.md) — pytest, pytest-asyncio, pytest-snapshot,\n  unittest.mock, black, mypy, Pydantic\n\n## Related Skills\n\n- **dotnet-test-doubles:** Bogus, AutoFixture, NSubstitute, WireMock patterns\n- **dotnet-integration-testing:** Testcontainers, LocalStack, WebApplicationFactory\n- **python-testing:** Python-specific AAA pattern, pytest configuration\n",{"name":5,"description":7},"main","317a4a57ec5bccc8f21cd4c8e966e942d4746ab9",".claude\u002Fskills\u002Fcommon-testing-conventions",0,"https:\u002F\u002Fgithub.com\u002FametsCS\u002Fbiorce-mini","https:\u002F\u002Fgithub.com\u002FametsCS","amets.engineer","AI Engineer 📈. Focused on innovation, leveraging Data and Machine Learning to build impactful software.","2026-03-16 21:43:55",{"source":8,"skillName":5,"commands":49,"prompt":59,"zipAvailable":60},[50,53,56],{"tool":51,"command":52},"npx","npx skills add ametsCS\u002Fbiorce-mini --skill common-testing-conventions",{"tool":54,"command":55},"bunx","bunx skills add ametsCS\u002Fbiorce-mini --skill common-testing-conventions",{"tool":57,"command":58},"pnpm","pnpm dlx skills add ametsCS\u002Fbiorce-mini --skill common-testing-conventions","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FametsCS\u002Fbiorce-mini\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fcommon-testing-conventions\u002FSKILL.md",true,[62,68,72],{"path":63,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":66,"sourceHtmlUrl":67},"examples.md","REFERENCE","参考文档",7604,"https:\u002F\u002Fgithub.com\u002FametsCS\u002Fbiorce-mini\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fcommon-testing-conventions\u002Fexamples.md",{"path":69,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":70,"sourceHtmlUrl":71},"python.md",5097,"https:\u002F\u002Fgithub.com\u002FametsCS\u002Fbiorce-mini\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fcommon-testing-conventions\u002Fpython.md",{"path":73,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":74,"sourceHtmlUrl":75},"reference.md",4815,"https:\u002F\u002Fgithub.com\u002FametsCS\u002Fbiorce-mini\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fcommon-testing-conventions\u002Freference.md",[77,89,107,127,141],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":34},"01M6CWBG0N7K6WXKEAGS8G9V8R","python-testing","Mandatory testing conventions including AAA pattern, test naming, assertions, and mocks. Use for unit, integration, or E2E tests with pytest, unittest, pytest-asyncio, or Playwright.","https:\u002F\u002Fgithub.com\u002FametsCS\u002Fbiorce-mini\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fpython-testing\u002FSKILL.md",[],[19,25,84,85,22,21,32,31,30,86,29,87,26,88],"python testing","unittest","e2e","e2e tests","playwright",{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":34},"01M6CWBCX3G1ZH43GPS7P74X06","python-architecture","Module structure and architecture patterns for this Python RAG\u002FLangGraph project. Use when adding new nodes to the LangGraph pipeline, extending the RAG retrieval layer, modifying the LLM client, or organizing new source modules under src\u002F.","https:\u002F\u002Fgithub.com\u002FametsCS\u002Fbiorce-mini\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fpython-architecture\u002FSKILL.md",[],[96,97,25,98,99,100,101,102,103,33,104,105,106,30],"architecture","python architecture","architecture patterns","rag","langgraph","pipeline","modules","src","structure","patterns","Nodes",{"skillNo":108,"name":109,"nameZh":6,"description":110,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":111,"categories":112,"keywords":113,"publishedAt":34},"01M6CWB6VFX8HNHC7JAAZ5JB7C","common-security","Security guardrails covering OWASP Top 10 adapted to this Python\u002FLangGraph\u002FStreamlit project. Use when reviewing code for security, handling API keys and secrets, validating user inputs, guarding against prompt injection, or configuring Streamlit safely.","https:\u002F\u002Fgithub.com\u002FametsCS\u002Fbiorce-mini\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fcommon-security\u002FSKILL.md",[],[114,115,20,116,33,30,117,118,119,100,120,121,122,123,124,25,125,126],"common security","security","streamlit","user","prompt","secrets","injection","owasp","Guardrails","code","owasp top 10","prompt injection","api",{"skillNo":128,"name":129,"nameZh":6,"description":130,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":131,"categories":132,"keywords":133,"publishedAt":34},"01M6CWB3W8V092VHA2WBW8VRSY","common-observability","Logging patterns for this Python\u002FLangGraph\u002FStreamlit project. Use when configuring structured logging, adding log statements to LangGraph nodes, debugging pipeline execution, or reviewing what should and should not be logged.","https:\u002F\u002Fgithub.com\u002FametsCS\u002Fbiorce-mini\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fcommon-observability\u002FSKILL.md",[],[134,135,20,136,25,137,33,138,105,106,139,30,140,101,100],"common observability","observability","debugging","logging","structured","log","execution",{"skillNo":142,"name":143,"nameZh":6,"description":144,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":145,"categories":146,"keywords":147,"publishedAt":34},"01M6CWB10JKJM7K1RRJHG3YMJK","common-git","Git commit messages, PR workflow, and branching strategy using Conventional Commits and Semantic Versioning. Use when creating commits, pull requests, or managing Git workflow.","https:\u002F\u002Fgithub.com\u002FametsCS\u002Fbiorce-mini\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fcommon-git\u002FSKILL.md",[],[148,20,149,150,151,152,153,30,154,155,156,157,158,159,160,161,162,163,164,165],"common git","git","commit messages","branching strategy","conventional commits","pr workflow","git commit messages","strategy","versioning","commits","messages","pull","git workflow","git commit","pr","commit","pull requests","workflow"]