home / skills / cyangzhou / -2--project-yunshu- / skill_factory

skill_factory skill

/skills/skill_factory

This skill automatically generates new skill modules by creating directories under skills/, supports multiple templates, and activates instantly for rapid

npx playbooks add skill cyangzhou/-2--project-yunshu- --skill skill_factory

Review the files below or copy the command above to add this skill to your agents.

Files (3)
SKILL.md
1.5 KB
---
id: skill-factory
name: 技能工厂
version: 1.0.0
author: Yunshu
description: 元技能:用于快速生成新的标准技能模组。
icon: 🏭
color: "#607D8B"
tags: [system, meta, generator]
entry_point: tools.SkillFactory
workspace_root: ../
input:
  - name: skill_id
    type: text
    label: 技能ID (英文)
    placeholder: "例如: character_generator (使用下划线命名)"
    required: true
    default: ""
  
  - name: display_name
    type: text
    label: 显示名称
    placeholder: "例如: 角色生成器"
    required: true
    default: ""

  - name: description
    type: textarea
    label: 技能描述
    placeholder: "简要描述这个技能的功能..."
    required: true
    default: ""

  - name: template_type
    type: select
    label: 模板类型
    options:
      - label: 基础模板 (Basic)
        value: basic
      - label: 内容生成器 (Generator)
        value: generator
      - label: 数据处理器 (Data Process)
        value: data_process
    required: true
    default: "basic"
---

# 技能工厂说明

这是一个特殊的“元技能”,用于生产其他技能。

## 功能
- **自动创建目录**:在 `skills/` 目录下创建新的技能文件夹。
- **多模板支持**:支持生成基础、生成器、数据处理等不同类型的技能结构。
- **即时生效**:创建后刷新页面即可看到新技能。

## 使用方法
1. 输入 **技能ID**(如 `my_new_tool`)。
2. 输入 **显示名称**(如 `我的新工具`)。
3. 选择 **模板类型**。
4. 点击 **执行**。

Overview

This skill is a meta-skill for rapidly generating new standard skill modules. It automates the creation of a ready-to-use skill folder and scaffolding so you can focus on logic instead of boilerplate. The generator supports multiple templates and produces instantly available modules in the skills directory.

How this skill works

You provide a skill ID, a display name, and choose a template type. The tool creates a new folder under skills/, writes the selected template files (basic, generator, or data-processing), and wires minimal metadata. After creation, refresh the interface to see the new skill available for editing or activation.

When to use it

  • Bootstrapping a new skill to avoid repetitive setup work
  • Creating consistent structure across multiple team members or projects
  • Prototyping an idea quickly with a ready scaffold
  • Generating specialized templates for data processing or automation tasks
  • Standardizing naming and metadata for cataloged skills

Best practices

  • Choose descriptive, machine-friendly skill IDs (lowercase, underscores)
  • Pick the template that matches the intended behavior to avoid manual refactors
  • Review and customize metadata and permission hints immediately after generation
  • Keep templates minimal and composition-friendly so generated modules are easy to extend
  • Run a quick validation or smoke test after creation to confirm files and metadata are correct

Example use cases

  • Create a new utility skill (id: my_new_tool) with a basic template in seconds
  • Spawn a generator-type skill for programmatic content creation workflows
  • Produce a data-processing skill scaffold with input/output hooks for ETL tasks
  • Onboard a team member by providing uniform skill structure and examples
  • Rapidly prototype and iterate on experimental agents using the generator template

FAQ

What inputs are required to generate a skill?

You need a skill ID, a display name, and a chosen template type.

Where are generated skills placed?

New skill folders are created under the skills/ directory and become visible after refreshing the interface.