[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71KAVVCHJV817WRGGQWJJGZ":3,"skill-same:01M71KAVVCHJV817WRGGQWJJGZ":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":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":44,"commitSha":45,"skillDirectory":46,"forksCount":47,"repositoryHtmlUrl":48,"repositoryHomepageUrl":49,"ownerHtmlUrl":50,"ownerBlogUrl":51,"ownerDescription":6,"updatedAt":52,"install":53,"resources":66},"01M71KAVVCHJV817WRGGQWJJGZ","validate-contracts",null,"Assert data shape consistency across system boundaries — live API responses against JSON Schema, key-set comparison across layers, data shape validation for migrations and exports. Catches silent data corruption before deploy.","danielvm-git\u002Fbigpowers","danielvm-git","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1020864?v=4","01M71H1N1CTQ529S0KN7KETVG6","Daniel V M","01M71H1N218Y3S8WHCJ58NPRSW",292,"MIT","https:\u002F\u002Fgithub.com\u002Fdanielvm-git\u002Fbigpowers\u002Fblob\u002Fmain\u002Fskills\u002Fvalidate-contracts\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"contracts","validate","validate contracts","json","migrations","verify","standard","comparison","schema","system","layers","for","consistency","json schema","sonnet","live","data","across","api","SET","2026-11-10 10:12:30",false,"---\n# story: e80s02\nname: validate-contracts\nphase: verify\ndescription: \"Assert data shape consistency across system boundaries — live API responses against JSON Schema, key-set comparison across layers, data shape validation for migrations and exports. Catches silent data corruption before deploy.\"\nmodel: sonnet\neffort: standard\n---\n\n# Validate Contracts\n\n> **HARD GATE** — Do NOT deploy or migrate data without running `validate-contracts` first. Silent data divergence between system boundaries causes the hardest-to-debug production bugs.\n>\n> **HARD GATE** — Contract files MUST be version-controlled alongside code. Outdated contracts are worse than no contracts. If a contract hasn't been reviewed in 30 days, flag it as stale.\n\nValidate that data structures stay in sync across system boundaries — front-end vs back-end, API responses vs expected schemas, config files vs code assumptions, migration output vs target shape.\n\n## Contract types\n\n| Mode | What it catches | When to use |\n|------|----------------|-------------|\n| **Schema** | API response shape mismatches | Before every deploy, after API changes |\n| **Key-set** | Missing\u002Funexpected keys across two data sources | Translation files, configs, enum definitions |\n| **Shape** | Column type or format violations | After migrations, before consuming exports |\n\n## Contract file convention\n\nAll contract files live in `specs\u002Fcontracts\u002F` as YAML. See [REFERENCE.md](REFERENCE.md) for extended examples.\n\n### Key-set example\n\n```yaml\n# specs\u002Fcontracts\u002Fi18n-keys.yaml\nsources:\n  reference: src\u002Flocales\u002Fen.json\n  target: src\u002Fmessages\u002Fen.json\nmode: subset\n```\n\n## Process\n\n### 1. Define contract\n\nCreate a YAML file in `specs\u002Fcontracts\u002F` following the schema for the mode.\n\n### 2. Run validation\n\n```bash\nbash scripts\u002Fvalidate-contracts.sh specs\u002Fcontracts\u002F\u003Ccontract>.yaml\n```\n\nThe runner auto-detects key-set contracts (`sources:` block). Schema and shape modes are documented in REFERENCE.md for consumer projects.\n\n### 3. Read the report\n\n```\nPASS: key-set contract\n# or\nFAIL: key-set — N keys in reference missing from target\n```\n\nJSON Lines output for CI is planned for schema\u002Fshape modes; key-set failures exit non-zero.\n\n### 4. Fix divergence\n\n- **Missing keys** → add to target source\n- **Type mismatches** → update schema or fix producer\n- **Shape violations** → fix migration or consumer\n\n### 5. Re-validate\n\n```bash\nbash scripts\u002Fvalidate-contracts.sh specs\u002Fcontracts\u002F\u003Ccontract>.yaml\n```\n\n## Verify arc\n\nPart of **★ VERIFY ★**: `verify-work` → `validate-contracts` → `smoke-test` → `run-evals` → `audit-code`\n\n## Verify\n\n→ verify: `test -x scripts\u002Fvalidate-contracts.sh && bash scripts\u002Fvalidate-contracts.sh --self-test && grep -q 'validate-contracts.sh' skills\u002Fvalidate-contracts\u002FSKILL.md && echo OK`\n","# Validate Contracts\n\n> **HARD GATE** — Do NOT deploy or migrate data without running `validate-contracts` first. Silent data divergence between system boundaries causes the hardest-to-debug production bugs.\n>\n> **HARD GATE** — Contract files MUST be version-controlled alongside code. Outdated contracts are worse than no contracts. If a contract hasn't been reviewed in 30 days, flag it as stale.\n\nValidate that data structures stay in sync across system boundaries — front-end vs back-end, API responses vs expected schemas, config files vs code assumptions, migration output vs target shape.\n\n## Contract types\n\n| Mode | What it catches | When to use |\n|------|----------------|-------------|\n| **Schema** | API response shape mismatches | Before every deploy, after API changes |\n| **Key-set** | Missing\u002Funexpected keys across two data sources | Translation files, configs, enum definitions |\n| **Shape** | Column type or format violations | After migrations, before consuming exports |\n\n## Contract file convention\n\nAll contract files live in `specs\u002Fcontracts\u002F` as YAML. See [REFERENCE.md](REFERENCE.md) for extended examples.\n\n### Key-set example\n\n```yaml\n# specs\u002Fcontracts\u002Fi18n-keys.yaml\nsources:\n  reference: src\u002Flocales\u002Fen.json\n  target: src\u002Fmessages\u002Fen.json\nmode: subset\n```\n\n## Process\n\n### 1. Define contract\n\nCreate a YAML file in `specs\u002Fcontracts\u002F` following the schema for the mode.\n\n### 2. Run validation\n\n```bash\nbash scripts\u002Fvalidate-contracts.sh specs\u002Fcontracts\u002F\u003Ccontract>.yaml\n```\n\nThe runner auto-detects key-set contracts (`sources:` block). Schema and shape modes are documented in REFERENCE.md for consumer projects.\n\n### 3. Read the report\n\n```\nPASS: key-set contract\n# or\nFAIL: key-set — N keys in reference missing from target\n```\n\nJSON Lines output for CI is planned for schema\u002Fshape modes; key-set failures exit non-zero.\n\n### 4. Fix divergence\n\n- **Missing keys** → add to target source\n- **Type mismatches** → update schema or fix producer\n- **Shape violations** → fix migration or consumer\n\n### 5. Re-validate\n\n```bash\nbash scripts\u002Fvalidate-contracts.sh specs\u002Fcontracts\u002F\u003Ccontract>.yaml\n```\n\n## Verify arc\n\nPart of **★ VERIFY ★**: `verify-work` → `validate-contracts` → `smoke-test` → `run-evals` → `audit-code`\n\n## Verify\n\n→ verify: `test -x scripts\u002Fvalidate-contracts.sh && bash scripts\u002Fvalidate-contracts.sh --self-test && grep -q 'validate-contracts.sh' skills\u002Fvalidate-contracts\u002FSKILL.md && echo OK`\n",{"name":5,"model":33,"phase":24,"effort":25,"description":7},"main","72f5e4c8b43f60cf86b37078ad8cd7e22daf67aa","skills\u002Fvalidate-contracts",23,"https:\u002F\u002Fgithub.com\u002Fdanielvm-git\u002Fbigpowers","https:\u002F\u002Fdanielvm-git.github.io\u002Fbigpowers\u002F","https:\u002F\u002Fgithub.com\u002Fdanielvm-git","danielvm.net","2026-11-10 01:18:54",{"source":8,"skillName":5,"commands":54,"prompt":64,"zipAvailable":65},[55,58,61],{"tool":56,"command":57},"npx","npx skills add danielvm-git\u002Fbigpowers --skill validate-contracts",{"tool":59,"command":60},"bunx","bunx skills add danielvm-git\u002Fbigpowers --skill validate-contracts",{"tool":62,"command":63},"pnpm","pnpm dlx skills add danielvm-git\u002Fbigpowers --skill validate-contracts","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdanielvm-git\u002Fbigpowers\u002Fblob\u002Fmain\u002Fskills\u002Fvalidate-contracts\u002FSKILL.md",true,[67],{"path":68,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":71,"sourceHtmlUrl":72},"REFERENCE.md","REFERENCE","参考文档",5316,"https:\u002F\u002Fgithub.com\u002Fdanielvm-git\u002Fbigpowers\u002Fblob\u002Fmain\u002Fskills\u002Fvalidate-contracts\u002FREFERENCE.md",[74,88,95,120,143,164],{"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":39},"01M71KBG9F8X644MJB16H4V8M7","skill-verify-fail-open-fixture","Negative-path fixture for run-skill-verify.sh — must never PASS.","https:\u002F\u002Fgithub.com\u002Fdanielvm-git\u002Fbigpowers\u002Fblob\u002Fmain\u002Fspecs\u002Fverifications\u002Ffixtures\u002Fskill-verify-fail-open\u002FSKILL.md",[],[81,82,24,83,84,85,86,30,87],"fixture","open","skill verify fail open fixture","skill verify","path","run","never",{"skillNo":89,"name":90,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":39},"01M71KBE3BKEMKNE0C5DGVDWZH","negative-path","https:\u002F\u002Fgithub.com\u002Fdanielvm-git\u002Fbigpowers\u002Fblob\u002Fmain\u002Fspecs\u002Fverifications\u002Ffixtures\u002Fnegative-path\u002FSKILL.md",[],[94,85],"negative path",{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":39},"01M71KBBGF7Y4EB4AMHBZ8CJFC","write-document","Write, organize, and sync high-integrity technical documents using the BMAD methodology. Ensures every document is Bold, Minimal, Actionable, and Durable. Use when creating architectural docs, technical guides, or organizing the specs\u002F directory.","https:\u002F\u002Fgithub.com\u002Fdanielvm-git\u002Fbigpowers\u002Fblob\u002Fmain\u002Fskills\u002Fwrite-document\u002FSKILL.md",[],[102,103,104,105,106,107,108,109,110,25,111,112,113,114,33,115,116,117,118,119],"write","write document","document","documents","actionable","technical","methodology","high","bmad","use","when","minimal","bold","integrity","organize","sync","directory","guides",{"skillNo":121,"name":122,"nameZh":6,"description":123,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":124,"categories":125,"keywords":126,"publishedAt":39},"01M71KB8TM089JJD5AY5KAFSDM","wire-observability","Add structured JSON logging, observability commands, and idempotent setup scripts to a project. Use when a project needs production-readiness instrumentation, when user wants structured logging, or as a production-readiness gate at any phase of development.","https:\u002F\u002Fgithub.com\u002Fdanielvm-git\u002Fbigpowers\u002Fblob\u002Fmain\u002Fskills\u002Fwire-observability\u002FSKILL.md",[],[127,128,129,25,130,111,131,132,133,134,33,135,136,137,138,139,140,112,141,142],"observability","wire observability","readiness","commands","development","as","logging","add","instrumentation","at","structured logging","production-readiness","idempotent","phase","project","scripts",{"skillNo":144,"name":145,"nameZh":6,"description":146,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":147,"categories":148,"keywords":149,"publishedAt":39},"01M71KB6CNRANP449DQA3NJZ96","wire-ci","CI pipeline setup with bundled, forge-neutral templates and local validation. Detects the forge from the git remote, generates workflows for supported forges, and skips honestly for the rest. The CI equivalent of wire-observability.","https:\u002F\u002Fgithub.com\u002Fdanielvm-git\u002Fbigpowers\u002Fblob\u002Fmain\u002Fskills\u002Fwire-ci\u002FSKILL.md",[],[150,151,152,153,154,155,156,157,158,159,160,25,161,30,127,33,162,163],"wire ci","ci","remote","local","pipeline","forge","validation","setup","templates","REST","with","ci pipeline setup","git","workflows",{"skillNo":165,"name":166,"nameZh":6,"description":167,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":168,"categories":169,"keywords":170,"publishedAt":39},"01M71KB2ZV98P03X88QR8MT9F1","visual-dashboard","Start a browser-based dashboard that visualizes architecture, implementation plans, and project status. Persists artifacts in .bigpowers\u002Fdashboard\u002F. Reads specs\u002Fstate.yaml, release-plan.yaml, epics, and planning-status via HTTP API or opencode panel.","https:\u002F\u002Fgithub.com\u002Fdanielvm-git\u002Fbigpowers\u002Fblob\u002Fmain\u002Fskills\u002Fvisual-dashboard\u002FSKILL.md",[],[171,172,173,174,175,176,177,178,179,33,180,181,182,183,184,37,185,141,186,187],"dashboard","visual","visual dashboard","status","artifacts","http","plans","planning","panel","start","release","opencode","plan","browser","architecture","project status","http api"]