[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79Z9JW6DGCCZ1SWKCQJQF8C":3,"skill-same:01M79Z9JW6DGCCZ1SWKCQJQF8C":47},{"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":27,"commitSha":28,"skillDirectory":29,"forksCount":13,"repositoryHtmlUrl":30,"repositoryHomepageUrl":6,"ownerHtmlUrl":31,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":32,"install":33,"resources":46},"01M79Z9JW6DGCCZ1SWKCQJQF8C","test-patterns",null,"Generate tests following project conventions with proper patterns for unit, integration, and e2e testing","balagnanas\u002FLocalMachineAISetup","balagnanas","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F301874309?v=4","01M79Z5JNVEG1XEPGQMDAEHY3W","01M79Z5JPGT2CGKW1729NWD1T9",0,"MIT","https:\u002F\u002Fgithub.com\u002Fbalagnanas\u002FLocalMachineAISetup\u002Fblob\u002Fmain\u002F.codex\u002Fskills\u002Ftest-patterns\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: test-patterns\ndescription: Generate tests following project conventions with proper patterns for unit, integration, and e2e testing\nlicense: MIT\ncompatibility: opencode\nmetadata:\n  audience: developers\n  workflow: general\n---\n\n## What I do\n\n- Analyze existing test patterns in the project\n- Generate tests that follow the same style and conventions\n- Cover happy paths, edge cases, and error scenarios\n- Use the project's testing framework and utilities\n\n## When to use me\n\nUse this skill when you need to write tests for new or existing code.\nThis skill first analyzes existing tests to match the project's style.\n\n## Process\n\n1. **Discover**: Find existing tests to understand patterns\n   - Look for `*.test.*`, `*.spec.*`, `__tests__\u002F` directories\n   - Identify testing framework (Jest, Vitest, Pytest, JUnit, etc.)\n   - Note assertion style, mock patterns, and setup\u002Fteardown\n\n2. **Analyze**: Read the code under test\n   - Identify public API surface\n   - Find branching logic and edge cases\n   - Note dependencies that need mocking\n\n3. **Generate**: Write tests following discovered patterns\n\n## Test Patterns by Framework\n\n### JavaScript\u002FTypeScript (Vitest\u002FJest)\n\n```typescript\ndescribe(\"ModuleName\", () => {\n  \u002F\u002F Setup\n  beforeEach(() => { \u002F* ... *\u002F })\n\n  describe(\"methodName\", () => {\n    it(\"should return expected value for valid input\", () => {\n      \u002F\u002F Arrange\n      const input = createTestInput()\n      \u002F\u002F Act\n      const result = methodName(input)\n      \u002F\u002F Assert\n      expect(result).toEqual(expectedValue)\n    })\n\n    it(\"should throw for invalid input\", () => {\n      expect(() => methodName(null)).toThrow(ExpectedError)\n    })\n  })\n})\n```\n\n### Python (Pytest)\n\n```python\nclass TestModuleName:\n    @pytest.fixture\n    def setup(self):\n        return create_test_fixture()\n\n    def test_method_returns_expected_for_valid_input(self, setup):\n        result = method_name(setup)\n        assert result == expected_value\n\n    def test_method_raises_for_invalid_input(self):\n        with pytest.raises(ExpectedError):\n            method_name(None)\n```\n\n### Java (JUnit 5)\n\n```java\n@DisplayName(\"ModuleName Tests\")\nclass ModuleNameTest {\n    @BeforeEach\n    void setUp() { \u002F* ... *\u002F }\n\n    @Test\n    @DisplayName(\"should return expected value for valid input\")\n    void methodName_validInput_returnsExpected() {\n        var result = moduleName.methodName(validInput);\n        assertEquals(expected, result);\n    }\n\n    @Test\n    @DisplayName(\"should throw for invalid input\")\n    void methodName_invalidInput_throws() {\n        assertThrows(ExpectedException.class,\n            () -> moduleName.methodName(null));\n    }\n}\n```\n\n## Coverage Targets\n\n- **Unit Tests**: Every public method, all branches\n- **Edge Cases**: Null\u002Fempty, boundary values, large inputs\n- **Error Paths**: Invalid input, network failures, timeouts\n- **Integration**: Key workflows between components\n","## What I do\n\n- Analyze existing test patterns in the project\n- Generate tests that follow the same style and conventions\n- Cover happy paths, edge cases, and error scenarios\n- Use the project's testing framework and utilities\n\n## When to use me\n\nUse this skill when you need to write tests for new or existing code.\nThis skill first analyzes existing tests to match the project's style.\n\n## Process\n\n1. **Discover**: Find existing tests to understand patterns\n   - Look for `*.test.*`, `*.spec.*`, `__tests__\u002F` directories\n   - Identify testing framework (Jest, Vitest, Pytest, JUnit, etc.)\n   - Note assertion style, mock patterns, and setup\u002Fteardown\n\n2. **Analyze**: Read the code under test\n   - Identify public API surface\n   - Find branching logic and edge cases\n   - Note dependencies that need mocking\n\n3. **Generate**: Write tests following discovered patterns\n\n## Test Patterns by Framework\n\n### JavaScript\u002FTypeScript (Vitest\u002FJest)\n\n```typescript\ndescribe(\"ModuleName\", () => {\n  \u002F\u002F Setup\n  beforeEach(() => { \u002F* ... *\u002F })\n\n  describe(\"methodName\", () => {\n    it(\"should return expected value for valid input\", () => {\n      \u002F\u002F Arrange\n      const input = createTestInput()\n      \u002F\u002F Act\n      const result = methodName(input)\n      \u002F\u002F Assert\n      expect(result).toEqual(expectedValue)\n    })\n\n    it(\"should throw for invalid input\", () => {\n      expect(() => methodName(null)).toThrow(ExpectedError)\n    })\n  })\n})\n```\n\n### Python (Pytest)\n\n```python\nclass TestModuleName:\n    @pytest.fixture\n    def setup(self):\n        return create_test_fixture()\n\n    def test_method_returns_expected_for_valid_input(self, setup):\n        result = method_name(setup)\n        assert result == expected_value\n\n    def test_method_raises_for_invalid_input(self):\n        with pytest.raises(ExpectedError):\n            method_name(None)\n```\n\n### Java (JUnit 5)\n\n```java\n@DisplayName(\"ModuleName Tests\")\nclass ModuleNameTest {\n    @BeforeEach\n    void setUp() { \u002F* ... *\u002F }\n\n    @Test\n    @DisplayName(\"should return expected value for valid input\")\n    void methodName_validInput_returnsExpected() {\n        var result = moduleName.methodName(validInput);\n        assertEquals(expected, result);\n    }\n\n    @Test\n    @DisplayName(\"should throw for invalid input\")\n    void methodName_invalidInput_throws() {\n        assertThrows(ExpectedException.class,\n            () -> moduleName.methodName(null));\n    }\n}\n```\n\n## Coverage Targets\n\n- **Unit Tests**: Every public method, all branches\n- **Edge Cases**: Null\u002Fempty, boundary values, large inputs\n- **Error Paths**: Invalid input, network failures, timeouts\n- **Integration**: Key workflows between components\n",{"name":5,"license":14,"metadata":23,"description":7,"compatibility":26},{"audience":24,"workflow":25},"developers","general","opencode","main","e1aadea1db868f30968a56359b961c56afe3749c",".codex\u002Fskills\u002Ftest-patterns","https:\u002F\u002Fgithub.com\u002Fbalagnanas\u002FLocalMachineAISetup","https:\u002F\u002Fgithub.com\u002Fbalagnanas","2026-10-03 06:43:35",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add balagnanas\u002FLocalMachineAISetup --skill test-patterns",{"tool":39,"command":40},"bunx","bunx skills add balagnanas\u002FLocalMachineAISetup --skill test-patterns",{"tool":42,"command":43},"pnpm","pnpm dlx skills add balagnanas\u002FLocalMachineAISetup --skill test-patterns","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fbalagnanas\u002FLocalMachineAISetup\u002Fblob\u002Fmain\u002F.codex\u002Fskills\u002Ftest-patterns\u002FSKILL.md",true,[],[48,53,60,67,74,81],{"skillNo":49,"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":50,"categories":51,"keywords":52,"publishedAt":18},"01M79ZNHYJ39SDTP0FYVWVCSWS","https:\u002F\u002Fgithub.com\u002Fbalagnanas\u002FLocalMachineAISetup\u002Fblob\u002Fmain\u002Fskills\u002Fglobal\u002Ftest-patterns\u002FSKILL.md",[],[],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":18},"01M79ZN2HS5G4X8VZHASF28FM1","git-release","Create consistent releases with changelogs, version bumps, and release notes from git history","https:\u002F\u002Fgithub.com\u002Fbalagnanas\u002FLocalMachineAISetup\u002Fblob\u002Fmain\u002Fskills\u002Fglobal\u002Fgit-release\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":18},"01M79ZKQKJRDCGSFF607YJQDE7","dependency-audit","Scan dependencies for CVEs, outdated packages, license issues, and unused deps to produce a prioritized remediation list","https:\u002F\u002Fgithub.com\u002Fbalagnanas\u002FLocalMachineAISetup\u002Fblob\u002Fmain\u002Fskills\u002Fglobal\u002Fdependency-audit\u002FSKILL.md",[],[],{"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},"01M79ZKHFX2C8KFXSNGX8ZDNXR","ci-pipeline","Generate CI\u002FCD pipeline config for detected platform with lint, test, build, and deploy stages","https:\u002F\u002Fgithub.com\u002Fbalagnanas\u002FLocalMachineAISetup\u002Fblob\u002Fmain\u002Fskills\u002Fglobal\u002Fci-pipeline\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},"01M79ZKBBMY86B2V1MN2M96ZB0","changelog-generate","Generate CHANGELOG.md from git history in Keep a Changelog format with Added, Changed, Deprecated, Removed, Fixed, and Security categories","https:\u002F\u002Fgithub.com\u002Fbalagnanas\u002FLocalMachineAISetup\u002Fblob\u002Fmain\u002Fskills\u002Fglobal\u002Fchangelog-generate\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},"01M79ZJ29ZFWEH1XBP27819SCJ","list-models","List the models available from the OpenCode Zen (provider ID `opencode`, API base https:\u002F\u002Fopencode.ai\u002Fzen\u002Fv1) and OpenCode Go (provider ID `opencode-go`, API base https:\u002F\u002Fopencode.ai\u002Fzen\u002Fgo\u002Fv1) providers. Runs `opencode models opencode` \u002F `opencode models opencode-go` for plain id lists or `--verbose` for per-model metadata (display name, cost, context window, capabilities). Use when the user asks what models are available in OpenCode Zen or OpenCode Go, wants to browse `opencode\u002F...` or `opencode-go\u002F...` model ids, or needs model cost, context-size, or capability details.","https:\u002F\u002Fgithub.com\u002Fbalagnanas\u002FLocalMachineAISetup\u002Fblob\u002Fmain\u002Fskills\u002Fengineering\u002Flist-models\u002FSKILL.md",[],[]]