CLAUDE.md@srcA
CLAUDE.md@src from fengshao1227/ccg-workflow is a CLAUDE.md file: the standing instructions Claude Code reads in that repo.
mdr add fengshao1227/ccg-workflow/src/CLAUDE.md@git:20261012.db66728Pins git:20261012.db66728 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 14 of 14 checks passed
- Kind
- CLAUDE.md file
- Repository
- fengshao1227/ccg-workflow
- Path
src/CLAUDE.md- Versions recorded
- 5
- Latest version
- git:20261012.db66728, committed Oct 12, 2026
- First version recorded
- Aug 29, 2026
- Size
- 21,985 bytes
- Repository stars
- 5,957
- License
- MIT
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# src (CCG TypeScript CLI)
> [根目录](../CLAUDE.md) > **src**
**Last Updated**: 2026-09-15
---
## 模块职责
`src/` 是 CCG Workflow CLI 工具的全部 TypeScript 实现。负责:一键安装/更新 CCG 工作流到用户环境 (`~/.claude/`),从 `templates/` 读取素材并经过模板变量替换后写入目标位置,管理 MCP 服务配置(Claude/Codex/Gemini 三端同步),提供中英双语交互界面,以及通过 Skill Registry 从 SKILL.md frontmatter 自动生成 slash commands。
打包产物由 `unbuild` 输出到 `dist/`,由 `bin/ccg.mjs` 加载,通过 `npx ccg-workflow` 或 `npx ccg-workflow menu` 调用。
---
## 入口与启动
| 文件 | 角色 |
|------|------|
| `src/cli.ts` | CLI 主入口,创建 `cac('ccg')` 实例,调用 `setupCommands()` 注册命令,然后 `cli.parse()` |
| `src/cli-setup.ts` | 命令注册层,读取 `~/.claude/.ccg/config.toml` 初始化语言,为每个命令绑定 action |
| `src/index.ts` | 库导出入口,聚合所有公开 API 供外部程序调用 |
| `dist/` | `unbuild` 产物,`cli.mjs` + `index.mjs` 各一份 |
| `bin/ccg.mjs` | npm bin 脚本,加载 `dist/cli.mjs` |
**启动链**:`npx ccg-workflow` → `bin/ccg.mjs` → `dist/cli.mjs` → `cli.ts:main()` → `setupCommands()` → `cli.parse()`
---
## 对外接口
### CLI 命令(`src/cli-setup.ts`)
| 命令 | 别名 | 说明 | 实现文件 |
|------|------|------|----------|
| `ccg` (默认) | — | 显示交互式菜单 | `commands/menu.ts:showMainMenu()` |
| `ccg init` | `ccg i` | 4 步交互安装向导 | `commands/init.ts:init()` |
…Read the whole file at its exact version.
How to install
mdr add fengshao1227/ccg-workflow/src/CLAUDE.md@sha256:30c378627d0d264cThe line at the top of this page pins the label git:20261012.db66728, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_ntnbf4ozwqvuntmn)
0 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 5 versions of this file, between Aug 29, 2026 and Oct 12, 2026, about one every 11 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20261012.db66728 latest | 2026-10-12 | db66728 | 21,985 B | A | view · diff |
| git:20260915.f349e3d | 2026-09-15 | f349e3d | 20,727 B | A | view · diff |
| git:20260915.2247aac | 2026-09-15 | 2247aac | 20,564 B | A | view · diff |
| git:20260903.fba314b | 2026-09-03 | fba314b | 20,156 B | A | view · diff |
| git:20260829.fe90405 | 2026-08-29 | fe90405 | 18,824 B | A | view |
Audit of the latest version
- pass: Size between 200 bytes and 200 KB (21985 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
fengshao1227/ccg-workflow · 5,957 stars · license MIT · pushed 2026-11-02 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_ntnbf4ozwqvuntmn GET https://markdownregistry.com/api/v1/resolve?ref=fengshao1227/ccg-workflow/src/CLAUDE.md GET https://markdownregistry.com/api/v1/blob/30c378627d0d264c83b853939180be9ecb89ef7a256d04b5b432ff042ae252b8
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: what a CLAUDE.md file is · keeping AGENTS.md and CLAUDE.md in sync · which agent file does what.
More from fengshao1227/ccg-workflow
Every file in fengshao1227/ccg-workflow