ccg-workflow: Instructions file for Claude Code

CLAUDE.md

ccg-workflow CLAUDE.md is an instructions file for Claude Code from fengshao1227/ccg-workflow. It costs 19,787 tokens per session, scanned B, original, MIT.

Repository instructions for CCG, a multi-model collaboration system that coordinates several AI models and coding workflows.

In plain words
What is it for?
They help developers work on model delegation, MCP tool access, harness integrations, persistent teams, project memory, commands, and regression tests.
Why use it?
They record the current architecture and recent changes, including how tools, subagents, reviews, and execution modes are connected.

Instructions file for Claude Code

Written for Claude Code: PreToolUse hook event. Also seen: reads .claude/ paths; mentions .claude-plugin; mentions CLAUDE.md.

This is fengshao1227/ccg-workflow's own configuration. It tells Claude Code how to work on ccg-workflow itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ccg-workflow configures →

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is [根目录](../CLAUDE.md) > **skills-v2**.

About the project

CCG is a command-line workflow engine that coordinates Claude, Codex, Gemini, and other models as specialized collaborators on coding tasks. It is used to analyze requests, choose a strategy, delegate work to model-specific roles, and combine their results. The catalogue entries provide the skills, commands, agents, and plugin that implement this workflow.

fengshao1227/ccg-workflow · 5,951 stars · on GitHub · ccg.fengshao1227.com

Reuse

Borrowing it

Nothing to install: this file belongs to fengshao1227/ccg-workflow. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/fengshao1227/ccg-workflow/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/fengshao1227/ccg-workflow

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ccg-workflow CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/fengshao1227/ccg-workflow/claude-md/github.svg)](https://agentmods.dev/instructions/fengshao1227/ccg-workflow/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/fengshao1227/ccg-workflow/claude-md"><img src="https://agentmods.dev/badge/instructions/fengshao1227/ccg-workflow/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ccg-workflow CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/fengshao1227/ccg-workflow/claude-md"><img src="https://agentmods.dev/badge/instructions/fengshao1227/ccg-workflow/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 19,787 This file is loaded in full into every session.
When invoked 19,787 The same file — it is already loaded in full.
Security scan B 3 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.19787 $0.19787
Opus 5.5 $0.07915 $0.07915
Sonnet 5.5 $0.03957 $0.03957
Haiku 4.5 $0.01979 $0.01979

Measured 5d ago against content hash 7d69b3745be6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

ccg-workflow CLAUDE.md scanned grade B with 3 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

- ✨ **Codex CLI 接入 APIMart**:新增 `src/utils/installer-codex-api.ts`,把 APIMart 写成 `~/.codex/config.toml` 的 `[model_providers.apimart]`。`codex-mode install` 静默注册(保持非交互),`init` 选 APIMart 时另问是否接 Codex。**注册与启用分离,启用默认否**——翻 `mo

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- ✨ **Claude Code 安装**:支持 npm/homebrew/curl/powershell/cmd 多种方式

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

- 🐛 **`ccg doctor` 永远报 `✗ Binary Not found`**(#161,报告人已完整定位):`dist/cli.mjs` 是 ESM 且无 `createRequire` shim,而 `execSafe()` 里是 CommonJS `require('node:child_process')` → `ReferenceError` 被 `catch` 吞掉 → 返回 `null` → 调用方读作「没装
CLAUDE.md · 869 lines

How it starts

The opening of the file, as written. The whole thing — 869 lines — stays where its author put it; the contents beside it link to each section on GitHub.

skills-v2 (CCG Multi-Model Collaboration System)

根目录 > skills-v2

Last Updated: 2026-10-21 (v3.7.3)

⚠ 本文档主体仍停留在 v2.1.16 架构描述(v3.0 引擎重构后未全量同步)。下方变更记录保留 v3.x 修复轨迹,完整历史见 CHANGELOG.md。


变更记录 (Changelog)

完整变更历史请查看 CHANGELOG.md

2026-10-21 (v3.7.3)

  • 🐛 Windows dsh 链接失败:profileLinkCommand 给 cmd 的程序名加了引号 → PATH 查到的 .cmd 里 %~dp0 变成 cwd(microsoft/terminal#15212,官方不修),桌面版 dsh.cmd 在配置档目录下找 DeepSeek Harness.exe。程序名改为裸名([\w.-]+ 校验),参数照旧加引号。⚠ 在 Windows 上经 cmd 调 shim,程序名永远别加引号。
  • 🐛 Windows pnpm 兜底:cmd 报「找不到命令」是 status 9009 不是 ENOENT,现在视同未安装。新增 win32 专用实机测试(it.runIf);CI 只有 ubuntu,Mac/Linux 上跳过。

2026-10-18 (v3.7.2)

  • ✨ x6.ai 赞助商:README Banner(置于 PackyCode / APIMart 之下)+ init Step 1 / 菜单 API 配置新选项,ANTHROPIC_BASE_URL=https://api.x6.ai(不带 /v1)。Codex [model_providers.x6ai],base_url=https://api.x6.ai/v1(带 /v1),env_key=X6AI_API_KEY,注册与启用分离。只在 src/utils/sponsors.ts 加了一项,其余全部遍历注册表。
  • 🗑️ Gamma Remover 下架:README Banner 与 assets/sponsors/gamma-remover.webp 移除。

2026-10-12 (v3.7.1)

  • 🐛 新装 CLI 的 JSON 输出:显式关闭兼容 i18next 新版的 support notice,避免赞助 banner 污染 skills --json、doctor --json 和版本输出。

2026-10-12 (v3.7.0)

  • ✨ Skills 按需管理:新增 ccg skills catalog/list/install/update/remove 与菜单 S;Claude/Codex 原生 ccg-* 入口,immutable source cache、归属清单、写锁、事务回滚;脚本与参考依赖保留,入口只暴露所选技能。
  • ✨ 原生选择持久化:初始化支持兼容/核心六项/自定义及 --skills all|none|names;重装优先读取当前 manifest,显式 legacy 模式可持久切回。
  • ✨ 诊断 JSON:doctor --json 输出稳定 schema/checks/remediation/计数,失败退出 1;按真实 Claude/Codex/Skills-only 模式检查所选路由、Hook 和技能。
  • 🐛 工作流闭环:Hooks 配置安全注入,跟随实际后端及具体模型,单后端去重、纯 Claude 用原生 Agent;native 不重复注入旧知识,legacy 片段有大小预算。ESM 项目中的 Hook/skill scripts 有 CommonJS 边界。
  • 🐛 配置和更新:OpenCode provider/model 在 init/menu/重装保留;模型菜单复用本地 init;任一安装错误返回失败,不再让更新误清旧备份。

2026-10-12 (v3.6.8)

  • 🐛 dsh 0.2 插件适配(#163 / #165):删除失效的 settings 导出依赖,使用 Loader volatile Config 和 profile 表单读写;设置卡迁移到 settings.plugins.tab,browser inject 改为 dsh-client-ui-renderer。
  • 🐛 两代委派接口兼容:rc2 保留旧启动接口,alpha 使用 activation;模型群等待 caller 结果、检查完成状态并清理,队友通过 parent 完成通知交付。运行状态改读直接子级列表。
  • 🐛 配置与安装结果:修订号拒绝并发覆盖,非法矩阵在 Loader 提交前拒绝;安装器跟随目标 DSH_HOME 并链接稳定源码副本,链接失败不再报安装成功,Windows cmd shim 使用安全参数。
  • 🔄 兼容范围:dsh-ccg 0.5.0 支持 dsh 0.2.0-rc.2 / 0.2.1-alpha.2,不再支持旧 0.1.x;更新后重新运行 ccg dsh install 并重启 dsh。

Read the full file on GitHub · 869 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago Changed · +4 lines · +206 tokens per session 7d69b3745be6
  2. 8d ago Changed · +4 lines · +187 tokens per session d3d7dfe3d1b9
  3. 14d ago Changed · +16 lines · +656 tokens per session 4f7fff068656
  4. 1mo ago Changed · +14 lines · +594 tokens per session c5133ac8a2c5
  5. 1mo ago Changed · +6 lines · +573 tokens per session f7fca326b2a2
  6. 1mo ago First seen · 825 lines · 17,571 tokens per session scan B 1dafd5340786

Subscribe to this mod's changes

ccg-workflow CLAUDE.md is an instructions file published in the GitHub repository fengshao1227/ccg-workflow (5,951 stars, last pushed 6d ago), licensed MIT. It adds 19,787 tokens to every session, about $0.0791 per session on Opus 5.5. A static security scan graded it B with 3 findings (reads agent configuration directories, makes network calls, runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other instructions, from other repositories

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 9,715 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,786 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,731 tokens

deno copilot-instructions.md

Copilot instructions for denoland/deno, covering deno development guide for github copilot, network access, high level overview, key directories and key files to understand first.

denoland/deno · 3,077 tokens