[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6AD47MGW8PFFB90JHPEZNEN":3,"skill-same:01M6AD47MGW8PFFB90JHPEZNEN":72},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":37,"linkOnly":38,"markdownContent":39,"markdownBody":40,"frontMatter":41,"refName":42,"commitSha":43,"skillDirectory":44,"forksCount":45,"repositoryHtmlUrl":46,"repositoryHomepageUrl":47,"ownerHtmlUrl":48,"ownerBlogUrl":49,"ownerDescription":50,"updatedAt":51,"install":52,"resources":65},"01M6AD47MGW8PFFB90JHPEZNEN","pytest-gen","pytest 测试生成","Generate comprehensive pytest tests - use when generating tests, creating test suites, or testing Python code","生成全面的 pytest 测试 - 在生成测试、创建测试套件或测试 Python 代码时使用","github\u002Fcopilot-cli-for-beginners","github","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F9919?v=4","01M6AC83DS133TPXFSP1DHNCC6","GitHub","01M6AD40HWW323GJA0ETB2A6XW",2918,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fgithub\u002Fcopilot-cli-for-beginners\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fpytest-gen\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD5WG86P4AQ5GPSSKBFR","测试工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQJH394GT47X57A9Q8G7HX","测试与质量保障","SCENARIO","使用场景",[31,32,33,34,35,36],"pytest gen","testing","python","test","generate","code","2026-11-10 10:12:30",false,"---\nname: pytest-gen\ndescription: Generate comprehensive pytest tests - use when generating tests, creating test suites, or testing Python code\n---\n\n# Pytest Generation Skill\n\nWhen generating tests, follow this structure.\n\n## Test Organization\n\n- Group tests by function under test\n- Use `@pytest.mark.parametrize` for multiple inputs\n- Use fixtures for shared setup\n- Follow arrange\u002Fact\u002Fassert pattern\n\n## Coverage Requirements\n\n- Happy path (expected usage)\n- Edge cases (empty strings, None, boundary values)\n- Error cases (invalid input, file not found, wrong types)\n- Integration (functions working together)\n\n## Template\n\n```python\nimport pytest\nfrom module_under_test import function_to_test\n\n\n@pytest.fixture\ndef sample_data():\n    \"\"\"Provide shared test data.\"\"\"\n    return {\"key\": \"value\"}\n\n\nclass TestFunctionName:\n    \"\"\"Tests for function_name.\"\"\"\n\n    def test_happy_path(self, sample_data):\n        result = function_to_test(valid_input)\n        assert result == expected_output\n\n    def test_empty_input(self):\n        result = function_to_test(\"\")\n        assert result == expected_for_empty\n\n    @pytest.mark.parametrize(\"input_val,expected\", [\n        (\"valid\", True),\n        (\"\", False),\n        (None, False),\n    ])\n    def test_various_inputs(self, input_val, expected):\n        assert function_to_test(input_val) == expected\n```\n","# Pytest Generation Skill\n\nWhen generating tests, follow this structure.\n\n## Test Organization\n\n- Group tests by function under test\n- Use `@pytest.mark.parametrize` for multiple inputs\n- Use fixtures for shared setup\n- Follow arrange\u002Fact\u002Fassert pattern\n\n## Coverage Requirements\n\n- Happy path (expected usage)\n- Edge cases (empty strings, None, boundary values)\n- Error cases (invalid input, file not found, wrong types)\n- Integration (functions working together)\n\n## Template\n\n```python\nimport pytest\nfrom module_under_test import function_to_test\n\n\n@pytest.fixture\ndef sample_data():\n    \"\"\"Provide shared test data.\"\"\"\n    return {\"key\": \"value\"}\n\n\nclass TestFunctionName:\n    \"\"\"Tests for function_name.\"\"\"\n\n    def test_happy_path(self, sample_data):\n        result = function_to_test(valid_input)\n        assert result == expected_output\n\n    def test_empty_input(self):\n        result = function_to_test(\"\")\n        assert result == expected_for_empty\n\n    @pytest.mark.parametrize(\"input_val,expected\", [\n        (\"valid\", True),\n        (\"\", False),\n        (None, False),\n    ])\n    def test_various_inputs(self, input_val, expected):\n        assert function_to_test(input_val) == expected\n```\n",{"name":5,"description":7},"main","802c19ea0986cd2a11bc0daedb9ad29ae0c081f8",".github\u002Fskills\u002Fpytest-gen",2621,"https:\u002F\u002Fgithub.com\u002Fgithub\u002Fcopilot-cli-for-beginners","https:\u002F\u002Fgh.io\u002Fcopilot-cli-course","https:\u002F\u002Fgithub.com\u002Fgithub","https:\u002F\u002Fgithub.com\u002Fabout","How people build software.","2026-11-12 05:49:45",{"source":9,"skillName":5,"commands":53,"prompt":63,"zipAvailable":64},[54,57,60],{"tool":55,"command":56},"npx","npx skills add github\u002Fcopilot-cli-for-beginners --skill pytest-gen",{"tool":58,"command":59},"bunx","bunx skills add github\u002Fcopilot-cli-for-beginners --skill pytest-gen",{"tool":61,"command":62},"pnpm","pnpm dlx skills add github\u002Fcopilot-cli-for-beginners --skill pytest-gen","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgithub\u002Fcopilot-cli-for-beginners\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fpytest-gen\u002FSKILL.md",true,[66],{"path":67,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":70,"sourceHtmlUrl":71},"agents\u002Fopenai.yaml","REFERENCE","参考文档",260,"https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fdbs-learning\u002Fagents\u002Fopenai.yaml",[73,81,99,118,135,143],{"skillNo":74,"name":5,"nameZh":6,"description":7,"descriptionZh":75,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":76,"categories":77,"keywords":80,"publishedAt":37},"01M6AD4DRS45DQ1ZVYEBZEA5D2","生成全面的 pytest 测试——在生成测试、创建测试套件或测试 Python 代码时使用。","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fcopilot-cli-for-beginners\u002Fblob\u002Fmain\u002Fsamples\u002Fskills\u002Fpytest-gen\u002FSKILL.md",[78,79],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[31,36,35,34,33,32],{"skillNo":82,"name":83,"nameZh":84,"description":85,"descriptionZh":86,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":87,"categories":88,"keywords":95,"publishedAt":37},"01M6AD4CFEVKMPAVTGZ1MW8Z97","hello-world","技能格式入门示例","A minimal skill example - use when learning the skill format","一个最简单的技能示例——用于学习技能格式时使用。","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fcopilot-cli-for-beginners\u002Fblob\u002Fmain\u002Fsamples\u002Fskills\u002Fhello-world\u002FSKILL.md",[89,92],{"categoryNo":90,"categoryName":91,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师",{"categoryNo":93,"categoryName":94,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSYDSNXQT2W2GMZGF0ZHH4","示例与演示技能",[96,97,98],"hello","hello world","minimal skill",{"skillNo":100,"name":101,"nameZh":102,"description":103,"descriptionZh":104,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":105,"categories":106,"keywords":111,"publishedAt":37},"01M6AD4AZP3G3R8K88PYRM80RA","commit-message","Git 提交信息生成","Generate conventional commit messages - use when creating commits, writing commit messages, or asking for git commit help","生成约定式提交信息（conventional commit）- 在创建提交、编写提交信息或请求 git 提交帮助时使用","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fcopilot-cli-for-beginners\u002Fblob\u002Fmain\u002Fsamples\u002Fskills\u002Fcommit-message\u002FSKILL.md",[107,108],{"categoryNo":90,"categoryName":91,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":109,"categoryName":110,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BR5V701HCN066VEP7H4812","代码仓库协作管理",[112,113,35,114,115,116,117],"commit message","commit","git","help","git commit","writing",{"skillNo":119,"name":120,"nameZh":121,"description":122,"descriptionZh":123,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":124,"categories":125,"keywords":128,"publishedAt":37},"01M6AD494SDGGE3CH1XHND3A0K","code-checklist","代码质量检查清单","Team code quality checklist - use for checking Python code quality, bugs, security issues, and best practices","团队代码质量检查清单 - 用于检查 Python 代码质量、bug、安全问题和最佳实践","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fcopilot-cli-for-beginners\u002Fblob\u002Fmain\u002Fsamples\u002Fskills\u002Fcode-checklist\u002FSKILL.md",[126,127],{"categoryNo":90,"categoryName":91,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[129,36,130,131,132,133,134,33],"code checklist","issues","best practices","code quality","python code quality","security",{"skillNo":136,"name":83,"nameZh":84,"description":85,"descriptionZh":137,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":138,"categories":139,"keywords":142,"publishedAt":37},"01M6AD46GGK4H3QBHARSYDMZ0Q","一个最小的技能示例 - 在学习技能格式时使用","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fcopilot-cli-for-beginners\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fhello-world\u002FSKILL.md",[140,141],{"categoryNo":90,"categoryName":91,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":93,"categoryName":94,"taxonomyType":28,"taxonomyTypeDesc":29},[96,97,98],{"skillNo":144,"name":101,"nameZh":102,"description":103,"descriptionZh":145,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":146,"categories":147,"keywords":150,"publishedAt":37},"01M6AD44CS482KQDYBVY612E8H","生成规范化的提交信息（conventional commit）——在创建提交、编写提交信息或需要 git commit 帮助时使用。","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fcopilot-cli-for-beginners\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fcommit-message\u002FSKILL.md",[148,149],{"categoryNo":90,"categoryName":91,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":109,"categoryName":110,"taxonomyType":28,"taxonomyTypeDesc":29},[113,112,116,35,115,114,117]]