SuperAPI AI Directory

meta-skill-manager

General & other

View repository

Updated 10-16 01:19

About this skill

Meta Skill Manager

Task Objectives

  • This Skill is used for: full lifecycle skill management, including creation, modification, updating, version control, as well as skill integration, splitting, and workflow orchestration
  • Capabilities include:
    • Skill lifecycle management (creation, modification, updating, version control)
    • Skill integration (merging 2+ skills into a new skill)
    • Skill splitting (decomposing skill capabilities into multiple new skills)
    • Workflow generation (orchestrating multiple skills into a standardized WORKFLOW.md)
  • Trigger conditions:
    • The user needs to create, modify, update, or manage skill versions
    • The user needs to integrate multiple skills into one new skill
    • The user needs to split a skill into multiple independent skills
    • The user needs to generate a workflow document based on skills and objectives

Operation Steps

I. Skill Lifecycle Management

1.1 Creating a New Skill

  1. Requirements Analysis

    • Understand the user's objectives, use cases, and constraints
    • Identify the skill's core capabilities and boundaries
    • Determine trigger conditions and applicable scenarios
  2. Define Skill Structure

    • Determine the skill name (lowercase letters + hyphens, not ending with -skill)
    • Write the skill description (100-150 characters, single line, including core value and trigger scenarios)
    • Define the capability list (capabilities)
    • Design operation steps (standard process and optional branches)
  3. Write SKILL.md

    • Generate the YAML front matter (name, description, optional dependencies)
    • Write the Markdown body (task objectives, operation steps, resource index, notes)
    • Add usage examples
  4. Standardization Check

    • Check naming conventions
    • Verify description length and format
    • Ensure the directory structure conforms to the standard

1.2 Modifying an Existing Skill

  1. Read and Analyze

    • Read the existing SKILL.md content
    • Analyze the current capabilities, process, and structure
    • Understand the design intent and constraints
  2. Determine the Scope of Modification

    • Clarify the parts that need modification (capabilities, process, description, resources, etc.)
    • Assess the impact of the modification on existing capabilities
    • Identify related content that needs to be updated in sync
  3. Execute the Modification

    • Modify the target content
    • Update all related parts in sync
    • Maintain format and structural consistency
  4. Verify the Modification

    • Ensure the modified skill is still usable
    • Check whether new issues have been introduced
    • Verify document completeness

1.3 Updating a Skill

  1. Assess Update Requirements

    • Analyze the differences between the new requirements and the existing skill
    • Determine whether it is an incremental update or a refactor
    • Assess the scope of impact of the update
  2. Design the Update Plan

    • Plan new capabilities and functions
    • Identify the parts that need adjustment
    • Develop a smooth transition strategy
  3. Execute updates

    • Implement new features
    • Adjust existing processes
    • Update documentation and examples

1.4 Version Control

  1. Determine the type of version change

    • Breaking changes (major): remove capabilities, interface changes → version number +1.0.0
    • New features (minor): add capabilities, no breaking compatibility → version number +0.1.0
    • Bug fixes (patch): bug fixes, documentation updates → version number +0.0.1
  2. Record change contents

    • List of added capabilities
    • Description of modified contents
    • Description of removed contents
    • Impact scope analysis
  3. Update version information

    • Update the version field in metadata
    • Add changelog records
    • Update related descriptions in SKILL.md

II. Skill Integration

2.1 Analyze skills to be integrated

  1. Understand each skill one by one

    • Read each skill's SKILL.md
    • Extract core capabilities
    • Understand input and output interfaces
    • Identify dependencies and constraints
  2. Identify capability overlap and complementarity

    • Find duplicate capabilities (consider deduplication)
    • Identify complementary capabilities (enhanced combinations)
    • Discover capability conflicts (need reconciliation)
  3. Assess compatibility

    • Check naming conflicts
    • Analyze dependency conflicts
    • Assess interface compatibility

2.2 Design integration plan

  1. Choose integration strategy

    • Sequential integration: Skills execute in a fixed order (the output of the previous one serves as the input of the next)
    • Parallel integration: Skills execute simultaneously, results are merged
    • Nested integration: Embed sub-skills into specific positions of the main skill
    • Hybrid integration: Combine multiple strategies
  2. Design the new skill structure

    • Determine the new skill name (reflecting integration characteristics)
    • Write an integration description (explaining which capabilities are integrated)
    • Define the capability list after integration
    • Design the operation process after integration
  3. Define interfaces and mappings

    • Design a unified input interface
    • Define the data mapping relationships between skills
    • Design the output format
    • Plan the error handling mechanism

2.3 Generate the integrated skill

  1. Create SKILL.md

    • Write the integrated skill definition
    • Explain the original skills that were integrated
    • Describe the integration logic and process
    • Add usage examples
  2. Refer to integration patterns

    • See references/composition-patterns.md to learn about combination patterns such as sequential, parallel, and nested
    • Choose an appropriate integration strategy according to the scenario

III. Skill Splitting

3.1 Analyze the original skill

  1. Extract the capability list

    • Extract all capabilities from capabilities
    • Extract sub-processes from operation steps
    • Extract independent functions from resource index
  2. Assess splitting feasibility

    • Identify capabilities that can run independently
    • Assess dependencies between capabilities
    • Determine the minimum splitting granularity
  3. Identify splitting points

    • Split by functional module (e.g., data extraction vs data analysis)
    • Split by usage scenario (e.g., batch processing vs real-time processing)
    • Split by complexity (e.g., simple vs advanced features)

3.2 Design the splitting plan

  1. Determine the number and positioning of new skills

    • Split into 2+ independent skills
    • Define clear responsibilities for each new skill
    • Ensure each skill has independent usage value
  2. Allocate capabilities and resources

    • Allocate capabilities to each new skill
    • Allocate related resources (scripts, reference documents, assets)
    • Define collaboration relationships between new skills
  3. Design interface contracts

    • Define invocation interfaces between skills
    • Design data transfer formats
    • Clarify error handling mechanisms

3.3 Generate the split skills

  1. Create SKILL.md for each new skill

    • Write an independent skill definition
    • Describe the splitting source (optional)
    • Define an independent usage process
    • Add independent usage examples
  2. Update the original skill (optional)

    • Optionally retain the original skill as a combined entry point
    • Or mark the original skill as deprecated
    • Provide a migration guide

IV. Workflow generation

4.1 Understand the goal and skills

  1. Clarify the work goal

    • Understand the final goal the user wants to achieve
    • Identify key outputs and deliverables
    • Determine constraints (time, resources, quality requirements)
  2. Analyze available skills

    • List all available skills
    • Extract the core capability of each skill
    • Identify the input and output formats of skills
  3. Assess the match between skills and the goal

    • Identify directly matching skills
    • Identify skills that need to be combined
    • Discover capability gaps (new skills may need to be created)

4.2 Design the workflow

  1. Determine the workflow type

    • Linear workflow: steps are executed sequentially
    • Branching workflow: select different paths based on conditions
    • Parallel workflow: multiple steps are executed simultaneously
    • Loop workflow: includes iterative or repeated steps
    • Hybrid workflow: combines multiple types
  2. Orchestrate the skill execution order

    • Determine skill execution dependencies
    • Design step order and conditions
    • Define parallel and serial steps
  3. Design data flow

    • Define the input for each step
    • Determine data transfer between steps
    • Design intermediate result storage

4.3 Generate WORKFLOW.md

  1. Write the WORKFLOW.md structure
---
name: <workflow-name>
description: <工作流描述>
target: <目标说明>
skills_required: [skill-1, skill-2, skill-3]
---

# <工作流名称>

## 目标
<详细描述工作流要达成的目标>

## 前置条件
- <条件1>
- <条件2>

## 技能清单
- <skill-1>: <用途说明>
- <skill-2>: <用途说明>

## 执行流程

### 步骤 1: <步骤名称>
- **使用技能**: <skill-name>
- **输入**: <输入描述>
- **操作**: <具体操作说明>
- **输出**: <输出描述>
- **下一步**: <下一步骤>

### 步骤 2: <步骤名称>
...

## 异常处理
- <异常情况1>: <处理方式>
- <异常情况2>: <处理方式>

## 输出交付物
- <交付物1>
- <交付物2>

## 示例
<完整示例说明>
  1. Describe each step in detail

    • Specify the skills used
    • Describe the specific operations
    • Define inputs and outputs
    • Explain the relationships between steps
  2. Add exception handling

    • Identify possible exceptions
    • Design fault-tolerance mechanisms
    • Provide fallback plans
  3. Refer to workflow patterns


Resource Index

Notes

  • Fully utilize the agent's language understanding, reasoning, and content generation capabilities to complete all tasks
  • Skill lifecycle management emphasizes standardization, following standard formats and version control
  • Skill integration emphasizes complementary capabilities and interface compatibility, avoiding functional duplication and conflicts
  • Skill splitting emphasizes the single responsibility principle, ensuring each new skill has independent value
  • Workflow generation emphasizes operability and completeness, clarifying the input and output of each step
  • All operations are purely natural language guidance, with no script dependencies
  • Maintain format consistency when generating documents to facilitate subsequent maintenance and reuse

Usage Examples

Example 1: Skill Lifecycle Management

The user says "create a data cleaning skill, then update it to add data validation functionality"

  1. Creation Phase:
    • Generate the data-cleaner skill definition
    • Define capabilities: data cleaning, missing value handling, format standardization
    • Write operational steps and examples
  2. Update Phase:
    • Analyze the new requirement: data validation capability
    • Determine it as a minor version update (1.0.0 → 1.1.0)
    • Update capabilities and add the data validation process
    • Update changelog

Example 2: Skill Integration

The user says "integrate the three skills of data cleaning, data analysis, and report generation into one data analysis suite"

  1. Analysis Phase:
    • Read the definitions of the three skills
    • Extract capabilities: cleaning, analysis, visualization
    • Identify sequential dependencies: cleaning → analysis → reporting
  2. Design Phase:
    • Choose a sequential integration strategy
    • Define a unified input interface (raw data)
    • Design data mapping: cleaning output → analysis input → report input
  3. Generation Phase:
    • Create the data-analysis-suite skill
    • Describe the integration logic
    • Provide an end-to-end usage example

Example 3: Skill Splitting

The user says "this data processing skill is too complex, split it into independent cleaning and analysis skills"

  1. Analysis Phase:
    • Extract the capability list of the original skill
    • Identify splittable points: cleaning module vs analysis module
  2. Design Phase:
    • Split into two skills: data-cleaner and data-analyzer
    • Assign capabilities: the cleaning skill handles cleaning, the analysis skill handles analysis
    • Design interface: cleaning output serves as analysis input
  3. Generation phase:
    • Create SKILL.md for each of the two skills
    • Update the original skill as a composite entry point (optional)

Example 4: Workflow generation

The user says "I want to use the data fetching, cleaning, analysis, and reporting skills to complete a market analysis report; help me generate a workflow"

  1. Analysis phase:
    • Goal: Generate a market analysis report
    • Skills: data-fetcher, data-cleaner, data-analyzer, report-generator
  2. Design phase:
    • Determine a linear workflow
    • Orchestration order: fetch → clean → analyze → report
    • Design data flow
  3. Generation phase:
    • Create WORKFLOW.md
    • Describe each step in detail
    • Add exception handling and examples

Example 5: Complex scenario

The user says "Help me manage these skills: create a new skill, integrate two existing skills, and then generate a workflow"

  1. Create skill: skill-a (basic capability)
  2. Integrate skills: integrate skill-a and skill-b into skill-combined
  3. Split skill: split skill-combined into skill-x and skill-y
  4. Generate workflow: use skill-x, skill-y, and skill-c to generate a complete workflow