[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7F6DBVNEW8AK9291BD8TCCX":3,"skill-same:01M7F6DBVNEW8AK9291BD8TCCX":50},{"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":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":32,"ownerHtmlUrl":33,"ownerBlogUrl":32,"ownerDescription":34,"updatedAt":35,"install":36,"resources":49},"01M7F6DBVNEW8AK9291BD8TCCX","contract-change",null,"Change a Cloudhal domain contract (JSON Schema in packages\u002Fcore-contracts) and regenerate TypeScript and Rust types without drift. Use when adding or changing a node type, field, enum value or shared definition.","cloudhal-dev\u002Fcloudhal","cloudhal-dev","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F339305508?v=4","01M7F6CBSQSXRK024DJC53T1F3","Cloudhal","01M7F6CBTBR6CZKSPTB3812R1D",1,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fcloudhal-dev\u002Fcloudhal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fcontract-change\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: contract-change\ndescription: Change a Cloudhal domain contract (JSON Schema in packages\u002Fcore-contracts) and regenerate TypeScript and Rust types without drift. Use when adding or changing a node type, field, enum value or shared definition.\nlicense: Apache-2.0\nmetadata:\n  cloudhal.kind: \"repo-skill\"\n  cloudhal.area: \"area:graph\"\n---\n\n# Contract change\n\nContracts are JSON Schema 2020-12 files in `packages\u002Fcore-contracts\u002Fschemas\u002F`. Both `src\u002Fgenerated\u002F*.ts` and `crates\u002Fcloudhal-schema\u002Fsrc\u002Fgenerated\u002F*.rs` are produced from them and committed; CI rejects drift.\n\n## Steps\n\n1. **Decide the version impact.** Adding an optional field is non-breaking. Removing\u002Frenaming a field, changing a type, or adding a required field is breaking → bump `SchemaVersion` enum in `common.schema.json` only with an accepted RFC (`write-rfc`), and keep the old version's fixtures.\n2. **Edit the schema.** Shared shapes go in `common.schema.json#\u002F$defs`; root-specific helpers in that root's `$defs`. Stay inside the generator-safe subset:\n   - unions: `oneOf` + inline object variants + a one-value enum discriminator, `\"kind\": {\"type\":\"string\",\"enum\":[\"one\"]}` unless the domain says otherwise (field definitions use `type`, ADR-0043), listed in `required`\n   - no `default`, `$dynamicRef`, `unevaluatedProperties`, `dependentSchemas`, `if\u002Fthen`\n   - cross-file refs only `common.schema.json#\u002F$defs\u002FX` or `\u003Croot>.schema.json` (top level)\n   - `additionalProperties: false` on objects; maps use `additionalProperties: {schema}`\n   - string `pattern`s must be valid in both JS and the Rust `regress` crate (ECMAScript syntax; avoid lookbehind)\n3. **Add fixtures.** At least one `fixtures\u002Fvalid\u002F\u003Cschema>\u002F*.json` exercising the new shape and one `fixtures\u002Finvalid\u002F\u003Cschema>\u002F*.json` as `{\"reason\": \"...\", \"data\": {...}}`.\n4. **Regenerate and test.**\n   ```bash\n   pnpm gen\n   pnpm check && cargo test --workspace && cargo clippy --workspace --all-targets -- -D warnings\n   ```\n   If Rust round-trip fails, the usual causes are `default` (serde skips defaults) or a union shape typify turned into `untagged`. Fix the schema, not the generated code.\n5. **Check the generated diff reads as intended** (`git diff packages\u002Fcore-contracts\u002Fsrc\u002Fgenerated crates\u002Fcloudhal-schema\u002Fsrc\u002Fgenerated`). Unexpected renames mean a `title` changed.\n6. **Commit schema + fixtures + generated files together**; add a changeset for `@cloudhal\u002Fcore-contracts`; reference the RFC\u002FADR in the commit body.\n\n## References\n- `docs\u002Fadr\u002F0001-contract-pipeline.md` — why this pipeline, tool pins\n- `docs\u002Frfcs\u002F0001-site-graph.md` — the model and its invariants\n- https:\u002F\u002Fgithub.com\u002Foxidecomputer\u002Ftypify (supported schema subset) · https:\u002F\u002Fgithub.com\u002Fbcherny\u002Fjson-schema-to-typescript\n","# Contract change\n\nContracts are JSON Schema 2020-12 files in `packages\u002Fcore-contracts\u002Fschemas\u002F`. Both `src\u002Fgenerated\u002F*.ts` and `crates\u002Fcloudhal-schema\u002Fsrc\u002Fgenerated\u002F*.rs` are produced from them and committed; CI rejects drift.\n\n## Steps\n\n1. **Decide the version impact.** Adding an optional field is non-breaking. Removing\u002Frenaming a field, changing a type, or adding a required field is breaking → bump `SchemaVersion` enum in `common.schema.json` only with an accepted RFC (`write-rfc`), and keep the old version's fixtures.\n2. **Edit the schema.** Shared shapes go in `common.schema.json#\u002F$defs`; root-specific helpers in that root's `$defs`. Stay inside the generator-safe subset:\n   - unions: `oneOf` + inline object variants + a one-value enum discriminator, `\"kind\": {\"type\":\"string\",\"enum\":[\"one\"]}` unless the domain says otherwise (field definitions use `type`, ADR-0043), listed in `required`\n   - no `default`, `$dynamicRef`, `unevaluatedProperties`, `dependentSchemas`, `if\u002Fthen`\n   - cross-file refs only `common.schema.json#\u002F$defs\u002FX` or `\u003Croot>.schema.json` (top level)\n   - `additionalProperties: false` on objects; maps use `additionalProperties: {schema}`\n   - string `pattern`s must be valid in both JS and the Rust `regress` crate (ECMAScript syntax; avoid lookbehind)\n3. **Add fixtures.** At least one `fixtures\u002Fvalid\u002F\u003Cschema>\u002F*.json` exercising the new shape and one `fixtures\u002Finvalid\u002F\u003Cschema>\u002F*.json` as `{\"reason\": \"...\", \"data\": {...}}`.\n4. **Regenerate and test.**\n   ```bash\n   pnpm gen\n   pnpm check && cargo test --workspace && cargo clippy --workspace --all-targets -- -D warnings\n   ```\n   If Rust round-trip fails, the usual causes are `default` (serde skips defaults) or a union shape typify turned into `untagged`. Fix the schema, not the generated code.\n5. **Check the generated diff reads as intended** (`git diff packages\u002Fcore-contracts\u002Fsrc\u002Fgenerated crates\u002Fcloudhal-schema\u002Fsrc\u002Fgenerated`). Unexpected renames mean a `title` changed.\n6. **Commit schema + fixtures + generated files together**; add a changeset for `@cloudhal\u002Fcore-contracts`; reference the RFC\u002FADR in the commit body.\n\n## References\n- `docs\u002Fadr\u002F0001-contract-pipeline.md` — why this pipeline, tool pins\n- `docs\u002Frfcs\u002F0001-site-graph.md` — the model and its invariants\n- https:\u002F\u002Fgithub.com\u002Foxidecomputer\u002Ftypify (supported schema subset) · https:\u002F\u002Fgithub.com\u002Fbcherny\u002Fjson-schema-to-typescript\n",{"name":5,"license":15,"metadata":24,"description":7},{"cloudhal.area":25,"cloudhal.kind":26},"area:graph","repo-skill","main","35f66894fd3fc24dbb5f630b9b8e5fb46b2f60ff",".agents\u002Fskills\u002Fcontract-change",0,"https:\u002F\u002Fgithub.com\u002Fcloudhal-dev\u002Fcloudhal","https:\u002F\u002Fcloudhal.com","https:\u002F\u002Fgithub.com\u002Fcloudhal-dev","Open-source, agent-native site platform. Sites your agents can build, safely.","2026-11-15 16:43:04",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add cloudhal-dev\u002Fcloudhal --skill contract-change",{"tool":42,"command":43},"bunx","bunx skills add cloudhal-dev\u002Fcloudhal --skill contract-change",{"tool":45,"command":46},"pnpm","pnpm dlx skills add cloudhal-dev\u002Fcloudhal --skill contract-change","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fcloudhal-dev\u002Fcloudhal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fcontract-change\u002FSKILL.md",true,[],[51,58,65,72,79,86],{"skillNo":52,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":19},"01M7F6HKXT8V2ERN4YQX8ZJQPT","stale-review","Review a few published articles that have not been updated for a long time, make small safe fixes in drafts, and leave them as one proposed release for a person to schedule - never publishing anything. Built for a weekly scheduled agent task (begin_run, then end_run) that does not read visitor text. Use for a periodic content review or when asked which old articles need attention.","https:\u002F\u002Fgithub.com\u002Fcloudhal-dev\u002Fcloudhal\u002Fblob\u002Fmain\u002Fskills\u002Fofficial\u002Fstale-review\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":19},"01M7F6HE4N308FAQSWYFVHPGFD","site-design","Design or redesign Cloudhal pages that look modern and follow the site's own design rules (DESIGN.md). Use when asked to build, design, restyle or improve a page, a landing page or a home page, or to write the site's design rules.","https:\u002F\u002Fgithub.com\u002Fcloudhal-dev\u002Fcloudhal\u002Fblob\u002Fmain\u002Fskills\u002Fofficial\u002Fsite-design\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M7F6HAJD269MKDJ07XH8R538","site-bootstrap","Set up a new Cloudhal site's first pages and navigation from a short brief. Use when a site is empty or the user asks to \"set up\", \"scaffold\" or \"bootstrap\" a site.","https:\u002F\u002Fgithub.com\u002Fcloudhal-dev\u002Fcloudhal\u002Fblob\u002Fmain\u002Fskills\u002Fofficial\u002Fsite-bootstrap\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M7F6H3CV8KXHTT3FN919WSEX","safe-edit","Make a reviewable change to an existing page or article - snapshot first, edit, preview, report the diff. Use for any edit request on existing content, including re-filing an article under other categories or tags.","https:\u002F\u002Fgithub.com\u002Fcloudhal-dev\u002Fcloudhal\u002Fblob\u002Fmain\u002Fskills\u002Fofficial\u002Fsafe-edit\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M7F6GP12RFE32BQT1D4JCSJY","rollback","Restore a site to an earlier snapshot after confirming the target with the user. Use when something published is wrong and the user asks to revert, undo or roll back.","https:\u002F\u002Fgithub.com\u002Fcloudhal-dev\u002Fcloudhal\u002Fblob\u002Fmain\u002Fskills\u002Fofficial\u002Frollback\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M7F6G593PWRV1KKKG448S74W","publish-article","Check a draft article, file it under the site's categories and tags, produce a preview and submit it for publication now or at a set time, optionally under an embargo or with an expiry. Use when the user asks to publish, release, schedule or go live with an article.","https:\u002F\u002Fgithub.com\u002Fcloudhal-dev\u002Fcloudhal\u002Fblob\u002Fmain\u002Fskills\u002Fofficial\u002Fpublish-article\u002FSKILL.md",[],[]]