返回顶部
c

create-skill

Guide for creating and importing skills. Use when users need to create or import skills.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
366
下载量
0
收藏
概述
安装方式
版本历史

create-skill

# Complete Workflow ## When Creating Skills 1. Follow the skill creation guide to accurately understand the skill and generate a skill folder that meets user requirements 2. Complete skill registration according to the Easyclaw Skill Registration Guide 3. Inform the user of completion status ## When Importing Skills 1. Read and review the skill package according to the Skill Import Guide 2. Complete skill registration according to the Easyclaw Skill Registration Guide 3. Inform the user of completion status # Skill Creation Guide A guide for creating effective skills that extend Agent capabilities through specialized knowledge, workflows, and tool integration. ## About Skills Skills are modular, self-contained packages that extend Agent capabilities by providing specialized knowledge, workflows, and tools. Think of them as "onboarding guides" for specific domains or tasks. ### What Skills Provide 1. Specialized Workflows - Multi-step processes for specific domains 2. Tool Integration - Instructions for using specific file formats or APIs 3. Domain Expertise - Company-specific knowledge, patterns, business logic 4. Bundled Resources - Scripts, references, and assets for complex and repetitive tasks ## Understanding Skills Through Concrete Examples To create effective skills, you should clearly understand how the skill will be used. This can come from direct examples provided by users or by generating examples and validating them with users. For example, when building an image editing skill, relevant questions include: - "What features should the image editing skill support? Editing, rotation, or others?" - "Can you provide examples of how this skill would be used?" - "I can imagine users might say 'remove red-eye from this image' or 'rotate the image 90 degrees'. Are there other trigger patterns?" - "What kind of user requests should trigger this skill?" To avoid overwhelming users, don't ask too many questions at once. Ask the most important questions first, then follow up as needed for better effectiveness. ## Progressive Disclosure Principle **The 200-line rule is critical.** SKILL.md must be less than 200 lines. If more content is needed, split it into `references/` files. ### Three-Tier Loading System 1. **Metadata (name + description)** - Always in context (~100 words) 2. **SKILL.md Body** - When skill is triggered (<200 lines, ideally <500 lines for optimal performance) 3. **Bundled Resources** - As needed by Agent (unlimited) ### Why Progressive Disclosure Matters - Initial context load reduced by 85% - Activation time drops from 500ms+ to under 100ms - Agent only loads what's needed when needed - Skills remain maintainable and focused ## Skill Structure ``` skill-name/ ├── SKILL.md (Required, <200 lines) │ ├── YAML Frontmatter (Required) │ │ ├── name: (Required) │ │ └── description: (Required) │ └── Markdown Instructions (Required) └── Bundled Resources (Optional) ├── scripts/ - Executable code ├── references/ - Documentation loaded on-demand └── assets/ - Files used in output ``` ## Core Principles ### Brevity is Key Context window is a shared resource. Your skill shares it with everything else the Agent needs. Be concise and challenge every piece of information: - Does the Agent really need this explanation? - Can I assume the Agent knows this? - Is this paragraph worth its token cost? ### Set Appropriate Degrees of Freedom - **High Freedom**: Text-based instructions for tasks with multiple valid approaches - **Medium Freedom**: Pseudocode or scripts with parameters - **Low Freedom**: Specific scripts for fragile operations with few or no parameters ### Test with All Models Skills complement models, so effectiveness depends on the underlying model. Test your skills with all models you plan to use. ## References For detailed guidance, see: - `references/progressive-disclosure.md` - 200-line rule and reference patterns - `references/skill-structure.md` - SKILL.md format and frontmatter details - `references/examples.md` - Good skill examples - `references/best-practices.md` - Comprehensive best practices guide # Skill Import Guide ## Step 1: Read Skill Content Based on User-Provided Skill Package Type - If it's a SKILL.md file, read it directly - If it's a folder, read all files inside - If it's a zip file, extract it first then read all files (follow the Skill Package Extraction Guide for extraction method) ## Step 2: Security Review - Check if skill content complies with security standards - Check if skill content complies with ethical standards - Check if skill content complies with legal standards - Check if skill content contains malicious code or virus behavior **If security review fails, inform the user immediately, end the skill import process, and terminate the task** # Skill Package Extraction Guide (Strictly Follow) Execute the `create-skill/scripts/easyclaw_unzip_skill.py` script to complete skill package extraction Usage example: ``` python yuanqi_ai_bot_unzip_skill.py "zip_path" ``` Parameter explanation: zip_path: Path to the zip file to be extracted **Special emphasis**: For extracting skill packages, you must only follow this extraction guide and run this script. Under no circumstances should you generate other scripts to complete the extraction! # Easyclaw Skill Registration Guide (Strictly Follow) Execute the `create-skill/scripts/easyclaw_register_skill.py` script to complete skill registration Usage example: ``` python easyclaw_register_skill.py <source_folder_path> ``` Parameter explanation: source_folder_path: Path to the skill folder to be registered to Easyclaw **Special emphasis**: For registering Easyclaw skills, you must only follow this registration guide and run this script. Under no circumstances should you generate other scripts to complete the registration!

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 create-skill-1776014537 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 create-skill-1776014537 技能

通过命令行安装

skillhub install create-skill-1776014537

下载 Zip 包

⬇ 下载 create-skill v1.0.0

文件大小: 14.03 KB | 发布时间: 2026-4-13 09:54

v1.0.0 最新 2026-4-13 09:54
- Initial release with comprehensive guides for creating and importing skills.
- Introduces detailed instructions on skill structure, metadata requirements, and best practices for brevity and clarity.
- Outlines strict procedures for skill package extraction and registration using dedicated scripts.
- Includes security, ethical, and legal review process for importing external skills.
- Emphasizes the "200-line rule" for SKILL.md and the progressive disclosure principle for optimized agent performance.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部