Add Knowledge
Adds a new knowledge file to a public skill under skills/ (repo root) and updates that skill's knowledge index in its SKILL.md.
Role in this project
| What |
Where |
Purpose |
This skill (add-knowledge) |
.agents/skills/add-knowledge/ in the repo |
Instructions for agents working in this project |
| Skills you update |
skills/<skill_name>/ at repo root |
Shareable skills: other people can install or copy them from the repository |
- All new knowledge MUST go into
skills/<skill_name>/knowledge/. Do not treat add-knowledge as the destination folder for KB files unless the user explicitly says so (unusual).
What you need
- Target skill — the folder name under
skills/ (e.g. marketer, designer). Mandatory clarification: if neither the current user message nor earlier messages in this same conversation name the skill to update, stop and ask once: which skills/<name>/ should receive the knowledge? Never silently choose a skill only because the topic "fits".
- Content — transcript, pasted text, file, or a brief to expand.
- Filename — optional; if missing, choose a descriptive English
snake_case name (see File naming).
Workflow
1. Locate the skill's knowledge directory and index
- Knowledge files live in
skills/<skill_name>/knowledge/ (repository root skills/ only for this project's convention).
- The target skill's
skills/<skill_name>/SKILL.md must list knowledge files in its index section ("Knowledge base" or equivalent). Match the heading level and bullet style already used in that file.
2. Create the knowledge file
- Create
skills/<skill_name>/knowledge/<filename>.md.
- Use the structure in references/knowledge-template.md. Keep one main theme per file; split if approaching ~2000 words or mixed topics.
- Distill raw source material per Distillation and writing style below — do not paste transcripts or articles verbatim.
3. Update the index in the skill's SKILL.md
- Open
skills/<skill_name>/SKILL.md and add one entry consistent with existing index entries.
Example pattern (adapt to whatever the skill already uses):
### [filename].md
Short description of what the file contains and when to use it.
- Place the entry in sensible order (theme or alphabetical).
File naming
- English filenames,
words_with_underscores.md. No spaces or stray punctuation.
Good: attention_traps.md, content_strategies.md, bernays_propaganda_engineering_of_consent.md
Bad: file1.md, new file.md, tips & tricks.md
Edge cases
- Target skill omitted in the prompt — Ask once which
skills/<skill_name>/ to use. Do not write into a random skill.
knowledge/ missing — create skills/<skill_name>/knowledge/. If skills/<skill_name>/ does not exist, tell the user and stop (or confirm they meant a different skill name).
- No index section in SKILL.md — add a section (e.g.
## Knowledge base) aligned with other headings in that file.
- Duplicate filename — propose a different name or ask the user.
Organization
- One topic per file; self-contained. Split oversized or unrelated bundles.
Distillation and writing style
Knowledge files are for agents that load the parent skill and work in its domain — not for human readers, not as talk summaries.
Purpose
- Capture operational knowledge the agent can apply on the next task: definitions, rules, mechanics, decision criteria, constraints, when-to-use notes.
- The agent should be able to act from the file without re-reading the original source.
What to remove from sources (especially transcripts, talks, long articles)
- Speaker intros, credentials, conference filler, applause, audience reactions
- Repetitions and circular explanations of the same point
- Off-topic Q&A, tangents, and examples that do not illustrate a reusable pattern
- Rhetoric aimed at human memory or motivation ("crystal clear", "now you understand", storytelling hooks)
- Content outside the target skill's domain or the stated topic of the request
How to write
- Dry and dense — prefer bullets, definitions, numbered mechanics, explicit rules over prose.
- No verbosity — every sentence must relate directly to the topic; cut throat-clearing and padding.
- Agent-oriented phrasing — write what to check, compare, or do; not what a presenter wants the audience to feel.
- Abstract examples — keep only when they encode a reusable pattern; strip narrative detail.
- Preserve precision — keep frameworks, formulas, named models, and causal links; drop the story around them.
- Match the tone of existing files in the same skill's
knowledge/ folder when present.
Source handling
- Identify the domain question first (what should the agent know or do after reading?).
- Extract only material that answers it; reorganize under the template — do not follow source order.
- If the source mixes several themes, split into multiple knowledge files.
Checklist
1---2name: add-knowledge3description: Adds a new knowledge file to a skill under the repo-root `skills/` directory and updates that skill's SKILL.md index. Use this project-local skill to maintain **public, shareable** skills shipped in this repository (skills others can copy or install). Distill sources into agent-oriented operational knowledge — not human summaries; strip transcript filler, verbosity, and off-topic content. If nothing in the conversation names the target skill yet, **ask once** which `skills/<name>/` to update—do not guess silently.4license: MIT5---67# Add Knowledge89Adds a new knowledge file to a **public** skill under **`skills/`** (repo root) and updates that skill's knowledge index in its **`SKILL.md`**.1011## Role in this project1213| What | Where | Purpose |14|------|--------|--------|15| **This skill** (`add-knowledge`) | `.agents/skills/add-knowledge/` in the repo | Instructions for agents working **in this project** |16| **Skills you update** | `skills/<skill_name>/` at **repo root** | **Shareable** skills: other people can install or copy them from the repository |1718- All new knowledge MUST go into **`skills/<skill_name>/knowledge/`**. Do **not** treat **`add-knowledge`** as the destination folder for KB files unless the user explicitly says so (unusual).1920## What you need2122- **Target skill** — the folder name under **`skills/`** (e.g. `marketer`, `designer`). **Mandatory clarification:** if neither the **current user message** nor **earlier messages in this same conversation** name the skill to update, **stop and ask once**: which **`skills/<name>/`** should receive the knowledge? Never silently choose a skill only because the topic "fits".23- **Content** — transcript, pasted text, file, or a brief to expand.24- **Filename** — optional; if missing, choose a descriptive English `snake_case` name (see **File naming**).2526## Workflow2728### 1. Locate the skill's knowledge directory and index2930- Knowledge files live in **`skills/<skill_name>/knowledge/`** (repository root **`skills/`** only for this project's convention).31- The target skill's **`skills/<skill_name>/SKILL.md`** must list knowledge files in its index section ("Knowledge base" or equivalent). Match the heading level and bullet style already used in that file.3233### 2. Create the knowledge file3435- Create **`skills/<skill_name>/knowledge/<filename>.md`**.36- Use the structure in **[references/knowledge-template.md](references/knowledge-template.md)**. Keep one main theme per file; split if approaching ~2000 words or mixed topics.37- **Distill** raw source material per **Distillation and writing style** below — do not paste transcripts or articles verbatim.3839### 3. Update the index in the skill's SKILL.md4041- Open **`skills/<skill_name>/SKILL.md`** and add one entry consistent with existing index entries.4243Example pattern (adapt to whatever the skill already uses):4445```markdown46### [filename].md47Short description of what the file contains and when to use it.48```4950- Place the entry in sensible order (theme or alphabetical).5152## File naming5354- **English** filenames, **`words_with_underscores.md`**. No spaces or stray punctuation.5556**Good:** `attention_traps.md`, `content_strategies.md`, `bernays_propaganda_engineering_of_consent.md` 57**Bad:** `file1.md`, `new file.md`, `tips & tricks.md`5859## Edge cases6061- **Target skill omitted in the prompt** — **Ask once** which **`skills/<skill_name>/`** to use. Do **not** write into a random skill.62- **`knowledge/` missing** — create **`skills/<skill_name>/knowledge/`**. If **`skills/<skill_name>/`** does not exist, tell the user and stop (or confirm they meant a different skill name).63- **No index section in SKILL.md** — add a section (e.g. `## Knowledge base`) aligned with other headings in that file.64- **Duplicate filename** — propose a different name or ask the user.6566## Organization6768- One topic per file; self-contained. Split oversized or unrelated bundles.6970## Distillation and writing style7172Knowledge files are **for agents** that load the parent skill and work in its domain — not for human readers, not as talk summaries.7374### Purpose7576- Capture **operational knowledge** the agent can apply on the next task: definitions, rules, mechanics, decision criteria, constraints, when-to-use notes.77- The agent should be able to **act** from the file without re-reading the original source.7879### What to remove from sources (especially transcripts, talks, long articles)8081- Speaker intros, credentials, conference filler, applause, audience reactions82- Repetitions and circular explanations of the same point83- Off-topic Q&A, tangents, and examples that do not illustrate a reusable pattern84- Rhetoric aimed at human memory or motivation ("crystal clear", "now you understand", storytelling hooks)85- Content outside the target skill's domain or the stated topic of the request8687### How to write8889- **Dry and dense** — prefer bullets, definitions, numbered mechanics, explicit rules over prose.90- **No verbosity** — every sentence must relate directly to the topic; cut throat-clearing and padding.91- **Agent-oriented phrasing** — write what to check, compare, or do; not what a presenter wants the audience to *feel*.92- **Abstract examples** — keep only when they encode a reusable pattern; strip narrative detail.93- **Preserve precision** — keep frameworks, formulas, named models, and causal links; drop the story around them.94- Match the tone of existing files in the same skill's `knowledge/` folder when present.9596### Source handling9798- Identify the **domain question** first (what should the agent know or do after reading?).99- Extract only material that answers it; reorganize under the template — do not follow source order.100- If the source mixes several themes, split into multiple knowledge files.101102## Checklist103104- [ ] Target **`skills/<skill_name>/`** is named in this conversation **before** writing files; if it never was named, user was asked once.105- [ ] Source material **distilled** per **Distillation and writing style** (agent-oriented, no transcript dump).106- [ ] New file in **`skills/<skill_name>/knowledge/`** using **knowledge-template.md** structure.107- [ ] **`skills/<skill_name>/SKILL.md`** index updated.108- [ ] Filename is descriptive English **`snake_case`**.