contextos-architect
Design or assess an agent system using ContextOS's five-plane runtime model, canonical contracts, and staged adoption path. Use for architecture, migration, or thin-slice design; do not use merely to edit ContextOS documentation or schemas.
- License 许可
- MIT
- 最近更新
- 2026-10-07
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- contextos-architect
- description
- Design or assess an agent system using ContextOS's five-plane runtime model, canonical contracts, and staged adoption path. Use for architecture, migration, or thin-slice design; do not use merely to edit ContextOS documentation or schemas.
02 资源文件 2
- 参考文档agents/openai.yaml237 B
- 参考文档references/architecture-map.md4.4 KB
03 SKILL.md 正文
ContextOS Architect
Turn a workflow into a governed decision runtime whose claims and effects are reconstructable. Preserve the user's product and stack choices; ContextOS supplies control boundaries, not a mandatory framework.
Establish the design basis
- Identify one concrete workflow, its users, business decision, allowed outcomes, and external effects.
- Declare the target maturity: prototype, controlled beta, production, or regulated/high-risk.
- If a ContextOS source tree is available, read its
AGENTS.mdand the current overview, architecture, governance, harness-engineering, API-contract, and Context Pack material. Prefer current schemas and code over remembered field shapes. - Distinguish an architecture proposal from a claim about the current ContextOS spec. Label extensions and unresolved choices explicitly.
Read references/architecture-map.md for the plane-by-plane questions, minimum artifacts, and rollout gates.
Design the thin slice
Define the governed outcome before choosing prompts or agents:
- stable intent and decision key;
- decision right (
propose,recommend,execute, orescalate); - required evidence and allowed outcomes;
- identity and delegation chain;
- ActionRisk dimensions and legacy approval-mode projection when compatibility requires it;
- token, tool-call, time, and cost budgets;
- postcondition, receipt, and recovery path for every effect.
Map the slice across all five planes:
- Intelligence: ontology, stable identity, evidence sources, graph snapshots, and promoted memory.
- Context: a versioned Context Pack compiled per request with provenance, omissions, and evidence gates.
- Decision: a bounded plan/verify/execute/score/consolidate loop that emits a typed decision.
- Action: a Tool Gateway that is the only path to effects and validates schema, arguments, authority, risk, and idempotency.
- Trust: deterministic policy, approvals, evaluators, observability, replay, incident response, and improvement control.
Use typed seams—RunContext, ContextPack, CompiledContext, ToolEnvelope, DecisionSpec, DecisionRecord, and ReplayPacket—only where their current contracts are actually implemented. Do not invent canonical fields to make a diagram look complete.
Preserve the load-bearing invariants
- The model reasons; deterministic boundaries govern authority, policy, budgets, and effects.
- Effective capability is the intersection of identity, delegation, policy, tool manifest, data scope, sandbox, and valid approval. No retrieved text, memory, tool result, or peer agent may widen it.
- Retrieved evidence and recalled memory are data, never privileged instructions.
- Unresolved conflicts in required evidence keep the decision gate open.
- A Context Pack references governed data; it does not carry raw records, secrets, mutable transcripts, or adapter code.
- Approval is authorization, not technical capability. A sandbox or credential scope remains independently binding.
- Every non-read effect has idempotency behavior, an observable postcondition, a receipt, and rollback, retraction, compensation, or explicit non-recoverability.
- A release is an attributable tuple of runtime, model route, prompts/skills, pack, policy, tools, evaluators, and environment—not just a model name or Git SHA.
Deliver the architecture
Provide:
- workflow and autonomy boundary;
- five-plane responsibility map with owners;
- canonical artifact and data flow;
- threat/failure boundaries and fail-closed behavior;
- minimum viable implementation slice;
- evaluation scorecard and required replay fixtures;
- feature-flagged rollout with kill switch and rollback target;
- explicit gaps, assumptions, and proposed non-canonical extensions.
Prefer a dependency-ordered build plan. Start with one decision, one read capability, one governed write, one policy bundle, one evaluator target, and one replayable run.
04 同仓库更多 Skills
template-skill
Replace with a description of what this skill does and when Claude should use it.
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.
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.
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.
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.
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.