concept-graph
Original:🇺🇸 English
Translated
Build a concept graph (nodes + prerequisite edges) from a tutorial spec, saving as `outline/concept_graph.yml`. **Trigger**: concept graph, prerequisite graph, dependency graph, 概念图, 先修关系. **Use when**: tutorial pipeline 的结构阶段(C2),需要把教程知识点拆成可排序的依赖图(在写教程 prose 前)。 **Skip if**: 还没有 tutorial spec(例如缺少 `output/TUTORIAL_SPEC.md`)。 **Network**: none. **Guardrail**: 只做结构;避免写长 prose 段落。
1installs
Added on
NPX Install
npx skill4agent add willoscar/research-units-pipeline-skills concept-graphTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Concept Graph (prerequisites)
Goal: represent tutorial concepts as a prerequisite DAG so modules can be planned and ordered.
Inputs
output/TUTORIAL_SPEC.md
Outputs
outline/concept_graph.yml
Output schema (recommended)
A minimal, readable YAML schema:
- : list of
nodes{id, title, summary} - : list of
edgesmeaning{from, to}is a prerequisite offromto
Constraints:
- Graph should be acyclic (DAG).
- Prefer 10–30 nodes for a medium tutorial.
Workflow
- Read and extract the concept list implied by objectives + running example.
output/TUTORIAL_SPEC.md - Normalize each concept into a node with a stable .
id - Add prerequisite edges and verify the graph is acyclic.
- Write .
outline/concept_graph.yml
Definition of Done
- exists and is a DAG.
outline/concept_graph.yml - Nodes cover all learning objectives from .
output/TUTORIAL_SPEC.md - Node titles are specific (not “misc”).
Troubleshooting
Issue: the graph looks like a linear list
Fix:
- Add intermediate prerequisites explicitly (e.g., “data model” before “evaluation protocol”).
Issue: cycles appear (A → B → A)
Fix:
- Split concepts or redefine edges so prerequisites flow in one direction.