From fieldguides
Distills tool patterns from external repositories into teachable skills and plugins. Use when build plugin for, create skills for CLI, package as plugin, repo to plugin, or turn into plugin are mentioned.
npx claudepluginhub outfitter-dev/outfitter --plugin fieldguidesThis skill is limited to using the following tools:
Transform external repositories into Claude Code plugins.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Searches prompts.chat for AI prompt templates by keyword or category, retrieves by ID with variable handling, and improves prompts via AI. Use for discovering or enhancing prompts.
Guides MCP server integration in Claude Code plugins via .mcp.json or plugin.json configs for stdio, SSE, HTTP types, enabling external services as tools.
Transform external repositories into Claude Code plugins.
External Repo → Research → Recon → Patterns → Codify → Author → Package → Audit → Plugin
research skill for external discovery (docs, APIs, community patterns)codebase-analysis skill for internal analysis of target repofind-patterns skill to extract repeatable patterns worth automatingcodify skill to map patterns to component typesskillcraft or claude-craftclaude-plugins skill to package into distributable pluginclaude-plugins audit checklists<when_to_use>
NOT for: plugins from scratch (use claude-plugins), single-skill creation (use skillcraft), auditing existing plugins (use claude-plugins)
</when_to_use>
Track progress with artifacts in artifacts/skill-distillery/:
artifacts/skill-distillery/
├── discovery.md # Research output (docs, APIs, community patterns)
├── recon.md # Codebase analysis (structure, conventions, key files)
├── patterns.md # Extracted patterns with automation value
├── mapping.md # Pattern → component mapping decisions
├── components/ # Authored skills, agents, hooks, commands
│ ├── skill-1/
│ ├── skill-2/
│ └── ...
└── audit.md # Plugin validation results
For simple repos (single-purpose CLI, small API wrapper):
Trigger: User says "quick", repo has < 5 main commands, or clear single purpose.
Load the maintain-tasks skill for stage tracking. Stages advance only.
| Stage | Skill | activeForm |
|---|---|---|
| 1. Discovery | research | "Researching external docs" |
| 2. Recon | codebase-analysis | "Analyzing target repo" |
| 3. Patterns | find-patterns | "Extracting patterns" |
| 4. Mapping | codify | "Mapping to components" |
| 5. Authoring | skillcraft | "Creating components" |
| 6. Packaging | claude-plugins | "Packaging plugin" |
| 7. Audit | claude-plugins | "Validating plugin" |
Load research skill. Gather external docs, community patterns, pain points.
See stage-1-discovery.md for details.
Load codebase-analysis skill. Analyze structure, API surface, conventions.
See stage-2-recon.md for details.
Load find-patterns skill. Extract workflows, command sequences, decision points.
See stage-3-patterns.md for details.
Load codify skill. Map patterns to component types (skill, command, hook, agent).
See stage-4-mapping.md for details.
Load appropriate skill per component type. Create in artifacts/skill-distillery/components/.
See stage-5-authoring.md for details.
Load claude-plugins skill. Create plugin structure with manifest and README.
Ask: "Do you have an existing marketplace to add this plugin to?" If yes, prepare the marketplace entry.
See stage-6-packaging.md for details.
Validate using the claude-plugins audit checklists. See its references/audit.md.
See stage-7-audit.md for details.
<decision_points>
Key decisions during engineering process:
Which patterns to automate?
Skills vs Commands?
Include agents?
Quick mode vs full pipeline?
</decision_points>
ALWAYS:
NEVER:
Stage guides:
Skills loaded:
research — external discovery methodologycodebase-analysis — repo analysis approachfind-patterns — pattern extractioncodify — pattern-to-component mappingclaude-plugins — plugin packaging