[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7APR9BSY9HW33WAMF7WRZNM":3,"skill-same:01M7APR9BSY9HW33WAMF7WRZNM":55},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":33,"commitSha":34,"skillDirectory":35,"forksCount":14,"repositoryHtmlUrl":36,"repositoryHomepageUrl":6,"ownerHtmlUrl":37,"ownerBlogUrl":38,"ownerDescription":39,"updatedAt":40,"install":41,"resources":54},"01M7APR9BSY9HW33WAMF7WRZNM","convention-graph-discovery",null,"约定图发现方法论：进一个 repo 先识别 repo-specific conventions，再定义 domain\u002Fextractor 接 Convention Graph 引擎。Use when: 进入陌生 repo、要画约定图、要找“改 X 影响谁”的约定层关联、 F242\u002FConvention Graph Layer 工作。Not for: 普通符号跳转\u002FLSP、文档索引检索、记忆图谱、直接使用 codegraph\u002FGitNexus。Output: domain 定义 + extractor 计划 + gap\u002Ffreshness\u002Fprovenance 报告。 GOTCHA: 沉淀的是“怎么画图”的方法，不是把 cat-cafe 的 extractor 硬搬到所有 repo。","peps1666\u002FBuildCrew-AI","peps1666","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F128503359?v=4","01M7APD9BQ6NTJ79J9FTB6YZGT","junhao zhou","01M7APD9CD06Q6CCJ22FYVG2AK",0,"MIT","https:\u002F\u002Fgithub.com\u002Fpeps1666\u002FBuildCrew-AI\u002Fblob\u002Fmain\u002Fcat-cafe-skills\u002Fconvention-graph-discovery\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: convention-graph-discovery\ndescription: >\n  约定图发现方法论：进一个 repo 先识别 repo-specific conventions，再定义 domain\u002Fextractor 接\n  Convention Graph 引擎。Use when: 进入陌生 repo、要画约定图、要找“改 X 影响谁”的约定层关联、\n  F242\u002FConvention Graph Layer 工作。Not for: 普通符号跳转\u002FLSP、文档索引检索、记忆图谱、直接使用\n  codegraph\u002FGitNexus。Output: domain 定义 + extractor 计划 + gap\u002Ffreshness\u002Fprovenance 报告。\n  GOTCHA: 沉淀的是“怎么画图”的方法，不是把 cat-cafe 的 extractor 硬搬到所有 repo。\ntriggers:\n  - \"约定图\"\n  - \"convention graph\"\n  - \"进陌生 repo\"\n  - \"画规矩地图\"\n  - \"改 X 影响谁\"\n  - \"顺藤摸瓜\"\n  - \"F242\"\n---\n\n# Convention Graph Discovery\n\n## 价值门禁 \u002F Why This Is a Skill\n\n这是 Clowder AI 特有的方法论：把 repo 里的“约定层关联”（MCP tool、skill trigger、route、workflow callback、配置驱动注册）画成带 provenance\u002Ffreshness 的图。它不是通用 AST 教程，也不是让猫依赖 codegraph\u002FGitNexus；它把 F242 的 dogfood 经验沉淀成未来进 repo 的第一步。\n\n## 核心知识 \u002F Overview\n\nLSP 看符号，grep 看文本；约定图看“这个 repo 的规矩”。每条边必须能回答三件事：它从哪个 source span 来、当前图新不新鲜、漏识别的 gap 在哪。\n\n## When to Use\n\n用在：\n\n- 刚进入陌生 repo，需要先摸清“改 X 会影响谁”。\n- 改动触及配置\u002F注册\u002Fmanifest\u002Froute\u002Fcallback 等约定层，不只是函数调用。\n- 改 MCP tool schema\u002Fname、skill manifest、FastAPI\u002FAPI route、workflow callback 前，需要先找约定层消费方。\n- F242 \u002F Convention Graph Layer 相关实现、dogfood、review。\n\n不要用在：\n\n- 已经能用 LSP 精确跳转的普通函数调用。\n- 只想找文档或历史讨论（用 memory-navigation \u002F memory-search-best-practices）。\n- 想把 codegraph\u002FGitNexus 当外部依赖直接接入。\n- 只是 cat-cafe 自家 extractor 的硬编码搬运。\n\n## 流程 \u002F Discovery Protocol\n\n1. **定边界**：写清 repo、目标问题、要验证的 convention domain。例：MCP tool 消费方、FastAPI route、skill trigger。\n2. **找显式锚点**：优先找名字\u002FID\u002Ftyped import\u002Fconfig key\u002Fmanifest field。禁止 name-only 跨语言合并。\n3. **定义 domain**：列 `domainId`、node kinds、edge kinds、extractor inputs、invalidation scope、negative fixtures。\n4. **写 extractor**：先用最小 fixture TDD，产出 nodes \u002F edges \u002F gaps。每条 edge 带 extractor\u002Fversion\u002FsourceFile\u002FsourceLine\u002Fconfidence。\n5. **接引擎**：记录 index commit + indexed file hashes；查询必须带 freshness，pending changes 直接标 stale。\n6. **对比基线**：用 grep\u002FLSP 或人工查证对比，记录它们漏了什么、约定图多解释了什么。\n7. **报 gap**：发现框架或约定但没覆盖时输出 gap\u002Funknowns，不能静默 0 命中。\n\n## Product Entry \u002F Commands\n\n在 Clowder AI repo 根目录，先重建当前 repo 的图：\n\n```bash\npnpm convention-graph:index -- --repo .\n```\n\n查某个 MCP tool 的约定层消费方：\n\n```bash\nMCP_TOOL_NAME=replace_with_tool_name\npnpm convention-graph:code-consumers -- --repo . --domain mcp-tool --kind mcp_tool --name \"$MCP_TOOL_NAME\"\n```\n\n查某个 skill manifest 的触发\u002F消费方（CLI 接受 `skill` 作为 `skill_manifest` 的人类友好别名）：\n\n```bash\nSKILL_NAME=replace_with_skill_name\npnpm convention-graph:code-consumers -- --repo . --domain skill-manifest --kind skill --name \"$SKILL_NAME\"\n```\n\n输出是 JSON，包含 `targets`、`consumers`、每条 edge 的 `provenance`，以及 `freshness`。如果 `freshness.stale=true`，这次查询只能当 stale 证据；先重跑 `convention-graph:index`，再决定影响面。\n\n当前内置 domain：`mcp-tool`、`skill-manifest`、`fastapi-route`。新 repo 的未知约定不要写 ad-hoc 查询脚本；按 Discovery Protocol 定义 domain plugin，再接同一个 CLI\u002Fengine。\n\n## Quick Reference\n\n| 阶段 | 必产物 | 不合格信号 |\n|------|--------|------------|\n| Domain 定义 | domainId \u002F node kinds \u002F edge kinds \u002F invalidation scope | “先写死这三个文件”但没讲泛化 |\n| Extractor | fixture + negative fixture + provenance | 同名对象被误连 |\n| Query | targets + consumers + freshness | 结果没有 index commit \u002F stale 状态 |\n| Report | grep\u002FLSP 对比 + gap 列表 | 0 命中却没解释是否漏识别 |\n\n## Common Mistakes\n\n| 错误 | 后果 | 修复 |\n|------|------|------|\n| 把 Phase A 的 cat-cafe extractor 当成方法论 | Phase B 进陌生 repo 失败 | 抽成“引擎 + domain plugin + discovery protocol” |\n| name-only 消歧 | 前后端同名对象误连 | identity 必含 repo\u002Fpkg\u002Flang\u002Ffile\u002Fkind\u002FdomainId\u002Fname，并要求显式锚点 |\n| 静默 0 命中 | 猫以为没有影响面，实际是 extractor 漏识别 | 输出 gap\u002Funknowns |\n| 不带 freshness | 猫拿过期图盲改 | 查询结果必须含 index commit + pending changes |\n| 把聚类\u002F启发式当 truth | 错边比漏边危险 | 聚类只能做 discovery 提示，authoritative edge 只来自可追源锚点 |\n\n## 验证 \u002F Pressure Test\n\n- 至少两个 domain 通过 fixture：一个结构注册类，一个 manifest\u002Fconfig 类。\n- 每个 domain 有 negative fixture，证明同名非约定对象不误连。\n- 改一个已索引文件后，查询结果必须 `stale=true` 并列出 pending change。\n- 对一个真实“改 X 找消费方”场景 dogfood，写出 grep\u002FLSP 对比差异。\n\n## 和其他 Skill 的区别\n\n- `tdd`：写 extractor 代码时仍要用；本 skill 负责“该画什么图、怎样定义 domain”。\n- `knowledge-engineering`：面向文档结构化；本 skill 面向代码约定层。\n- `memory-navigation`：找历史知识；本 skill 建当前 repo 的实时工作 artifact。\n- `open-source-teardown`：拆外部项目学习；本 skill 把学习结果落成自家 repo 的约定图方法。\n\n## 下一步\n\nDomain 定义收敛后 → `tdd` 写 extractor → `quality-gate` 做 spec\u002Ffreshness\u002Fprovenance 自检。\n","# Convention Graph Discovery\n\n## 价值门禁 \u002F Why This Is a Skill\n\n这是 Clowder AI 特有的方法论：把 repo 里的“约定层关联”（MCP tool、skill trigger、route、workflow callback、配置驱动注册）画成带 provenance\u002Ffreshness 的图。它不是通用 AST 教程，也不是让猫依赖 codegraph\u002FGitNexus；它把 F242 的 dogfood 经验沉淀成未来进 repo 的第一步。\n\n## 核心知识 \u002F Overview\n\nLSP 看符号，grep 看文本；约定图看“这个 repo 的规矩”。每条边必须能回答三件事：它从哪个 source span 来、当前图新不新鲜、漏识别的 gap 在哪。\n\n## When to Use\n\n用在：\n\n- 刚进入陌生 repo，需要先摸清“改 X 会影响谁”。\n- 改动触及配置\u002F注册\u002Fmanifest\u002Froute\u002Fcallback 等约定层，不只是函数调用。\n- 改 MCP tool schema\u002Fname、skill manifest、FastAPI\u002FAPI route、workflow callback 前，需要先找约定层消费方。\n- F242 \u002F Convention Graph Layer 相关实现、dogfood、review。\n\n不要用在：\n\n- 已经能用 LSP 精确跳转的普通函数调用。\n- 只想找文档或历史讨论（用 memory-navigation \u002F memory-search-best-practices）。\n- 想把 codegraph\u002FGitNexus 当外部依赖直接接入。\n- 只是 cat-cafe 自家 extractor 的硬编码搬运。\n\n## 流程 \u002F Discovery Protocol\n\n1. **定边界**：写清 repo、目标问题、要验证的 convention domain。例：MCP tool 消费方、FastAPI route、skill trigger。\n2. **找显式锚点**：优先找名字\u002FID\u002Ftyped import\u002Fconfig key\u002Fmanifest field。禁止 name-only 跨语言合并。\n3. **定义 domain**：列 `domainId`、node kinds、edge kinds、extractor inputs、invalidation scope、negative fixtures。\n4. **写 extractor**：先用最小 fixture TDD，产出 nodes \u002F edges \u002F gaps。每条 edge 带 extractor\u002Fversion\u002FsourceFile\u002FsourceLine\u002Fconfidence。\n5. **接引擎**：记录 index commit + indexed file hashes；查询必须带 freshness，pending changes 直接标 stale。\n6. **对比基线**：用 grep\u002FLSP 或人工查证对比，记录它们漏了什么、约定图多解释了什么。\n7. **报 gap**：发现框架或约定但没覆盖时输出 gap\u002Funknowns，不能静默 0 命中。\n\n## Product Entry \u002F Commands\n\n在 Clowder AI repo 根目录，先重建当前 repo 的图：\n\n```bash\npnpm convention-graph:index -- --repo .\n```\n\n查某个 MCP tool 的约定层消费方：\n\n```bash\nMCP_TOOL_NAME=replace_with_tool_name\npnpm convention-graph:code-consumers -- --repo . --domain mcp-tool --kind mcp_tool --name \"$MCP_TOOL_NAME\"\n```\n\n查某个 skill manifest 的触发\u002F消费方（CLI 接受 `skill` 作为 `skill_manifest` 的人类友好别名）：\n\n```bash\nSKILL_NAME=replace_with_skill_name\npnpm convention-graph:code-consumers -- --repo . --domain skill-manifest --kind skill --name \"$SKILL_NAME\"\n```\n\n输出是 JSON，包含 `targets`、`consumers`、每条 edge 的 `provenance`，以及 `freshness`。如果 `freshness.stale=true`，这次查询只能当 stale 证据；先重跑 `convention-graph:index`，再决定影响面。\n\n当前内置 domain：`mcp-tool`、`skill-manifest`、`fastapi-route`。新 repo 的未知约定不要写 ad-hoc 查询脚本；按 Discovery Protocol 定义 domain plugin，再接同一个 CLI\u002Fengine。\n\n## Quick Reference\n\n| 阶段 | 必产物 | 不合格信号 |\n|------|--------|------------|\n| Domain 定义 | domainId \u002F node kinds \u002F edge kinds \u002F invalidation scope | “先写死这三个文件”但没讲泛化 |\n| Extractor | fixture + negative fixture + provenance | 同名对象被误连 |\n| Query | targets + consumers + freshness | 结果没有 index commit \u002F stale 状态 |\n| Report | grep\u002FLSP 对比 + gap 列表 | 0 命中却没解释是否漏识别 |\n\n## Common Mistakes\n\n| 错误 | 后果 | 修复 |\n|------|------|------|\n| 把 Phase A 的 cat-cafe extractor 当成方法论 | Phase B 进陌生 repo 失败 | 抽成“引擎 + domain plugin + discovery protocol” |\n| name-only 消歧 | 前后端同名对象误连 | identity 必含 repo\u002Fpkg\u002Flang\u002Ffile\u002Fkind\u002FdomainId\u002Fname，并要求显式锚点 |\n| 静默 0 命中 | 猫以为没有影响面，实际是 extractor 漏识别 | 输出 gap\u002Funknowns |\n| 不带 freshness | 猫拿过期图盲改 | 查询结果必须含 index commit + pending changes |\n| 把聚类\u002F启发式当 truth | 错边比漏边危险 | 聚类只能做 discovery 提示，authoritative edge 只来自可追源锚点 |\n\n## 验证 \u002F Pressure Test\n\n- 至少两个 domain 通过 fixture：一个结构注册类，一个 manifest\u002Fconfig 类。\n- 每个 domain 有 negative fixture，证明同名非约定对象不误连。\n- 改一个已索引文件后，查询结果必须 `stale=true` 并列出 pending change。\n- 对一个真实“改 X 找消费方”场景 dogfood，写出 grep\u002FLSP 对比差异。\n\n## 和其他 Skill 的区别\n\n- `tdd`：写 extractor 代码时仍要用；本 skill 负责“该画什么图、怎样定义 domain”。\n- `knowledge-engineering`：面向文档结构化；本 skill 面向代码约定层。\n- `memory-navigation`：找历史知识；本 skill 建当前 repo 的实时工作 artifact。\n- `open-source-teardown`：拆外部项目学习；本 skill 把学习结果落成自家 repo 的约定图方法。\n\n## 下一步\n\nDomain 定义收敛后 → `tdd` 写 extractor → `quality-gate` 做 spec\u002Ffreshness\u002Fprovenance 自检。\n",{"name":5,"triggers":24,"description":32},[25,26,27,28,29,30,31],"约定图","convention graph","进陌生 repo","画规矩地图","改 X 影响谁","顺藤摸瓜","F242","约定图发现方法论：进一个 repo 先识别 repo-specific conventions，再定义 domain\u002Fextractor 接 Convention Graph 引擎。Use when: 进入陌生 repo、要画约定图、要找“改 X 影响谁”的约定层关联、 F242\u002FConvention Graph Layer 工作。Not for: 普通符号跳转\u002FLSP、文档索引检索、记忆图谱、直接使用 codegraph\u002FGitNexus。Output: domain 定义 + extractor 计划 + gap\u002Ffreshness\u002Fprovenance 报告。 GOTCHA: 沉淀的是“怎么画图”的方法，不是把 cat-cafe 的 extractor 硬搬到所有 repo。\n","main","e43f83d5ceb309323cae7e0f31e5e48fd816a57d","cat-cafe-skills\u002Fconvention-graph-discovery","https:\u002F\u002Fgithub.com\u002Fpeps1666\u002FBuildCrew-AI","https:\u002F\u002Fgithub.com\u002Fpeps1666","https:\u002F\u002Fwww.cug.edu.cn\u002F","My name is Zhou Junhao, and I am from China University of Geosciences (Wuhan). My major is Resources and Environment, and my research direction is Remote Sensin","2026-08-16 00:25:38",{"source":8,"skillName":5,"commands":42,"prompt":52,"zipAvailable":53},[43,46,49],{"tool":44,"command":45},"npx","npx skills add peps1666\u002FBuildCrew-AI --skill convention-graph-discovery",{"tool":47,"command":48},"bunx","bunx skills add peps1666\u002FBuildCrew-AI --skill convention-graph-discovery",{"tool":50,"command":51},"pnpm","pnpm dlx skills add peps1666\u002FBuildCrew-AI --skill convention-graph-discovery","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fpeps1666\u002FBuildCrew-AI\u002Fblob\u002Fmain\u002Fcat-cafe-skills\u002Fconvention-graph-discovery\u002FSKILL.md",true,[],[56,62,69,76,83,90],{"skillNo":57,"name":58,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M7APYYSHV2SSSRV5Q15JWWPF","plugin-reconcile-skill","https:\u002F\u002Fgithub.com\u002Fpeps1666\u002FBuildCrew-AI\u002Fblob\u002Fmain\u002Fplugins\u002Ftest-reconcile-plugin-regr\u002Fskills\u002Fplugin-reconcile-skill\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M7APYWAJ119TPF079F2AXWAS","weixin-mp","通过 Limb 体系操作微信公众号：发布文章、上传图片、管理草稿。 Use when: 需要发布内容到微信公众号、查看草稿、检查公众号连接状态。 Not for: 其他平台的发布、纯文本聊天、非公众号相关操作。 Output: 微信公众号操作结果（发布ID、草稿列表、图片URL等）。","https:\u002F\u002Fgithub.com\u002Fpeps1666\u002FBuildCrew-AI\u002Fblob\u002Fmain\u002Fpackages\u002Fapi\u002Fsrc\u002Fplugins\u002Fweixin-mp\u002Fskills\u002Fweixin-mp\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M7APYNNEMBP2T62WT0JT7GNE","writing-skills","创建或修改 Clowder AI skill \u002F MCP tool description 的元技能（含质量标准、范本、发布）。 Use when: 写新 skill、修改现有 skill、写\u002F改 MCP tool description、验证 skill 质量； 或者功能实现中产出了 SKILL.md \u002F cat-cafe-skills\u002F 新目录 \u002F manifest.yaml skill 条目。 Not for: 使用 skill（直接触发对应 skill）。 Output: 新\u002F更新的 SKILL.md + manifest 条目 + symlinks。 GOTCHA: 软硬同重——skill\u002FMCP 质量 = 代码质量；不要写模型已知的通用教程，先过价值门禁。","https:\u002F\u002Fgithub.com\u002Fpeps1666\u002FBuildCrew-AI\u002Fblob\u002Fmain\u002Fcat-cafe-skills\u002Fwriting-skills\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M7APYHJDXRH9EDP5D3JZHSVN","writing-plans","将 spec\u002F需求拆分为可执行的分步实施计划。 Use when: 有 spec 或需求，准备动手前需要拆分步骤。 Not for: trivial 改动（≤5 行）、已有详细计划。 Output: 分步实施计划（含 TDD 步骤和检查点）。","https:\u002F\u002Fgithub.com\u002Fpeps1666\u002FBuildCrew-AI\u002Fblob\u002Fmain\u002Fcat-cafe-skills\u002Fwriting-plans\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M7APYD2SSZ6Y6CF5SD3YZ5C0","worktree","为代码、脚本、API 与第一方执行面创建隔离 Git worktree，并配置 Redis 6398；classifier 放行的 co-creation docs direct push 不进入本流程。","https:\u002F\u002Fgithub.com\u002Fpeps1666\u002FBuildCrew-AI\u002Fblob\u002Fmain\u002Fcat-cafe-skills\u002Fworktree\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":19},"01M7APY8R4E7RR2WZVPH9V8WWP","workspace-navigator","猫猫把“打开文档、代码或日志”等模糊意图解析成本地绝对路径或 worktree 相对路径，并返回 applied、queued、blocked 或 unconfirmed 的真实 Workspace 投递状态。","https:\u002F\u002Fgithub.com\u002Fpeps1666\u002FBuildCrew-AI\u002Fblob\u002Fmain\u002Fcat-cafe-skills\u002Fworkspace-navigator\u002FSKILL.md",[],[]]