/bugbook:compilefrom bugbook
Compile a Bugbook workspace into an agent-navigable wiki. Reads all pages, groups them by topic, generates a root Index.md that serves as the agent's entry point, and optionally creates summary articles for each category. Reusable — run once after a bulk import, then periodically as the workspace grows. Use when the user says "compile", "build my wiki", "generate index", "organize my notes", "compile my workspace", or after running /import-obsidian.
Ships in bugbook. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Turn a flat collection of Bugbook pages into an agent-navigable wiki with a root Index.md.
This is the step that makes an imported vault (or any growing workspace) queryable by agents. Without an index, the agent has to guess which pages to read. With one, it can drill from a single entry point into whatever it needs.
/import-obsidian (or /import-notion eventually) to organize the dump./schedule compile) to incrementally enhance the wiki.Read the workspace via CLI. Do not try to read 400 files sequentially — use bugbook page list for metadata and selective reads for content.
bugbook page list --format json
This returns name, path, relative_path, title, tags, wikilinks, modified_at for every page. Capture the full list as the working set.
For each page, extract a ~200-character summary from the first paragraph after the H1. Read in batches to avoid token explosion:
# Read the first 30 lines of a page (usually enough for title + opening paragraph)
bugbook page get "<page-name>" --raw | head -30
For large workspaces (500+ pages), sample 20% of pages and classify the rest by filename alone. The user can re-run with --thorough to read everything.
From the scan, build a map:
{
"page_name": {
"title": "...",
"summary": "...", // first paragraph, ~200 chars
"wikilinks": ["...", "..."],
"tags": ["...", "..."],
"folder": "Slip-Box/Body", // original folder path
"modified_at": "2026-..."
}
}
Cluster pages into topical buckets. Use the summaries, wikilink graph, tags, and folder structure as signals.
Start with these and merge/split based on content:
Pages that fit multiple categories go in the one that's most specific. Use judgment — a book note about health goes in Health, not Learning, because the topic matters more than the format.
Show the user a table:
Category Count Sample pages
──────────────────────────────────────────
People 12 Bret Convo, Shae's results, Grand Canyon Guy...
Projects 24 First Vision Project, Sameday, 12 Step Program...
Concepts 35 Perfectionism, Indifference, Systems...
Inspiration 8 Roll 05-14-2023, Images/...
Health 15 Exercise, Supplements, θεραπεία/...
Writing 18 Writing, Recent Ideas, Product Management...
Learning 87 Atomic Habits, The Mom Test, Readwise/...
Decisions 5 Startup Advice, Founder Coaching...
Personal 48 Birthday 2022, Sunday School, Stake Conference...
Uncategorized 141 <pages that didn't match any signal>
Wait for user approval. The user can:
If the user approved the grouping, move pages into category folders.
# Create category folders
for cat in People Projects Concepts Inspiration Health Writing Learning Decisions Personal; do
mkdir -p "$WORKSPACE/$cat"
done
# Move each page to its category folder
mv "$WORKSPACE/Exercise.md" "$WORKSPACE/Health/Exercise.md"
Verify wikilinks still resolve after moves:
bugbook backlinks "Exercise"
# Should still return results — wikilinks resolve by filename, not path
If the user said "skip grouping", skip this phase entirely and generate the index from the existing folder structure.
Create a root Index.md at the workspace root. This is the agent's primary entry point for any future query.
# Index
Catalog of all pages in this workspace, grouped by topic. Last compiled: YYYY-MM-DD.
---
## People
- [[Bret Convo]] — conversation notes with Bret about X
- [[Grand Canyon Guy]] — Swiss traveler met at Grand Canyon, works in Y
## Projects
- [[First Vision Project]] — research project on early LDS history
- [[Sameday]] — delivery startup project notes
## Concepts
- [[Perfectionism]] — reflections on perfectionism and productivity
- [[Systems]] — thinking in systems, feedback loops
...
## Recently Modified
- [[Exercise]] — updated 2026-04-03
- [[Startup Advice]] — updated 2026-04-01
- [[Writing]] — updated 2026-03-30
---
*393 pages indexed. Run `/compile` to refresh.*
- [[Page Name]] — <summary snippet, max 80 chars>echo '<generated index content>' | bugbook page create "Index" --content-file -
# Or update if Index already exists:
echo '<generated index content>' | bugbook page update "Index" --content-file -
If the user requests them (or if the workspace has 200+ pages), generate one summary article per category. These link to all member pages with a 1-2 sentence hook.
# Learning
87 pages of book notes, course notes, and highlights.
---
## Books
- [[Atomic Habits]] — James Clear's framework for habit formation through small changes
- [[The Mom Test]] — how to talk to customers without leading them
- [[You Need a Budget]] — zero-based budgeting philosophy
## Courses
- [[Leadership Development Experience]] — leadership course notes from 2023
...
Write these as standalone pages in each category folder:
echo '<summary content>' | bugbook page create "Learning/Learning" --content-file -
bugbook page get "Index" --raw | head -40
Confirm it's well-formed markdown with working wikilinks.
bugbook context "Index" --depth 2
This should traverse from Index.md → category pages → individual pages. If the output is non-empty and structured, the compile loop is working.
Tell the user to ask a Farza-style question:
"Based on everything in my wiki, what are my recurring themes around productivity and systems?"
The agent should be able to start at Index.md, drill into the relevant categories (Concepts, Learning), and pull from specific pages to answer. If it does, the compile worked.
On subsequent runs, /compile should:
bugbook page list against Index.md contents)This is lighter than a full rebuild — most of the work is reading the diff.
/import-obsidian or /import-notion.raw/ inbox notes. That's RawInboxWriter via the share extension or manual drop./lint (TBD).What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub max4c/bugbook --plugin bugbook10 skills in this plugin
/bbAccess your bugbook workspace — local-first notes, databases, and personal context. Use when the user wants to see their notes, tickets, databases, or personal knowledge./catchupStart-of-session orientation and review. Gets you up to speed on the project — reviews /go run results if there are any, shows what's in flight, what's blocked, and what happened since you last looked. Surfaces overnight discoveries from the knowledge loop. Writes a visual Session Brief page to Bugbook so you can review in the app. Use when the user says "catchup", "catch up", "what happened", "where are we", "what's the status", "bring me up to speed", "what did I miss", "morning review", "show me what you did", "what happened overnight", or starts a new session and wants to get oriented. Works with or without a prior /go run — it's the universal "start of session" skill./dispatchSmart parallel ticket dispatcher — analyzes file overlap across tickets, builds a dependency graph, groups tickets into conflict-free parallel lanes, and executes each lane in its own git worktree. The analysis and routing layer on top of /go. Use when the user says "dispatch tickets", "smart parallel", "parallelize these tickets", "run tickets without conflicts", "dispatch", "parallel dispatch", "multi-lane", or wants to execute multiple tickets simultaneously without merge conflicts./flowStructured agent workflow that takes a Granola transcript or written description, creates tracked projects and tickets in Bugbook, executes them sequentially with status updates, and loops on human review until clean. Use this skill whenever the user wants to start a development workflow, process a meeting transcript into tasks, break work into tickets, or says "flow", "start a flow", "process this transcript", "break this into tickets", "here's what we discussed", or pastes meeting notes. Also use when the user pastes a Granola transcript, describes a batch of work to be done, or wants to turn a planning conversation into tracked action items./goAutonomous long-running execution — works through open tickets while the user is away. Claude orchestrates, writes evals, manages queue/status, and verifies every change. Codex CLI is the default implementation worker; Claude worktree agents are the fallback for complex multi-file work. Runs sequentially by default, with safe two-ticket parallelism only when tickets touch completely different files. Use when the user says "go", "let's go", "night", "goodnight", "do everything", "work on this while I sleep", "run overnight", "keep working", "don't stop", or signals they want autonomous unattended execution./import-obsidianOne-shot migration from an Obsidian vault into the canonical Bugbook workspace. Preserves folder hierarchy, wikilinks, and images, transforming Obsidian-specific syntax into Bugbook equivalents. Use when the user says "import obsidian", "migrate my vault", "import my notes from obsidian", or pastes an Obsidian vault path. Runs phases: pre-flight → inventory → transform plan (approval gate) → write → verify → report.