[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79WD6F4NQPDHMB5A0TBDP0Q":3,"skill-same:01M79WD6F4NQPDHMB5A0TBDP0Q":49},{"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":23,"commitSha":24,"skillDirectory":25,"forksCount":13,"repositoryHtmlUrl":26,"repositoryHomepageUrl":6,"ownerHtmlUrl":27,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":28,"install":29,"resources":42},"01M79WD6F4NQPDHMB5A0TBDP0Q","unit-test-generator",null,"Automatically generate unit tests based on source code, supporting multiple languages and testing frameworks.","baongoc1707\u002Fpost-math-seo","baongoc1707","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F207821071?v=4","01M79W6PBVZ65DZH8VFRZ4ZJJ6","01M79W6PCH0K5DT94F55ANS67C",0,"CC0-1.0","https:\u002F\u002Fgithub.com\u002Fbaongoc1707\u002Fpost-math-seo\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Funit-test-generator\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: unit-test-generator\ndescription: Automatically generate unit tests based on source code, supporting multiple languages and testing frameworks.\nlicense: CC0-1.0\n---\n\n# Unit Test Generator\n\n> 根据源代码自动生成单元测试，支持多种语言和测试框架。\n>\n> Automatically generate unit tests based on source code, supporting multiple languages and testing frameworks.\n\n## When to Use\n\n当用户请求以下操作时使用此 skill：\n- 生成单元测试 \u002F Generate unit tests\n- 为函数\u002F类编写测试 \u002F Write tests for functions\u002Fclasses\n- 创建测试用例 \u002F Create test cases\n- 提高代码覆盖率 \u002F Improve code coverage\n\n## Instructions\n\n### 分析步骤 \u002F Analysis Steps\n\n1. **识别代码** - 确定编程语言和代码结构\n2. **分析功能** - 理解函数\u002F方法的输入、输出和行为\n3. **确定边界** - 识别边界条件和边缘情况\n4. **选择框架** - 根据语言选择合适的测试框架\n5. **生成测试** - 编写全面的测试用例\n\n### 支持的语言和框架 \u002F Supported Languages\n\n| 语言 | 测试框架 |\n|------|----------|\n| Python | pytest, unittest |\n| JavaScript\u002FTypeScript | Jest, Mocha, Vitest |\n| Java | JUnit, TestNG |\n| Go | testing (built-in) |\n| Rust | cargo test (built-in) |\n\n### 测试类型 \u002F Test Types\n\n- **正常路径测试** - 验证预期行为\n- **边界条件测试** - 测试边界值\n- **异常处理测试** - 验证错误处理\n- **空值\u002F空输入测试** - 处理空值情况\n\n### 输出格式 \u002F Output Format\n\n使用 `templates\u002Ftest-report.md` 模板格式化输出。\n\nUse the `templates\u002Ftest-report.md` template to format output.\n\n```markdown\n## 单元测试生成报告 \u002F Unit Test Generation Report\n\n### 分析概述 \u002F Analysis Summary\n[代码分析总结]\n\n### 生成的测试 \u002F Generated Tests\n[测试代码]\n\n### 测试覆盖说明 \u002F Coverage Notes\n- 覆盖的场景\n- 建议补充的测试\n```\n\n## Examples\n\n### 输入 \u002F Input\n\n```python\ndef divide(a: float, b: float) -> float:\n    if b == 0:\n        raise ValueError(\"Cannot divide by zero\")\n    return a \u002F b\n```\n\n### 输出 \u002F Output\n\n## 单元测试生成报告\n\n### 分析概述\n`divide` 函数执行除法运算，包含除零检查。需要测试正常除法、除零异常、边界值等情况。\n\n### 生成的测试\n\n```python\nimport pytest\nfrom your_module import divide\n\nclass TestDivide:\n    \"\"\"Tests for the divide function.\"\"\"\n\n    def test_divide_positive_numbers(self):\n        \"\"\"Test division of positive numbers.\"\"\"\n        assert divide(10, 2) == 5.0\n        assert divide(7, 2) == 3.5\n\n    def test_divide_negative_numbers(self):\n        \"\"\"Test division with negative numbers.\"\"\"\n        assert divide(-10, 2) == -5.0\n        assert divide(10, -2) == -5.0\n        assert divide(-10, -2) == 5.0\n\n    def test_divide_by_zero_raises_error(self):\n        \"\"\"Test that dividing by zero raises ValueError.\"\"\"\n        with pytest.raises(ValueError, match=\"Cannot divide by zero\"):\n            divide(10, 0)\n\n    def test_divide_zero_numerator(self):\n        \"\"\"Test division when numerator is zero.\"\"\"\n        assert divide(0, 5) == 0.0\n\n    def test_divide_float_precision(self):\n        \"\"\"Test division with floating point numbers.\"\"\"\n        assert divide(1, 3) == pytest.approx(0.333333, rel=1e-5)\n```\n\n### 测试覆盖说明\n- ✅ 正常正数除法\n- ✅ 负数除法\n- ✅ 除零异常\n- ✅ 分子为零\n- ✅ 浮点精度\n","# Unit Test Generator\n\n> 根据源代码自动生成单元测试，支持多种语言和测试框架。\n>\n> Automatically generate unit tests based on source code, supporting multiple languages and testing frameworks.\n\n## When to Use\n\n当用户请求以下操作时使用此 skill：\n- 生成单元测试 \u002F Generate unit tests\n- 为函数\u002F类编写测试 \u002F Write tests for functions\u002Fclasses\n- 创建测试用例 \u002F Create test cases\n- 提高代码覆盖率 \u002F Improve code coverage\n\n## Instructions\n\n### 分析步骤 \u002F Analysis Steps\n\n1. **识别代码** - 确定编程语言和代码结构\n2. **分析功能** - 理解函数\u002F方法的输入、输出和行为\n3. **确定边界** - 识别边界条件和边缘情况\n4. **选择框架** - 根据语言选择合适的测试框架\n5. **生成测试** - 编写全面的测试用例\n\n### 支持的语言和框架 \u002F Supported Languages\n\n| 语言 | 测试框架 |\n|------|----------|\n| Python | pytest, unittest |\n| JavaScript\u002FTypeScript | Jest, Mocha, Vitest |\n| Java | JUnit, TestNG |\n| Go | testing (built-in) |\n| Rust | cargo test (built-in) |\n\n### 测试类型 \u002F Test Types\n\n- **正常路径测试** - 验证预期行为\n- **边界条件测试** - 测试边界值\n- **异常处理测试** - 验证错误处理\n- **空值\u002F空输入测试** - 处理空值情况\n\n### 输出格式 \u002F Output Format\n\n使用 `templates\u002Ftest-report.md` 模板格式化输出。\n\nUse the `templates\u002Ftest-report.md` template to format output.\n\n```markdown\n## 单元测试生成报告 \u002F Unit Test Generation Report\n\n### 分析概述 \u002F Analysis Summary\n[代码分析总结]\n\n### 生成的测试 \u002F Generated Tests\n[测试代码]\n\n### 测试覆盖说明 \u002F Coverage Notes\n- 覆盖的场景\n- 建议补充的测试\n```\n\n## Examples\n\n### 输入 \u002F Input\n\n```python\ndef divide(a: float, b: float) -> float:\n    if b == 0:\n        raise ValueError(\"Cannot divide by zero\")\n    return a \u002F b\n```\n\n### 输出 \u002F Output\n\n## 单元测试生成报告\n\n### 分析概述\n`divide` 函数执行除法运算，包含除零检查。需要测试正常除法、除零异常、边界值等情况。\n\n### 生成的测试\n\n```python\nimport pytest\nfrom your_module import divide\n\nclass TestDivide:\n    \"\"\"Tests for the divide function.\"\"\"\n\n    def test_divide_positive_numbers(self):\n        \"\"\"Test division of positive numbers.\"\"\"\n        assert divide(10, 2) == 5.0\n        assert divide(7, 2) == 3.5\n\n    def test_divide_negative_numbers(self):\n        \"\"\"Test division with negative numbers.\"\"\"\n        assert divide(-10, 2) == -5.0\n        assert divide(10, -2) == -5.0\n        assert divide(-10, -2) == 5.0\n\n    def test_divide_by_zero_raises_error(self):\n        \"\"\"Test that dividing by zero raises ValueError.\"\"\"\n        with pytest.raises(ValueError, match=\"Cannot divide by zero\"):\n            divide(10, 0)\n\n    def test_divide_zero_numerator(self):\n        \"\"\"Test division when numerator is zero.\"\"\"\n        assert divide(0, 5) == 0.0\n\n    def test_divide_float_precision(self):\n        \"\"\"Test division with floating point numbers.\"\"\"\n        assert divide(1, 3) == pytest.approx(0.333333, rel=1e-5)\n```\n\n### 测试覆盖说明\n- ✅ 正常正数除法\n- ✅ 负数除法\n- ✅ 除零异常\n- ✅ 分子为零\n- ✅ 浮点精度\n",{"name":5,"license":14,"description":7},"main","b45dde12ca4cf60a71f27a2ceeddc29e7ed38bb1",".opencode\u002Fskills\u002Funit-test-generator","https:\u002F\u002Fgithub.com\u002Fbaongoc1707\u002Fpost-math-seo","https:\u002F\u002Fgithub.com\u002Fbaongoc1707","2026-08-14 11:40:00",{"source":8,"skillName":5,"commands":30,"prompt":40,"zipAvailable":41},[31,34,37],{"tool":32,"command":33},"npx","npx skills add baongoc1707\u002Fpost-math-seo --skill unit-test-generator",{"tool":35,"command":36},"bunx","bunx skills add baongoc1707\u002Fpost-math-seo --skill unit-test-generator",{"tool":38,"command":39},"pnpm","pnpm dlx skills add baongoc1707\u002Fpost-math-seo --skill unit-test-generator","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fbaongoc1707\u002Fpost-math-seo\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Funit-test-generator\u002FSKILL.md",true,[43],{"path":44,"resourceType":45,"resourceTypeDesc":46,"sizeBytes":47,"sourceHtmlUrl":48},"templates\u002Ftest-report.md","REFERENCE","参考文档",852,"https:\u002F\u002Fgithub.com\u002Fbaongoc1707\u002Fpost-math-seo\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Funit-test-generator\u002Ftemplates\u002Ftest-report.md",[50,59,67,75,83,91],{"skillNo":51,"name":52,"nameZh":6,"description":53,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":54,"licenseFileUrl":55,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":18},"01M79WDS8H132MW7BZ5CPPKK35","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fbaongoc1707\u002Fpost-math-seo\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fbaongoc1707\u002Fpost-math-seo\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Fwebapp-testing\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":54,"licenseFileUrl":63,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":18},"01M79WDMN4DVHKM5XJ6V14AWVG","web-artifacts-builder","Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn\u002Fui). Use for complex artifacts requiring state management, routing, or shadcn\u002Fui components - not for simple single-file HTML\u002FJSX artifacts.","https:\u002F\u002Fgithub.com\u002Fbaongoc1707\u002Fpost-math-seo\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Fweb-artifacts-builder\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fbaongoc1707\u002Fpost-math-seo\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Fweb-artifacts-builder\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":54,"licenseFileUrl":71,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":18},"01M79WD34K19R4Q329Z1BD49J1","theme-factory","Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors\u002Ffonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.","https:\u002F\u002Fgithub.com\u002Fbaongoc1707\u002Fpost-math-seo\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Ftheme-factory\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fbaongoc1707\u002Fpost-math-seo\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Ftheme-factory\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":54,"licenseFileUrl":79,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":18},"01M79WCDJX390JPM0P9MDZFENX","slack-gif-creator","Knowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like \"make me a GIF of X doing Y for Slack.\"","https:\u002F\u002Fgithub.com\u002Fbaongoc1707\u002Fpost-math-seo\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Fslack-gif-creator\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fbaongoc1707\u002Fpost-math-seo\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Fslack-gif-creator\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":54,"licenseFileUrl":87,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":18},"01M79WC6WF457VPNBEEN5D8FKN","skill-creator","Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.","https:\u002F\u002Fgithub.com\u002Fbaongoc1707\u002Fpost-math-seo\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Fskill-creator\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fbaongoc1707\u002Fpost-math-seo\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Fskill-creator\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":54,"licenseFileUrl":95,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":18},"01M79WAX40ZY9B1R7CKBYZJFS1","mcp-builder","Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node\u002FTypeScript (MCP SDK).","https:\u002F\u002Fgithub.com\u002Fbaongoc1707\u002Fpost-math-seo\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Fmcp-builder\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fbaongoc1707\u002Fpost-math-seo\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Fmcp-builder\u002FSKILL.md",[],[]]