← ClaudeAtlas

dapei-cdrlisted

Cognitive Discovery Runtime — Code-to-Knowledge extraction, domain composition, capability mapping, and documentation portal generation. Use when the user mentions "profile", "discover entries", "discover behaviors", "discover states", "compose domain", "capability map", "generate documentation", or "knowledge portal".
ygwa/dapei-skill · ★ 1 · Data & Documents · score 64
Install: claude install-skill ygwa/dapei-skill
# dapei.cdr skill Cognitive Discovery Runtime (CDR) 通过代码逆向推导,构建从微观到宏观的三层资产型知识体系。 ## 用户入口 ``` @dapei bootstrap mall-order ``` (One-shot: runs `cdr.profile` + `cdr.entries.candidate` in a single call. The AI still owns `cdr.entries.propose` / `confirm` — see P3 red line.) ``` @dapei profile repo mall-order ``` ``` @dapei discover entries for mall-order ``` ``` @dapei discover behaviors for mall-order ``` ``` @dapei discover states for Order in mall-order ``` ``` @dapei compose domain Transaction from mall-order behaviors ``` ``` @dapei compose business rule order-amount-positive for order-create ``` ``` @dapei init capability map for E-Commerce Mall ``` ``` @dapei suggest domains @dapei synth capability map for E-Commerce Mall @dapei render L1 portal ``` ``` @dapei generate documentation portal ``` ``` @dapei list assets ``` ## 设计原则 | 原则 | 规则 | |------|------| | P0 **AI 是扫描器,引擎是校验器** (v0.3) | 引擎**不**用 regex/annotation 预设入口候选;返回代码文件清单后由 AI 决定入口;引擎仅校验 AI 提交的事实证据(file 存在、line 在范围) | | P1 行为先于领域 | `domain` 产物必须携带 `derived_from: [behavior-id, …]`;禁止仅凭包名命名领域 | | P2 入口驱动 | 深析仅从 `status: confirmed` 的入口开始 | | P3 证据优先 | `kind=fact` 必须附带 `sources[]`(file/line/repo);`kind=inference` 必须有 `derived_from[]`;`kind=unknown` 必须有 `reason` | | P4 增量更新 | `profile` / `entries` 携带 `revision`;代码变更 → `stale` 标记 | ## 三层知识结构 ``` L1 宏观层 — 产品功能地图 (Capability Map) ↑ 聚类自 L2 领域层 — 领域模型 + 入口目录 (Domain + Entries) ↑ 推导自 L3 流程层 — 行为链路 + 状态机 + 业务规则 (Behavior + State + Rules) ``` ## 边界 | dape