Manages a layered knowledge base via the /kb command. Tracks findings, notes, decisions, ideas, tasks, briefs, specs, releases, and incidents as first-class artifacts across a flexible layer graph.
Ships in kb. 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.
Read when SKILL.md points to them; scripts run unread.
This skill implements the agentic-kb specification. It operates on the user's workspace as a layer graph: one anchor layer with .kb-config/, plus any number of additional contributor or consumer layers connected by parent edges.
Invoke this skill whenever the user:
/kb followed by text, a URL, a file path, or a subcommand.triggers: list above, even without the /kb prefix — e.g. "let me capture this", "promote that finding to the team layer", "start my day", "open a decision on caching", "weekly status please". The harness fires the skill on those phrases; the skill is responsible for routing them to the right /kb flow and confirming the proposed action before mutating state.When the user invokes the skill via a feature keyword rather than /kb, the response MUST: name the inferred /kb … flow, restate the inferred target layer, and ask for confirmation before any mutation. Read-only flows (status, triage scans) may proceed immediately.
There is one user-facing command: /kb. Infer layer and action from context:
| Input | Action |
|---|---|
| URL or pasted text | Capture into the current layer via the evaluation gate |
| File path inside a known layer | Operate in that layer context |
| Explicit layer name | Route to the named target layer |
Explicit subcommand (review, promote, digest, task, note, report, ...) | Run that flow |
Bare /kb | Read-only triage scan |
.kb-config/layers.yaml | Declares the layer graph, roles, parent edges, marketplaces, and connections |
Full command reference: references/command-reference.md.
Concurrency contract: docs/concurrency.md defines the promote-collision, diverged-backlink, topic-merge, and append-only log cases that /kb sync and /kb audit reconcile.
**Maturity**:. raw means weak or single-signal, emerging means accepted and worth revisiting, durable means ready to promote or cite broadly.promote walks upward through parent; digest walks downward from parent or from connections. A role: consumer layer is read-down only: it may receive digests, but it is never a promote or publish target.role.primitive-storage with mode: tracker, propose or update the configured tracker item instead of creating a competing canonical KB file..kb-log/YYYY-MM-DD.log or .kb-log/YYYY/YYYY-MM-DD.log in the canonical HH:MM:SSZ | operation | scope | target | details format.dashboard.html and the root index.html are part of the same mutation as capture, review, promote, publish, digest, decide, note-end, present, report, and ritual flows./kb [text/URL/path] invocation picks one of three routing modes: (a) default — capture into the active layer (the anchor unless context already selected a different contributor-capable layer); (b) explicit — the user named a target layer in the invocation, or a capture-routing: rule in .kb-config/layers.yaml matches the input; (c) reflection-driven — the input's content/source/context matches the strong-signal rubric in references/capture-routing.md for a non-default contributor-capable layer. Mode (c) requires explicit human confirmation before the mutation; no soft-write to a staging area as a fallback. Weak or ambiguous signals fall through to default. A previous confirmation does not give the agent standing permission for future captures — the supported way to make a target sticky is a capture-routing: rule, not implicit memory. The response must name the routing mode and, for mode (c), present the proposed target with a one-line reason and offer the default as a fallback. Direct routing is parallel to /kb promote, not a substitute: promote moves material that matured upward; direct capture skips a private→shared hop when the destination was clear from the start. Full contract: references/capture-routing.md.| Flow | Command | What it does |
|---|---|---|
| Capture | /kb [input] | Assess via gate; write finding or note; update topic/decision; route to workstream. Destination follows rule 12: default = active layer; explicit when the user names a target or a capture-routing: rule matches; reflection-driven targets require human confirmation before mutation |
| Review | /kb review | Process all pending items in _kb-inputs/ |
| Promote | /kb promote [file] [layer] | Promote to a named contributor-capable layer, or the next contributor-capable parent layer |
| Publish | /kb publish [file] [layer] | Package reusable knowledge as a skill and publish it to the target layer marketplace |
| Digest layer | /kb digest [layer] | Pull changes from a parent or adjacent layer |
| Digest connections | /kb digest connections | Pull deltas from configured product repos and trackers |
| Sync | /kb sync [layer] | Cross-reference contributor-scoped topics or findings; reconcile promote conflicts, diverged backlinks, and unresolved topic author-sections per docs/concurrency.md |
| Diff | /kb diff [layer] | Show new material per contributor or connection |
| Migrate | /kb migrate archives / /kb migrate layer-model | Preview or apply legacy archive and layer-model migrations |
| Task | /kb task / /kb task done [item] | Manage focus/backlog |
| Note | /kb note [text] / /kb note meeting [topic] / /kb note retro [topic] / /kb note end | Capture general, meeting, or retro notes and surface follow-on changes. The retro variant uses the structured what-went-well / what-didn't / changed / will-change / open-questions / linked-artifacts shape and must produce tracked commitments (tasks or decisions) before it is considered closed |
| Idea | /kb idea [text] | Create a seed idea |
| Develop | /kb develop [idea] | Spar on assumptions, contradictions, and convergence |
| Decide | /kb decide [desc] / /kb decide resolve [D-id] | Open or resolve a decision |
| Brief | /kb brief [title] | Open a delivery-intent artifact under _kb-delivery/briefs/; requires delivery feature on the layer |
| Spec | /kb spec [title] | Open a design-contract artifact under _kb-delivery/specs/; requires delivery feature on the layer |
| Release | /kb release [title] | Open a release record under _kb-operations/releases/YYYY/; requires operations feature on the layer |
| Incident | /kb incident [title] | Open an incident record under _kb-operations/incidents/YYYY/; requires operations feature on the layer |
| Present | /kb present [topic/file] | Generate a versioned HTML presentation |
| Report | /kb report [scope] | Generate a layer or topic report |
| Progress report | /kb report progress [scope] | Generate the multi-source progress narrative |
| Rituals | /kb start-day, /kb end-day, /kb start-week, /kb end-week | Run composed briefings and summaries |
| Audit | /kb audit | Check contradictions, staleness, gaps, and layer-shape drift |
| Status | /kb status | Report pending work, connection drift, tasks, and recent activity |
| Roadmap | /kb roadmap [...] | Hand off to kb-roadmap for plan-vs-delivery reconciliation; refuse if the active layer has no roadmap: block |
| Journeys | /kb journeys [...] (alias /kb journey) | Hand off to kb-journeys for journey authoring + render; refuse if the active layer has no journeys: block |
Roadmaps and journeys are product-management primitives, but they stay layer-owned. If a user asks for roadmap or journey work and the current layer has no matching block, route them to /kb setup or the expert config path so they can choose whether the artifact belongs in a personal, team, org, or other contributor layer. Do not silently choose a layer for them.
When a flow creates or updates a primitive covered by primitive-storage, resolve the storage mode before writing:
files: write the normal KB artifact or task file.tracker: propose a tracker item/comment/link/status update using the configured tracker kind/type; after confirmation, write only summaries, backlinks, reports, or archive context to the KB.hybrid: write the early KB artifact first, then offer promotion to the configured tracker when the item crosses the layer's sharing boundary.If the config is ambiguous or both a KB file and tracker item claim canonical ownership, stop and propose an audit/cleanup step before mutation.
For tracker operations, apply the capability precedence from references/tracker-backed-primitives.md: primitive-storage selects canonical ownership; the named tracker must declare the operation in capabilities; authentication/tooling must be available through canonical auth-env or documented ambient authentication; and the user must confirm that exact mutation. For a pre-7.0 unambiguous live adapter whose capability field is absent, apply the reference's temporary normalization and surface its migration warning; explicit empty lists plus generic/export-backed/custom adapters remain read-only. connections.writeback governs only reserved connection-digest write-back and cannot enable canonical CRUD. Ownership failure follows the configured canonical home without proposing a noncanonical tracker mutation. After ownership succeeds, missing capability or authentication produces a complete manual proposal and waits for the resulting tracker identifier; no path creates a competing canonical KB record.
Every response follows the same shape:
Additional requirements:
role: consumer layer./kb promote is a composite applied mutation, not a mailbox drop. For multi-user contributor layers it stages the intake in the destination contributor scope before immediate review; single-user targets skip staging and write the reviewed result directly. Full contract: references/promote-contract.md.
When promoting to a locally available contributor-capable layer, the agent must:
When the selected target is role: consumer, refuse and point to the next valid contributor layer.
The templates this skill instantiates live in templates/:
finding.md, topic.md, decision.md, idea.md, note.md, retro.md, workstream.mdbrief.md, spec.md, release.md, incident.mdfocus.md, backlog.mdindex.html, artifact-base.html, report.htmlkb-setup.kb-config/layers.yaml, .kb-config/automation.yaml, .kb-config/artifacts.yamlreferences/spec-summary.md — condensed architecture and workspace layout.references/command-reference.md — full subcommand details.references/connections-lifecycle.md — connection declaration, watermarks, drift checks, and write-back.references/tracker-backed-primitives.md — generic tracker-backed decisions, tasks, ideas, feedback, intake, routing, and audit pattern.references/capture-routing.md — destination-layer routing modes for /kb capture: default / explicit / reflection-driven, the human-confirmation gate, and the capture-routing: config schema.docs/concurrency.md — shared-layer concurrency contract for promote collisions, backlink divergence, topic merges, and append-only logs.references/promote-contract.md — staged-review semantics for /kb promote.references/publish-contract.md — marketplace packaging, safety validation, and publish response contract.references/rituals.md — the four rituals in detail.references/html-artifacts.md — presentation/report generation contract.references/evaluation-gate.md — the five-question filter, in depth.references/output-contract.md — collaboration-safe wording and examples.references/audit.md (opens in a new tab)references/capture-routing.md (opens in a new tab)references/command-reference.md (opens in a new tab)references/connections-lifecycle.md (opens in a new tab)references/evaluation-gate.md (opens in a new tab)references/html-artifacts.md (opens in a new tab)references/output-contract.md (opens in a new tab)references/promote-contract.md (opens in a new tab)references/publish-contract.md (opens in a new tab)references/rituals.md (opens in a new tab)references/spec-summary.md (opens in a new tab)references/tracker-backed-primitives.md (opens in a new tab)scripts/generate_report.py (opens in a new tab)scripts/migrate_archives.py (opens in a new tab)scripts/migrate_layer_model.py (opens in a new tab)templates/artifact-base.html (opens in a new tab)templates/backlog.md (opens in a new tab)templates/brief.md (opens in a new tab)templates/decision.md (opens in a new tab)templates/finding.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
4 skills in this plugin
/kb-journeysAuthor and publish user/customer/product journeys as living markdown with generated HTML views and standalone UI mocks. Journeys are hierarchical (journey → phase → sub-journey → step) with entry/exit conditions, interfaces, and readiness assessments. The skill ships authoring commands (ideate, discuss, review, refine) shared with kb-roadmap's contract, a neutral HTML template whose tokens are set by the adopter's `.kb-config/artifacts.yaml`, and a mock-extraction pipeline that renders every embedded UI mock as a linkable standalone page. Triggered by `/kb journeys` and journey-authoring phrases./kb-roadmapReconcile planning-truth sources against delivery reality. Ingests ≥1 plan source (ticket export, milestone markdown, OKRs) and ≥1 delivery source (git repository, ADR set, release log), runs a five-tier correlation ladder, detects mismatches, and emits a living roadmap artifact in Markdown, HTML, and JSON. Triggered by `/kb roadmap` and roadmap-reconciliation phrases./kb-setupInteractive onboarding wizard that scaffolds an agentic-kb workspace around a flexible layer graph. Asks the user about their context, goals, audience, sources, and desired outputs first, derives a proposed layer graph and feature set including tracker-backed primitive ownership and product-management roadmap/journey placement when relevant, then creates or onboards layer repos, writes the anchor-layer config, configures documented harness workflows, and generates the required templates, indexes, tracker setup artifacts, and HTML style references./kb:kb-managementfrom kb
npx claudepluginhub wlfghdr/agentic-kb --plugin kbOther plugins' skills for the same job