[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M757BG05E6DDFQ1FG334D39V":3,"skill-same:01M757BG05E6DDFQ1FG334D39V":62},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":31,"install":32,"resources":45},"01M757BG05E6DDFQ1FG334D39V","su-init",null,"初始化项目级 CCB plugin 工作区，使 plugin 可脱离 Console 独立运行。","SeemSeam\u002Fagent-roles-spec","SeemSeam","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F29205273?v=4","01M7572MDYPSM30Y29C9HRMGK7","01M7572MEGCX02T16BHYV9PBVK",19,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FSeemSeam\u002Fagent-roles-spec\u002Fblob\u002Fmain\u002Froles\u002Fsu-ccb\u002Fskills\u002Fsu-init\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: su-init\ndescription: 初始化项目级 CCB plugin 工作区，使 plugin 可脱离 Console 独立运行。\nmetadata:\n  short-description: CCB 项目初始化\n---\n\n# \u002Fccb:su-init\n\n## 1. 指令意图说明\n\n`\u002Fccb:su-init` 用于把一个普通项目初始化为 CCB plugin 可工作的项目。它创建项目内工作记录、索引入口、agent 协作说明和必要目录，让后续 `\u002Fccb:su-flow` 不依赖 Console 也能运行。\n\n## 2. 节点集声明\n\n`su-init` 不直接进入业务节点，但必须安装或校验节点 manifest：\n\n| 节点 | Manifest |\n|---|---|\n| 需求分析 | `references\u002Fkernel\u002Fnodes\u002Frequirement_analysis.node.md` |\n| 技术设计 | `references\u002Fkernel\u002Fnodes\u002Ftechnical_design.node.md` |\n| 任务拆分 | `references\u002Fkernel\u002Fnodes\u002Ftask_breakdown.node.md` |\n| 派工 | `references\u002Fkernel\u002Fnodes\u002Fdispatch.node.md` |\n| 实施 | `references\u002Fkernel\u002Fnodes\u002Fimplementation.node.md` |\n| 审查 | `references\u002Fkernel\u002Fnodes\u002Freview.node.md` |\n| 归档 | `references\u002Fkernel\u002Fnodes\u002Farchive.node.md` |\n\n初始化完成后，用户可直接调用 `\u002Fccb:su-flow` 进入业务节点。\n\n## 3. 触发约定\n\n```text\n\u002Fccb:su-init\n\u002Fccb:su-init project=\u003Cname>\n```\n\n运行时先扫描当前目录，确认是否已有 `docs\u002F.ccb\u002F` 和 agent 说明文件。已有文件不得静默覆盖；命中覆盖用户文件时跳过并在摘要中报告。\n\n### init lib 调用契约\n\n收到本指令后必须调用 plugin lib 或同等 CLI，不得手写一套脚手架流程：\n\n```js\nimport { initProjectScaffold } from \"..\u002F..\u002Flib\u002Fsu-init\u002Findex.mjs\";\n\nconst result = await initProjectScaffold({ projectRoot });\n```\n\nCLI 形式：\n\n```bash\nnode \u003Cplugin>\u002Fskills\u002Fsu-init\u002Fscripts\u002Finit.mjs --project-root \u003CprojectRoot>\n```\n\n### 旧项目架构生成\n\n`initProjectScaffold()` 返回的 `summary.architectureCandidates` 是旧项目架构生成的唯一入口判定。不得在 skill 内复制候选发现算法；需要复核时直接从 lib 导入 `detectArchitectureCandidates`。\n\n返回字段按 lib 实际接口消费：\n\n- 顶层：`mode`、`reason`、`candidates`、`overviewTargetPath`、`overviewExisting`、`excluded`、`scopeConflicts`、`existingArchitectureDocs`、`capLimit`。\n- 候选：`id`、`path`、`kind`、`disposition`、`confidence`、`evidence`、`targetPath`、`existing`。\n\n处理流程：\n\n1. 先完成 init lib 三步脚手架，再读取 `summary.architectureCandidates`。\n2. `mode === \"skip\"`：不生成架构文档；回执说明 `reason`：\n   - `no_source`：未检测到源码候选。\n   - `architecture_exists`：`docs\u002F01_架构设计\u002F` 下存在无 `architecture_scope` 的非模板 `.md`，保守跳过。\n   同时带上 `existingArchitectureDocs`、`excluded`、`scopeConflicts`（非空时）。\n3. `mode === \"single\"`：只处理 `candidates` 中 `disposition === \"generate\"` 的候选。若候选 `existing === true`，终态记 `existing`，不写文件；否则进入候选证据门槛，通过后按候选 `targetPath` 生成一份子架构文档。\n4. `mode === \"layered\"`：按候选 `id` 字典序逐个处理。每个 `disposition === \"generate\"` 且未 existing 的候选独立走证据门槛；不足则终态记 `evidence_insufficient` 并继续其余候选；全部子架构处理完后再生成总架构。\n5. `mode === \"overview_only\"`：不生成子架构；仅按 `overviewTargetPath` 生成总架构，内容包含全部候选清单、`excluded`、`scopeConflicts` 和点名补生成提示。若 `overviewExisting === true`，总架构终态记 `existing`，不得覆盖。\n6. `kind === \"submodule\"` 的候选终态记 `submodule`，只进入总架构清单，不生成子架构；`disposition === \"list_only\"` 的非 submodule 候选终态记 `list_only`。\n7. `excluded` 单独进入回执：`framework_shell_merged` 映射为 `shell_merged`，`root_aggregator` 映射为 `aggregator_excluded`；其它 excluded reason 原样列在 excluded 摘要里。\n\n候选证据门槛：\n\n1. 以候选 `path` 为源码根收集证据，不把其它候选目录的证据混入本候选。\n2. 必须拿到候选目录树。\n3. 必须至少有 1 类 grounding 源：README、依赖 manifest、入口文件、候选 `evidence` 指向的运行\u002F部署\u002F入口证据、或 SC 结构分析结果。\n4. 必须至少能填出「概述」「技术栈」「项目结构」「核心模块 \u002F 入口」四块。\n5. 证据不足时不写该候选文件；终态记 `evidence_insufficient`，回执列缺少哪类证据并建议用户手写或点名补充。\n6. 证据足够时，优先使用 `\u002Fsc:analyze` + `\u002Fsc:index-repo` 获取结构证据；SC 不可用时，直接读取 README、入口文件、依赖 manifest、候选 `evidence` 和目录树兜底。\n\n子架构渲染：\n\n1. 按 `templates\u002Fdocs\u002F01_架构设计\u002F_模板_架构.md` 的章节结构渲染，只填有据章节。\n2. 技术栈来自依赖 manifest；项目结构来自目录树；核心模块来自顶层目录、入口文件和 import 关系；概述来自 README 或等价项目说明。\n3. 推不出的章节直接省略，包括部署拓扑、外部服务、权限模型、历史意图。正文不得写 TODO、待校正、也不得用 hedge 文本代替证据。\n4. 子架构的「覆盖范围 \u002F 不覆盖」必须写清候选 `path`，并在 layered 模式下指向总架构。\n\nscope frontmatter 必须写单行 inline list：\n\n```yaml\n---\ndoc_type: architecture\nupdated: YYYY-MM-DD\ngenerated_by: su-init-ai\nhuman_verified: false\narchitecture_scope: \u003C子系统 slug>\nscope_source_roots: [\"apps\u002Fweb\", \"src-tauri\"]\n---\n```\n\n总架构固定使用：\n\n```yaml\n---\ndoc_type: architecture\nupdated: YYYY-MM-DD\ngenerated_by: su-init-ai\nhuman_verified: false\narchitecture_scope: overview\nscope_source_roots: [\".\"]\n---\n```\n\n`architecture_scope: 子系统 slug;系统总架构固定为 overview。`\n`scope_source_roots: 仓库相对路径数组,必须写单行 inline list,如 [\"apps\u002Fweb\", \"src-tauri\"]。`\n`不要写多行 YAML 数组,行级 parser 会 partial。`\n\n不得写 `status` 字段，不得生成 02_需求、04_模块规格等其它文档。\n\n总架构固定渲染 profile：\n\n1. 只填 `_模板_架构.md` 的固定章节：一、二、五、六、十一。\n2. 一「概述与定位」写系统全景和本次候选发现边界。\n3. 二「整体结构」写子系统框图，只画有证据的连线。\n4. 五「核心模块」必须是全部候选清单表，列：子系统、路径、职责、置信度、状态、文档链接。\n5. 六「关键流程」只写可证实关联：import 方向、HTTP client 指向、配置引用。推不出时写「未推断」。\n6. 十一「相关文档」只链接本轮实际写成功或已存在的子架构；不得链接失败、跳过或未写的目标。\n7. 不得编造子系统关联；总架构可列候选事实和缺口，但不能把推测关系写成事实。\n\n写盘纪律：\n\n1. 写盘前必须二次检测：\n\n```js\nimport { detectArchitectureCandidates } from \"..\u002F..\u002Flib\u002Fsu-init\u002Findex.mjs\";\n\nconst latest = await detectArchitectureCandidates({ projectRoot });\n```\n\n2. 二次检测只因新增「无 `architecture_scope` 的非模板架构 md」中止；本轮已写入的 scoped 文档会在后续检测中表现为 `existing`，不算形状变化。\n3. 子架构先写，按候选 `id` 字典序逐个 final-path 写入；总架构最后写。\n4. 每个文件只能写 lib 返回的 `targetPath` 或 `overviewTargetPath`。目标路径是项目内相对路径，写盘时拼到 `projectRoot` 下。\n5. 必须使用 final path 独占创建，例如：\n\n```js\nawait writeFile(targetPath, content, { encoding: \"utf8\", flag: \"wx\" });\n```\n\n或等价的 `open(targetPath, \"wx\")`。禁止使用 `safeWriteFile` 或任何 temp + rename helper，因为 final rename 可能覆盖竞态文件。\n6. 如果单文件写盘返回 `EEXIST` 或失败，该文件终态记 `skipped` 并说明原因，继续其余候选；不得覆盖、不得重试改名。\n7. 若补写了新子架构但 `overviewExisting === true`，不得改旧总架构；回执必须提示总架构可能缺少新链接，建议用户对话补改。\n\n回执契约：\n\n1. 每个候选必须给终态：`generated`、`existing`、`evidence_insufficient`、`list_only`、`submodule`、`shell_merged`、`aggregator_excluded`。\n2. 总架构状态只用：`generated`、`existing`；未尝试生成时说明原因。\n3. 生成时醒目标明「AI 生成、建议 review、要改直接对话」，列出写入路径和 evidence sources 摘要（目录树、README、manifest、入口文件、候选 evidence、SC 结果等实际使用项）。\n4. 跳过时列出 `mode`、`reason`、`existingArchitectureDocs`、`scopeConflicts`、`excluded`（非空时）。\n5. `overview_only` 必须列全部候选和点名补生成指引；超出 `capLimit` 时说明本轮只生成总架构。\n\n## 4. Plugin 独立运行约定\n\n初始化的目标是让项目没有 Console 也能工作。至少创建或校验：\n\n1. `docs\u002F00_项目总览.md`\n2. `docs\u002F01_架构设计\u002F` ~ `docs\u002F06_决策记录\u002F`、`docs\u002F99_归档\u002F`\n3. 各 docs 目录下的 `_模板_*.md`\n4. `docs\u002F.ccb\u002Fdocs-structure-contract.yaml`\n5. `docs\u002F.ccb\u002Findex\u002F`\n6. `docs\u002F.ccb\u002Fevents\u002Fjournal.jsonl`\n7. `docs\u002F.ccb\u002Flocks\u002F`\n8. `docs\u002F.ccb\u002Fdrafts\u002Fbreakdown\u002F`\n9. `docs\u002F.ccb\u002Fschemas\u002F`\n10. `docs\u002F.ccb\u002Fconfig\u002F`\n11. `CLAUDE.md` \u002F `AGENTS.md` \u002F `.claude\u002Fsettings.json` 协作说明，按项目实际存在情况处理\n\n`docs\u002F00_文档地图.md` 由 indexer 自动生成，`su-init` 不手填。\n\n不得调用 Console 业务写入接口初始化业务状态。\n\n## 5. 强协商与 sc 要求\n\n`su-init` 是管理指令，不强制进入业务节点协商。但如果初始化过程中需要决定项目结构、覆盖文件、引入外部服务或改变用户已有配置，必须按必问清单问用户。\n\n建议使用：\n\n1. `\u002Fsc:analyze --focus project-structure .`\n2. `\u002Fsc:research \u003C项目技术栈>`（需要判断技术栈时）\n\nsc 不可用时，说明替代扫描方式。\n\n## 6. 用户可见输出\n\n输出初始化摘要、创建\u002F保留\u002F跳过的文件、未覆盖原因、下一步建议和可直接运行的 `\u002Fccb:su-flow` 示例。\n\n若触发旧项目架构生成流程，回执还必须包含：\n\n- 生成时：醒目标明「AI 生成、建议 review、要改直接对话」，列出子架构路径、总架构路径和 evidence sources 摘要（目录树、README、manifest、入口文件、候选 evidence、SC 结果等实际使用项）。\n- 跳过时：列出 `architectureCandidates.mode` \u002F `reason`，并带上 `existingArchitectureDocs`、`scopeConflicts`、`excluded`（非空时）。\n- 分层处理时：逐候选列出 `id`、`path`、`kind`、`disposition`、`confidence`、终态和文档路径；证据不足使用 `evidence_insufficient` 并列缺少哪类证据；目标文件竞态存在时说明 `EEXIST` \u002F 已存在且未覆盖。\n- `overview_only` 时：列全部候选、总架构状态、超限或全 list-only 原因，以及可点名补生成的候选 `id`。\n","# \u002Fccb:su-init\n\n## 1. 指令意图说明\n\n`\u002Fccb:su-init` 用于把一个普通项目初始化为 CCB plugin 可工作的项目。它创建项目内工作记录、索引入口、agent 协作说明和必要目录，让后续 `\u002Fccb:su-flow` 不依赖 Console 也能运行。\n\n## 2. 节点集声明\n\n`su-init` 不直接进入业务节点，但必须安装或校验节点 manifest：\n\n| 节点 | Manifest |\n|---|---|\n| 需求分析 | `references\u002Fkernel\u002Fnodes\u002Frequirement_analysis.node.md` |\n| 技术设计 | `references\u002Fkernel\u002Fnodes\u002Ftechnical_design.node.md` |\n| 任务拆分 | `references\u002Fkernel\u002Fnodes\u002Ftask_breakdown.node.md` |\n| 派工 | `references\u002Fkernel\u002Fnodes\u002Fdispatch.node.md` |\n| 实施 | `references\u002Fkernel\u002Fnodes\u002Fimplementation.node.md` |\n| 审查 | `references\u002Fkernel\u002Fnodes\u002Freview.node.md` |\n| 归档 | `references\u002Fkernel\u002Fnodes\u002Farchive.node.md` |\n\n初始化完成后，用户可直接调用 `\u002Fccb:su-flow` 进入业务节点。\n\n## 3. 触发约定\n\n```text\n\u002Fccb:su-init\n\u002Fccb:su-init project=\u003Cname>\n```\n\n运行时先扫描当前目录，确认是否已有 `docs\u002F.ccb\u002F` 和 agent 说明文件。已有文件不得静默覆盖；命中覆盖用户文件时跳过并在摘要中报告。\n\n### init lib 调用契约\n\n收到本指令后必须调用 plugin lib 或同等 CLI，不得手写一套脚手架流程：\n\n```js\nimport { initProjectScaffold } from \"..\u002F..\u002Flib\u002Fsu-init\u002Findex.mjs\";\n\nconst result = await initProjectScaffold({ projectRoot });\n```\n\nCLI 形式：\n\n```bash\nnode \u003Cplugin>\u002Fskills\u002Fsu-init\u002Fscripts\u002Finit.mjs --project-root \u003CprojectRoot>\n```\n\n### 旧项目架构生成\n\n`initProjectScaffold()` 返回的 `summary.architectureCandidates` 是旧项目架构生成的唯一入口判定。不得在 skill 内复制候选发现算法；需要复核时直接从 lib 导入 `detectArchitectureCandidates`。\n\n返回字段按 lib 实际接口消费：\n\n- 顶层：`mode`、`reason`、`candidates`、`overviewTargetPath`、`overviewExisting`、`excluded`、`scopeConflicts`、`existingArchitectureDocs`、`capLimit`。\n- 候选：`id`、`path`、`kind`、`disposition`、`confidence`、`evidence`、`targetPath`、`existing`。\n\n处理流程：\n\n1. 先完成 init lib 三步脚手架，再读取 `summary.architectureCandidates`。\n2. `mode === \"skip\"`：不生成架构文档；回执说明 `reason`：\n   - `no_source`：未检测到源码候选。\n   - `architecture_exists`：`docs\u002F01_架构设计\u002F` 下存在无 `architecture_scope` 的非模板 `.md`，保守跳过。\n   同时带上 `existingArchitectureDocs`、`excluded`、`scopeConflicts`（非空时）。\n3. `mode === \"single\"`：只处理 `candidates` 中 `disposition === \"generate\"` 的候选。若候选 `existing === true`，终态记 `existing`，不写文件；否则进入候选证据门槛，通过后按候选 `targetPath` 生成一份子架构文档。\n4. `mode === \"layered\"`：按候选 `id` 字典序逐个处理。每个 `disposition === \"generate\"` 且未 existing 的候选独立走证据门槛；不足则终态记 `evidence_insufficient` 并继续其余候选；全部子架构处理完后再生成总架构。\n5. `mode === \"overview_only\"`：不生成子架构；仅按 `overviewTargetPath` 生成总架构，内容包含全部候选清单、`excluded`、`scopeConflicts` 和点名补生成提示。若 `overviewExisting === true`，总架构终态记 `existing`，不得覆盖。\n6. `kind === \"submodule\"` 的候选终态记 `submodule`，只进入总架构清单，不生成子架构；`disposition === \"list_only\"` 的非 submodule 候选终态记 `list_only`。\n7. `excluded` 单独进入回执：`framework_shell_merged` 映射为 `shell_merged`，`root_aggregator` 映射为 `aggregator_excluded`；其它 excluded reason 原样列在 excluded 摘要里。\n\n候选证据门槛：\n\n1. 以候选 `path` 为源码根收集证据，不把其它候选目录的证据混入本候选。\n2. 必须拿到候选目录树。\n3. 必须至少有 1 类 grounding 源：README、依赖 manifest、入口文件、候选 `evidence` 指向的运行\u002F部署\u002F入口证据、或 SC 结构分析结果。\n4. 必须至少能填出「概述」「技术栈」「项目结构」「核心模块 \u002F 入口」四块。\n5. 证据不足时不写该候选文件；终态记 `evidence_insufficient`，回执列缺少哪类证据并建议用户手写或点名补充。\n6. 证据足够时，优先使用 `\u002Fsc:analyze` + `\u002Fsc:index-repo` 获取结构证据；SC 不可用时，直接读取 README、入口文件、依赖 manifest、候选 `evidence` 和目录树兜底。\n\n子架构渲染：\n\n1. 按 `templates\u002Fdocs\u002F01_架构设计\u002F_模板_架构.md` 的章节结构渲染，只填有据章节。\n2. 技术栈来自依赖 manifest；项目结构来自目录树；核心模块来自顶层目录、入口文件和 import 关系；概述来自 README 或等价项目说明。\n3. 推不出的章节直接省略，包括部署拓扑、外部服务、权限模型、历史意图。正文不得写 TODO、待校正、也不得用 hedge 文本代替证据。\n4. 子架构的「覆盖范围 \u002F 不覆盖」必须写清候选 `path`，并在 layered 模式下指向总架构。\n\nscope frontmatter 必须写单行 inline list：\n\n```yaml\n---\ndoc_type: architecture\nupdated: YYYY-MM-DD\ngenerated_by: su-init-ai\nhuman_verified: false\narchitecture_scope: \u003C子系统 slug>\nscope_source_roots: [\"apps\u002Fweb\", \"src-tauri\"]\n---\n```\n\n总架构固定使用：\n\n```yaml\n---\ndoc_type: architecture\nupdated: YYYY-MM-DD\ngenerated_by: su-init-ai\nhuman_verified: false\narchitecture_scope: overview\nscope_source_roots: [\".\"]\n---\n```\n\n`architecture_scope: 子系统 slug;系统总架构固定为 overview。`\n`scope_source_roots: 仓库相对路径数组,必须写单行 inline list,如 [\"apps\u002Fweb\", \"src-tauri\"]。`\n`不要写多行 YAML 数组,行级 parser 会 partial。`\n\n不得写 `status` 字段，不得生成 02_需求、04_模块规格等其它文档。\n\n总架构固定渲染 profile：\n\n1. 只填 `_模板_架构.md` 的固定章节：一、二、五、六、十一。\n2. 一「概述与定位」写系统全景和本次候选发现边界。\n3. 二「整体结构」写子系统框图，只画有证据的连线。\n4. 五「核心模块」必须是全部候选清单表，列：子系统、路径、职责、置信度、状态、文档链接。\n5. 六「关键流程」只写可证实关联：import 方向、HTTP client 指向、配置引用。推不出时写「未推断」。\n6. 十一「相关文档」只链接本轮实际写成功或已存在的子架构；不得链接失败、跳过或未写的目标。\n7. 不得编造子系统关联；总架构可列候选事实和缺口，但不能把推测关系写成事实。\n\n写盘纪律：\n\n1. 写盘前必须二次检测：\n\n```js\nimport { detectArchitectureCandidates } from \"..\u002F..\u002Flib\u002Fsu-init\u002Findex.mjs\";\n\nconst latest = await detectArchitectureCandidates({ projectRoot });\n```\n\n2. 二次检测只因新增「无 `architecture_scope` 的非模板架构 md」中止；本轮已写入的 scoped 文档会在后续检测中表现为 `existing`，不算形状变化。\n3. 子架构先写，按候选 `id` 字典序逐个 final-path 写入；总架构最后写。\n4. 每个文件只能写 lib 返回的 `targetPath` 或 `overviewTargetPath`。目标路径是项目内相对路径，写盘时拼到 `projectRoot` 下。\n5. 必须使用 final path 独占创建，例如：\n\n```js\nawait writeFile(targetPath, content, { encoding: \"utf8\", flag: \"wx\" });\n```\n\n或等价的 `open(targetPath, \"wx\")`。禁止使用 `safeWriteFile` 或任何 temp + rename helper，因为 final rename 可能覆盖竞态文件。\n6. 如果单文件写盘返回 `EEXIST` 或失败，该文件终态记 `skipped` 并说明原因，继续其余候选；不得覆盖、不得重试改名。\n7. 若补写了新子架构但 `overviewExisting === true`，不得改旧总架构；回执必须提示总架构可能缺少新链接，建议用户对话补改。\n\n回执契约：\n\n1. 每个候选必须给终态：`generated`、`existing`、`evidence_insufficient`、`list_only`、`submodule`、`shell_merged`、`aggregator_excluded`。\n2. 总架构状态只用：`generated`、`existing`；未尝试生成时说明原因。\n3. 生成时醒目标明「AI 生成、建议 review、要改直接对话」，列出写入路径和 evidence sources 摘要（目录树、README、manifest、入口文件、候选 evidence、SC 结果等实际使用项）。\n4. 跳过时列出 `mode`、`reason`、`existingArchitectureDocs`、`scopeConflicts`、`excluded`（非空时）。\n5. `overview_only` 必须列全部候选和点名补生成指引；超出 `capLimit` 时说明本轮只生成总架构。\n\n## 4. Plugin 独立运行约定\n\n初始化的目标是让项目没有 Console 也能工作。至少创建或校验：\n\n1. `docs\u002F00_项目总览.md`\n2. `docs\u002F01_架构设计\u002F` ~ `docs\u002F06_决策记录\u002F`、`docs\u002F99_归档\u002F`\n3. 各 docs 目录下的 `_模板_*.md`\n4. `docs\u002F.ccb\u002Fdocs-structure-contract.yaml`\n5. `docs\u002F.ccb\u002Findex\u002F`\n6. `docs\u002F.ccb\u002Fevents\u002Fjournal.jsonl`\n7. `docs\u002F.ccb\u002Flocks\u002F`\n8. `docs\u002F.ccb\u002Fdrafts\u002Fbreakdown\u002F`\n9. `docs\u002F.ccb\u002Fschemas\u002F`\n10. `docs\u002F.ccb\u002Fconfig\u002F`\n11. `CLAUDE.md` \u002F `AGENTS.md` \u002F `.claude\u002Fsettings.json` 协作说明，按项目实际存在情况处理\n\n`docs\u002F00_文档地图.md` 由 indexer 自动生成，`su-init` 不手填。\n\n不得调用 Console 业务写入接口初始化业务状态。\n\n## 5. 强协商与 sc 要求\n\n`su-init` 是管理指令，不强制进入业务节点协商。但如果初始化过程中需要决定项目结构、覆盖文件、引入外部服务或改变用户已有配置，必须按必问清单问用户。\n\n建议使用：\n\n1. `\u002Fsc:analyze --focus project-structure .`\n2. `\u002Fsc:research \u003C项目技术栈>`（需要判断技术栈时）\n\nsc 不可用时，说明替代扫描方式。\n\n## 6. 用户可见输出\n\n输出初始化摘要、创建\u002F保留\u002F跳过的文件、未覆盖原因、下一步建议和可直接运行的 `\u002Fccb:su-flow` 示例。\n\n若触发旧项目架构生成流程，回执还必须包含：\n\n- 生成时：醒目标明「AI 生成、建议 review、要改直接对话」，列出子架构路径、总架构路径和 evidence sources 摘要（目录树、README、manifest、入口文件、候选 evidence、SC 结果等实际使用项）。\n- 跳过时：列出 `architectureCandidates.mode` \u002F `reason`，并带上 `existingArchitectureDocs`、`scopeConflicts`、`excluded`（非空时）。\n- 分层处理时：逐候选列出 `id`、`path`、`kind`、`disposition`、`confidence`、终态和文档路径；证据不足使用 `evidence_insufficient` 并列缺少哪类证据；目标文件竞态存在时说明 `EEXIST` \u002F 已存在且未覆盖。\n- `overview_only` 时：列全部候选、总架构状态、超限或全 list-only 原因，以及可点名补生成的候选 `id`。\n",{"name":5,"metadata":23,"description":7},{"short-description":24},"CCB 项目初始化","main","d07398b0a36ffa994efd970a554dd9596932ed5c","roles\u002Fsu-ccb\u002Fskills\u002Fsu-init",2,"https:\u002F\u002Fgithub.com\u002FSeemSeam\u002Fagent-roles-spec","https:\u002F\u002Fgithub.com\u002FSeemSeam","2026-08-14 10:00:06",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add SeemSeam\u002Fagent-roles-spec --skill su-init",{"tool":38,"command":39},"bunx","bunx skills add SeemSeam\u002Fagent-roles-spec --skill su-init",{"tool":41,"command":42},"pnpm","pnpm dlx skills add SeemSeam\u002Fagent-roles-spec --skill su-init","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FSeemSeam\u002Fagent-roles-spec\u002Fblob\u002Fmain\u002Froles\u002Fsu-ccb\u002Fskills\u002Fsu-init\u002FSKILL.md",true,[46,52,56],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"references\u002Fproject-scaffold.md","REFERENCE","参考文档",1149,"https:\u002F\u002Fgithub.com\u002FSeemSeam\u002Fagent-roles-spec\u002Fblob\u002Fmain\u002Froles\u002Fsu-ccb\u002Fskills\u002Fsu-init\u002Freferences\u002Fproject-scaffold.md",{"path":53,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":54,"sourceHtmlUrl":55},"references\u002Fsc-integration.md",510,"https:\u002F\u002Fgithub.com\u002FSeemSeam\u002Fagent-roles-spec\u002Fblob\u002Fmain\u002Froles\u002Fsu-ccb\u002Fskills\u002Fsu-init\u002Freferences\u002Fsc-integration.md",{"path":57,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":60,"sourceHtmlUrl":61},"scripts\u002Finit.mjs","SCRIPT","脚本",1289,"https:\u002F\u002Fgithub.com\u002FSeemSeam\u002Fagent-roles-spec\u002Fblob\u002Fmain\u002Froles\u002Fsu-ccb\u002Fskills\u002Fsu-init\u002Fscripts\u002Finit.mjs",[63,69,76,83,90,97],{"skillNo":64,"name":65,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":18},"01M757C4HNYHR92Z3MDGPW9JSA","example-skill","https:\u002F\u002Fgithub.com\u002FSeemSeam\u002Fagent-roles-spec\u002Fblob\u002Fmain\u002Ftemplates\u002Frole-with-skills\u002Fskills\u002Fexample-skill\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":18},"01M757C2B2YT62JBH98CG1BKWG","su-status","从 docs 人读真相源与 .ccb 协调件读取当前项目、Requirement 或子任务状态。","https:\u002F\u002Fgithub.com\u002FSeemSeam\u002Fagent-roles-spec\u002Fblob\u002Fmain\u002Froles\u002Fsu-ccb\u002Fskills\u002Fsu-status\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":18},"01M757C0DVFT88AFBXN1PFXH9D","su-revise-breakdown","根据用户反馈重写 Requirement breakdown draft。","https:\u002F\u002Fgithub.com\u002FSeemSeam\u002Fagent-roles-spec\u002Fblob\u002Fmain\u002Froles\u002Fsu-ccb\u002Fskills\u002Fsu-revise-breakdown\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":18},"01M757BY5XVMPKEK118D782PRM","su-review","审查执行回执、diff 和验证证据，决定通过、返工、replan 或升级用户。","https:\u002F\u002Fgithub.com\u002FSeemSeam\u002Fagent-roles-spec\u002Fblob\u002Fmain\u002Froles\u002Fsu-ccb\u002Fskills\u002Fsu-review\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":18},"01M757BW1R61F61X7JJF2SSJET","su-resume","从 docs 人读真相源与 .ccb 协调件恢复 paused\u002Fdeferred\u002Fin-progress 主体的上下文。","https:\u002F\u002Fgithub.com\u002FSeemSeam\u002Fagent-roles-spec\u002Fblob\u002Fmain\u002Froles\u002Fsu-ccb\u002Fskills\u002Fsu-resume\u002FSKILL.md",[],[],{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":18},"01M757BTEAFRRXA9DY3KBRTRNY","su-reconcile","AI-native 自检 docs 人读真相源、.ccb 协调件与 Console 投影漂移，并按审批结果执行修复。","https:\u002F\u002Fgithub.com\u002FSeemSeam\u002Fagent-roles-spec\u002Fblob\u002Fmain\u002Froles\u002Fsu-ccb\u002Fskills\u002Fsu-reconcile\u002FSKILL.md",[],[]]