zysilm-ai

skill-master

2
0
# Install this skill:
npx skills add zysilm-ai/skill-master

Or install specific skill: npx add-skill https://github.com/zysilm-ai/skill-master

# Description

"Intelligent skill orchestrator that automatically finds, creates, executes, and improves skills. When you need to accomplish a task, this skill searches for existing skills (internal, GitHub via MCP, web), creates new skills if none found, executes them, and reviews execution to improve skills based on actual usage. Also handles feedback about skill-generated outputs - if you want to fix/adjust an output AND improve the skill that created it, invoke this with your feedback. Use when you want automated skill discovery, continuous improvement, or to provide feedback on previous skill outputs."

# SKILL.md


name: skill-master
description: "Intelligent skill orchestrator that automatically finds, creates, executes, and improves skills. When you need to accomplish a task, this skill searches for existing skills (internal, GitHub via MCP, web), creates new skills if none found, executes them, and reviews execution to improve skills based on actual usage. Also handles feedback about skill-generated outputs - if you want to fix/adjust an output AND improve the skill that created it, invoke this with your feedback. Use when you want automated skill discovery, continuous improvement, or to provide feedback on previous skill outputs."
allowed-tools: Read, Write, Edit, Glob, Grep, WebSearch, WebFetch, Task, Skill, AskUserQuestion, TodoWrite, Bash


Skill Master

An intelligent orchestrator that automates the entire skill lifecycle: discovery, creation, execution, and improvement.

Overview

When invoked with a task, this skill:
1. Searches for existing skills that can handle the task
2. Creates a new skill if none found (after deep research)
3. Invokes the skill (using Skill tool) to complete the user's task
4. Reviews the execution and improves the skill if needed

When invoked with feedback about a previous output:
5. Fixes the output according to user's request
6. Links feedback to the skill via state tracking
7. Improves the skill based on the feedback

Workflow


Phase 1: Skill Discovery

Goal: Find an existing skill that can handle the user's task.

Step 1.1: Parse the Request

Identify from the user's request:
- Core task: What needs to be accomplished?
- Domain: What area/field does this belong to?
- Keywords: Key terms for searching

Step 1.2: Search for Skills

MUST follow the complete search workflow in references/skill-search.md.

Copy and track overall search progress:

Search Phase Progress:
- [ ] Step 1: Internal skills searched
- [ ] Step 2.1: ALL known GitHub repos searched (anthropics, K-Dense-AI, ComposioHQ)
- [ ] Step 2.2: Known repos enumerated (if 2.1 had no matches)
- [ ] Step 2.3: Broader GitHub search (only after 2.1+2.2 exhausted)
- [ ] Step 3: Web search (only after GitHub exhausted)

CRITICAL: MUST complete ALL searches in each step before proceeding to next step.

Search order - execute in sequence:
1. Internal skills: MUST check both ~/.claude/skills/ and .claude/skills/
2. GitHub known repos: MUST search ALL three repos before broader search:
- site:github.com/anthropics/skills SKILL.md <keywords>
- site:github.com/K-Dense-AI/claude-scientific-skills SKILL.md <keywords>
- site:github.com/ComposioHQ/awesome-claude-skills SKILL.md <keywords>
3. GitHub enumeration: MUST enumerate repo contents if searches return no match
4. GitHub broader: Only after known repos exhausted
5. Web: Only after GitHub exhausted

See references/known-skill-repos.md for curated skill sources.

Step 1.3: Evaluate Results

Validation gate before concluding search:
- [ ] All internal locations checked
- [ ] All known GitHub repos searched
- [ ] All known repos enumerated (if no WebSearch matches)
- [ ] Results documented for each source

If skill found:
- Present the skill to user with description
- Proceed to Phase 2 (Storage Confirmation)

If NO skill found (only after ALL searches complete):
- Inform user: "No existing skill found. I'll research and create one."
- Proceed to Phase 3 (Skill Creation)


Phase 2: Storage Confirmation

Goal: Determine where to store the skill.

Ask user using AskUserQuestion:

Where should this skill be stored?

1. LOCAL (.claude/skills/)
   - Project-specific
   - Shared with team via git

2. GLOBAL (~/.claude/skills/)
   - Personal
   - Available across all projects

Remember the choice for later use.

Step 2.1: Source Tracking (External Skills Only)

CRITICAL: When storing a skill found from an external source (GitHub, web), you MUST create a source.md file alongside the SKILL.md to track provenance.

Create source.md in the skill directory with:

# Source

- **Origin**: <GitHub | Web | MCP Marketplace>
- **URL**: <original URL where skill was found>
- **Repository**: <owner/repo if GitHub>
- **Author**: <original author if known>
- **Retrieved**: <date skill was fetched>
- **License**: <license if specified>

## Notes

<Any relevant notes about the source, modifications made, etc.>

Do NOT create source.md for:
- Skills created from scratch (Phase 3)
- Skills already present locally


Phase 3: Skill Creation (if not found)

Goal: Create a new skill through deep research.

Follow the creation workflow in references/skill-create.md.

Steps:
1. Research the domain thoroughly using WebSearch
2. Identify best practices and common patterns
3. Design the skill structure
4. Generate SKILL.md following official format
5. Save to the location user chose in Phase 2


Phase 4: Skill Execution

Goal: Invoke the skill to complete the user's original task.

CRITICAL: You MUST invoke the found/created skill using the Skill tool. Do NOT manually follow the instructions - the skill must be triggered as an independent execution.

Step 4.1: Invoke the Skill

Use the Skill tool to trigger the skill:

Skill: <skill-name>
args: <user's original request>

Example:

Skill: market-research-reports
args: "Create a market analysis for electric vehicles in Europe"

The Skill tool will:
1. Load the skill's SKILL.md
2. Execute the skill's workflow
3. Complete the user's task
4. Return control when finished

Step 4.2: Capture Execution Memory

After the skill completes, the conversation now contains "execution memory" - the full record of what happened during skill execution. This memory is used in Phase 5 for review.

Step 4.3: Verify Completion

Confirm the skill delivered the expected output to the user.


Phase 5: Skill Review

Goal: Determine if the skill needs improvement based on actual execution.

CRITICAL: This must happen in a fresh agent context using Task tool.

Step 5.1: Spawn Fresh Agent

Use Task tool to create a fresh agent for review:

Task: "Review skill execution for improvements"

You are reviewing a skill execution. You have:
1. The SKILL.md content (provided below)
2. The conversation memory of what actually happened (this conversation)

Your job: Compare what the skill SAYS vs what ACTUALLY HAPPENED.

## The Skill
<paste SKILL.md content here>

## Review Questions
1. Did I have to deviate from the skill's instructions? Where?
2. Did I have to improvise something not in the skill? What?
3. Did the user have to clarify something the skill should have covered?
4. Were there errors/retries that better instructions could prevent?

## Output
If NO divergence: "Skill executed perfectly. No improvements needed."
If divergence found: List specific improvements with format:
- Location: <which part of skill>
- Issue: <what happened during execution>
- Suggestion: <concrete change to make>

Step 5.2: Handle Review Results

If no improvements needed:
- Report to user: "Skill worked well, no updates needed."
- Proceed to Phase 6 (Complete)

If improvements suggested:
- Present improvements to user
- Ask: "Would you like me to apply these improvements to the skill?"
- If yes: Proceed to Phase 5.3
- If no: Proceed to Phase 6 (Complete)

Step 5.3: Apply Improvements

Follow the improvement workflow in references/skill-improve.md.

For local/personal skills: Apply changes directly using Edit tool.

For official/external skills:
- Cannot modify directly
- Generate improvement suggestions as a document
- Offer to create a PR description if it's on GitHub


Phase 6: Complete

Report final status:

## Task Complete

- **Task**: <original request>
- **Skill Used**: <skill name>
- **Skill Location**: <path>
- **Improvements Applied**: Yes / No / N/A

<Any relevant notes>

Phase 7: Feedback Handling (User-Triggered)

Trigger: User explicitly invokes skill-master with feedback about a previous output.

Examples:
- /skill-master please fix the report, the analysis is too shallow
- Invoke skill-master to adjust the documentation and add more examples

Step 7.1: Fix the Output First

Address the user's immediate request:
1. Identify the output file(s) mentioned
2. Make the requested changes/improvements
3. Confirm changes with user

Step 7.2: Check for State Tracking

Look for .skill-master-state.json in the working directory:

Read: .skill-master-state.json

If state file exists and matches the output:
- Proceed to Step 7.3

If no state file or no match:
- Report: "Output fixed. No linked skill found for improvement."
- Done.

From state file, identify:
- skill_name: Which skill produced this output
- skill_path: Where the skill is stored
- outputs: Verify the file user mentioned is in the outputs list

Step 7.4: Trigger Review with Feedback Context

Use Task tool to spawn fresh agent for review:

Task: "Review skill based on user feedback"

The user requested changes to output produced by this skill.
This feedback indicates the skill needs improvement.

## The Skill
<paste SKILL.md content>

## User Feedback
<user's feedback request>

## Changes Made
<what was changed to fix the output>

## Your Task
Determine how to improve the skill so future executions
produce better output without needing these adjustments.

## Output
List specific improvements:
- WHERE: <which part of skill>
- ISSUE: <what was missing/wrong>
- SUGGESTION: <concrete change>

Step 7.5: Apply Improvements

Follow references/skill-improve.md to apply the suggested improvements.

Report:

## Feedback Processed

- **Output Fixed**: Yes
- **Linked Skill**: <skill name>
- **Skill Improved**: Yes / No (if external)
- **Changes**: <summary of skill improvements>

State Management

Track workflow state by writing to .skill-master-state.json:

{
  "request": "original user request",
  "state": "SEARCH | CREATE | EXECUTE | REVIEW | COMPLETE | FEEDBACK",
  "skill_found": true/false,
  "skill_name": "name",
  "skill_path": "path",
  "skill_source": {
    "origin": "internal | github | web | created",
    "url": "original URL if external",
    "retrieved": "date"
  },
  "storage_location": "local | global",
  "outputs": ["path/to/output1.md", "path/to/output2.pdf"],
  "improvements_needed": true/false,
  "improvements_applied": true/false
}

Update this file as you progress through phases.

Output Tracking

During Phase 4 (Execution), track all files created by the skill:

  1. Before execution: Note existing files in output directories
  2. After execution: Identify new/modified files
  3. Update state: Add file paths to outputs array

This enables Phase 7 (Feedback Handling) to link user feedback to the skill that produced the output.


Error Handling

Error Recovery
Search fails (network) Retry once, then proceed to creation
Skill creation fails Report to user, ask for guidance
Execution fails Capture in memory, still do review
Review times out Skip review, complete workflow

References

# README.md

Skill Master Architecture

"Where Natural Language becomes Turing Complete"

OverviewUsageHow It Works


Overview

Skill Master is an intelligent skill orchestrator for Claude Code that automatically searches, creates, executes, and improves skills based on actual usage.

What It Does

  1. Search - Finds existing skills (local, GitHub, web)
  2. Create - Generates new skills through deep research when none exist
  3. Execute - Invokes the skill to complete your task
  4. Review - Compares execution against skill instructions (empirical, not theoretical)
  5. Improve - Updates skills based on actual divergences

The review is self-limiting: if a skill executes perfectly, no improvement is needed. Skills converge toward optimal instructions through real usage.


Usage

Simply invoke Skill Master with your task:

/skill-master Create a business plan for an electric motorcycle startup

Or let Claude Code auto-detect based on context:

Invoke skill-master to create a comprehensive market analysis for renewable energy in Europe

Skill Master will:
1. Search for a matching skill
2. Create one if not found (after researching best practices)
3. Ask where to store it (local or global)
4. Execute the skill to complete your task
5. Review and offer improvements based on execution

Feedback & Improvement

If you later find issues with the output and want to both fix the output AND improve the skill, invoke Skill Master again with your feedback:

Using command:

/skill-master please fix the business plan, the financial projections section needs more detail

Using natural language:

Invoke skill-master to adjust the market analysis - add competitor pricing data and export to PDF

Skill Master will:
1. Fix your output immediately
2. Link the feedback to the skill that created it
3. Improve the skill so future executions are better


How It Works

The Workflow

User Request
     │
     ▼
┌─────────────┐     ┌─────────────┐     ┌─────────────┐
│   SEARCH    │────▶│   CREATE    │────▶│   EXECUTE   │
│   Skills    │     │   if none   │     │   Skill     │
└─────────────┘     └─────────────┘     └─────────────┘
                                              │
                                              ▼
                                        ┌─────────────┐
                                        │   REVIEW    │
                                        │  (fresh agent)
                                        └─────────────┘
                                              │
                          ┌───────────────────┴───────────────────┐
                          │                                       │
                          ▼                                       ▼
                   No Divergence                            Divergence Found
                          │                                       │
                          ▼                                       ▼
                      ┌───────┐                            ┌─────────────┐
                      │ DONE  │                            │   IMPROVE   │
                      └───────┘                            │   Skill     │
                                                           └─────────────┘

Empirical Review

The review phase is empirical, not theoretical:

  • Compares what the skill says to do vs what actually happened
  • Uses a fresh agent (via Task tool) for unbiased comparison
  • Only suggests improvements when execution diverged from instructions
  • User decides whether to apply improvements

This ensures skills improve based on real issues, not arbitrary criteria.


Feedback & Adjustment

The Problem

After a skill completes successfully, you might find issues with the output later:
- Content quality not meeting expectations
- Missing sections or details
- Format needs adjustment (e.g., export to PDF)

The skill executed perfectly (no divergences), but the output needs improvement.

The Solution

Manually invoke Skill Master with your feedback to both fix the output AND improve the skill:

/skill-master please fix the market report, the competitive analysis section is too shallow

Or:

Invoke skill-master to adjust the documentation - add more code examples and export to PDF

How It Works

User feedback request
        │
        ▼
┌─────────────────────┐
│   FIX THE OUTPUT    │ ◄── First, make the changes user requested
└─────────────────────┘
        │
        ▼
┌─────────────────────┐
│  CHECK STATE FILE   │ ◄── Look for .skill-master-state.json
└─────────────────────┘
        │
        ├── State exists ──────────────────┐
        │                                  ▼
        │                         ┌─────────────────────┐
        │                         │  REVIEW & IMPROVE   │
        │                         │  - Link to skill    │
        │                         │  - Capture feedback │
        │                         │  - Update skill     │
        │                         └─────────────────────┘
        │
        └── No state ─────────────┐
                                  ▼
                            ┌───────────┐
                            │   Done    │
                            │ (fix only)│
                            └───────────┘

Why Manual Trigger?

Skills are stateless - they don't have access to conversation history. When you say "fix the report", skill-master doesn't automatically know:
- Which skill created it
- What the original execution looked like

By explicitly invoking /skill-master, you signal that:
1. This relates to a skill-generated output
2. You want the skill improved, not just the output fixed

State Tracking

Skill Master maintains execution state in .skill-master-state.json:

{
  "request": "create a market analysis report",
  "skill_name": "market-research-reports",
  "skill_path": ".claude/skills/market-research-reports",
  "outputs": ["./reports/market-analysis.md"],
  "state": "COMPLETE"
}

This enables linking your feedback to the skill that produced the output.


Configuration

Skills can be stored in two locations:

Location Scope Use Case
.claude/skills/ Project Team-shared, committed to git
~/.claude/skills/ Personal Available across all projects

Contributing

Contributions welcome! Areas for improvement:

  • Additional skill templates
  • Better search algorithms
  • More improvement patterns
  • Integration with other agent frameworks

Acknowledgements

Skill Master is built for and relies on the following projects:

Project Description Link
Claude Code The AI coding agent platform this skill is built for Anthropic
Anthropic Skills Official skills repository (Tier 1 source) anthropics/skills
K-Dense Scientific Skills 139 scientific skills including market research (Tier 1 source) K-Dense-AI/claude-scientific-skills
Awesome Claude Skills Curated list of Claude skills (Tier 1 source) ComposioHQ/awesome-claude-skills

License

MIT License - See LICENSE


# Supported AI Coding Agents

This skill is compatible with the SKILL.md standard and works with all major AI coding agents:

Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.