Ingest Claude Code conversation/session history into Obsidian as distilled knowledge. Use for importing or mining past Claude sessions, .claude data, project/session history, or audit logs.
日本語の概要は準備中です。原文の説明を表示しています。
Import a wiki graph into the current vault from graph.json or an OKF/markdown bundle. Use for transferring previously exported wiki content between vaults; pair with wiki-export for the reverse direction.
インストールする前に、エージェントに与えられる指示の中身を確認できます。
You are importing a vault's knowledge into the current vault from one of two sources produced by wiki-export:
graph.json — the graph skeleton. Reconstructs page stubs (frontmatter, typed relationships, a ## Related link list — no body). Lossy.wiki-export/okf/ directory) — the actual markdown files. Reconstructs full pages with their real bodies. Lossless. Use this for true vault-to-vault transfer.Either way, the import writes pages with correct frontmatter and wikilinks, then updates all vault metadata. Step 2, Step 3 (graph only), and Step 5 are shared; Step 4 forks by source type.
Writing profile: Before drafting or rewriting natural-language Markdown, read and apply the Writing Profile Resolution section in llm-wiki/SKILL.md. Framework schema, provenance, safety, and operation-specific requirements take precedence.
Preserve imported source prose; apply WRITING.md preferences only to newly generated metadata or stubs.
llm-wiki/SKILL.md (inline @name override → walk up CWD for .env → global config → prompt setup). This gives OBSIDIAN_VAULT_PATH.$OBSIDIAN_VAULT_PATH/AGENTS.md if it exists — apply any owner-specific conventions.Find the import source:
./wiki-export/okf/ (a directory) → ./wiki-export/graph.json (a file).Detect the source type:
.json → graph.json import (validate below, then Step 3 + Step 4-Graph)..md files with OKF frontmatter (a type: key), and/or a root index.md with okf_version → OKF bundle import (skip Step 3; go to Step 4-OKF). Both okf_version 0.1 and 0.2 bundles are accepted; Step 4-OKF reads either.Validate a graph.json source:
nodes (array), links (array), graph (object)If validation fails, report what's wrong and stop.
Validate an OKF bundle source:
.md file (i.e. not index.md/log.md) with parseable YAML frontmatter containing a non-empty type..md with no frontmatter or no type is skipped (with a count), not fatal — OKF consumers are permissive (OKF §11).Show a preview before importing:
graph.json:
Import preview (graph.json — stubs)
Source: <path> (exported at <graph.exported_at>)
Nodes: N total (concepts: A, entities: B, skills: C, references: D, ...)
Links: M edges (X typed, Y untyped)
Target: $OBSIDIAN_VAULT_PATH
OKF bundle:
Import preview (OKF bundle — full pages)
Source: <dir> (okf_version <ver if present>)
Pages: N total (concepts: A, entities: B, skills: C, references: D, ...)
Target: $OBSIDIAN_VAULT_PATH
Read the user's phrasing to determine mode. Default is merge.
| Mode | Trigger phrases | Behaviour |
|---|---|---|
merge | (default, no special phrasing) | Existing pages: update frontmatter tags/summary/relationships and add missing wikilinks; new pages: create stub. |
skip | "skip existing", "don't overwrite", "only new pages" | Leave existing pages completely untouched; only create pages that don't exist yet. |
overwrite | "overwrite", "replace existing", "force import" | Replace all matched pages with freshly reconstructed stubs regardless of existing content. |
Before writing anything, build two maps from the links array:
Adjacency map — for each node id, collect all neighbour ids (edges in either direction):
adjacency["concepts/transformers"] = ["entities/vaswani", "concepts/lstm", ...]
Typed edge map — for each node id, collect outgoing typed edges only (typed: true):
typed_edges["concepts/transformers"] = [
{target: "concepts/lstm", relation: "contradicts"},
...
]
Record counts: created = 0, skipped = 0, merged = 0.
For each node in nodes:
page_path = $VAULT/<node.id>.md$VAULT/concepts/)mergedcreatedskipped, continue to next nodecreatedmergedcreated---
title: <node.label>
category: <node.category>
tags: <node.tags as YAML list>
sources:
- "imported from <graph.json path>"
<if node.summary exists>
summary: "<node.summary>"
</if>
<if typed_edges[node.id] is non-empty>
relationships:
<for each {target, relation} in typed_edges[node.id]>
- target: "[[<target>]]"
type: <relation>
</for>
</if>
lifecycle: draft
lifecycle_changed: <today YYYY-MM-DD>
base_confidence: 0.5
tier: supporting
created: <ISO timestamp>
updated: <ISO timestamp>
---
# <node.label>
<node.summary paragraph if available, else omit>
## Related
<for each neighbour in adjacency[node.id], sorted alphabetically>
<if edge is typed>
- [[<neighbour>]] — <relation>
<else>
- [[<neighbour>]]
</if>
</for>
If adjacency[node.id] is empty, omit the ## Related section entirely.
node.tags (deduplicated, keep existing order, append new ones).summary field and node.summary exists, add it.relationships: entries and typed_edges[node.id] — skip entries where the same (target, type) pair already exists.updated to the current ISO timestamp.## Related section. If it exists, append any missing wikilinks from adjacency[node.id] that aren't already linked anywhere in the body. If no ## Related section exists, append one with the missing links.Record counts: created = 0, skipped = 0, merged = 0, unparseable = 0.
Walk the bundle directory tree. For each .md file that is not a reserved file (index.md, log.md):
type, increment unparseable and skip the file..md stripped (e.g. concepts/transformers.md → concepts/transformers). The target page is $VAULT/<concept-id>.md.wiki-export Step 3.5):
title ← title.category ← the preserved category extension key if present; else lower-case the directory prefix of the concept id (concepts/… → concepts); else derive from type (Concept→concepts, Entity→entities, Skill→skills, Reference→references, Synthesis→synthesis, Project→projects, Journal→journal).tags ← tags.summary ← description.updated ← the preserved updated extension key if present; else generated.at; else a legacy v0.1 timestamp; else now.created ← the preserved created extension key if present, else now.sources ← OKF sources, as a list of strings: for each entry that is a mapping, take its resource; keep plain strings as-is (that's how v0.1 bundles from older exports carried our native list). If the bundle has no sources, use ["imported from OKF bundle <bundle path>"]. If a top-level resource URL is present and not already in the list, add it.lifecycle ← the preserved lifecycle extension key if present; else from status: draft → draft, deprecated → archived, stable or absent → leave lifecycle unset. (OKF has no equivalent of reviewed/verified/disputed, so only our own exports restore them, through the preserved key.)relationships, lifecycle_changed, tier, base_confidence, …), and the OKF-only keys generated, verified, stale_after, and usage_window so a later export doesn't lose them. These make the round-trip lossless. Treat a bare verified mapping as a one-element list (OKF §5.2).generated when generated.by starts with obsidian-wiki/ (it was computed from updated), and drop verified entries whose by is human:vault-owner (computed from the source vault's trust ledger, which doesn't travel). Keeping them would add keys the source page never had. Generated or verified blocks from any other producer are kept..md paths become wikilinks (this restores both real cross-links and forward-references the exporter preserved per wiki-export Step 3.5):
[text](../concepts/transformers.md) or [text](/concepts/transformers.md) → resolve the path (relative to this file's dir, or bundle-root for /-absolute) to a concept id → [[concepts/transformers]], or [[concepts/transformers|text]] when text differs from the target's title. The target's title comes from the bundle page when it exists; otherwise the exporter wrote the target's id as the link text, so treat text equal to the full id (or to its last path segment) as no alias..md path relative to the current file, then strip the trailing .md from the resolved file path to recover the page id. Do not try to infer the id from directory traversal segments before resolving the full file path. This preserves round-trips for folder-note layouts like projects/social-twitter.md plus projects/social-twitter/..., where ../../social-twitter.md must restore to projects/social-twitter.[[wikilink]] (Obsidian supports these; OKF §11 forbids rejecting them). Do not leave it as a markdown link.OBSIDIAN_LINK_FORMAT=markdown is set in config, keep markdown links (just rewrite the path to be vault-relative); do not convert to wikilinks.http(s):// links and # Citations sections untouched.tags; fill summary/sources only if missing; union relationships; refresh updated). For the body, OKF carries a real body: replace the existing body with the bundle body only if the existing page is a stub (body is just a heading + ## Related); otherwise keep the existing body and append any bundle # Citations / new ## sections not already present. Increment merged.created.skipped, continue.created.merged (label as Replaced in the summary).created.$VAULT/concepts/, etc.) exists before writing.Unlike the graph.json path, do not generate a ## Related stub section — the bundle body already contains the real cross-links.
.manifest.jsonAdd a new entry keyed by the canonical path of the graph.json file:
"<absolute path to source>": {
"ingested_at": "<ISO timestamp>",
"source_type": "wiki-export",
"pages_created": ["list/of/created/pages.md"],
"pages_updated": ["list/of/merged/pages.md"]
}
Set source_type to "wiki-export" for a graph.json import or "okf-bundle" for an OKF bundle import. Key the entry by the absolute path of the source (the graph.json file or the bundle directory).
Also increment:
stats.total_sources_ingested by 1stats.total_pages by the count of pages actually created (not skipped/merged)If .manifest.json doesn't exist, create it with the standard structure:
{
"stats": {
"total_sources_ingested": 1,
"total_pages": <created count>
},
"<graph.json path>": { ... }
}
index.md, log.md, and hot.mdOne locked call. The index is reconciled from the pages now on disk, so every created or merged page lands under its category with the documented ( #tag) spacing:
obsidian-wiki memory sync IMPORT \
source="<bundle path>" \
pages_created=<N> pages_skipped=<K> pages_merged=<M> \
--takeaways "Imported <bundle>: <what it adds to the picture>"
Omit --takeaways if the import does not shift the overall picture; the previous takeaways carry across. Never hand-edit index.md, log.md, or hot.md — the command takes the lock that keeps a parallel writer from dropping your update.
See .skills/llm-wiki/references/MEMORY.md for the full procedure.
Wiki import complete → $OBSIDIAN_VAULT_PATH
Source: <source path> (<graph.json | OKF bundle>)
<graph: exported at <graph.exported_at>, N nodes, M links | okf: N pages, okf_version <ver>>
Created: <X> pages
Merged: <Z> pages (existing pages updated)
Skipped: <Y> pages (only when --skip mode was used)
Only show the Skipped line if skip mode was explicitly requested. If overwrite mode was used, label merged pages as Replaced instead. For an OKF import, also report Unparseable: <U> files (no frontmatter/type, skipped) when U > 0.
merge mode is idempotent — re-running on an unchanged export will update timestamps but won't destroy content. Use overwrite only when you want to fully reset pages to stubs.links but absent from nodes (broken in the original export) will still appear as a wikilink — it just won't have a corresponding page file, which is valid.graph.json was produced with visibility filtering (noted in graph.metadata), imported pages will only reflect the filtered set. Note this in the summary if graph.graph contains a filtered key.まだレビューはありません。使ってみた感想をお寄せください。
概要と使いどころ
Ingest Claude Code conversation/session history into Obsidian as distilled knowledge. Use for importing or mining past Claude sessions, .claude data, project/session history, or audit logs.
日本語の概要は準備中です。原文の説明を表示しています。
Map the load-bearing files, symbols, callers, and dependencies of an unfamiliar codebase before making changes. Use for architecture orientation, impact analysis, what-would-break questions, or finding callers. Uses CodeGraph when available and a dependency-free builtin fallback.
日本語の概要は準備中です。原文の説明を表示しています。
Ingest Codex CLI conversation/session history into Obsidian as distilled knowledge. Use for importing or mining ~/.codex sessions, rollout files, indexes, or transcript logs; use wiki-agent for targeted topic-only recall.
日本語の概要は準備中です。原文の説明を表示しています。
Ingest GitHub Copilot CLI/session history into Obsidian as distilled knowledge. Use for importing or mining Copilot history; not for general Copilot help, simple session search, or backup.
日本語の概要は準備中です。原文の説明を表示しています。
Find and add missing cross-references between wiki pages. Use when pages are disconnected or after large ingestion. This modifies pages to add links; use wiki-lint for report-oriented structural auditing.
日本語の概要は準備中です。原文の説明を表示しています。
Run or configure the daily wiki maintenance cycle: check source freshness, refresh the index and hot.md, and manage its scheduled 9 AM launchd/systemd/cron reminder. Use for daily or morning wiki refresh or scheduler setup and verification.
日本語の概要は準備中です。原文の説明を表示しています。