Skill v1.0.2
currentAutomated scan100/1004 files
version: "1.0.2" name: teach description: Teach user something, add or update topics in the personal handbook. disable-model-invocation: true argument-hint: What would you like to learn about?
The user wants handbook/cookbook knowledge captured as durable HTML. The handbook is the memory and a self-writing book.
Handbook root in Obsidian Vault: ~/murder/zz-handbook/
Read and follow the pretty-html skill for every HTML page. When you need current official documentation, use the web_search and web_fetch tools.
Tone
Read and follow the English writing style guide.
Optimize for a reader who forgets easy details: use <ss-callout variant="remember">, gotcha, prefer, and avoid liberally when something is counter-intuitive or easy to misremember. Prefer repeating a key fact in a callout rather than burying it in prose.
Handbook layout
~/murder/zz-handbook/_index.yaml # routing map — maintain on every writeglossary.html # global conceptual glossary_assets/ # synced from dotfiles — do not author here<topic>/ # lowercase slug: css, typescript, gitindex.html # topic hub — create with new topics<doc>.html # handbook pages: layout.html, grid.html
Never symlink into ~/murder. Never edit _assets/ in the vault — change $DOTFILES_DIR/pretty-html/_assets/ and run dotfiles sync.
Workflow
- Parse the question — infer topic slug (e.g.
css) and subject (e.g. centering). - Read `_index.yaml` — list topic folders and skim matching documents (titles, keywords, headings).
- Route — decide before creating anything:
- Extend a section in an existing doc when the subject belongs to the same subtopic (centering →
css/layout.html, notcentering.html). - New doc only when someone would send a direct link to just that topic (
container-queries.html, notgrid-template-areas.html). - New topic folder when the domain is new — add
<topic>/index.htmlhub linking its docs.
- Gather sources — prefer MDN, specifications, and official vendor docs. Cite them in
<ss-resources>and inline where claims need backing. Do not trust parametric knowledge alone for factual claims. - Write or update HTML — follow pretty-html skill. Use
<ss-code>,<ss-demo>,<ss-diagram>,<ss-callout>, and<ss-resources>as appropriate. - Update `_index.yaml` — add or refresh keywords, titles, and file paths.
- Update `glossary.html` when the question introduces a cross-cutting concept (e.g. pure function, polymorphism, closure). Do not add syntax, API names, or properties (
margin: auto,place-items). - Open the page:
open ~/murder/zz-handbook/<topic>/<doc>.html
Tell the user what was created or updated and invite follow-up questions on the same topic.
_index.yaml format
css:layout:file: css/layout.htmltitle: Layoutkeywords:[centering, flexbox, alignment, place-items, margin-auto]grid:file: css/grid.htmltitle: Gridkeywords: [grid, fr, gap, template-areas]
- Topic keys: lowercase slugs matching folder names.
- Document keys: lowercase slug matching filename without
.html. keywords: search terms for routing future/teachrequests — include synonyms.
Document structure
Each handbook page is scannable reference written according to the writing guidelines, not a sequential lesson:
- Breadcrumbs before the heading:
Handbook / Topic, linking to the root index and topic hub. - Short intro — what this doc covers.
- Sections (
<h2>) per technique or subtopic. - Within a section: explanation →
<ss-code>or<ss-demo>→ callout if easy to forget → optional diagram. - End with
<ss-resources>for further reading.
When updating an existing doc, merge into the right section; do not duplicate content elsewhere in the file.
Glossary
glossary.html uses the same pretty-html shell. Each term: <h2 id="term-slug">, definition following the writing guidelines, links to handbook docs that use the term, optional external link.
Link from docs with a normal anchor: <a href="../glossary.html#pure-function">pure function</a> (adjust relative path by depth).
Topic hub
When creating a new topic, add <topic>/index.html — breadcrumbs (Handbook / Topic, with the topic marked as the current page), title, one-line description, and an unordered list linking to each doc. The root index.html links all topic hubs and the glossary.
Guardrails
- No mission document, learning records, lessons, spaced repetition, or quizzes.
- No Markdown stubs for Obsidian — HTML is canonical.
- Do not create
_assets/copies or duplicatecomponents.js/ CSS into topic folders. - If the question is ambiguous between two existing docs, read both and pick the better home; mention the choice briefly to the user.