kb-mint
This skill uses Claude hooks which can execute code automatically in response to events. Review carefully before installing.
/kb-mint — KB-to-Skill-to-Plugin Pipeline
1. Routing
Parse $0 to determine mode:
--skill <topic-path>→ Section 2--plugin <skills...>→ Section 3--cowork <skills...>→ Section 4- Otherwise → show:
/kb-mint --skill|--plugin|--cowork <args>
2. Skill Conversion (--skill)
Convert a KB concept topic into a KB-backed skill.
- Load: Use
/kb-findto discover all notes in the target topic - Assess: Classify per reference/skill-conversion-guide.md (what/where/when →
index.md, how →skill/, data →reference/, templates →assets/, automation →scripts/) - Author: If
/skill-creatoris available in the environment, delegate skill creation to it. Otherwise, follow reference/skill-authoring-guide.md for description writing, workflow patterns, token efficiency - Present plan → ask for approval
- Execute: Scaffold from assets/skill-scaffold/SKILL.md.template, slim
index.md, create symlink (ln -s ../../knowledge/<topic>/skill .claude/skills/<name>), validate (uv run ${CLAUDE_SKILL_DIR}/../kb-learn/scripts/validate_kb.py --quiet --json) - Records: Prepend
knowledge/CHANGELOG.md([maintenance]). If from monitoring, return control.
3. Plugin Packaging (--plugin)
- Resolve skills via
.claude/skills/symlinks or direct paths - Name plugin: Derive from common prefix per reference/plugin-packaging-guide.md. Single skill → name = skill name. Multiple →
plugin:actionnamespace. Confirm with user. - Present plan: name, namespace, layout, hooks/MCP/agents extraction
- Execute: Create plugin dir, generate
plugin.jsonfrom assets/plugin-scaffold/plugin.json.template, copy skills, extract hooks tohooks/hooks.json(merge skill frontmatterhooks:— deduplicate by matcher + command), extract MCP to.mcp.json, create agents - Finalize: Validate, present for review
4. Cowork Packaging (--cowork)
Run Section 3 first, then add Cowork-specific considerations per reference/plugin-packaging-guide.md § Cowork: connectors (MCP as GUI connectors), GUI installation (no CLI-only steps), non-dev users (user-invocable: false), marketplace labels. Present additions for approval.
5. Validation
After completing KB or skill changes, run the validator to catch broken links, frontmatter issues, and structural errors:
uv run ${CLAUDE_SKILL_DIR}/../kb-learn/scripts/validate_kb.py --quiet --json
Fix any reported errors before finishing.
6. Scripts and Testing
- Scripts/MCP: See reference/uv-scripting-guide.md
- Testing: See reference/testing-guide.md
- Run tests:
uv run scripts/tests/run_tests.py -q
More from farzadshbfn/knowledge-skills
kb-find
Read-only KB discovery with progressive 4-tier loading and --challenge mode for counter-evidence.
10kb-view
Opens the KB viewer in the browser. Starts a local HTTP server that renders all configured knowledge bases with working links, fuzzy search, and knowledge graph visualization.
10kb-learn
Manages a personal knowledge base with learning tracking. Modes: (1) learn from articles, (2) learn about topics, (3) fix errors. Uses markdown links with relative paths for cross-references. Maintains a rolling changelog, validates links, and keeps a markdown-compatible knowledge base. When a note reaches ~500 lines, suggests /kb-compact.
9kb-monitor
Monitors KB usage patterns and skill health. Activates when KB access tracking detects frequently-read content that could become a skill, or when user corrections suggest a skill is underperforming. Also triggers on `this isn't working right`, `this skill keeps getting X wrong`, `convert this to a skill`, or `what should become a skill`. Tracks cross-session observations via memory.
8kb-bootstrap
Sets up the knowledge base for a project or initializes the global (god) KB config. Creates the KB config, directory structure, and appends minimal instructions to the project's CLAUDE.md. Run this once when first using KB skills in a new project. Use --global to set up the global read-only KB.
7kb-compact
Compacts KB directories — extracts legacy, unifies terminology, splits oversized notes, fixes indexes, reconciles with skill folders. Default: single directory. Use --deep for recursive bottom-up traversal.
6