Install any skill in seconds. Free to start, no credit card required.
Get Started Free →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", "capt
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-02 | ✗→✓ | ▲ Improved | 176% | 0% |
| case-09 | ✗→✓ | ▲ Improved | 197% | 0% |
| case-10 | ✗→✓ | ▲ Improved | 182% | 0% |
| case-15 | ✗→✓ | ▲ Improved | 182% | 0% |
| case-18 | ✗→✓ | ▲ Improved | 173% | 0% |
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 three modes:
--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.--correction) — capture one atomic correction as derived knowledge while leaving the immutable conversation/source untouched. Use the template below, then update only the derived consumers and tracking links.--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.
llm-wiki/SKILL.md): get OBSIDIAN_VAULT_PATH and OBSIDIAN_RAW_DIR (default: $OBSIDIAN_VAULT_PATH/_raw). Ensure $OBSIDIAN_RAW_DIR exists; create it if not.Capture does not independently reinterpret validator schema inputs. When OBSIDIAN_ALLOWED_LIFECYCLES, OBSIDIAN_ALLOWED_RELATIONSHIP_TYPES, OBSIDIAN_REQUIRED_TRUST_FIELDS, or OBSIDIAN_SCHEMA_SOURCE is present, preserve it for the downstream lint/trust consumer: CLI values take precedence over environment/config values, which take precedence over framework defaults, and explicit blank or whitespace-only values fail closed. Omit a variable to use defaults.
_raw/._raw/ file per topic cluster, not per finding. Name each as a kebab-case slug (e.g. swift-actor-reentrancy, nextjs-hydration-mismatch).null.$OBSIDIAN_RAW_DIR/<ISO-date>-<slug>.md. Read references/RAW-FORMAT.md for 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 or null), 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>)")./wiki-ingest to promote them: 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. Quick mode deliberately does not write the manifest, index.md, log.md, hot.md, or refresh QMD — promotion via /wiki-ingest handles all of that. Stop here; do not run the full-mode steps below.
--correction)Use this mode when a user or stronger authority corrects a claim derived from an immutable conversation, tool result, or other raw source. Never edit or copy the raw source. Resolve config, read the vault AGENTS.md, and update an existing derived page when one owns the claim; otherwise create the smallest owner-compliant derived correction page.
Record exactly one atomic claim pair. speaker_type is semantic and must be assessed independently of a serialized message role (a tool result may be serialized as role=user). Do not include raw transcript excerpts.
yamlcorrection_id: <stable-id> source_locator: <immutable file:line or channel/thread/timestamp> source_text_sha256: <64 lowercase hex chars> serialized_role: <source role, if present> speaker_type: user | assistant | teammate | tool_result | slack_member original_claim: subject: <exact entity or capability> assertion: <single atomic value> corrected_claim: subject: <same exact entity or capability> assertion: <single atomic value or null> authority_class: contract | decision | code | test | deploy | runtime | db | narrative verification_state: verified | inferred | unverified | contradicted asserted_at: <ISO-8601 timestamp> effective_at: <ISO-8601 timestamp or null> as_of: <ISO-8601 timestamp> supersedes: [<original-claim-id>] consumer_propagation: kw: open | not_applicable | complete ob: open | not_applicable | complete requirements: open | not_applicable | complete code: open | not_applicable | complete tests: open | not_applicable | complete ai_memory: open | not_applicable | complete corrected_at: <ISO-8601 timestamp>
Before any derived write, compute source_pre_sha256 directly from the immutable source and require it to equal source_text_sha256. After writing the correction and updating derived consumers, recompute source_post_sha256 from the same locator. Abort and report an immutability violation unless source_pre_sha256 == source_post_sha256 == source_text_sha256. This verification is mandatory even when the correction write succeeds.
After writing the derived correction, link the immutable source to the created/updated page through .manifest.json, append only the correction ID and affected-page counts to log.md, and propagate the atomic correction to every consumer independently. Mark a consumer complete only after verifying that consumer; do not collapse mixed results into a single aggregate status. Keep secrets, raw excerpts, and source copies out of the correction record.
llm-wiki/SKILL.md (inline @name override → walk up CWD for .env → ~/.obsidian-wiki/config → prompt setup). This gives OBSIDIAN_VAULT_PATH and OBSIDIAN_LINK_FORMAT (default: wikilink).$OBSIDIAN_VAULT_PATH/index.md to understand existing wiki content (avoid duplicates)$OBSIDIAN_VAULT_PATH/hot.md if it exists — it gives context on recent activityWhen writing internal links in Step 5, apply the link format from llm-wiki/SKILL.md (Link Format section) using the OBSIDIAN_LINK_FORMAT value.
Scan the conversation. Ask: what knowledge emerged here that would be valuable in 3 months with no memory of this chat?
Worth preserving:
Skip:
If nothing material emerged, tell the user and stop.
Assign one of five types — this determines the target folder and tone:
| Type | Description | Target folder | |---|---|---| | synthesis | Multi-step analysis or an answer to a specific question that required reasoning | synthesis/ | | concept | A definition, framework, or mental model (what a thing is) | concepts/ | | source | Summary of an external document, article, or resource discussed | references/ | | decision | A strategic, architectural, or design choice and its rationale | synthesis/ | | session | A complete discussion summary when the conversation spans multiple topics | journal/ |
If the content clearly belongs to a specific project (detected from context or user mention), place it under projects/<project-name>/<category>/ instead.
Do not write a summary of the conversation. Write the knowledge itself, in declarative present tense:
Apply provenance markers per llm-wiki:
^[inferred]^[ambiguous]Derive a clear, descriptive title from the content. Slugify it:
created)Create the file at the target path with required frontmatter:
yaml--- title: >- <Title> category: <synthesis|concepts|references|journal|skills> 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:
markdown# 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:
markdown# 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:
markdown# 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:
markdown# 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.
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.
Report the saved path and title:
Saved to: projects/<name>/synthesis/<slug>.md
Title: <Title>
Type: synthesisindex.md, log.md, and hot.md updatedQMD is a search index, not the source of truth. If $QMD_WIKI_COLLECTION is empty or unset, skip this step. Run it only after this skill has written or rewritten vault markdown. If QMD refresh fails, do not roll back the vault changes; report the QMD status separately.
Use $QMD_CLI if set; otherwise use qmd.
bash${QMD_CLI:-qmd} update
If the output says vectors are needed or embeddings may be stale, run:
bash${QMD_CLI:-qmd} embed
Verify the collection with either:
bash${QMD_CLI:-qmd} ls "$QMD_WIKI_COLLECTION"
or, when a specific page path is known:
bash${QMD_CLI:-qmd} get "qmd://$QMD_WIKI_COLLECTION/<page>.md" -l 5
Record one of:
QMD refreshed: update + embed + verifiedQMD refreshed: update only + verifiedQMD skipped: QMD_WIKI_COLLECTION unsetQMD skipped: qmd CLI unavailableQMD failed: <short error summary>Other measured skills in the registry, with their headline benchmark lift.