[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6CR3WT12V3FJWWZK2K6XCP5":3,"skill-same:01M6CR3WT12V3FJWWZK2K6XCP5":73},{"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":23,"publishedAt":33,"linkOnly":34,"markdownContent":35,"markdownBody":36,"frontMatter":37,"refName":42,"commitSha":43,"skillDirectory":44,"forksCount":45,"repositoryHtmlUrl":46,"repositoryHomepageUrl":6,"ownerHtmlUrl":47,"ownerBlogUrl":6,"ownerDescription":48,"updatedAt":49,"install":50,"resources":62},"01M6CR3WT12V3FJWWZK2K6XCP5","gen-test",null,"Generate unit tests for nd-mock API endpoints","allenrobel\u002Fnd-mock","allenrobel","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F20111332?v=4","01M6CR3RGWSF9VZER2XTEFE0AD","Allen Robel","01M6CR3RMJYKZC0VKZS12NEM4N",1,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fallenrobel\u002Fnd-mock\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fgen-test\u002FSKILL.md",[18],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000008","测试与质量","SCENARIO","使用场景",[24,25,26,27,28,29,30,31,32],"test","gen test","unit tests","generate","fabric","endpoint","api","endpoints","manage","2026-11-10 10:12:30",false,"---\nname: gen-test\ndescription: Generate unit tests for nd-mock API endpoints\ndisable-model-invocation: true\narguments:\n  - name: endpoint\n    description: Path to the endpoint module to test (e.g., app\u002Fv1\u002Fendpoints\u002Fmanage\u002Ffabrics\u002Ffabric_get.py)\n    required: true\n---\n\n# Generate Unit Tests\n\nGenerate pytest unit tests for the specified endpoint module, following the project's established testing patterns.\n\n## Test Conventions\n\n- Tests use `fastapi.testclient.TestClient` with an in-memory SQLite database\n- Import fixtures from `tests\u002Funit\u002Fcommon.py`: `client_fixture`, `session_fixture`\n- Test data is loaded from JSON files via a `data_loader.py` and `load_test_data()` helper\n- Test function names follow pattern: `test_{version}_{resource}_{method}_{number}` (e.g., `test_v1_fabric_post_100`)\n- Each test uses `inspect.currentframe().f_code.co_name` to load its corresponding test data\n- Include standard pylint disables at the top of test files\n\n## Steps\n\n1. Read the endpoint module specified in the `endpoint` argument\n2. Read the corresponding model(s) used by the endpoint\n3. Look at existing tests in `tests\u002Funit\u002F` to match the style exactly\n4. Generate test file with:\n   - Standard pylint\u002Fmypy disable comments\n   - Proper relative imports for models and common fixtures\n   - A `load_test_data()` helper function\n   - Tests for success cases (status 200) and error cases (400, 404, 422)\n   - Assertions on `response.status_code` and `response.json()` structure\n5. Generate corresponding test data JSON file in a `data\u002F` subdirectory\n6. Run `pytest` on the new test file to verify it passes\n","# Generate Unit Tests\n\nGenerate pytest unit tests for the specified endpoint module, following the project's established testing patterns.\n\n## Test Conventions\n\n- Tests use `fastapi.testclient.TestClient` with an in-memory SQLite database\n- Import fixtures from `tests\u002Funit\u002Fcommon.py`: `client_fixture`, `session_fixture`\n- Test data is loaded from JSON files via a `data_loader.py` and `load_test_data()` helper\n- Test function names follow pattern: `test_{version}_{resource}_{method}_{number}` (e.g., `test_v1_fabric_post_100`)\n- Each test uses `inspect.currentframe().f_code.co_name` to load its corresponding test data\n- Include standard pylint disables at the top of test files\n\n## Steps\n\n1. Read the endpoint module specified in the `endpoint` argument\n2. Read the corresponding model(s) used by the endpoint\n3. Look at existing tests in `tests\u002Funit\u002F` to match the style exactly\n4. Generate test file with:\n   - Standard pylint\u002Fmypy disable comments\n   - Proper relative imports for models and common fixtures\n   - A `load_test_data()` helper function\n   - Tests for success cases (status 200) and error cases (400, 404, 422)\n   - Assertions on `response.status_code` and `response.json()` structure\n5. Generate corresponding test data JSON file in a `data\u002F` subdirectory\n6. Run `pytest` on the new test file to verify it passes\n",{"name":5,"arguments":38,"description":7,"disable-model-invocation":40},[39],{"name":29,"required":40,"description":41},true,"Path to the endpoint module to test (e.g., app\u002Fv1\u002Fendpoints\u002Fmanage\u002Ffabrics\u002Ffabric_get.py)","main","aae8bce80d5d6b6a593ad993fdad26d531db8318",".claude\u002Fskills\u002Fgen-test",0,"https:\u002F\u002Fgithub.com\u002Fallenrobel\u002Fnd-mock","https:\u002F\u002Fgithub.com\u002Fallenrobel","I work @cisco during the day.  At night, I write iOS apps and noodle with a guitar.","2026-03-08 08:19:02",{"source":8,"skillName":5,"commands":51,"prompt":61,"zipAvailable":40},[52,55,58],{"tool":53,"command":54},"npx","npx skills add allenrobel\u002Fnd-mock --skill gen-test",{"tool":56,"command":57},"bunx","bunx skills add allenrobel\u002Fnd-mock --skill gen-test",{"tool":59,"command":60},"pnpm","pnpm dlx skills add allenrobel\u002Fnd-mock --skill gen-test","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fallenrobel\u002Fnd-mock\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fgen-test\u002FSKILL.md",[63,69],{"path":64,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":67,"sourceHtmlUrl":68},"SOURCE.md","REFERENCE","参考文档",336,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Ftrading\u002Fbankrbot-official-bankr-twitter-agent\u002FSOURCE.md",{"path":70,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":71,"sourceHtmlUrl":72},"TRUST.auto.yaml",2197,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Ftrading\u002Fbankrbot-official-bankr-twitter-agent\u002FTRUST.auto.yaml",[74,85],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":33},"01M6CR3YWNN9D68Z5FP20D2FDG","sync-docs","Regenerate docs\u002Fsupported_endpoints.md by running utils\u002Fdocs_generate.py and verify it matches current endpoint registrations in app\u002Fmain.py","https:\u002F\u002Fgithub.com\u002Fallenrobel\u002Fnd-mock\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fsync-docs\u002FSKILL.md",[],[81,82,83,42,31,84,29,27],"sync docs","sync","docs","verify",{"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":33},"01M6CR3T32P5NK7HDS33J8NEY4","add-endpoint","Scaffold a new API endpoint with models, router, main.py registration, and test stubs based on schema\u002Fmanage.json or schema\u002Finfra.json definitions","https:\u002F\u002Fgithub.com\u002Fallenrobel\u002Fnd-mock\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fadd-endpoint\u002FSKILL.md",[],[29,92,42,93,24,94,32,95,96,97,98,99,30,100],"add endpoint","infra","registration","api endpoint","models","router","schema","json","scaffold"]