/agent-continuity:init-vaultfrom Agent Continuity
Scaffold an Agent Continuity Obsidian vault from a research-backed archetype (software-project, research, personal-pkm, technical-docs). Reads the archetype spec for folder structure and conventions, scaffolds the skeleton, writes a .agent-continuity-vault.json marker, and seeds archetype-appropriate files. Use when a project adopting Agent Continuity needs a new vault, or the user asks to "create the agent vault" / "scaffold the agent knowledge vault".
Ships in Agent Continuity. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Interactive walkthrough. Choose archetype, inspect, propose, confirm, write. The archetype
spec is the single source of truth for folder structure, naming, and frontmatter — the same
spec the PreToolUse(Write) enforcement hook and vault-lint read, so scaffold,
enforcement, and audit never disagree.
Take --type <archetype> from $ARGUMENTS, or ask. See
${CLAUDE_PLUGIN_ROOT}/archetypes/README.md for the full rationale.
--type | For | Basis |
|---|---|---|
software-project | Agile/XP codebases (default) | Project + knowledge hybrid; status-by-folder |
research | Academic / research projects | Zettelkasten + PARA + MOCs |
personal-pkm | General knowledge management | PARA |
technical-docs | Product/library documentation | Diataxis |
Load and sanity-check the spec:
TYPE=software-project # from --type or the user's choice
SPEC="${CLAUDE_PLUGIN_ROOT}/archetypes/${TYPE}.json"
jq -e . "$SPEC" >/dev/null && jq -r '.title + " — " + .description' "$SPEC"
Default AI_Codex_<ProjectName> (ProjectName = repo basename in CamelCase). The SessionStart
hook autodetects via glob AI_Codex*/, so any AI_Codex* name is zero-config; other names need
vault.folder in .claude/agent-continuity.config.json. Show the proposed name; let the user override.
Check with ls/Glob. If it exists, do not overwrite — offer to pick another name, add only the
missing skeleton pieces (Step 5, skipping anything present), or abort.
List exactly what will be created, from the spec, and confirm before writing:
echo "Folders:"; jq -r '.folders[] | " \(.path)/ — \(.purpose)"' "$SPEC"
echo "Marker: .agent-continuity-vault.json (records type=$TYPE)"
echo "Naming:"; jq -r '.naming.rules[] | " \(.match) → \(.style)"' "$SPEC"
Create every folder with a .gitkeep, then write the marker. The marker is how the enforcement
hook and vault-lint know which archetype governs this vault — do not skip it.
while IFS= read -r p; do mkdir -p "$VAULT/$p"; : > "$VAULT/$p/.gitkeep"; done < <(jq -r '.folders[].path' "$SPEC")
jq -n --arg t "$TYPE" '{type:$t, specVersion:1}' > "$VAULT/.agent-continuity-vault.json"
Keep seed content light — structure accretes from real work; never seed topical notes beyond an
entry note. Replace <today> with date +%Y-%m-%d.
Always: a README.md vault map generated from the spec, and a single entry/orientation note.
Generate the README's taxonomy section straight from the spec so it can't drift:
jq -r '.folders[] | "- **\(.path)/** — \(.purpose)"' "$SPEC"
Per archetype, additionally:
software-project — Knowledge/Agent_Orientation.md (with the slash-command table below),
Agent_Sessions/README.md, and the three Base dashboards Tickets.base / Features.base /
Agent_Sessions.base (see mine-bases and ../references/frontmatter-convention.md).
These Bases belong to software-project only — it is the archetype with those folders.research — MOCs/Home.md (the root Map of Content) and Meta/templates/ stubs for
fleeting / literature / permanent notes.personal-pkm — MOCs/Home.md and a 99 Meta/templates/ stub.technical-docs — a one-line index note in each Diataxis folder and a Meta/style-guide
stub.Slash-command table for the orientation/entry note:
| Command | Purpose |
| --- | --- |
| `/agent-continuity:init-workspace` | Scaffold the CLAUDE.md tree. |
| `/agent-continuity:init-vault` | Scaffold this vault skeleton. |
| `/agent-continuity:init-rules` | Drop starter `.agent/rules/*.md` templates. |
| `/agent-continuity:mine-bases` | Backfill frontmatter + Base dashboards (software-project). |
| `/agent-continuity:query-vault` | Read-only live query of the vault via the Obsidian CLI. |
| `/agent-continuity:canvas-map` | Generate an Architecture Canvas relationship map. |
| `/agent-continuity:research-ingest` | Ingest a URL into a source-stamped reference note. |
| `/agent-continuity:vault-lint` | Audit the vault against its archetype spec. |
Tell the user where the rules live and how they are enforced:
$SPEC) — per-folder filename patterns and
required/optional/forbidden frontmatter keys.PreToolUse(Write) hook reads the same spec (via the marker) and structurally gates
new files: wrong filename shape or missing/forbidden frontmatter is rejected. It is fail-open
outside a marked vault.vault-lint audits an existing vault against the spec for the semantic issues a
regex cannot catch (mixed languages, near-duplicate notes, stray files)./agent-continuity:init-workspace if there's no CLAUDE.md tree yet (it should reference this vault)./agent-continuity:init-rules for the .agent/rules/* starter set.software-project: once real notes exist, /agent-continuity:mine-bases.AI_Codex, set vault.folder in
.claude/agent-continuity.config.json so autodetect finds it.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub monolith-inc/agent-continuity --plugin agent-continuityOther plugins' skills for the same job
13 skills in this plugin
/add-refactor-entryGiven a commit hash, derive a before/after entry for Agent Continuity Style Refactor Catalog with the principle applied. Use when the user wants to capture a notable refactor as a teaching example, or asks to "add this commit to the refactor catalog" / "log this refactor"./canvas-mapGenerate an Obsidian Canvas (.canvas) relationship map for a hub note — the note in the center, its outgoing links to one side and its backlinks to the other, wired with edges — saved into the vault's Architecture/ folder. Uses the Obsidian CLI to read the link graph. Use when the user wants a visual map of how a note connects to the rest of the vault, an architecture/dependency diagram, or asks to "make a canvas for X" / "map what links to X"./