Knowledge Base Construction
Convert the user's content directly into a structured Markdown knowledge base. Don't ask clarifying questions unless the content is genuinely unusable (e.g. empty or unintelligible) — infer structure, terminology, and grouping from what's given, and note any gaps inline rather than blocking on them.
Workflow
- Read the content and split it into coherent concepts (one idea per file — prefer several small linked files over one large one).
- Create new directory with a name relative to the content user provide (e.g.
italian-food, turbocharge, formula-one, etc. ).
- Group concepts into type directories that fit the material's own structure. Let the content dictate the categories — e.g.
recipes/, policies/, species/, procedures/, terms/, people/, events/ — whatever natural groupings emerge. Don't force a data/tech taxonomy onto non-technical content.
- Write each file using the format below, preserving the user's own terminology and facts. Never invent details, numbers, names, or steps that weren't given.
- Add relative Markdown links between related concepts.
- Save all files under an input directory your just created.
Example file tree
cooking/
recipes/
italian/
lasagna.md
carbonara.md
japanese/
ramen.md
sushi.md
techniques/
knife-skills.md
emulsion.md
ingredients/
eggs.md
flour-types.md
faq.md
common-mistake.md
- Root files (e.g.
faq.md) are allowed
- File can be nested as deep as necessary and semantically sound.
File format
# Clear Concept Title
> One-sentence factual summary.
Body: context, details, steps, examples, caveats — whatever fits the concept.
- First line
# Title, then a > description, then body detail.
- Use headings, lists, tables, or code blocks as they help retrieval — not all concepts need all of these.
- One concept per file. Directory name per type (e.g.
recipes/lasagna.md → type recipes).
- Lowercase, stable filenames, no spaces.
- No
index.md, log.md, README.md as concepts — bundler reserves these.
- No YAML frontmatter in source files
Do not fabricate any information on your own, use only what user provided to you.
1---2name: writing-knowledge-base3description: Turn user provided content on any topic into a plain Markdown knowledge base. Invoked as /writing-knowledge-base with content to convert.4license: MIT5---67# Knowledge Base Construction89Convert the user's content directly into a structured Markdown knowledge base. Don't ask clarifying questions unless the content is genuinely unusable (e.g. empty or unintelligible) — infer structure, terminology, and grouping from what's given, and note any gaps inline rather than blocking on them.1011## Workflow12131. Read the content and split it into coherent concepts (one idea per file — prefer several small linked files over one large one).141. Create new directory with a name relative to the content user provide (e.g. `italian-food`, `turbocharge`, `formula-one`, etc. ).151. Group concepts into type directories that fit the material's own structure. Let the content dictate the categories — e.g. `recipes/`, `policies/`, `species/`, `procedures/`, `terms/`, `people/`, `events/` — whatever natural groupings emerge. Don't force a data/tech taxonomy onto non-technical content.161. Write each file using the format below, preserving the user's own terminology and facts. Never invent details, numbers, names, or steps that weren't given.171. Add relative Markdown links between related concepts.181. Save all files under an input directory your just created.1920## Example file tree2122```23cooking/24 recipes/25 italian/26 lasagna.md27 carbonara.md28 japanese/29 ramen.md30 sushi.md31 techniques/32 knife-skills.md33 emulsion.md34 ingredients/35 eggs.md36 flour-types.md37 faq.md38 common-mistake.md39```4041- Root files (e.g. `faq.md`) are allowed42- File can be nested as deep as necessary and semantically sound.4344## File format4546```markdown47# Clear Concept Title4849> One-sentence factual summary.5051Body: context, details, steps, examples, caveats — whatever fits the concept.52```5354- First line `# Title`, then a `>` description, then body detail.55- Use headings, lists, tables, or code blocks as they help retrieval — not all concepts need all of these.56- One concept per file. Directory name per type (e.g. `recipes/lasagna.md` → type `recipes`).57- Lowercase, stable filenames, no spaces.58- No `index.md`, `log.md`, `README.md` as concepts — bundler reserves these.59- No YAML frontmatter in source files6061Do not fabricate any information on your own, use only what user provided to you.