ahastudio/til/llm-wiki
Claude Code and agent skill by ahastudio/til
- community
Checking that the SKILL.md file is still in the repository.
Build or refresh a mini-wiki directory under `_wiki/` (named by the topic's slug) for one topic by searching the entire TIL repository for related notes, discovering the topic's natural sub-themes, and compiling them into an index page plus linked sub-pages. Re-running on the same topic re-scans the whole repository, updates pages with anything new, re-clusters sub-pages if the natural grouping has shifted, and prunes content no longer backed by source notes. Use when the user wants a standing knowledge-base for a topic, distinct from a one-off article analysis.
Install
npx vskill@latest install ahastudio/til/llm-wikiSKILL.md
LLM Wiki
Compile a small multi-page wiki under _wiki/<slug>/ for one topic by finding every relevant TIL note across the repository (regardless of which folder it lives in), discovering the sub-themes those notes naturally form, and synthesizing them into an index page plus linked sub-pages — Karpathy's "LLM Wiki" pattern applied to this repository.
Contents
Section titles match the headings below; search for a title to jump to it.
- Usage:
/llm-wiki <topic sentence> - Core rule: this always re-compiles from scratch: no separate first-run or update mode
- 1. Derive the topic slug and target directory
- 2. Search the repository for relevant notes: whole repository, several angles
- Do not scope narrowly: the rule against building from the first few notes that come to mind
- 3. Read and extract
- 4. Discover sub-themes: let them emerge, no fixed template
- 5. Compile the pages: index page, sub-page format, source list
- 6. Re-cluster if needed
- 7. Prune: remove content no longer backed by source notes
- Synthesis Quality: explain mechanisms, not an inventory of notes
- 8. Report
- Repository-wide sweeps: cleaning up or consolidating all of
_wiki/
Usage
- Argument: the topic, as a full, specific sentence — not a bare keyword.
The sentence sets the scope: it tells this skill what counts as relevant and what doesn't. If the user gives only a short keyword, ask them to restate it as a fuller sentence before proceeding.
- Standing topic sentences already agreed with the user are recorded in
_wiki/llm-wiki-topics.md. Check there first — reuse an existing entry's exact wording rather than inventing a new phrasing for the same topic.
Core rule: this always re-compiles from scratch
There is no separate "first run" vs "update" mode. Every invocation:
- Re-searches the entire repository for notes relevant to the topic
sentence, not just what the existing wiki pages already cite.
- Re-derives the sub-theme clustering from that fresh source set — the
previous page split is a hint, not a fixed skeleton.
- Rebuilds each page's content set from the current cluster.
- Removes claims/sections/pages whose source notes were deleted,
reorganized, or no longer support them.
Treat the previous _wiki/<slug>/ directory (if any) as a draft to revise, not as a fixed structure to append to. The source notes are the ground truth; the wiki pages are a compiled artifact that must stay in sync with them.
Procedure
1. Derive the topic slug and target directory
From the topic sentence, derive a short kebab-case slug that captures the core subject (e.g. "Claude Code에서 커스텀 서브에이전트를 만들고 조율하는 방법" → claude-code-subagents). Target directory: _wiki/<slug>/, with _wiki/<slug>/index.md as the entry page.
Check _wiki/ for an existing directory covering the same or a near-duplicate topic (Glob _wiki/*/index.md, read topic lines). If a close match exists, reuse that exact directory instead of creating a near-duplicate wiki — this keeps _wiki/ a small set of topics, not one directory per invocation.
Mandatory cross-wiki check (NO EXCEPTIONS): Even when the topic is genuinely new and gets its own directory, read every other existing _wiki/*/index.md before drafting content. Two failure modes are equally bad: creating a near-duplicate directory instead of reusing one, and building a new wiki in isolation that silently overlaps an existing one's sub-pages without ever linking to them. For each existing wiki whose topic sentence shares real subject matter with the new one (not just a keyword in passing), add a cross-link — a [관련: <title>](../<other-slug>/<page>.md) line — from the relevant sub-page(s) on both sides. Do not merge two distinct wikis into one directory just because they touch; only reuse a directory outright when the topic sentences describe the same subject (per the paragraph above). Skipping this check because the topic "feels" new is the same defect as skipping a reaction-skill search because another platform came back empty — a feeling is not a check.
2. Search the repository for relevant notes
Search broadly and by multiple angles — do not rely on a single grep pattern. Use Explore (or direct Glob/Grep for quick lookups) across the whole repository, ignoring folder boundaries:
- Keyword search on the topic's key terms and close synonyms (English and
Korean forms — this repo mixes both).
- Search for the topic's key tools/products/APIs by name.
- If wiki pages already exist for this slug, re-check each cited file still
exists and still supports its claim.
For each candidate file found, judge relevance against the topic sentence — not against a loose keyword match. A file that merely mentions a keyword in passing is not automatically in scope; a file that substantively informs the topic sentence is.
Do not scope narrowly (ABSOLUTE PRIORITY — NO EXCEPTIONS)
Use the whole repository, not the handful of notes that come to mind first. A wiki built from the obvious five or ten files is a summary of those files, not a knowledge base for the topic. The value of this skill is in connecting notes that live far apart and were never written with the topic in mind.
- Never start from a pre-chosen list of "related documents" — not one you
proposed earlier in the conversation, and not the files named in the topic sentence. Those are examples of the topic, never its boundary.
- Search every folder. Notes that inform a topic routinely sit in folders
whose names have nothing to do with it (thinking/, management/, business/, current-affairs/, startup/ and the like).
- Search by the topic's underlying questions and mechanisms, not only by its
proper nouns. A note about a different product, industry, or era that shows the same mechanism belongs in scope.
- Expand outward in rounds: after reading the first set of notes, take the
terms, cases, and arguments they raise and search again. Stop only when a new round returns no new relevant notes.
- A note that informs a single sub-point still counts. Cite it there rather
than dropping it because it is not about the whole topic.
- Report the number of notes cited and the folders they came from. A wiki
whose sources come from one or two folders is a warning sign that the search stopped early; search again before finishing.
3. Read and extract
Read each relevant file (or the relevant sections of long files). Extract:
- Concrete facts, patterns, opinions, and critiques bearing on the topic.
- The file's path, so wiki pages can cite it.
4. Discover sub-themes
Do not impose a fixed template (e.g. "concepts / cases / criteria") on every topic. Instead, let the sub-themes emerge from what the source notes actually cluster around — recurring entities, recurring failure modes, recurring points of disagreement, natural phases of a workflow, whatever the material itself groups into.
Aim for 3–7 sub-pages. Fewer than that usually means the topic didn't need splitting (reconsider whether a single page would serve better — see step 6). More than that usually means some clusters should merge.
Each source note may inform more than one sub-page if it substantively speaks to more than one sub-theme.
5. Compile the pages
Write in Korean, following _agent/skills/writing-guidelines/SKILL.md.
`_wiki/<slug>/index.md`:
Each `_wiki/<slug>/<sub-page-slug>.md`:
Rules for the body:
- Organize by sub-theme, not by walking through source files one at a time.
A wiki page is a synthesis, not a list of summaries.
- Where source notes disagree or take different angles, say so explicitly —
that tension is valuable, don't flatten it.
- Cite the source note's relative path inline (as a markdown link) at the
point a specific claim draws on it, in addition to the ## 출처 list at the end.
- Cross-link sub-pages to each other where their content genuinely relates
([관련: <title>](<slug>.md)) — this is what makes it a wiki rather than a set of independent documents.
- Do not quote large blocks verbatim from source notes — synthesize in your
own words. Short direct quotes are fine when the original phrasing matters.
- Keep each page as short as it can be while still covering its sub-theme
substantively. This is a living reference, not an exhaustive archive — favor tight, well-organized pages over long ones.
6. Re-cluster if needed
If this is a re-run and the freshly-derived sub-themes no longer match the existing page split:
- Merge pages whose sub-themes have converged.
- Split a page whose sub-theme has grown into two distinct ones.
- Rename a page whose scope has drifted from its original title.
- If the topic turns out too thin to sustain multiple pages, collapse back
to a single _wiki/<slug>/index.md with no sub-pages.
Delete sub-page files that no longer correspond to any current cluster — don't leave orphaned pages behind. Update index.md's "하위 주제" list to match the final set exactly.
7. Prune
After drafting, re-check every page and every ## 출처 entry against the current repository state:
- If a cited file no longer exists or no longer supports the claim, remove
or rewrite that part.
- If a sub-page's source notes turn out to be thin (one weak mention) and it
doesn't hold up on its own, fold it into a related sub-page or cut it rather than padding it out.
- If a cross-link points to a page that was merged or deleted in step 6,
fix or remove it.
Do not keep content "just in case" — an unused or unsupported claim is worse than a shorter wiki. This pruning step is not optional; run it every time, even when the wiki is new.
This pruning step covers the current topic's directory only — do not extend it to a full repository-wide sweep of every `_wiki/` directory. Full staleness sweeps of directories unrelated to the current topic sentence are out of scope for this skill unless the user explicitly asks for one; do not invent that extra work on your own (see "Repository-wide sweeps" below).
Synthesis Quality
Do not make a wiki page a longer inventory of its source notes. For each sub-theme, explain the mechanism connecting its examples and make disagreements visible instead of averaging them into a single conclusion.
Keep reported facts, cross-source inferences, and practical judgments distinct. A claim about what a source says needs an inline link to that note; an inference should identify the facts it depends on; a recommendation should name the condition under which it applies.
Where evidence is incomplete, say what is unknown and what observation would resolve it. A short page with a clear boundary is more useful than a long page whose extra claims cannot be traced or tested.
8. Report
Tell the user, briefly: the target directory, the sub-pages produced, how many source notes were used, and — on a re-run — what changed (added / updated / merged / split / pruned), not just that the wiki was refreshed. Also mention any cross-links added to or from other _wiki/ directories per step 1's mandatory check.
Repository-wide sweeps
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking_agent/skills/llm-wiki/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/ahastudio/til/llm-wiki)