Agent SkillsBytePioneer-AI/codex-host › architecture-governance

architecture-governance

GitHub

指导在修改生产代码时遵循架构治理规则,通过检查边界和依赖方向确保模块所有权合规。适用于涉及状态、异步或跨包契约变更的场景,需运行边界检查器验证。

.agents/skills/architecture-governance/SKILL.md BytePioneer-AI/codex-host

触发场景

修改生产代码 变更依赖方向 调整跨包契约

安装

npx skills add BytePioneer-AI/codex-host --skill architecture-governance -g -y
更多选项

非标准路径

npx skills add https://github.com/BytePioneer-AI/codex-host/tree/main/.agents/skills/architecture-governance -g -y

不安装直接使用

npx skills use BytePioneer-AI/codex-host@architecture-governance

指定 Agent (Claude Code)

npx skills add BytePioneer-AI/codex-host --skill architecture-governance -a claude-code -g -y

安装 repo 全部 skill

npx skills add BytePioneer-AI/codex-host --all -g -y

预览 repo 内 skill

npx skills add BytePioneer-AI/codex-host --list

SKILL.md

Frontmatter
{
    "name": "architecture-governance",
    "description": "Apply codexhost package and native ownership rules when changing production code or dependency directions. Inspect public contracts and run the existing boundary check; skip documentation-only work."
}

Architecture governance

Use the current repository's AGENTS.md and executable boundary checker as the policy. Paths in commands are relative to the repository root.

Before changing code

  1. Inspect the working tree and identify the owning package or crate. Preserve unrelated edits. Read the relevant package exports, contracts, implementation, tests, and feature documentation; use docs/index.md to locate it.
  2. For dependency changes, read tools/check-boundaries.mjs and run node tools/check-boundaries.mjs before editing to establish the current result. This checker scans the repository; it has no --changed mode or suppressible baseline.
  3. For changes to state, asynchronous behavior, or cross-package contracts, identify the authoritative owner, command path, derived views, event order, failure semantics, and native capability limits. Use implementation questions when needed.
  4. Record substantial behavior or architecture decisions in the relevant existing feature document. Follow AGENTS.md for documentation scope; small fixes do not require a new spec or module scaffold.

Implement within existing ownership

Use package public exports for cross-package dependencies. Preserve the Rust, Renderer, Shared Contracts, Host, and Harness Adapter responsibilities from AGENTS.md. Put Harness-specific protocols in the corresponding Adapter and load installed Harnesses through the plugin contract.

Use public contract guidance when an interface must change. New modules should solve a present responsibility; do not introduce ZCode's module manifests, layer names, or policy files into this repository merely to follow its original workflow.

Verify

Run node tools/check-boundaries.mjs after production changes that affect boundaries. Select other validation from the actual package scripts and owning test configuration, proportional to the change. Run focused behavior tests for changed semantics; a boundary check alone does not prove runtime correctness.

Report new failures separately from pre-existing failures, and state what was actually executed. A skipped or unavailable check remains unverified. Use the current script output as evidence; do not claim detection of cycles, line-count thresholds, or state ownership unless an executed check actually covers them.

版本历史

  • 3df9bd2 当前 2026-09-22 01:09

同 Skill 集合

.agents/skills/agent-browser/SKILL.md
.agents/skills/ai-elements/SKILL.md
.agents/skills/codexhost-add-harness/SKILL.md
.agents/skills/codexhost-pr-triage/SKILL.md
.agents/skills/codexhost-update-impact-audit/SKILL.md
.agents/skills/control-browser/SKILL.md
.agents/skills/dep-refs/SKILL.md
.agents/skills/dogfood/SKILL.md
.agents/skills/feature-boundary-planner/SKILL.md
.agents/skills/react-best-practices/SKILL.md
.agents/skills/web-gui-tester/SKILL.md
.agents/skills/electron/SKILL.md

元信息

文件数
0
版本
3df9bd2
Hash
391a0ee3
收录时间
2026-09-22 01:09

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-22 11:35
浙ICP备14020137号-1