[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M70FZ75HJFASBK0EBF5CPMQV":3,"skill-same:01M70FZ75HJFASBK0EBF5CPMQV":77},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":27,"publishedAt":45,"linkOnly":46,"markdownContent":47,"markdownBody":48,"frontMatter":49,"refName":53,"commitSha":54,"skillDirectory":55,"forksCount":56,"repositoryHtmlUrl":57,"repositoryHomepageUrl":58,"ownerHtmlUrl":59,"ownerBlogUrl":60,"ownerDescription":61,"updatedAt":62,"install":63,"resources":76},"01M70FZ75HJFASBK0EBF5CPMQV","test-contract",null,"Verify API schemas and contracts match expected format. Validate request\u002Fresponse structures. Use when testing APIs, before integration, or after schema changes.","dhaupin\u002Fvant","dhaupin","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6352930?v=4","01M70FR23MK9RWZMWEQCWXMJ5Y","01M70FR24ETCQQSC3TGH374C6A",16,"MIT","https:\u002F\u002Fgithub.com\u002Fdhaupin\u002Fvant\u002Fblob\u002Fmain\u002Fmodels\u002Fpublic\u002Fvant\u002Fskills\u002Fvant-skill-test-contract\u002FSKILL.md",[17,22],{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000008","测试与质量","SCENARIO","使用场景",{"categoryNo":23,"categoryName":24,"taxonomyType":25,"taxonomyTypeDesc":26},"01JBSEEDCAT000000000000037","律师与法务","PROFESSION","适用职业",[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],"test","test contract","contract","contracts","match","validate","integration","format","request","verify","changes","api","expected","when","use","schema","testing","2026-11-10 10:12:30",false,"---\nname: test-contract\ndescription: Verify API schemas and contracts match expected format. Validate request\u002Fresponse structures. Use when testing APIs, before integration, or after schema changes.\nlicense: MIT\nmetadata:\n  author: vant\n  version: \"1.0\"\n---\n\n# Test Contract\n\n> API schema validation.\n\n## When To Use\n\n- API testing\n- Before integration\n- After schema changes\n\n## What To Test\n\n### 1. Request Schema\n\n```javascript\nconst requestSchema = {\n  type: 'object',\n  required: ['email', 'password'],\n  properties: {\n    email: { type: 'string', format: 'email' },\n    password: { type: 'string', minLength: 8 }\n  }\n}\n```\n\n### 2. Response Schema\n\n```javascript\nconst responseSchema = {\n  type: 'object',\n  required: ['id', 'email'],\n  properties: {\n    id: { type: 'string' },\n    email: { type: 'string' }\n  }\n}\n```\n\n### 3. Validate\n\n```javascript\nconst Ajv = require('ajv')\nconst ajv = new Ajv()\nconst validate = ajv.compile(requestSchema)\nconst valid = validate(requestBody)\n```\n\n## Tools\n\n| Tool | Use |\n|------|-----|\n| ajv | JSON Schema validation |\n| json-schema-validator | Node validation |\n| Swagger\u002FOpenAPI | API spec validation |\n\n---\n\n## Output\n\n```\n## Contract Tests\n\n| Schema | Valid |\n|--------|-------|\n| Request | [PASS\u002FFAIL] |\n| Response | [PASS\u002FFAIL] |\n\n### Errors\n- [n] violations\n```\n\n**Role**: Contract Tester **Input**: Schema + Data **Output**: Validation results","# Test Contract\n\n> API schema validation.\n\n## When To Use\n\n- API testing\n- Before integration\n- After schema changes\n\n## What To Test\n\n### 1. Request Schema\n\n```javascript\nconst requestSchema = {\n  type: 'object',\n  required: ['email', 'password'],\n  properties: {\n    email: { type: 'string', format: 'email' },\n    password: { type: 'string', minLength: 8 }\n  }\n}\n```\n\n### 2. Response Schema\n\n```javascript\nconst responseSchema = {\n  type: 'object',\n  required: ['id', 'email'],\n  properties: {\n    id: { type: 'string' },\n    email: { type: 'string' }\n  }\n}\n```\n\n### 3. Validate\n\n```javascript\nconst Ajv = require('ajv')\nconst ajv = new Ajv()\nconst validate = ajv.compile(requestSchema)\nconst valid = validate(requestBody)\n```\n\n## Tools\n\n| Tool | Use |\n|------|-----|\n| ajv | JSON Schema validation |\n| json-schema-validator | Node validation |\n| Swagger\u002FOpenAPI | API spec validation |\n\n---\n\n## Output\n\n```\n## Contract Tests\n\n| Schema | Valid |\n|--------|-------|\n| Request | [PASS\u002FFAIL] |\n| Response | [PASS\u002FFAIL] |\n\n### Errors\n- [n] violations\n```\n\n**Role**: Contract Tester **Input**: Schema + Data **Output**: Validation results",{"name":5,"license":14,"metadata":50,"description":7},{"author":51,"version":52},"vant","1.0","main","8b503d1512c76e22a20a6ec9300fa670b37a79be","models\u002Fpublic\u002Fvant\u002Fskills\u002Fvant-skill-test-contract",1,"https:\u002F\u002Fgithub.com\u002Fdhaupin\u002Fvant","https:\u002F\u002Fvant.creadev.org","https:\u002F\u002Fgithub.com\u002Fdhaupin","https:\u002F\u002Fcreadev.org\u002F","Hi. I make web, app, ecom, enterprise, agent, and orchestration things. Let me know if I can help with your next project. 🤝 Part of the Creadev.org team.","2026-11-13 16:43:16",{"source":8,"skillName":5,"commands":64,"prompt":74,"zipAvailable":75},[65,68,71],{"tool":66,"command":67},"npx","npx skills add dhaupin\u002Fvant --skill test-contract",{"tool":69,"command":70},"bunx","bunx skills add dhaupin\u002Fvant --skill test-contract",{"tool":72,"command":73},"pnpm","pnpm dlx skills add dhaupin\u002Fvant --skill test-contract","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdhaupin\u002Fvant\u002Fblob\u002Fmain\u002Fmodels\u002Fpublic\u002Fvant\u002Fskills\u002Fvant-skill-test-contract\u002FSKILL.md",true,[],[78,87,101,109,129,152],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":45},"01M70G0NZMN2E0RPCAH59497C3","yaml","Data serialization.","https:\u002F\u002Fgithub.com\u002Fdhaupin\u002Fvant\u002Fblob\u002Fmain\u002Fmodels\u002Fpublic\u002Fvant\u002Fskills\u002Fvant-skill-yaml\u002FSKILL.md",[],[80,85,86],"serialization","data",{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":96,"publishedAt":45},"01M70G0MV7JGRXJ60VZZ692ZTM","vite","Frontend build tool.","https:\u002F\u002Fgithub.com\u002Fdhaupin\u002Fvant\u002Fblob\u002Fmain\u002Fmodels\u002Fpublic\u002Fvant\u002Fskills\u002Fvant-skill-vite\u002FSKILL.md",[93],{"categoryNo":94,"categoryName":95,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000009","前端开发",[89,97,98,99,100],"tool","build tool","build","frontend",{"skillNo":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":45},"01M70G0HAFQC4K6N14B5CWPMQ2","typescript","Typed JavaScript.","https:\u002F\u002Fgithub.com\u002Fdhaupin\u002Fvant\u002Fblob\u002Fmain\u002Fmodels\u002Fpublic\u002Fvant\u002Fskills\u002Fvant-skill-typescript\u002FSKILL.md",[],[103,108],"javascript",{"skillNo":110,"name":111,"nameZh":6,"description":112,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":113,"categories":114,"keywords":116,"publishedAt":45},"01M70G0CH5E4PVJ62YBP7WKV44","test-unit","Test individual functions and methods in isolation. Test happy path, edge cases, and error handling. Use when adding new functions, after bug fixes, or before commits.","https:\u002F\u002Fgithub.com\u002Fdhaupin\u002Fvant\u002Fblob\u002Fmain\u002Fmodels\u002Fpublic\u002Fvant\u002Fskills\u002Fvant-skill-test-unit\u002FSKILL.md",[115],{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},[117,28,118,41,119,120,121,122,123,42,124,125,126,127,128],"unit","test unit","error","commits","fixes","methods","edge","error handling","functions","bug","isolation","path",{"skillNo":130,"name":131,"nameZh":6,"description":132,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":133,"categories":134,"keywords":136,"publishedAt":45},"01M70G08P5CPCX3B3RJFF9VJC2","test-snapshot","Capture and compare UI\u002Fcomponent snapshots to detect visual changes. Use when testing UI rendering, before visual changes, or for design systems.","https:\u002F\u002Fgithub.com\u002Fdhaupin\u002Fvant\u002Fblob\u002Fmain\u002Fmodels\u002Fpublic\u002Fvant\u002Fskills\u002Fvant-skill-test-snapshot\u002FSKILL.md",[135],{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},[137,138,28,139,140,141,142,44,143,42,144,145,41,146,147,148,38,149,150,151],"test snapshot","snapshot","capture","ui","for","testing ui","design","design systems","snapshots","visual","compare","component","detect","rendering","systems",{"skillNo":153,"name":154,"nameZh":6,"description":155,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":156,"categories":157,"keywords":159,"publishedAt":45},"01M70G03WAR8HYBH7R2AZJRPCZ","test-smoke","Quick sanity check to verify basic functionality works. Run fastest tests first. Use when needing quick verification before deeper testing.","https:\u002F\u002Fgithub.com\u002Fdhaupin\u002Fvant\u002Fblob\u002Fmain\u002Fmodels\u002Fpublic\u002Fvant\u002Fskills\u002Fvant-skill-test-smoke\u002FSKILL.md",[158],{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},[28,160,161,162,163,164,44,165,42,41,166,167,168,169,37,170],"test smoke","smoke","quick","deeper","basic","tests","check","sanity","verification","first","run"]