# yeadon8888/cangjie-skill architecture

> Architecture diagram of the GitHub repository yeadon8888/cangjie-skill, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-30). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/yeadon8888/cangjie-skill
- Repository: https://github.com/yeadon8888/cangjie-skill

## Overview

仓颉是一个面向 Claude Code 的认知蒸馏 Skill：引导用户从人物素材出发，采集研究信息、提取经历塑造的信念与决策，再构建可供 AI 使用的人物 Skill。质量检查器验证生成结果，提示编译器则将完整 Skill 转为精简 API system prompt。采集与蒸馏的主要流程由 README 描述；未采样的 Skill 与参考文件仅按文档所述建模。

Main entry points: [`examples/paul-graham-perspective/SKILL.md`](https://github.com/yeadon8888/cangjie-skill/blob/main/examples/paul-graham-perspective/SKILL.md) (生成的人物Skill), [`SKILL.md`](https://github.com/yeadon8888/cangjie-skill/blob/main/SKILL.md) (仓颉指引), [`references/research-guide.md`](https://github.com/yeadon8888/cangjie-skill/blob/main/references/research-guide.md) (六路采集), [`references/extraction-framework.md`](https://github.com/yeadon8888/cangjie-skill/blob/main/references/extraction-framework.md) (认知提取)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["蒸馏工作流"]
  node_skill["仓颉指引<br/>[SKILL.md]"]
  node_research["六路采集<br/>[research-guide.md]"]
  node_persona["生成的人物Skill<br/>[SKILL.md]"]
end

subgraph group_method["方法与模板"]
  node_extraction["认知提取"]
  node_template["v3模板<br/>[skill-template.md]"]
end

subgraph group_tools["运行工具"]
  node_quality["质量自检<br/>[quality_check.py]"]
  node_compiler["Prompt编译<br/>[compile-prompt.py]"]
  node_api_prompt["API系统提示词"]
end

subgraph group_examples["人物示例"]
  node_pg_example["PG研究示例"]
  node_adler_example["阿德勒示例<br/>[SKILL.md]"]
end

node_user(("发起蒸馏"))

node_user -->|"请求蒸馏"| node_skill
node_skill -->|"引导采集"| node_research
node_research -->|"提供素材"| node_extraction
node_extraction -->|"组织认知"| node_template
node_template -->|"构建Skill"| node_persona
node_persona -->|"检查结构"| node_quality
node_persona -->|"输入Skill"| node_compiler
node_compiler -->|"编译输出"| node_api_prompt
node_pg_example -.->|"示例内容"| node_persona
node_adler_example -.->|"示例产物"| node_persona

click node_skill "https://github.com/yeadon8888/cangjie-skill/blob/main/SKILL.md"
click node_research "https://github.com/yeadon8888/cangjie-skill/blob/main/references/research-guide.md"
click node_extraction "https://github.com/yeadon8888/cangjie-skill/blob/main/references/extraction-framework.md"
click node_template "https://github.com/yeadon8888/cangjie-skill/blob/main/references/skill-template.md"
click node_persona "https://github.com/yeadon8888/cangjie-skill/blob/main/examples/paul-graham-perspective/SKILL.md"
click node_quality "https://github.com/yeadon8888/cangjie-skill/blob/main/scripts/quality_check.py"
click node_compiler "https://github.com/yeadon8888/cangjie-skill/blob/main/scripts/compile-prompt.py"
click node_pg_example "https://github.com/yeadon8888/cangjie-skill/tree/main/examples/paul-graham-perspective/references/research"
click node_adler_example "https://github.com/yeadon8888/cangjie-skill/blob/main/examples/adler-perspective/SKILL.md"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_skill,node_research,node_persona toneBlue
class node_extraction,node_template toneAmber
class node_quality,node_compiler,node_api_prompt toneMint
class node_pg_example,node_adler_example toneRose
class node_user toneIndigo
```

## Components

### 蒸馏工作流

- [仓颉指引](https://github.com/yeadon8888/cangjie-skill/blob/main/SKILL.md): `SKILL.md`
- [六路采集](https://github.com/yeadon8888/cangjie-skill/blob/main/references/research-guide.md): `references/research-guide.md`
- [生成的人物Skill](https://github.com/yeadon8888/cangjie-skill/blob/main/examples/paul-graham-perspective/SKILL.md): `examples/paul-graham-perspective/SKILL.md`

### 方法与模板

- [认知提取](https://github.com/yeadon8888/cangjie-skill/blob/main/references/extraction-framework.md): `references/extraction-framework.md`
- [v3模板](https://github.com/yeadon8888/cangjie-skill/blob/main/references/skill-template.md): `references/skill-template.md`

### 运行工具

- [质量自检](https://github.com/yeadon8888/cangjie-skill/blob/main/scripts/quality_check.py): `scripts/quality_check.py`
- [Prompt编译](https://github.com/yeadon8888/cangjie-skill/blob/main/scripts/compile-prompt.py): `scripts/compile-prompt.py`
- **API系统提示词**

### 人物示例

- [PG研究示例](https://github.com/yeadon8888/cangjie-skill/tree/main/examples/paul-graham-perspective/references/research): `examples/paul-graham-perspective/references/research`
- [阿德勒示例](https://github.com/yeadon8888/cangjie-skill/blob/main/examples/adler-perspective/SKILL.md): `examples/adler-perspective/SKILL.md`

### Other components

- **发起蒸馏**

## Connections

- 发起蒸馏 → 仓颉指引: 请求蒸馏 (evidence: `README.md`)
- 仓颉指引 → 六路采集: 引导采集 (evidence: `README.md`)
- 六路采集 → 认知提取: 提供素材 (evidence: `README.md`)
- 认知提取 → v3模板: 组织认知 (evidence: `README.md`)
- v3模板 → 生成的人物Skill: 构建Skill (evidence: `README.md`)
- 生成的人物Skill → 质量自检: 检查结构 (evidence: `README.md`)
- 生成的人物Skill → Prompt编译: 输入Skill (evidence: `README.md`)
- Prompt编译 → API系统提示词: 编译输出 (evidence: `scripts/compile-prompt.py`)
- PG研究示例 → 生成的人物Skill: 示例内容 (evidence: `README.md`)
- 阿德勒示例 → 生成的人物Skill: 示例产物 (evidence: `README.md`)
