wiki-capture
Skill3 starsChanged 11 days agoMITView on GitHub
Save the current conversation as a permanent, structured wiki note. Use this skill when the user says "save this", "/wiki-capture", "capture this", "file this conversation", "preserve this", "add this to my wiki", or wants to turn what was just discussed into lasting knowledge. The skill classifies the content, rewrites it as declarative knowledge (not a chat transcript), and places it in the correct vault category. Also supports a fast QUICK MODE (`/wiki-capture --quick`, "quick capture", "capture this finding", "save this bug fix", "save this gotcha", "drop this to raw", "quick save to wiki") that drops findings to the `_raw/` staging area in under 60 seconds with no manifest or index writes — used by the session-end Stop hook to auto-preserve findings. Accepts inline named-vault routing like "@research save this" via the shared Config Resolution Protocol.
- Reads credentials
5 other projects use a version of this, 2 of them edited.
Adopted by
Most recently taken up by
- Ar9av/obsidian-wikiedited, first seen Nov 8, 2026
- VladTheProgrammer/claude-asimovtheir own version, first seen Oct 8, 2026
- dexio-wiki/llm-wiki-skillstheir own version, first seen Sep 28, 2026
- Ivy-Chen1999/llm-wiki-kitedited, first seen Jun 23, 2026
- jehrhardt/agentstheir own version, first seen May 16, 2026
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 2
- Ar9av/obsidian-wiki★ 3.7k51% same
- Ivy-Chen1999/llm-wiki-kit★ 2188% same
Wrote their own version · 3
- dexio-wiki/llm-wiki-skills★ 1same name
- jehrhardt/agents★ 1same name
- VladTheProgrammer/claude-asimov★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository30 other files it gives its agents.
- claude-history-ingestSkill
- cross-linkerSkill
- daily-updateSkill
- graph-colorizeSkill
- hermes-history-ingestSkill
- impl-validatorSkill
- llm-wikiSkill
- memory-bridgeSkill
- skill-creatorSkill
- tag-taxonomySkill
- vault-skill-factorySkill
- wiki-agentSkill
- wiki-context-packSkill
- wiki-dashboardSkill
- wiki-dedupSkill
- wiki-digestSkill
- wiki-exportSkill
- wiki-history-ingestSkill
- wiki-importSkill
- wiki-ingestSkill
- wiki-lintSkill
- wiki-querySkill
- wiki-rebuildSkill
- wiki-researchSkill
- wiki-setupSkill
- wiki-stage-commitSkill
- wiki-statusSkill
- wiki-switchSkill
- wiki-synthesizeSkill
- wiki-updateSkill
The file
We split this skill into the rules it gives an agent
12 rules. 0 are common, 4 are distinctive, and 8 are very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 32
Gate — KEEP or SKIP?: Before extracting, judge whether this session has capture value.
- Distinctive: line 35
When invoked via the Stop hook, err toward SKIP — only KEEP on clear evidence.
- Very specific: line 60
Read $OBSIDIAN_VAULT_PATH/index.md to understand existing wiki content (avoid duplicates)
- Very specific: line 61
Read $OBSIDIAN_VAULT_PATH/hot.md if it exists — it gives context on recent activity
- Very specific: line 63
When writing internal links in Step 5, apply the link format from llm-wiki/SKILL.md (Link Format section) using the OBSIDIAN_LINK_FORMAT …
- Distinctive: line 82
If nothing material emerged, tell the user and stop.
- Very specific: line 98
If the content clearly belongs to a specific project (detected from context or user mention), place it under …
- Distinctive: line 102
Do not write a summary of the conversation.
- Very specific: line 119
Avoid dates in the slug (the frontmatter has created)
- Distinctive: line 123
Create the file at the target path with required frontmatter:
- Very specific: line 229
Every note must link to at least 2 existing wiki pages.
- Very specific: line 265
When it is set, read llm-wiki/references/qmd.md and follow the *Refresh* section after this skill has written vault markdown.
“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Wiki Capture — Conversation to Wiki Note
You are preserving knowledge from the current conversation as a permanent wiki note. The goal is to extract the substance — the knowledge itself — not a summary of what was said.
This skill has two modes:
- Full mode (default) — classify the content and write a finished, cross-linked wiki page directly into the right category. This is the rest of this document (Steps 1–7).
- Quick mode (
--quick) — zero-friction staging: drop findings to_raw/in under 60 seconds with no manifest/index/log/QMD writes. Used for mid-session capture and by the session-end Stop hook. See below, then stop — do not run the full-mode steps.
Quick Mode (--quick)
Trigger when invoked as /wiki-capture --quick, by "quick capture" / "capture this finding" / "save this bug fix" / "save this gotcha" / "drop this to raw" / "quick save to wiki", or automatically by the session-end Stop hook.
Speed contract: Inline only. No subagents. No QMD. No manifest/index.md/log.md/hot.md writes. Target: <60 seconds. Promotion to full wiki pages happens later via /wiki-ingest.
- Resolve config (Config Resolution Protocol in
llm-wiki/SKILL.md): getOBSIDIAN_VAULT_PATHandOBSIDIAN_RAW_DIR(default:$OBSIDIAN_VAULT_PATH/_raw). Ensure$OBSIDIAN_RAW_DIRexists; create it if not. - Gate — KEEP or SKIP? Before extracting, judge whether this session has capture value. This keeps the skill safe to call automatically without spamming
_raw/.- SKIP (exit with "Nothing worth capturing in this session.") if ALL are true: the conversation is purely conversational (planning/Q&A/explanation) with no implementation; no errors, debugging, or problem-solving visible; nothing surprising or undocumented; every finding is already obvious from the docs.
- KEEP (proceed) if ANY are true: a fix or workaround was found through investigation; non-obvious library/API/framework behavior was confirmed (edge case, undocumented constraint, time-costing gotcha); a debugging session reached a concrete conclusion; a reusable pattern emerged.
- When invoked via the Stop hook, err toward SKIP — only KEEP on clear evidence. When invoked manually, err toward KEEP — the user called it for a reason.
- Scan for reusable findings — non-obvious bugs and root causes, framework/library gotchas, surprising API behavior, investigated workarounds, environment/toolchain quirks, patterns from debugging. Skip PM updates, config already in CLAUDE.md, inconclusive back-and-forth, anything obvious from the docs, and pleasantries. If nothing material emerged, say so and stop.
- Cluster by topic — one
_raw/file per topic cluster, not per finding. Name each as a kebab-case slug (e.g.swift-actor-reentrancy,nextjs-hydration-mismatch). - Infer project context from repo names, file paths, framework mentions, error messages. Use the most specific name you can reliably infer; else
null. - Write raw files — for each cluster, write
$OBSIDIAN_RAW_DIR/<ISO-date>-<slug>.md. Readreferences/RAW-FORMAT.mdfor the full frontmatter spec, finding-block body structure, and provenance/confidence calibration. Per-cluster fields that vary:title,tags(2–4 from taxonomy),summary(≤200 chars),project(inferred ornull),base_confidence(0.6 discussed → 0.75 fix applied → 0.9 test confirmed),provenance.extracted/provenance.inferred(sum to 1.0),lifecycle_changed(today),sources("<project> session (<YYYY-MM-DD>)"). - Confirm — list staged files and tell the user to run
/wiki-ingestto promote them:
Quick mode deliberately does not write the manifest,Staged to _raw/: _raw/2026-05-27-swift-actor-reentrancy.md — "Actor reentrancy causes deadlock in async forEach" Run /wiki-ingest to promote these to full wiki pages.index.md,log.md,hot.md, or refresh QMD — promotion via/wiki-ingesthandles all of that. Stop here; do not run the full-mode steps below.
Full Mode
Before You Start
- Resolve config — follow the Config Resolution Protocol in
llm-wiki/SKILL.md(inline@nameoverride → walk up CWD for.env→~/.llm-wiki/config→ prompt setup). This givesOBSIDIAN_VAULT_PATHandOBSIDIAN_LINK_FORMAT(default:wikilink). - Read
$OBSIDIAN_VAULT_PATH/index.mdto understand existing wiki content (avoid duplicates) - Read
$OBSIDIAN_VAULT_PATH/hot.mdif it exists — it gives context on recent activity
When writing internal links in Step 5, apply the link format from llm-wiki/SKILL.md (Link Format section) using the OBSIDIAN_LINK_FORMAT value.
Step 1: Identify What's Worth Preserving
Scan the conversation. Ask: what knowledge emerged here that would be valuable in 3 months with no memory of this chat?
Worth preserving:
- Decisions made and why they were made
- Analysis, frameworks, mental models developed
- Technical findings, patterns, or procedures
- Synthesized understanding of a topic
- Clear explanations of a concept that took effort to arrive at
- Key facts from an external source discussed in the conversation
Skip:
- Logistics, scheduling, pleasantries
- Exploratory back-and-forth where no conclusion was reached
- Content that's already in the wiki
If nothing material emerged, tell the user and stop.
Step 2: Classify the Content Type
Assign one of five types — this sets the tone and the default folder:
| Type | Description | Folder: the one with this role (standard name) |
synthesis | Multi-step analysis or an answer to a specific question that required reasoning | synthesis (synthesis/) |
concept | A definition, framework, or mental model (what a thing is) | concept (concepts/) |
source | Summary of an external document, article, or resource discussed | reference (references/) |
decision | A strategic, architectural, or design choice and its rationale | synthesis (synthesis/) |
session | A complete discussion summary when the conversation spans multiple topics | journal (journal/, when the vault has one) |
Then check the vault's CATEGORIES table (AGENTS.md): if a row fits the content better than the default — a decisions/ folder for a decision, an ideas/ folder for a content idea — file it there. A role no row claims falls to the last row; llm-wiki layout --json resolves them. With no journal folder, write a session as declarative pages of the other types rather than parking a dated summary in the catch-all.
If the content clearly belongs to a specific project (detected from context or user mention), place it under projects/<project-name>/<category>/ when the vault has a project folder. Without one, file it normally and add project: <project-name> to its frontmatter.
Step 3: Rewrite as Declarative Knowledge
Do not write a summary of the conversation. Write the knowledge itself, in declarative present tense:
- Not: "The user asked about X and Claude explained that..."
- Yes: "X works by..."
- Not: "We decided to use Y because..."
- Yes: "Y is preferred over Z because [reason]. [^[inferred] if the rationale was implied, not stated explicitly]"
Apply provenance markers per llm-wiki:
- Extracted — explicitly stated in the conversation (no marker)
- Inferred — generalized or synthesized from the conversation →
^[inferred] - Ambiguous — disputed, uncertain, or contradictory →
^[ambiguous]
Step 4: Generate a Slug and Title
Derive a clear, descriptive title from the content. Slugify it:
- Lowercase, words separated by hyphens
- Max 50 characters
- Avoid dates in the slug (the frontmatter has
created)
Step 5: Write the Wiki Note
Create the file at the target path with required frontmatter:
---
title: >-
<Title>
category: <the folder you filed it in (in a single-folder vault, its kind: references|entities|synthesis|concepts)>
tags: [<2-5 domain tags from taxonomy>]
sources:
- conversation:<ISO-date>
created: <ISO-8601 timestamp>
updated: <ISO-8601 timestamp>
summary: >-
<1-2 sentences, ≤200 chars, answering "what knowledge does this page hold?">
provenance:
extracted: 0.X
inferred: 0.X
ambiguous: 0.X
base_confidence: 0.42
lifecycle: draft
lifecycle_changed: <ISO date today>
---Body structure by type:
synthesis / decision:
# Title
## Context
<What prompted this — the problem or question being addressed>
## Finding / Decision
<The core knowledge or conclusion>
## Reasoning
<Why this is the case or why this choice was made>
## Implications
<What follows from this — what to watch for, next steps, trade-offs>
## Related
<[[wikilinks]] to connected pages>concept:
# Title
<Definition in one clear sentence.>
## What It Is
<Explanation of the concept>
## How It Works
<Mechanism or structure>
## When to Use
<Applicability, conditions, trade-offs>
## Related
<[[wikilinks]]>source:
# Title
> Source: <title or URL>
## What It Covers
<What the source is about>
## Key Points
<Bulleted claims with provenance markers>
## Open Questions
<What it raises but doesn't answer — omit if none>
## Related
<[[wikilinks]]>session:
# Title
*Session captured: <date>*
## Topics Covered
<Brief list>
## Key Takeaways
<The 3-5 most important things that emerged>
## Decisions Made
<Any explicit decisions, with rationale>
## Open Questions
<What remains unresolved>
## Related
<[[wikilinks]]>Every note must link to at least 2 existing wiki pages. Search index.md before writing. If fewer than 2 related pages exist, create minimal stubs for the most important concepts referenced.
Step 6: Update Tracking Files
index.md — Add the new page under its category section.
log.md — Append:
- [TIMESTAMP] CAPTURE type=<type> page="<path>" title="<title>"hot.md — Update Recent Activity with what was just captured. Update Key Takeaways if the note introduced something worth flagging. Update updated timestamp.
Step 7: Confirm to User
Report the saved path and title:
Saved to: projects/<name>/synthesis/<slug>.md
Title: <Title>
Type: synthesisQuality Checklist
- Content rewritten as declarative knowledge (not a chat transcript)
- Type classified correctly; target path is a folder from the vault's CATEGORIES table
- Frontmatter complete with title, category, tags, sources, summary, provenance
- At least 2 wikilinks to existing pages
index.md,log.md, andhot.mdupdated- Confirmed save path to user
QMD Refresh After Vault Writes
GUARD: If $QMD_WIKI_COLLECTION is unset — the default — skip this step. QMD is a
search index, not the source of truth.
When it is set, read llm-wiki/references/qmd.md and follow the Refresh section
after this skill has written vault markdown. If refresh fails, do not roll back the
vault changes; report the QMD status separately.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

