knowledge-map
Guide-and-script skill for building course knowledge maps. Use it to turn a course topic, syllabus, textbook outline, notes, or teaching materials into a structured framework, key concept explanations, concept dependencies, and optional Markdown / Markmap / Mermaid / OPML / HTML outputs.
This skill is not a tutor, homework helper, practice-question generator, or long-term study planner. It organizes what a course contains and how concepts relate; it does not teach a live lesson, solve exercises, generate full quizzes, or schedule a study calendar.
When to use
Use this skill when the user asks for:
- A course knowledge framework, knowledge map, concept map, syllabus map, or mind map.
- A structured outline from a textbook table of contents, course notes, lecture slides, Markdown, DOCX, or pasted text.
- Key concepts, prerequisite relationships, course learning order, or "what should I learn first?"
- A compact framework plus deeper explanations of selected nodes.
- Exportable course maps in Markdown, Markmap, Mermaid, OPML, or an HTML report.
Do not use this skill for:
- One-off concept tutoring or Socratic explanation.
- Homework solving, answer checking, or quiz sessions.
- Creating retrieval-practice question sets.
- Full study schedules, reminders, check-ins, or weekly plans.
- Multi-course comparison in one pass. Ask the user to split by course.
- Video/audio processing. Ask the user to provide text, transcript, outline, or notes first.
How to call
Identify the input mode:
topic_only: the user provides only a course topic.
material_first: the user provides syllabus/notes/materials but no strong topic.
hybrid: the user provides both topic and materials.
If the request is topic_only for a broad common course, warn that the map will be AI-inferred and ask whether the user wants to continue, provide materials, or cancel.
Ask whether the user wants a compact map, key-node explanations, or deeper node explanations when the requested depth is unclear.
Default to compact map plus key-node explanations when materials are available.
For structured file/material input, create an input.json matching references/input-schema.md.
Use scripts/validate_input.py to validate mode, depth, preferences, and warnings.
When materials are Markdown, TXT, pasted text, or DOCX, use scripts/parse_outline.py to extract the heading stream before building the map.
If the parser rejects the material type or finds no headings, ask for cleaner text or continue in topic-only mode only after user confirmation.
Generate the knowledge tree with references/framework-rubric.md and references/prompt-templates.md.
Keep total nodes at or below 100 and levels at or below 5. Use one root node and stable node ids such as n0, n1, n1.1, and n1.1.1.
For guided/deep outputs, choose 5-10 high-value nodes unless the user requested a specific focus.
Write useful explanations, examples, core points, and common confusions. Do not add explanations when the user asked for a map only.
For concept dependencies, use references/concept-dependency-taxonomy.md.
Output only concrete, useful relations. Avoid vague links such as "A and B are related." Keep relation count within the configured budget.
Assemble and validate structured output with scripts/assemble_result.py.
Use references/output-schema.md as the contract.
When user materials are available, run scripts/verify_provenance.py.
If many user-material nodes fail provenance matching, pause and ask whether to provide better materials, accept AI-inferred labels, or narrow the material range.
Render requested formats with scripts/render_outputs.py.
Default to Markdown plus Markmap when the user does not specify a format. Offer HTML only when useful for browsing or sharing.
Return format
For a clarification or safety checkpoint:
**Knowledge Map Scope**
- Course/topic:
- Input mode:
- Depth:
- Output formats:
- Risk/limit:
**Please choose**
1. Continue with AI-inferred map
2. Provide syllabus/notes first
3. Narrow the course scope
For a normal response:
**Knowledge Map**
- Course:
- Source mode:
- Depth:
- Nodes:
- Outputs:
**Framework overview**
[course tree]
**Key nodes**
[guided explanations when requested]
**Concept dependencies**
[typed dependency table when requested]
**Learning route**
[what to learn first, what depends on what, and where to review]
**Files**
- [generated files, if rendered]
For script-backed workflows, include the generated output directory and the key files:
**Generated files**
- `result.json`
- `framework.md`
- `framework.markmap.html`
- `framework.mermaid.md`
- `framework.opml`
- `concept-dependencies.md`
- `provenance-audit.json`
- `report.html` when requested
External dependencies
- Python 3 standard library for included scripts.
- No fixed third-party Python packages are required by the included scripts.
- Markmap HTML uses CDN loading when rendered by
scripts/render_outputs.py; if CDN is unavailable, provide Markdown or Mermaid as the stable fallback.
- The current environment must be able to read user-provided local files before file-backed parsing can run.
Limits and known issues
- Topic-only maps are AI-inferred and may omit or mis-order course content. Always label this clearly.
- The skill handles one course per run. Split multiple courses into separate maps.
- Keep generated maps at or below 100 nodes and 5 levels unless the user explicitly agrees to split the course.
- PDF/image/webpage/audio/video inputs require preprocessed text or a reliable extractor outside the core script set.
- Do not silently continue when OCR or parsed outline quality is poor.
- Do not promise that the map matches a specific curriculum unless the user supplies that syllabus or textbook outline.
- Do not expose internal audit terms such as n-gram match or provenance failure in user-facing reports unless the user asks for the audit details.
Full examples
Example 1: Topic-only framework
User:
Help me make a knowledge framework for linear algebra.
Assistant should:
- Warn that no syllabus was provided, so the map will be AI-inferred.
- Ask whether to continue, provide materials, or narrow the topic.
- If the user continues, produce a compact framework and clearly label it as inferred.
Example 2: Syllabus to map
User:
Here is my machine learning syllabus. Turn it into a mind map and tell me what to learn first.
Assistant should:
- Parse the syllabus headings.
- Build a material-first course tree.
- Add key-node explanations for high-value concepts.
- Add prerequisite dependencies if useful.
- Render Markdown and Markmap outputs.
Example 3: Focused concept dependencies
User:
Map the dependencies among calculus limits, derivatives, integrals, series, and differential equations.
Assistant should:
- Treat this as a focused topic-only map.
- Keep node count small.
- Emphasize prerequisite and application relations.
- Explain why each dependency matters for learning order.
1---2name: knowledge-map3description: knowledge-map4---56# knowledge-map78Guide-and-script skill for building course knowledge maps. Use it to turn a course topic, syllabus, textbook outline, notes, or teaching materials into a structured framework, key concept explanations, concept dependencies, and optional Markdown / Markmap / Mermaid / OPML / HTML outputs.910This skill is not a tutor, homework helper, practice-question generator, or long-term study planner. It organizes what a course contains and how concepts relate; it does not teach a live lesson, solve exercises, generate full quizzes, or schedule a study calendar.1112## When to use1314Use this skill when the user asks for:1516- A course knowledge framework, knowledge map, concept map, syllabus map, or mind map.17- A structured outline from a textbook table of contents, course notes, lecture slides, Markdown, DOCX, or pasted text.18- Key concepts, prerequisite relationships, course learning order, or "what should I learn first?"19- A compact framework plus deeper explanations of selected nodes.20- Exportable course maps in Markdown, Markmap, Mermaid, OPML, or an HTML report.2122Do not use this skill for:2324- One-off concept tutoring or Socratic explanation.25- Homework solving, answer checking, or quiz sessions.26- Creating retrieval-practice question sets.27- Full study schedules, reminders, check-ins, or weekly plans.28- Multi-course comparison in one pass. Ask the user to split by course.29- Video/audio processing. Ask the user to provide text, transcript, outline, or notes first.3031## How to call32331. Identify the input mode:34 - `topic_only`: the user provides only a course topic.35 - `material_first`: the user provides syllabus/notes/materials but no strong topic.36 - `hybrid`: the user provides both topic and materials.37382. If the request is `topic_only` for a broad common course, warn that the map will be AI-inferred and ask whether the user wants to continue, provide materials, or cancel.39403. Ask whether the user wants a compact map, key-node explanations, or deeper node explanations when the requested depth is unclear.41 Default to compact map plus key-node explanations when materials are available.42434. For structured file/material input, create an `input.json` matching `references/input-schema.md`.44 Use `scripts/validate_input.py` to validate mode, depth, preferences, and warnings.45465. When materials are Markdown, TXT, pasted text, or DOCX, use `scripts/parse_outline.py` to extract the heading stream before building the map.47 If the parser rejects the material type or finds no headings, ask for cleaner text or continue in topic-only mode only after user confirmation.48496. Generate the knowledge tree with `references/framework-rubric.md` and `references/prompt-templates.md`.50 Keep total nodes at or below 100 and levels at or below 5. Use one root node and stable node ids such as `n0`, `n1`, `n1.1`, and `n1.1.1`.51527. For guided/deep outputs, choose 5-10 high-value nodes unless the user requested a specific focus.53 Write useful explanations, examples, core points, and common confusions. Do not add explanations when the user asked for a map only.54558. For concept dependencies, use `references/concept-dependency-taxonomy.md`.56 Output only concrete, useful relations. Avoid vague links such as "A and B are related." Keep relation count within the configured budget.57589. Assemble and validate structured output with `scripts/assemble_result.py`.59 Use `references/output-schema.md` as the contract.606110. When user materials are available, run `scripts/verify_provenance.py`.62 If many user-material nodes fail provenance matching, pause and ask whether to provide better materials, accept AI-inferred labels, or narrow the material range.636411. Render requested formats with `scripts/render_outputs.py`.65 Default to Markdown plus Markmap when the user does not specify a format. Offer HTML only when useful for browsing or sharing.6667## Return format6869For a clarification or safety checkpoint:7071```markdown72**Knowledge Map Scope**73- Course/topic:74- Input mode:75- Depth:76- Output formats:77- Risk/limit:7879**Please choose**801. Continue with AI-inferred map812. Provide syllabus/notes first823. Narrow the course scope83```8485For a normal response:8687```markdown88**Knowledge Map**89- Course:90- Source mode:91- Depth:92- Nodes:93- Outputs:9495**Framework overview**96[course tree]9798**Key nodes**99[guided explanations when requested]100101**Concept dependencies**102[typed dependency table when requested]103104**Learning route**105[what to learn first, what depends on what, and where to review]106107**Files**108- [generated files, if rendered]109```110111For script-backed workflows, include the generated output directory and the key files:112113```markdown114**Generated files**115- `result.json`116- `framework.md`117- `framework.markmap.html`118- `framework.mermaid.md`119- `framework.opml`120- `concept-dependencies.md`121- `provenance-audit.json`122- `report.html` when requested123```124125## External dependencies126127- Python 3 standard library for included scripts.128- No fixed third-party Python packages are required by the included scripts.129- Markmap HTML uses CDN loading when rendered by `scripts/render_outputs.py`; if CDN is unavailable, provide Markdown or Mermaid as the stable fallback.130- The current environment must be able to read user-provided local files before file-backed parsing can run.131132## Limits and known issues133134- Topic-only maps are AI-inferred and may omit or mis-order course content. Always label this clearly.135- The skill handles one course per run. Split multiple courses into separate maps.136- Keep generated maps at or below 100 nodes and 5 levels unless the user explicitly agrees to split the course.137- PDF/image/webpage/audio/video inputs require preprocessed text or a reliable extractor outside the core script set.138- Do not silently continue when OCR or parsed outline quality is poor.139- Do not promise that the map matches a specific curriculum unless the user supplies that syllabus or textbook outline.140- Do not expose internal audit terms such as n-gram match or provenance failure in user-facing reports unless the user asks for the audit details.141142## Full examples143144### Example 1: Topic-only framework145146User:147148```text149Help me make a knowledge framework for linear algebra.150```151152Assistant should:1531541. Warn that no syllabus was provided, so the map will be AI-inferred.1552. Ask whether to continue, provide materials, or narrow the topic.1563. If the user continues, produce a compact framework and clearly label it as inferred.157158### Example 2: Syllabus to map159160User:161162```text163Here is my machine learning syllabus. Turn it into a mind map and tell me what to learn first.164```165166Assistant should:1671681. Parse the syllabus headings.1692. Build a material-first course tree.1703. Add key-node explanations for high-value concepts.1714. Add prerequisite dependencies if useful.1725. Render Markdown and Markmap outputs.173174### Example 3: Focused concept dependencies175176User:177178```text179Map the dependencies among calculus limits, derivatives, integrals, series, and differential equations.180```181182Assistant should:1831841. Treat this as a focused topic-only map.1852. Keep node count small.1863. Emphasize prerequisite and application relations.1874. Explain why each dependency matters for learning order.