Skip to content

Fastest way to scaffold your LLM powered personal knowledge base - Obsidian, Claude Code, qmd, Github

chore: remove template skills from .claude/skills

jessepinkman9900352f09585357
diff --git a/.claude/skills/ingest/SKILL.md b/.claude/skills/ingest/SKILL.md
deleted file mode 100644
index a2dcbcc..0000000
--- a/.claude/skills/ingest/SKILL.md
+++ /dev/null
@@ -1,68 +0,0 @@
----
-name: ingest
-description: "Ingest a new source into the wiki. Reads the source, summarizes it, creates a wiki/sources/ page, updates affected topic and entity pages, flags contradictions, and logs the activity. Trigger phrases: /ingest, ingest [file or URL], add this source, read and file this, process this article/paper/note."
-argument-hint: "File path (e.g. sources/articles/my-article.md), URL, or leave blank if source is pasted in chat"
----
-
-# Ingest
-
-Runs the full 9-step ingest workflow defined in CLAUDE.md. Do not skip steps.
-
-## Inputs
-
-- **File path** — a file in `sources/articles/`, `sources/pdfs/`, or `sources/personal/`
-- **URL** — fetch and read the full content directly
-- **Pasted text** — treat whatever the user has shared as the source
-
-## Workflow
-
-**Step 1 — Read the source**
-- File: use the Read tool on the provided path
-- URL: fetch and read the full content
-- Pasted text: treat as the source directly
-
-**Step 2 — Discuss with the user**
-- Summarize the source in 3–5 bullets
-- Ask: what aspects matter most? Anything to emphasize or skip?
-- Let the user's response shape which topics get deep treatment before proceeding
-
-**Step 3 — Create source summary page**
-- File: `wiki/sources/[slug].md` (slug = kebab-case from title)
-- Sections: title, author/date, one-paragraph abstract, key claims (bulleted), notable quotes (max 3), synthesis note, links to wiki pages this source touches
-- Frontmatter: `type: source-summary`, `tags`, `updated: YYYY-MM-DD`
-
-**Step 4 — Update `wiki/index.md`**
-- Add the new source to the Sources Ingested section: one-line description + `[[wiki/sources/slug]]` link
-
-**Step 5 — Identify affected wiki pages**
-- Run: `INDEX_PATH=qmd.sqlite bunx @tobilu/qmd query -c wiki "<source topic and key claims>"`
-- Also Glob `wiki/*.md` and `wiki/sources/*.md` to catch anything qmd missed
-- List all pages to create or update before proceeding
-
-**Step 6 — Update or create wiki pages**
-- For each affected page: read it, integrate the new information, add `[[wiki/sources/slug]]` to `sources` frontmatter, update `updated` date
-- Create new topic/entity pages for anything that doesn't have one yet
-- Write synthesis, not transcription — your own words, with source attributions
-- Cross-link aggressively: any topic or entity mentioned should use `[[wiki/page]]`
-
-**Step 7 — Flag contradictions**
-- If the source contradicts anything on an existing page, add a `> [!WARNING] Contradiction` callout
-- State both positions and both sources explicitly
-
-**Step 8 — Update `wiki/overview.md`**
-- Only if the source shifts the high-level synthesis or introduces a significant new theme
-- Otherwise skip this step
-
-**Step 9 — Append to log**
-- Append to `wiki/log.md` (never overwrite):
- ```
- ## [YYYY-MM-DD] ingest | Source Title
-
- [[wiki/sources/slug]] | Pages touched: [[wiki/page1]], [[wiki/page2]], ...
- ```
-
-## Hard Rules
-
-- Never modify anything in `sources/` — immutable raw inputs
-- Every wiki page must have frontmatter with at least `type` and `updated`
-- One source summary page per source — never merge two sources into one
diff --git a/.claude/skills/lint/SKILL.md b/.claude/skills/lint/SKILL.md
deleted file mode 100644
index 84ffd12..0000000
--- a/.claude/skills/lint/SKILL.md
+++ /dev/null
@@ -1,57 +0,0 @@
----
-name: lint
-description: "Health-check the wiki. Finds orphan pages, unresolved contradictions, stale claims, missing pages, broken links, and data gaps. Produces a lint report and appends to the log. Trigger phrases: /lint, health check the wiki, audit the wiki, check for broken links, wiki maintenance."
-argument-hint: "Optional: focus area (e.g. 'broken links only', 'check contradictions'). Leave blank for a full check."
----
-
-# Lint
-
-Runs the full lint workflow defined in CLAUDE.md. Checks for six categories of issues, fixes what can be fixed automatically, and reports the rest.
-
-## Workflow
-
-Run all six checks. For each: identify issues, apply fixes where possible, and note anything that needs user input.
-
-**Check 1 — Orphan pages**
-- Find wiki pages with no inbound `[[links]]` from any other wiki page
-- Glob `wiki/*.md`, read each, check whether any other page links to it
-- Fix: add links from relevant topic pages where appropriate
-- If a page is a stub with no clear home, flag it for the user to decide
-
-**Check 2 — Unresolved contradictions**
-- Grep `wiki/` for `[!WARNING] Contradiction` callouts
-- Report each one: which pages, what the conflict is, which sources are involved
-- Fix: flag to user with a recommendation — a new source may resolve it
-
-**Check 3 — Stale claims**
-- Look for claims on older pages that newer source-summary pages have superseded
-- Cross-reference `updated` dates in frontmatter against source dates
-- Fix: update the claim and update the `sources` frontmatter attribution
-
-**Check 4 — Missing pages**
-- Find `[[wikilinks]]` that appear frequently across wiki pages but have no corresponding file
-- Glob `wiki/*.md`, extract all `[[...]]` links, check each against the file system
-- Fix: create stub pages for high-frequency missing links and queue them for ingestion
-
-**Check 5 — Broken links**
-- Find `[[wikilinks]]` pointing to files that don't exist
-- Fix: create the missing page as a stub, or correct the link if it's a typo
-
-**Check 6 — Data gaps**
-- Identify important topics in the wiki that have many cross-references but thin source coverage
-- Look for topic pages with empty or sparse `sources` frontmatter
-- Report: suggest specific sources, articles, or web searches to fill each gap
-
-## Output
-
-Produce a lint report with three sections:
-1. **Issues found** — count and description per category
-2. **Fixes applied** — what was changed automatically
-3. **Next sources to investigate** — recommended reads to address data gaps or resolve contradictions
-
-Then append to `wiki/log.md` (never overwrite):
-```
-## [YYYY-MM-DD] lint | Lint run
-
-N issues found, N fixed. [Brief summary of notable findings.]
-```
diff --git a/.claude/skills/qmd-cli/SKILL.md b/.claude/skills/qmd-cli/SKILL.md
deleted file mode 100644
index b809720..0000000
--- a/.claude/skills/qmd-cli/SKILL.md
+++ /dev/null
@@ -1,168 +0,0 @@
----
-name: qmd-cli
-description: 'Use qmd CLI to manage collections, index documents, search, and query a local semantic knowledge base. Use when the user mentions qmd, searching a collection, indexing files, running queries, hybrid search, BM25, vector search, or managing a document index. Covers: collection add/list/remove/rename, context management, get/multi-get, update, embed, query, search, vsearch, and MCP server commands.'
-argument-hint: 'qmd command to run or describe what you want to do (e.g., "query wiki for X", "add folder to collection")'
----
-
-# qmd CLI
-
-Local semantic document index with hybrid search (BM25 + vector), collection management, and MCP server.
-
-## Vault DB
-
-This vault keeps its index at `qmd.sqlite` in the vault root (gitignored). All CLI commands **must** prefix with `INDEX_PATH=qmd.sqlite` (relative path works when running from the vault root, which is always the case here):
-
-```bash
-INDEX_PATH=qmd.sqlite bunx @tobilu/qmd query -c wiki "..."
-```
-
-The scripts `bun scripts/qmd/setup.ts` and `bun scripts/qmd/reindex.ts` write to this same file. The CLI must match.
-
----
-
-## Collection Management
-
-```bash
-# Create/index a collection
-INDEX_PATH=qmd.sqlite bunx @tobilu/qmd collection add <path> --name <name> --mask <glob-pattern>
-# e.g.:
-INDEX_PATH=qmd.sqlite bunx @tobilu/qmd collection add wiki --name wiki --mask "**/*.md"
-
-# List all collections with details
-INDEX_PATH=qmd.sqlite bunx @tobilu/qmd collection list
-
-# Remove a collection
-INDEX_PATH=qmd.sqlite bunx @tobilu/qmd collection remove <name>
-
-# Rename a collection
-INDEX_PATH=qmd.sqlite bunx @tobilu/qmd collection rename <old-name> <new-name>
-```
-
-## Listing Files
-
-```bash
-INDEX_PATH=qmd.sqlite bunx @tobilu/qmd ls
-INDEX_PATH=qmd.sqlite bunx @tobilu/qmd ls [collection[/path]]
-```
-
-## Context
-
-```bash
-INDEX_PATH=qmd.sqlite bunx @tobilu/qmd context add [path] "description text"
-INDEX_PATH=qmd.sqlite bunx @tobilu/qmd context list
-INDEX_PATH=qmd.sqlite bunx @tobilu/qmd context rm <path>
-```
-
-## Retrieving Documents
-
-```bash
-INDEX_PATH=qmd.sqlite bunx @tobilu/qmd get <file>[:line] [-l N] [--from N]
-INDEX_PATH=qmd.sqlite bunx @tobilu/qmd multi-get <pattern> [-l N] [--max-bytes N]
-```
-
-**Multi-get format flags:** `--json`, `--csv`, `--md`, `--xml`, `--files`
-
-## Indexing & Maintenance
-
-```bash
-# Show index status and collections
-INDEX_PATH=qmd.sqlite bunx @tobilu/qmd status
-
-# Re-index all collections
-INDEX_PATH=qmd.sqlite bunx @tobilu/qmd update [--pull]
-
-# Create vector embeddings (900 tokens/chunk, 15% overlap)
-INDEX_PATH=qmd.sqlite bunx @tobilu/qmd embed [-f]
-
-# Remove cache and orphaned data, vacuum DB
-INDEX_PATH=qmd.sqlite bunx @tobilu/qmd cleanup
-```
-
-> After bulk ingest sessions, run `update` then `embed` to keep the index fresh.
-
-## Search & Query
-
-| Command | Description |
-|---------|-------------|
-| `qmd query <query>` | **Recommended** — hybrid search with query expansion + reranking |
-| `qmd search <query>` | Full-text keyword search (BM25, no LLM) |
-| `qmd vsearch <query>` | Pure vector/semantic similarity search |
-
-### Search Options
-
-```
--n <num> Number of results (default: 5, or 20 for --files)
---all Return all matches (use with --min-score to filter)
---min-score <num> Minimum similarity score
---full Output full document instead of snippet
---line-numbers Add line numbers to output
---files Output docid,score,filepath,context
---json JSON output with snippets
---csv CSV output
---md Markdown output
---xml XML output
--c, --collection <name> Filter results to a specific collection
-```
-
-### Examples
-
-```bash
-# Hybrid search across all collections
-INDEX_PATH=qmd.sqlite bunx @tobilu/qmd query "distributed systems consensus"
-
-# Search only the wiki collection, JSON output
-INDEX_PATH=qmd.sqlite bunx @tobilu/qmd query -c wiki "transformer architecture" --json
-
-# Keyword-only search, top 10, markdown output
-INDEX_PATH=qmd.sqlite bunx @tobilu/qmd search -c wiki "kafka" -n 10 --md
-
-# Vector search with full documents
-INDEX_PATH=qmd.sqlite bunx @tobilu/qmd vsearch "attention mechanism" --full
-
-# Filter by score threshold
-INDEX_PATH=qmd.sqlite bunx @tobilu/qmd query "machine learning" --all --min-score 0.7
-```
-
-## MCP Server
-
-```bash
-INDEX_PATH=qmd.sqlite bunx @tobilu/qmd mcp
-INDEX_PATH=qmd.sqlite bunx @tobilu/qmd mcp --http [--port N]
-INDEX_PATH=qmd.sqlite bunx @tobilu/qmd mcp --http --daemon
-INDEX_PATH=qmd.sqlite bunx @tobilu/qmd mcp stop
-```
-
-## Global Options
-
-```
---index <name> Use a custom index name (default: index)
-```
-
-Note: use `INDEX_PATH` env var rather than `--index` — `INDEX_PATH` accepts a file path while `--index` only accepts a short name mapped to `~/.cache/qmd/`.
-
-## Typical Workflows
-
-### First-time setup for this vault
-```bash
-# Handled by the /setup skill:
-bun scripts/qmd/setup.ts
-bun scripts/qmd/reindex.ts
-```
-
-### After a bulk ingest session
-```bash
-INDEX_PATH=qmd.sqlite bunx @tobilu/qmd update
-INDEX_PATH=qmd.sqlite bunx @tobilu/qmd embed
-```
-
-### Research workflow
-```bash
-# Discover relevant pages
-INDEX_PATH=qmd.sqlite bunx @tobilu/qmd query -c wiki "<topic>"
-
-# Get a specific file
-INDEX_PATH=qmd.sqlite bunx @tobilu/qmd get wiki/distributed-systems.md
-
-# Get multiple related files
-INDEX_PATH=qmd.sqlite bunx @tobilu/qmd multi-get "wiki/kafka.md,wiki/distributed-systems.md" --md
-```
diff --git a/.claude/skills/query/SKILL.md b/.claude/skills/query/SKILL.md
deleted file mode 100644
index 5df8e13..0000000
--- a/.claude/skills/query/SKILL.md
+++ /dev/null
@@ -1,38 +0,0 @@
----
-name: query
-description: "Query the wiki to answer a question. Searches semantically, synthesizes an answer with inline citations, and optionally files the answer as a permanent Q&A page. Trigger phrases: /query, what do I know about, search the wiki, find everything about, what does the wiki say about."
-argument-hint: "The question or topic to query (e.g. 'what do I know about transformer architecture?')"
----
-
-# Query
-
-Runs the 4-step query workflow defined in CLAUDE.md. Answers come with inline `[[wiki/page]]` citations — not a list of files.
-
-## Workflow
-
-**Step 1 — Search the wiki**
-- Run hybrid search: `INDEX_PATH=qmd.sqlite bunx @tobilu/qmd query -c wiki "<question>"`
-- Read `wiki/index.md` to confirm coverage and catch any pages qmd didn't surface
-- Read the 2–5 most relevant pages in full before synthesizing
-
-**Step 2 — Synthesize an answer**
-- Write the answer with inline `[[wiki/page]]` citations throughout
-- Be explicit about confidence: flag gaps with "The wiki doesn't have coverage on X."
-- If relevant pages are sparse, say so — don't pad with speculation
-
-**Step 3 — Offer to file**
-- If the answer draws together multiple pages in a novel way, ask:
- > "This answer synthesizes several pages in a useful way — want me to file it as a Q&A page?"
-- If yes:
- - Create `wiki/qa/[slug].md` with frontmatter `type: qa`
- - Add to the Q&A section in `wiki/index.md`
- - Add `[[wiki/qa/slug]]` cross-links from the relevant topic pages
-
-**Step 4 — Log (if significant)**
-- For queries that reveal new understanding or surface a gap worth tracking, append to `wiki/log.md`:
- ```
- ## [YYYY-MM-DD] query | Brief question summary
-
- Filed as: [[wiki/qa/slug]] (or "not filed")
- ```
-- Skip logging for routine lookups
diff --git a/.claude/skills/setup/SKILL.md b/.claude/skills/setup/SKILL.md
deleted file mode 100644
index 9d8deb2..0000000
--- a/.claude/skills/setup/SKILL.md
+++ /dev/null
@@ -1,66 +0,0 @@
----
-name: setup
-description: "Initialize this obsidian-agent-memory vault. Registers qmd collections and generates vector embeddings. Use when: setting up for the first time, re-registering collections, or re-indexing after a bulk ingest session. Trigger phrases: /setup, setup vault, initialize collections, reindex, register qmd."
-argument-hint: "Optional: 'reindex' to skip registration and only re-index files"
----
-
-# Vault Setup
-
-## When to Use
-- First-time setup after cloning
-- Re-registering qmd collections (e.g., after config changes)
-- Re-indexing after a bulk wiki ingest session (run step 2 only)
-
-## Procedure
-
-All commands run from the vault root.
-
-### Full Setup (first time)
-
-**Step 1 — Register collections and contexts**
-
-Run:
-```bash
-bun scripts/qmd/setup.ts
-```
-
-Registers the four qmd collections (`wiki`, `raw-sources`, `human`, `daily-notes`) and their path-level context descriptions. Idempotent — safe to re-run.
-
-**Step 2 — Index files and generate embeddings**
-
-Run:
-```bash
-bun scripts/qmd/reindex.ts
-```
-
-Scans all collections for new/changed files and generates vector embeddings. The first run downloads ~2GB of local GGUF models — this will take a while.
-
-### Re-index Only (after bulk ingest)
-
-Skip step 1 and run only:
-```bash
-bun scripts/qmd/reindex.ts
-```
-
-Do **not** re-run after every single file edit — batch it after a session.
-
-### Step 3 — Verify installation
-
-Run these three commands to confirm everything is working:
-
-```bash
-# List registered collections (expect: wiki, raw-sources, human, daily-notes)
-INDEX_PATH=qmd.sqlite bunx @tobilu/qmd collection list
-
-# List registered contexts
-INDEX_PATH=qmd.sqlite bunx @tobilu/qmd context list
-
-# Show index status and embedding counts
-INDEX_PATH=qmd.sqlite bunx @tobilu/qmd status
-```
-
-All four collections should appear in `collection list`. `status` should show non-zero document and embedding counts — if embeddings are 0, re-run step 2.
-
-## Notes
-- `bun` is managed via `mise` — ensure `mise install` has been run before setup
-- If `bunx @tobilu/qmd` commands fail after setup, re-run step 1 then step 2