AGENT SKILL

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

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.

  1. Load: Use /kb-find to discover all notes in the target topic
  2. Assess: Classify per reference/skill-conversion-guide.md (what/where/when → index.md, how → skill/, data → reference/, templates → assets/, automation → scripts/)
  3. Author: If /skill-creator is available in the environment, delegate skill creation to it. Otherwise, follow reference/skill-authoring-guide.md for description writing, workflow patterns, token efficiency
  4. Present plan → ask for approval
  5. 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)
  6. Records: Prepend knowledge/CHANGELOG.md ([maintenance]). If from monitoring, return control.

3. Plugin Packaging (--plugin)

  1. Resolve skills via .claude/skills/ symlinks or direct paths
  2. Name plugin: Derive from common prefix per reference/plugin-packaging-guide.md. Single skill → name = skill name. Multiple → plugin:action namespace. Confirm with user.
  3. Present plan: name, namespace, layout, hooks/MCP/agents extraction
  4. Execute: Create plugin dir, generate plugin.json from assets/plugin-scaffold/plugin.json.template, copy skills, extract hooks to hooks/hooks.json (merge skill frontmatter hooks: — deduplicate by matcher + command), extract MCP to .mcp.json, create agents
  5. 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

04 同仓库更多 Skills

farzadshbfn
farzadshbfn/knowledge-plugin

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.

★ 1
farzadshbfn
farzadshbfn/knowledge-plugin

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.

★ 1
farzadshbfn
farzadshbfn/knowledge-plugin

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.

★ 1
farzadshbfn
farzadshbfn/knowledge-plugin

kb-find

Read-only KB discovery with progressive 4-tier loading and --challenge mode for counter-evidence.

★ 1
farzadshbfn
farzadshbfn/knowledge-plugin

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.

★ 1
farzadshbfn
farzadshbfn/knowledge-plugin

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.

★ 1