From kb-capture
Capture conversation findings as a markdown document with schema-valid frontmatter. Triggers when the user says "document this", "write this up", "capture this", "update the doc", "save this to the KB", or similar requests to persist research or discussion findings as a markdown file. Handles both creating new documents and updating existing ones.
How this skill is triggered — by the user, by Claude, or both
Slash command
/kb-capture:kb-captureThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Automate the research-to-document workflow: detect the knowledge base schema, write schema-valid markdown with frontmatter, lint, and optionally commit.
Automate the research-to-document workflow: detect the knowledge base schema, write schema-valid markdown with frontmatter, lint, and optionally commit.
Run the schema detection script to discover valid frontmatter field values:
bash ${CLAUDE_PLUGIN_ROOT}/scripts/detect-schema.sh
This returns JSON with the schema file path and valid field values (e.g., valid type, domain, tags values). If no schema is found, the output will have empty fields — proceed without constrained values.
Use AskUserQuestion to confirm:
Show the detected schema file (if any) so the user can verify it is the right one.
title, date in YYYY-MM-DD format) and any constrained fields from the schema. Use the conversation context to populate the document body.bash ${CLAUDE_PLUGIN_ROOT}/scripts/validate-frontmatter.sh <file>
If validation fails (exit 1), fix the reported issues and re-validate.
If rumdl is available, run it with auto-fix:
rumdl check --fix <file>
If the file was modified by the linter, re-run validate-frontmatter.sh to ensure fixes didn't break frontmatter. If rumdl is not installed, skip linting and inform the user.
Use AskUserQuestion to ask whether to commit and push the changes. Never auto-commit. If the user agrees, stage the file and commit with a descriptive message.
detect-schema.sh output to constrain frontmatter values — do not guess valid values.tags: [tag1, tag2].npx claudepluginhub st0nefish/agent-toolkit --plugin kb-captureCaptures solved problems, bug fixes, and learnings from conversations into structured markdown files in docs/learnings/. Auto-invokes after 'that worked', 'it's fixed', etc., or via /learn.
Analyzes conversations to extract learnings, best practices, institutional knowledge, saving to topic-specific markdown KB files and updating CLAUDE.md references.
Maintains a structured markdown knowledge base with typed documents, frontmatter, and links. Enforces ontology rules when adding, editing, moving, or deleting docs.