/origin:initfrom origin
Self-healing setup for the Origin plugin: detects missing daemon, installs it, configures local memory, and verifies the full plugin-to-MCP-to-daemon round-trip.
Ships in origin. 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.
Self-healing setup. Goal: 30 seconds, two user actions max (install plugin,
type /init). Default backend is local memory — no local model, no API key, no
prompts. Local model and Anthropic key are opt-in upgrades documented in
/help.
Run in order. Stop and report at the first failure that needs human attention. Otherwise, push through automatically.
Bash: curl -fsS -m 1 http://127.0.0.1:7878/api/health
Detect whether the origin CLI is on PATH:
Bash: command -v origin >/dev/null 2>&1 && echo present || echo absent
If absent, run the installer (no human prompts):
Bash: curl -fsSL https://raw.githubusercontent.com/7xuanlu/origin/v0.6.1/install.sh | bash
Then add it to PATH for the current session and configure local memory non-interactively:
Bash: export PATH="$HOME/.origin/bin:$PATH" && origin setup --basic && origin install
If present (CLI exists, daemon down), just install + start:
Bash: origin setup --basic 2>/dev/null || true; origin install
origin setup --basic is idempotent — safe to re-run. origin install
writes the launchd plist and starts the daemon.
Bash: for i in 1 2 3 4 5; do curl -fsS -m 1 http://127.0.0.1:7878/api/health && break; sleep 1; done
If the daemon still isn't reachable after ~5s, surface the error and stop.
Likely cause: launchd plist load failure, port 7878 occupied by another
process, or macOS Tahoe Metal init issue (daemon degrades but still binds —
check lsof -ti :7878).
Call the origin MCP server's doctor tool:
doctor()
Expected: local memory configured (no model, no key). Capture the mode string for the final report.
context()
Pass → continue. Fail → MCP not wired. Tell user:
"origin-mcp didn't respond. Restart Claude Code so the plugin's
.mcp.json re-spawns the server."
Print:
Origin ready.
Daemon: up on 127.0.0.1:7878
Mode: <mode from doctor()>
MCP: connected
Data: ~/.origin/ (pages, sessions, db symlink)
Try: /brief, /capture <thing>, /recall <query>, /help
If this was the first /init invocation in the session, dispatch /help
once so the user sees the verb cheat-sheet without asking.
Mention these in the ready report only if the user explicitly asks for "richer features" or asks about model-backed extraction:
origin model install — local Qwen for distill cycles.origin key set anthropic — Anthropic for stronger synthesis.Default flow ignores both. Storage, search, recall, and MCP memory all work in local memory mode.
/plugin install origin@7xuanlu./brief instead.origin doctor or settings file directly.What SKILL.md sets; muted values are Claude Code's defaults
11 skills in this plugin
/briefSession-start briefing from Origin. Reads the project status file (the /handoff-maintained ledger of Active/Backlog work), then loads identity, preferences, and topic-relevant memories so the agent walks in with context. Surfaces any memories the daemon has flagged for human revision before the session uses them. Invoked as `/brief [topic]`. Call FIRST at session start, before any other Origin verb.
/captureSave a memory to Origin in flow. Active capture verb — use proactively when the user states a preference, makes a decision, corrects you, or shares a durable fact. Invoked as `/capture <content>`.
/debriefAlias for `/origin:handoff` — symmetric brief/debrief naming. Same behavior: end-of-session ritual that writes session log + project status + granular MCP captures. Invoked as `/debrief`. Use when the user prefers the brief/debrief pair over brief/handoff.
/distillSynthesize wiki pages from related memories. One endpoint, one flow: daemon clusters and synthesizes what it can; agent finishes whatever the daemon couldn't (no LLM or cluster too big). Invoked as `/distill [target]`.
/forgetDelete a memory from Origin by ID. Destructive and cannot be undone — prefer `/capture` with `supersedes` for corrections. Invoked as `/forget <source_id>`.
/handoffEnd-of-session ritual. Captures decisions, lessons, gotchas, and open threads. Writes a narrative session log to ~/.origin/sessions/ and stores granular memories via Origin MCP. Previews any unconfirmed captures from the current session before closing. Invoked as `/handoff`.
npx claudepluginhub davepoon/buildwithclaude --plugin originOther plugins' skills for the same job