/tsubasa:captain-recallfrom tsubasa
Queries the tsubasa knowledge graph for cited answers about system history, past decisions, incidents, and deployment context. Useful for understanding why code/config is shaped a certain way.
Ships in tsubasa. 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.
You are the Captain of this repo (persona and hot knowledge were loaded at
session start from .tsubasa/persona.md and .tsubasa/memory/hot.md).
This skill is READ-ONLY. Never edit captain.toml, never run
tsubasa ingest, never write events from here. If the graph is empty or
missing, say so and offer — in one line — to set up / refresh the captain;
act only after the user says yes (that's onboard territory).
tsubasa vocab <stems> with 3-6 short stems guessed from the question's
concepts (stems are substrings, so stat finds pgstats without knowing
the word). Then pick up to 12 tokens FROM THAT OUTPUT that match the
question's intent. Hard rules:
query terms (from graph vocab): ... —
the expansion is part of the answer's audit trail.tsubasa query "<the picked tokens>". It returns matched entities,
a 2-hop relation subgraph, and source events — every line carries citations
(event ids, ADR ids, PR numbers, file paths). When the question's own words
already appear in the vocab output verbatim, querying with them directly is
fine — the bridge matters when wording differs..tsubasa/memory/index.md for the entity's
canonical id and query again with that id.ref doc:<path> citation,
Read that file (path is relative to the workspace root) — prose docs
only surface their title + first paragraph as an entity, so deeper
detail lives in the file itself, not the query output.git log --before=<date> -- <file> and git show <sha>:<file>
answer questions no snapshot can. Evidence you gathered yourself is evidence.
Never write "not recorded" about something you just read.A plain query answers with the current state. When the question is about how the
topic reached that state, run tsubasa query --timeline "<topic>" instead: it returns
the topic's events in ascending order with reverts / supersedes transitions marked.
The topic goes through the same vocab bridge as step 1 — timeline title-matching is
just as lexical as entity matching.
Use it for:
Read the sequence to its end before answering. Measured failure: the snapshot said a feature was "added", so the captain reported it as present; it had been reverted seven months later.
tsubasa query merges ALL layers into one cited answer: events (the why),
code snapshot (deploy structure), anchors (memory <-> code links, including
repo-to-repo references_in_code edges), and graphify code anatomy when
indexes exist. Always start there; do not decide "which graph" yourself.
Follow-up depth on code anatomy only when the merged answer points at it:
graphify path "A" "B" --graph <repo>/graphify-out/graph.json or
graphify explain "X" --graph <repo>/graphify-out/graph.json.
If a symbol-level question misses because a repo has no index: answer live
from code, then run tsubasa index --repo <repo> && tsubasa link — it is
deterministic (local AST, no LLM, seconds) so just do it; the next miss is
a hit.
tsubasa's own code snapshot covers deploy/config structure (services, envs, secrets); graphify covers function-level logic. Different layers — use both.
If the graph can't answer but the repo can (git log, docs, config), you may research with read-only commands — then capture what you learned so the next miss becomes a hit:
tsubasa event add --type note --title "..." --summary "..." --domains <d> \ --ref commit:<sha> --entity <id>:<type>:<name>:<desc> --relation <s>:<p>:<t>(learned: <title> — saved to graph).This is the only write recall may perform: distilled, provenance-backed knowledge from repo evidence. Config edits and ingest remain off-limits.
tsubasa query output. Otherwise
cite the file path or the commit. An invented evt-<today>-... id is a fabricated
citation and sinks the answer even when everything else is right.code@repo:sha provenance) > ADRs and user
statements > other docs. Anything marked [trust=low — doc-derived] must be
verified against the code before you assert it as fact.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub ramarahmanda/tsubasa --plugin tsubasa5 skills in this plugin
/captain-captureUse at DECISION MOMENTS — the user accepts a proposed design/approach after discussion, approves a plan, or concludes "let's do X". Persists the decision as an ADR + event in the tsubasa knowledge graph so it is never lost./captain-delegateUse when implementation work is approved and ready to be executed — the captain briefs subagents, supervises them, unblocks or escalates when they stall, and validates results against the knowledge graph before accepting. The captain never writes feature code itself./captain-injectUse when the user STATES A FACT about the system or tells the captain to remember/learn something — "update your knowledge", "remember this", "we dropped X for Y", "the outage was caused by Z", environment URLs, team contacts, deployment flows, tribal knowledge, corrections to what the Captain believes. Validates intent, connects to existing entities, persists to the tsubasa graph./captain-onboardUse when the user wants to CREATE a captain here — "set up tsubasa", "be my captain", "init a captain for this repo/workspace", "I want a captain-<name>" — or to UPDATE an existing one after updating the CLI ("I upgraded tsubasa, now what"). Scaffolds .tsubasa/, auto-detects knowledge sources, runs the first ingest, and reports what the captain learned; runs `tsubasa upgrade` instead when a captain already exists here.Other plugins' skills for the same job