[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7560G73B2MXV7H115QEN58M":3,"skill-same:01M7560G73B2MXV7H115QEN58M":56},{"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":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":30,"updatedAt":31,"install":32,"resources":45},"01M7560G73B2MXV7H115QEN58M","contextos-contract-sync",null,"Add or evolve ContextOS runtime contracts across TypeScript types, JSON Schemas, canonical examples, documentation, and drift tests. Use for RunContext, ContextPack, CompiledContext, ToolEnvelope, DecisionRecord, ReplayPacket, or delegation changes; not for prose-only edits.","contextosai\u002Fskills","contextosai","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F250783517?v=4","01M755ZZB3A7TQ0JMXMQ3V9C6A","Piyush","01M755ZZBYNZNFZBVZ2278BSYT",1,"MIT","https:\u002F\u002Fgithub.com\u002Fcontextosai\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcontextos-contract-sync\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: contextos-contract-sync\ndescription: Add or evolve ContextOS runtime contracts across TypeScript types, JSON Schemas, canonical examples, documentation, and drift tests. Use for RunContext, ContextPack, CompiledContext, ToolEnvelope, DecisionRecord, ReplayPacket, or delegation changes; not for prose-only edits.\n---\n\n# ContextOS Contract Sync\n\nKeep every executable representation of a runtime contract semantically aligned and versioned. Do not treat successful JSON parsing as proof of compatibility.\n\n## Inventory the affected surface\n\nRead the repository instructions, then locate:\n\n- TypeScript declaration and every producer\u002Fconsumer;\n- published JSON Schema and its `$defs` dependencies;\n- canonical scenario\u002Fcompiler or test harness;\n- implementation and reference documentation;\n- drift, schema-surface, runtime-schema, compiler, and admission tests.\n\nRead [references\u002Fsurface-map.md](references\u002Fsurface-map.md) for the current contract bundle, parity invariants, and test routing. Confirm the active repository still matches that map before editing.\n\n## Decide compatibility first\n\nClassify the change:\n\n- **Additive:** an optional field or compatible enum-free extension that legacy producers\u002Fconsumers may omit.\n- **Tightening:** stronger validation or newly required behavior; requires migration analysis even if the filename stays the same.\n- **Breaking:** removed\u002Frenamed field, changed meaning, narrowed enum accepted by existing producers, or new required field; use a major contract version and explicit migration.\n\nSeparate schema compatibility from runtime trust. An additive field may remain optional for old payloads while the canonical producer always emits it; consumers must treat absence as legacy\u002Funknown, never trusted.\n\n## Change the contract coherently\n\n1. Update the TypeScript semantic type and comments.\n2. Update deterministic producers and consumers; unsupported values fail closed.\n3. Update every published schema copy of shared definitions. Preserve draft 2020-12 and canonical `$id` conventions.\n4. Update canonical examples from the reference scenario or actual compiler output.\n5. Update the API schema index and explanatory docs.\n6. Add or strengthen tests that compare semantic definitions and producer output; do not merely assert wording.\n7. Remove superseded public schema versions only when the repository's single-authoritative-surface policy and migration plan require it. Never leave ambiguous duplicates.\n\n## Check cross-contract invariants\n\n- `trace_id`, tenant, identity, and lineage propagate across request, compiled context, tools, decision, and replay.\n- delegation scopes and sub-budgets narrow the parent.\n- `ActionRisk` has identical definitions where declared, compiled, and executed.\n- compiled context admission\u002Fevidence-gate definitions remain identical in the DecisionRecord audit surface.\n- tool call and result IDs correlate; policy decision and approval references resolve.\n- evidence, omissions, controls, hashes, and release pins required for replay survive to the audit record.\n- replay consumes recorded transcripts and does not repeat live effects.\n\n## Validate\n\nRun targeted schema-surface, runtime-schema, spec-drift, compiler, and context-admission tests as applicable, followed by typecheck and the full test suite. Parse every published schema and inspect the exact public schema file set.\n\nReturn a compatibility note, changed-surface matrix, migration implications, test evidence, and any consumer behavior that remains unverified.\n","# ContextOS Contract Sync\n\nKeep every executable representation of a runtime contract semantically aligned and versioned. Do not treat successful JSON parsing as proof of compatibility.\n\n## Inventory the affected surface\n\nRead the repository instructions, then locate:\n\n- TypeScript declaration and every producer\u002Fconsumer;\n- published JSON Schema and its `$defs` dependencies;\n- canonical scenario\u002Fcompiler or test harness;\n- implementation and reference documentation;\n- drift, schema-surface, runtime-schema, compiler, and admission tests.\n\nRead [references\u002Fsurface-map.md](references\u002Fsurface-map.md) for the current contract bundle, parity invariants, and test routing. Confirm the active repository still matches that map before editing.\n\n## Decide compatibility first\n\nClassify the change:\n\n- **Additive:** an optional field or compatible enum-free extension that legacy producers\u002Fconsumers may omit.\n- **Tightening:** stronger validation or newly required behavior; requires migration analysis even if the filename stays the same.\n- **Breaking:** removed\u002Frenamed field, changed meaning, narrowed enum accepted by existing producers, or new required field; use a major contract version and explicit migration.\n\nSeparate schema compatibility from runtime trust. An additive field may remain optional for old payloads while the canonical producer always emits it; consumers must treat absence as legacy\u002Funknown, never trusted.\n\n## Change the contract coherently\n\n1. Update the TypeScript semantic type and comments.\n2. Update deterministic producers and consumers; unsupported values fail closed.\n3. Update every published schema copy of shared definitions. Preserve draft 2020-12 and canonical `$id` conventions.\n4. Update canonical examples from the reference scenario or actual compiler output.\n5. Update the API schema index and explanatory docs.\n6. Add or strengthen tests that compare semantic definitions and producer output; do not merely assert wording.\n7. Remove superseded public schema versions only when the repository's single-authoritative-surface policy and migration plan require it. Never leave ambiguous duplicates.\n\n## Check cross-contract invariants\n\n- `trace_id`, tenant, identity, and lineage propagate across request, compiled context, tools, decision, and replay.\n- delegation scopes and sub-budgets narrow the parent.\n- `ActionRisk` has identical definitions where declared, compiled, and executed.\n- compiled context admission\u002Fevidence-gate definitions remain identical in the DecisionRecord audit surface.\n- tool call and result IDs correlate; policy decision and approval references resolve.\n- evidence, omissions, controls, hashes, and release pins required for replay survive to the audit record.\n- replay consumes recorded transcripts and does not repeat live effects.\n\n## Validate\n\nRun targeted schema-surface, runtime-schema, spec-drift, compiler, and context-admission tests as applicable, followed by typecheck and the full test suite. Parse every published schema and inspect the exact public schema file set.\n\nReturn a compatibility note, changed-surface matrix, migration implications, test evidence, and any consumer behavior that remains unverified.\n",{"name":5,"description":7},"main","43b8276ae4a34549906dec6c848cbab4ba32f99a","skills\u002Fcontextos-contract-sync",0,"https:\u002F\u002Fgithub.com\u002Fcontextosai\u002Fskills","https:\u002F\u002Fgithub.com\u002Fcontextosai","Local-first AI memory, agentic workflows, and personal knowledge OS for builders.\r\nOpen-source cognitive layer for notes, tools, context, and automation","2026-10-07 00:08:17",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add contextosai\u002Fskills --skill contextos-contract-sync",{"tool":38,"command":39},"bunx","bunx skills add contextosai\u002Fskills --skill contextos-contract-sync",{"tool":41,"command":42},"pnpm","pnpm dlx skills add contextosai\u002Fskills --skill contextos-contract-sync","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fcontextosai\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcontextos-contract-sync\u002FSKILL.md",true,[46,52],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"agents\u002Fopenai.yaml","REFERENCE","参考文档",237,"https:\u002F\u002Fgithub.com\u002Fcontextosai\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcontextos-contract-sync\u002Fagents\u002Fopenai.yaml",{"path":53,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":54,"sourceHtmlUrl":55},"references\u002Fsurface-map.md",4302,"https:\u002F\u002Fgithub.com\u002Fcontextosai\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcontextos-contract-sync\u002Freferences\u002Fsurface-map.md",[57,64,71,78,85,92],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":19},"01M76S0GH6D0VRZ2JFXQF75TY3","template-skill","Replace with a description of what this skill does and when Claude should use it.","https:\u002F\u002Fgithub.com\u002Fcontextosai\u002Fskills\u002Fblob\u002Fmain\u002Ftemplate\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":19},"01M76S0D3VM8XQQFK8RA6YA7R2","verify-change","Design and execute a risk-based verification strategy for a software change, bug fix, refactor, migration, configuration update, or release candidate. Use when Codex needs to prove that a change works, choose proportional tests, investigate whether validation is sufficient, or report what remains unverified. Trace claims to evidence across static checks, focused tests, integration boundaries, and runtime behavior instead of merely running the entire test suite.","https:\u002F\u002Fgithub.com\u002Fcontextosai\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fverify-change\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":19},"01M76S09DHTPYMC5B5XZMJ8SWG","triage-incident","Triage an active or recent software production incident by establishing impact, stabilizing the system, preserving evidence, building a timestamped timeline, coordinating hypotheses, and choosing reversible mitigations. Use when users report an outage, severe degradation, security or data-integrity event, broken deployment, elevated errors, or ask for incident command, status assessment, mitigation, or investigation support. Prioritize user harm reduction over root-cause completeness and require explicit authority for production mutations.","https:\u002F\u002Fgithub.com\u002Fcontextosai\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Ftriage-incident\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M7561WJ328HD8Q6D6R7C6711","review-change","Review a code change for concrete correctness, security, data-integrity, compatibility, concurrency, and operability regressions by reconstructing intent and checking affected invariants and boundary paths. Use for local diffs, commits, branches, patches, or pull requests when the user wants actionable review findings. Report only defects introduced or exposed by the change with precise evidence; do not modify code unless asked to address findings.","https:\u002F\u002Fgithub.com\u002Fcontextosai\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Freview-change\u002FSKILL.md",[],[],{"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":19},"01M7561S5J5V0FY7ND8FBB2C8Q","repo-orient","Map an unfamiliar software repository from code and configuration. Use when Codex needs to understand a new codebase, locate entry points or ownership boundaries, explain architecture and runtime flow, identify where a change belongs, or prepare for implementation without yet modifying files. Produce an evidence-backed repository map, not a directory listing or README paraphrase.","https:\u002F\u002Fgithub.com\u002Fcontextosai\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Frepo-orient\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":19},"01M7561M6A7D4T3JE315JAB1BG","refactor-safely","Restructure existing code while preserving externally observable behavior through explicit invariants, characterization evidence, small reversible steps, and continuous verification. Use when the user asks to refactor, simplify, extract, reorganize, modularize, deduplicate, split a component, improve architecture, or pay down technical debt without intentionally changing product behavior. Distinguish refactoring from feature work and stop scope drift from hiding inside structural edits.","https:\u002F\u002Fgithub.com\u002Fcontextosai\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Frefactor-safely\u002FSKILL.md",[],[]]