kb-mint
Mints skills from KB topics, packages skills into plugins, and prepares them for Cowork. Use when asked to create a skill from KB content, convert to a plugin, package for distribution, or make something cowork-ready. Also triggers on `convert this to a skill`, `package as plugin`, `mint a skill`, or `make this a plugin`.
- License 许可
- MIT
- 最近更新
- 2026-04-09
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- kb-mint
- effort
- max
- description
- Mints skills from KB topics, packages skills into plugins, and prepares them for Cowork. Use when asked to create a skill from KB content, convert to a plugin, package for distribution, or make something cowork-ready. Also triggers on `convert this to a skill`, `package as plugin`, `mint a skill`, or `make this a plugin`.
- argument-hint
- [--skill <topic-path> | --plugin <skills...> | --cowork <skills...>]
02 资源文件 36
- 资产文件assets/plugin-scaffold/plugin.json.template97 B
- 资产文件assets/skill-scaffold/SKILL.md.template266 B
- 参考文档evals/eval_queries.json5.8 KB
- 参考文档reference/plugin-packaging-guide.md3.7 KB
- 参考文档reference/skill-authoring-guide.md5.8 KB
- 参考文档reference/skill-conversion-guide.md2.5 KB
- 参考文档reference/testing-guide.md1.8 KB
- 参考文档reference/uv-scripting-guide.md2.4 KB
- 脚本scripts/_file_safety.py26.0 KB
- 脚本scripts/intent_delivery_relations.py48.0 KB
- 脚本scripts/intent_graph.py49.5 KB
- 脚本scripts/intent_readiness.py16.4 KB
- 脚本scripts/intent_terminality.py4.0 KB
- 脚本scripts/intent_view.py25.0 KB
- 脚本scripts/navigate_intents.py109.3 KB
- 脚本scripts/view_assets/view-base.css17.0 KB
- 脚本scripts/view_assets/view.css19.8 KB
- 脚本scripts/view_src/browse.js11.9 KB
- 脚本scripts/view_src/chrome.js10.3 KB
- 脚本scripts/view_src/data.js9.2 KB
- 脚本scripts/view_src/dependencies.js6.5 KB
- 脚本scripts/view_src/detail-parts.js5.9 KB
- 脚本scripts/view_src/detail-render.js9.3 KB
- 脚本scripts/view_src/detail.js3.7 KB
- 脚本scripts/view_src/escape.js1.5 KB
- 脚本scripts/view_src/handover.js2.0 KB
- 脚本scripts/view_src/labels.js8.1 KB
- 脚本scripts/view_src/list-bodies.js12.0 KB
- 脚本scripts/view_src/lists.js3.7 KB
- 脚本scripts/view_src/owners.js4.0 KB
- 脚本scripts/view_src/readiness.js6.0 KB
- 脚本scripts/view_src/roadmap.js9.7 KB
- 脚本scripts/view_src/routing.js1.5 KB
- 脚本scripts/view_src/rows.js2.6 KB
- 脚本scripts/view_src/small-parts.js4.3 KB
- 脚本scripts/view_src/utilities.js1.2 KB
03 SKILL.md 正文
/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}/../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}/../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
04 同仓库更多 Skills
kb-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.
kb-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.
kb-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.
kb-find
Read-only KB discovery with progressive 4-tier loading and --challenge mode for counter-evidence.
kb-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.
kb-bootstrap
Sets up the knowledge base for a project. 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.