/agent-continuity:mine-basesfrom Agent Continuity
Backfill the frontmatter convention across an existing agent knowledge vault and scaffold Obsidian Bases (.base) over its folders (Tickets, Features, Agent_Sessions). Use when a vault already has notes but no property schema or Base dashboards, or when the user asks to "add bases to the vault" / "turn the tickets folder into a board" / "backfill frontmatter".
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. Inspect, propose, confirm, write. Existing files are never overwritten without per-file approval.
This skill assumes the vault already exists (scaffolded by agent-continuity:init-vault
or grown organically). It does two things, in order: (1) establish the property schema on
notes that lack it, then (2) lay Bases over the folders that now have a schema to query.
Read the convention first: ${CLAUDE_PLUGIN_ROOT}/references/frontmatter-convention.md.
It defines the property schema and the Bases formula gotchas. Everything below follows it.
Find the vault folder (config vault.folder, else glob AI_Codex*/). Then survey the
collection folders the user wants dashboards over — default Tickets/, Features/,
Agent_Sessions/. For each, report:
Active/Ready/Closed/Resolved).---).Surface the split to the user — e.g. "Tickets: 18 notes across 4 status folders; 3 have frontmatter, 15 don't." This is the adoption baseline.
The property schema is fixed (see the reference). What's project-specific is the vocabulary:
the set of type, area, and stack values in use. Propose a small starting vocabulary
inferred from the notes you surveyed and let the user correct it. Keep these lists short and
stable — they're what Bases group by.
Reaffirm the core rule with the user: status stays encoded by folder; never written into
frontmatter. If the user's folders don't encode status (everything is flat), ask whether to
(a) introduce status subfolders, or (b) make status a genuine frontmatter property because
there's nothing else to derive it from. Default to (a) — it matches the convention.
For each note lacking frontmatter, derive the properties from what's knowable:
ticket — from a leading number in the filename when present.type — inferred from filename/content (tech-debt-* → tech-debt, Feature * → feature),
confirmed against the Step 2 vocabulary.area, stack — best-effort from content; leave blank rather than guess wildly.created — the note's authoring date if discernible, else its file ctime as a fallback.Show the user the proposed frontmatter block for each note (or in batches, grouped by folder)
before writing. Prepend the block; do not touch existing body content. Skip — loudly — any
note that already starts with --- rather than risk clobbering existing properties.
A safe prepend (never overwrites an existing frontmatter block):
import io
with io.open(path, encoding="utf-8") as f:
body = f.read()
if body.lstrip().startswith("---"):
print("SKIP (already has frontmatter):", path)
else:
with io.open(path, "w", encoding="utf-8") as f:
f.write("---\n" + "\n".join(fm_lines) + "\n---\n\n" + body)
Write one .base per collection folder, at the vault root so it shows in Obsidian's tree.
Each Base derives its status lane from the folder (per the convention) and surfaces a
triage view listing notes that still lack the schema — so adoption is self-tracking.
Tickets.base (the canonical example — adapt names for Features.base, Agent_Sessions.base):
filters:
and:
- file.inFolder("Tickets")
- 'file.ext == "md"'
formulas:
# Parent folder minus the prefix = the status lane. NOT split().last() — see reference.
status: 'file.folder.replace("Tickets/", "")'
age_days: '(now() - file.ctime).days'
has_meta: 'if(type, "✅", "⚠️ no frontmatter")'
properties:
ticket: { displayName: "#" }
formula.status: { displayName: Status }
formula.age_days: { displayName: "Age (d)" }
formula.has_meta: { displayName: Meta }
views:
- type: table
name: "Board"
groupBy: { property: formula.status, direction: ASC }
order: [file.name, ticket, type, area, tags, formula.age_days]
- type: table
name: "Needs metadata"
filters:
not: [type]
order: [file.name, formula.status, file.mtime]
For folders without status subfolders (e.g. a flat Features/), drop the status formula and
group by area or type instead. For Agent_Sessions/, sort by file.name (the
YYYY-MM-DD-HHMMSS- prefix sorts chronologically) and surface created + a session summary.
Validate every .base as YAML before declaring done (python3 -c "import yaml; yaml.safe_load(open(p))").
A .base that fails to parse renders blank in Obsidian.
Offer to write ${vault}/Knowledge/Frontmatter_Convention.md — a type: reference note copying
the schema from the bundled reference — so the convention is discoverable inside the vault, not
just in the plugin. Link it from Agent_Orientation.md's Knowledge Index.
.base in Obsidian to confirm it renders (a YAML error shows blank; a bad formula
shows red text in the column — the most common cause is the .last() trap in the reference).init-vault to emit
Bases for new vaults from the start.type/area/stack values) is the load-bearing decision — a sprawling
vocabulary makes Bases useless. Fewer, stabler values beat precise-but-unique ones..base YAML and reopen. The
expensive, careful part is the frontmatter backfill — get the schema right first.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub monolith-inc/agent-continuity --plugin agent-continuity13 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"./