From llm-wiki
Extract and derive structured knowledge from wiki pages for downstream use — structured data, derivative documents, or compact knowledge packs. Use when the user asks to "extract", "export", "generate a checklist", "create a summary for", "build a reference", or produce any derivative output from wiki content.
How this skill is triggered — by the user, by Claude, or both
Slash command
/llm-wiki:extractThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Extract structured knowledge from the wiki for downstream use. Use `$ARGUMENTS` as the intent description and optional destination (e.g., `/extract a checklist for editing LinkedIn posts`, `/extract all prompt templates as JSON to ./prompts.json`, `/extract a compact summary of synthetic voice tells`).
Extract structured knowledge from the wiki for downstream use. Use $ARGUMENTS as the intent description and optional destination (e.g., /extract a checklist for editing LinkedIn posts, /extract all prompt templates as JSON to ./prompts.json, /extract a compact summary of synthetic voice tells).
wiki/index.md exists and the wiki has content. If the wiki is empty, suggest running /ingest on a source first — it will bootstrap the wiki automatically.From $ARGUMENTS, determine three things:
Fast path: If $ARGUMENTS specifies all three (what, format, destination), skip Phase 4 and Phase 5 — proceed directly from Phase 3 to Phase 6. Present a brief confirmation of what you understood before producing output.
If $ARGUMENTS is empty or too vague to determine what knowledge is needed, use the AskUserQuestion tool to clarify the output type. Options: "Structured data (JSON/YAML)" (description: "Machine-readable for apps and APIs"), "Derivative document (checklist, guide)" (description: "Human-readable reference docs"), "Compact knowledge pack" (description: "Dense summary for LLM prompts or handoff"), "Visual format (diagram/slides)" (description: "Mermaid, Marp, or matplotlib output"). If the user picks an option, follow up with a separate AskUserQuestion call to narrow scope (what topic or pages to extract from) — ask one question at a time.
Read wiki/index.md. Match the user's intent against the page titles and one-line summaries to identify which wiki pages contain the knowledge needed.
Lens scoping (optional): If the user specifies a lens or domain (e.g., "extract all techniques from the ML lens"), filter candidates to pages with the matching lens frontmatter field. If no lens is specified, include pages from all lenses (default).
Selection principles:
wiki/overview.md if the intent spans multiple topics — it maps how concepts relate.List the pages you plan to read and briefly state what each contributes. Note which lens each page belongs to if the extraction spans multiple lenses.
Read the identified wiki pages. As you read, catalog the extractable knowledge units — do not summarize or transform yet, just identify what's there.
Knowledge units to look for:
Present a proposal to the user covering:
A. Knowledge to extract — list each knowledge unit with a count (e.g., "15 templates across 4 categories", "20+ named patterns across 5 groups"). Note which lenses the source pages belong to if the extraction spans multiple lenses.
B. Output format — if the user already specified a format, confirm it. If not, use the AskUserQuestion tool to ask (one question only). Options: "Structured data (JSON/YAML)", "Derivative document (Markdown)", "Compact knowledge pack", "Visual format (diagram/slides)". Include descriptions stating what each is best for.
Structured data (JSON or YAML) — machine-readable schemas with typed fields. Best for: feeding into applications, APIs, or automated pipelines.
Derivative document (Markdown) — a new document restructured for a specific use. Types include: checklists, quick-reference guides, decision trees, scoring sheets, one-pagers. Best for: human reference, printing, sharing with collaborators.
Compact knowledge pack (plain text or Markdown) — dense, self-contained summary optimized for injection into LLM prompts or handoff documents. Minimal formatting, maximum information density. Best for: system prompts, context windows, handoff to another AI session.
Visual formats — diagrams and presentations derived from wiki knowledge:
marp: true frontmatter and --- slide separators. Best for: presenting wiki knowledge to others, training materials, summaries for stakeholders..py script that generates .png output. Best for: data distributions, multi-axis charts, scatter plots.Multiple formats — combine any of the above (e.g., "JSON of the rubrics plus a mermaid concept map").
C. Proposed structure — outline the specific shape of the output: what sections, fields, or hierarchy it will have. Be concrete enough that the user can say "yes, that's what I need" or "actually, restructure it like this."
Use the AskUserQuestion tool to confirm the proposal. Options: "Approve extraction plan (Recommended)", "Adjust scope or structure". If the user adjusts, incorporate feedback and re-present with another AskUserQuestion. Do not proceed until the user confirms.
If the user already specified a destination path, verify the parent directory exists. If not, use the AskUserQuestion tool to confirm where to write.
Destination rules:
AskUserQuestion with the suggested default path as "(Recommended)" option, plus "Choose a different path".wiki/ — extracted derivatives are not wiki pages. Use AskUserQuestion with the suggested default as "(Recommended)" option, plus "Choose a different path".AskUserQuestion to ask delivery method. Options: "Print in conversation" (recommend for <200 lines), "Write to file" (recommend for larger output). Adjust which option is "(Recommended)" based on expected size.AskUserQuestion to confirm. Options: "Create directory (Recommended)", "Choose a different path".Generate the output according to the confirmed proposal.
Format-specific instructions:
Structured data (JSON/YAML):
source (wiki page names that contributed), lens (lens name if extraction was scoped to a lens, or omit if cross-lens), extracted (today's date), and description (what this file contains).level (number), name, and description for each entry.category, name, template_text, and optionally when_to_use. Adapt field names to the domain.Derivative documents (Markdown):
- [ ]) grouped by category, ordered by workflow sequence.If X -> do Y).[[...]]) — the output must be self-contained.Compact knowledge packs:
[Extracted from wiki: page1, page2, ...].All formats:
After writing the output, report:
/ingest could help.wiki/. The wiki is for wiki pages; extractions are derivatives that live elsewhere.npx claudepluginhub tom5610/llm-wiki --plugin llm-wikiFetches up-to-date documentation from Context7 for libraries and frameworks like React, Next.js, Prisma. Use for setup questions, API references, and code examples.
Applies a firm's KYC/AML rules grid to parsed onboarding records: assigns risk rating, checks required documents, outputs rule outcomes with citations, and routes for escalation.
Generates daily or weekly digests of activity from connected sources (chat, email, docs, tasks, CRM), highlighting action items, decisions, mentions, and project updates.