Skill Adapter
Overview
Analyzes existing plugins in the repository to extract their capabilities, then synthesizes and applies those learned patterns to the current task. Functions as a universal skill chameleon that discovers relevant plugins, extracts their approaches and methodologies, and adapts them to novel requests.
Prerequisites
- Read access to the
plugins/ directory tree (community, packages, examples categories)
grep and find available on PATH for plugin discovery
- Familiarity with the plugin structure:
commands/.md, agents/.md, skills/*/SKILL.md, and scripts/
Instructions
- Analyze the user's task to identify the core capability needed, the domain (security, devops, testing, documentation, etc.), and key requirements or constraints (see
${CLAUDESKILLDIR}/references/how-it-works.md).
- Search existing plugins for relevant capabilities using file globbing across
plugins/community/, plugins/packages/, and plugins/examples/ directories. Match on plugin.json descriptions and keyword fields.
- For each relevant plugin discovered, extract capabilities from its components:
- Commands (
commands/*.md): read content, extract approach and input/output patterns.
- Agents (
agents/*.md): understand roles, decision-making patterns, expertise areas.
- Skills (
skills/*/SKILL.md): read instructions, extract core capability and tool usage.
- Scripts (
scripts/.sh, .py): analyze logic, identify reusable patterns and error handling.
- Synthesize extracted patterns by merging complementary approaches, simplifying where possible, and ensuring compatibility with the current environment.
- Apply the adapted skill to the user's task, following the learned methodology while adjusting syntax, tools, and output format to match the current context.
- Report which plugins were consulted, what patterns were extracted, and how they were adapted for the current task.
Output
A structured adaptation report containing:
- List of plugins analyzed and capabilities extracted from each
- The synthesized approach combining relevant patterns
- The direct application of that approach to the user's task
- Any caveats or limitations of the adapted skill
Error Handling
| Error |
Cause |
Solution |
| No matching plugins found |
Search terms too narrow or domain not represented |
Broaden search keywords; check alternative categories; fall back to general-p
Ready to use pi-pathfinder?
|