Skip to content
cccskills
FreePublished on GitHub

governance-sync

Audit or explicitly synchronize Claude and Codex repository governance without overwriting conflicts. Triggers: governance sync, CLAUDE.md, AGENTS.md, instruction mirror.

The English summary is being prepared. Showing the original description.

See how to install

Files included (2)

  • SKILL.md3.1 KB
  • agents/openai.yaml251 B

SKILL.md (original)

Review the instructions the agent will receive before you install.

Governance sync

This explicit-only operator audits native repository instructions and can create a missing Claude or Codex adapter from one declared source. It never edits a conflict.

Audit first

Resolve the installed script once. Claude Code and Codex compatibility loading provide CLAUDE_PLUGIN_ROOT; otherwise use the direct relative path from the documented installed skills/governance-sync working directory:

if [ -n "${CLAUDE_PLUGIN_ROOT:-}" ]; then
  KERNEL_GOVERNANCE_SYNC="$CLAUDE_PLUGIN_ROOT/scripts/governance-sync.py"
else
  KERNEL_GOVERNANCE_SYNC="../../scripts/governance-sync.py"
fi
test -f "$KERNEL_GOVERNANCE_SYNC"

Run python3 "$KERNEL_GOVERNANCE_SYNC" audit <root> --json. The audit discovers canonical Git roots, ignores caches, deduplicates linked worktrees, and reports: missing both, Claude-only, AGENTS-only, both identical, generated current, generated stale, incomplete generation, conflict, and scoped .claude states. Generated states are decided from manifest hashes and adapter provenance, not raw file equality. Missing-both is compliant and remains untouched unless init is explicit.

Writes require confirmation

Show the exact repository, source, target, and backup directory. Continue only after the user confirms one command:

python3 "$KERNEL_GOVERNANCE_SYNC" adopt REPO --source CLAUDE.md --backup-dir REPO/.kernel-governance-backups/adopt
python3 "$KERNEL_GOVERNANCE_SYNC" generate REPO --backup-dir REPO/.kernel-governance-backups/generate
python3 "$KERNEL_GOVERNANCE_SYNC" check REPO

AGENTS.md and .claude/CLAUDE.md are also valid sources. The manifest pins the source path, source hash, output, output hash, and generator version. Scoped sources stay where they are; only the missing root-native adapter is generated. A regular file conflict, unrecorded edit, stale hash, malformed manifest, symlink, or existing backup with different content stops the operation. Identical backups are idempotent. Backups stay inside the repository. Use separate BACKUPS/adopt and BACKUPS/generate phases so an approved source update preserves both the pre-adoption state and the adapter it replaces.

Writes are crash-consistent per file: each completed replacement is a whole, fsynced file. An interruption can leave some files current and others stale; check reports that drift without changing anything, and rerunning the write operation converges it. There is no background lock, journal, rollback, or cleanup of unknown temporary files. An existing backup-directory symlink is always rejected before path resolution.

Use python3 "$KERNEL_GOVERNANCE_SYNC" init REPO --backup-dir REPO/.kernel-governance-backups/init only when the user explicitly wants governance created in a repository where both native files are absent.

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Use AtomLane to compile and execute safe atomic parallel plans on macOS and native Windows Preview for worthwhile independent argv tasks, dependency DAGs, supported platform entrypoints, or Apple-silicon operators. Use at task start or an execution boundary when structured local work may contain two or more worthwhile units; skip plain answers, one quick command, and work whose effects cannot be safely bounded.

The English summary is being prepared. Showing the original description.

hashgraph-online/awesome-codex-plugins1.4KUpdated Oct 21, 2026

add

Free

Register a deferred decision in the debt registry. Trigger by judgment, not a marker scan, whenever a future reader would ask "why this way?": an unmade decision, stub, loosened type, bypassed check, swallowed error, a default picked "for now", or a TODO/FIXME/HACK/XXX marker. Trigger immediately whenever you defer work, or when the user invokes $add. Over-register freely; the developer drops with "drop A", "drop A,C", or "drop all".

The English summary is being prepared. Showing the original description.

hashgraph-online/awesome-codex-plugins1.4KUpdated Oct 21, 2026

ADK 框架适配层。为 LangChain / EINO / AutoGen / AgentScope / CrewAI 提供框架特定的 代码模板、惯用模式、API 映射和项目结构,供 agent-dev-workshop Phase 5 代码生成使用。 每个框架 reference 文件标注 verified_date 用于版本锁定。

The English summary is being prepared. Showing the original description.

hashgraph-online/awesome-codex-plugins1.4KUpdated Oct 21, 2026

中文调试修复技能。用于报错、测试失败、页面异常、功能不符合预期、需要定位根因并做最小修复时。触发语包括"进入调试模式""帮我修问题""报错了""测试失败""页面坏了""找根因"。

The English summary is being prepared. Showing the original description.

hashgraph-online/awesome-codex-plugins1.4KUpdated Oct 21, 2026

交互式 AI Agent 开发工作坊:通过 6 阶段深度协作对话,引导用户完成 Agent 需求分析、架构设计、 工具定义、Prompt 与编排设计、代码生成、验证迭代,产出可直接运行的 Agent 项目。 框架无关设计优先,支持 LangChain / EINO / AutoGen / AgentScope / CrewAI 等 ADK 框架。

The English summary is being prepared. Showing the original description.

hashgraph-online/awesome-codex-plugins1.4KUpdated Oct 21, 2026

中文漂移审计技能。用于项目或学习过程变乱、上下文漂移、任务分叉、多个方案冲突、命名不一致、Codex 可能顺手改多了时。触发语包括"漂移检查""感觉跑偏了""项目变乱了""检查是否失控""分叉太多""上下文漂移"。

The English summary is being prepared. Showing the original description.

hashgraph-online/awesome-codex-plugins1.4KUpdated Oct 21, 2026

See all skills by hashgraph-online

Report a problem with this skill