Advanced Skill Creator
Advanced skill creation handler that executes the official 5-step research flow with comprehensive analysis and best practices. Ensures proper methodology and standards compliance by following the complete research process, applicable to all timeframes and use cases.
When to use
- When user mentions "写一个触发", "写skill", "claw skill", "openclaw skill", "moltbot skill", "创建技能", or "写一个让它..."
- When proper skill creation methodology needs to be followed according to official standards
- When ensuring adherence to 5-step research flow (documentation, ClawHub, community, fusion, output)
- For comprehensive skill analysis and creation with best practices
5-Step Research Flow Execution
Step 1: Consult Official Documentation
Comprehensively access official documentation:
Extract key information:
- SKILL.md format requirements
- YAML frontmatter specifications (name, description, when, examples, metadata.openclaw.*, requires)
- Trigger mechanisms (natural language triggers, when conditions)
- Tool calling conventions (exec, browser, read, write, nodes, MCP)
- Loading precedence (workspace > ~/.openclaw/skills > bundled)
- ClawHub installation methods
- Breaking changes (latest versions)
Step 2: Research Related Public Skills on ClawHub/ClawdHub
Thoroughly query ClawHub/ClawdHub for relevant skills:
- Search keywords: weather, reminder, schedule, translate, image, cron, memory, task-tracker, notification, backup, automation
- Select 2-4 most relevant skills with high downloads/recent updates/community ratings
- Analyze:
- Trigger descriptions (when, examples)
- YAML metadata
- Pure Markdown vs. scripts/ structure
- Dependency declarations
- Error handling recommendations
- Community feedback (why popular or criticized)
- Security considerations
Step 3: Search Best Practices
Use comprehensive keyword combinations for GitHub searches:
- "OpenClaw SKILL.md" OR "ClawDBot skill example" OR "Moltbot create skill"
- "SKILL.md" "when:" OR "metadata.openclaw" site:github.com
- "clawhub install" "custom skill" OR "openclaw skill tutorial"
- "skill security" OR "prompt injection prevention" OR "skill best practices"
Focus on:
- Active GitHub repositories
- Recent commits
- Blog/Reddit/X content
- Security best practices
- Known security pitfalls (prompt injection, exec abuse)
Step 4: Solution Fusion & Comparison
Comprehensively summarize implementation approaches from all three sources:
Compare across key dimensions:
- Trigger precision (false positive rate)
- Maintainability/readability
- Loading speed/memory impact
- Compatibility (different gateways/channels/versions)
- Security & error isolation
- Upgrade friendliness (dependency on specific tools)
- Dependency management complexity
- Performance optimization
- Error handling robustness
Select optimal solution for current context with 4-7 clear reasons prioritized:
- Official documentation > High-quality ClawHub skills > Active community solutions > Self-optimization
Step 5: Proper Output Structure
Output must follow exact structure without adding extra headers or showing raw search logs:
- Use the exact headings: 【最终推荐方案】, 【文件结构预览】, 【完整文件内容】
- Provide complete file contents with proper formatting
- Include tree-style directory structure preview
- Use proper YAML frontmatter in SKILL.md examples
- Ensure comprehensive documentation
Resource Utilization
Documentation Features Utilized
- YAML frontmatter format (name, description, when, examples, metadata.openclaw.*)
- Trigger mechanism definition (when field)
- Example specification (examples field)
- Metadata definition (metadata.openclaw.requires)
- Standardized skill description structure
Skills Referenced
- system-monitor: Structure and functional organization
- security-monitor: Metadata definition format
- integrated-system-monitor: Script organization and implementation
- Other existing skills: YAML frontmatter best practices
Community Practices Integrated
- GitHub popular OpenClaw skill project structures
- Community-recommended security practices (input validation, error handling)
- Optimal metadata configuration methods
- Effective trigger word definition patterns
Custom Scripts Created
- advanced_skill_processor.py: Implements complete 5-step research flow automation
- Automated documentation query, public skill research, best practice search
- Solution fusion and comparison functionality
- Standardized output generation
- Error handling and logging features
Implementation Requirements
- Execute all 5 steps in strict sequence - no skipping allowed
- Do not rely on memory or "approximately correct" code
- Demonstrate research → comparison → selection logical chain
- Show evidence of consulting official documentation
- Include proper metadata and security considerations
- Provide complete, functional skill implementations with proper structure
- Ensure all outputs follow the exact template structure required
- Apply universally regardless of timeframe or version
- Include security best practices and error handling
- Provide comprehensive examples and use cases
- Include system prompt integration for enhanced AI interaction
- Incorporate thinking model framework for improved decision-making
System Prompt Integration
When creating new skills, include system prompt elements that enhance AI interaction:
"You are now an OpenClaw (formerly ClawDBot / Moltbot) skill development expert, implementing advanced thinking models for enhanced decision-making. Apply structured cognitive processing while balancing speed and accuracy based on specific situational requirements."
Skill Creation Guidelines
- Apply the multi-stage cognitive processing pipeline during skill design
- Integrate memory systems for continuous learning and improvement
- Balance speed optimization with accuracy enhancement in skill functionality
- Include appropriate system prompts for AI assistants using the skill
- Document decision-making processes for future reference and learning
1---2name: advanced-skill-creator3description: Advanced OpenClaw skill creation handler that executes the official 5-step research flow with comprehensive analysis and best practices. Ensures proper methodology when users request to create or modify OpenClaw/Moltbot/ClawDBot skills following official standards.4---5
6# Advanced Skill Creator
7
8Advanced skill creation handler that executes the official 5-step research flow with comprehensive analysis and best practices. Ensures proper methodology and standards compliance by following the complete research process, applicable to all timeframes and use cases.
9
10## When to use
11- When user mentions "写一个触发", "写skill", "claw skill", "openclaw skill", "moltbot skill", "创建技能", or "写一个让它..."
12- When proper skill creation methodology needs to be followed according to official standards
13- When ensuring adherence to 5-step research flow (documentation, ClawHub, community, fusion, output)
14- For comprehensive skill analysis and creation with best practices
15
16## 5-Step Research Flow Execution
17
18### Step 1: Consult Official Documentation
19Comprehensively access official documentation:
20- https://docs.clawd.bot/tools/skills
21- https://docs.openclaw.ai/tools/skills
22- /tools/clawhub
23- /tools/skills-config
24
25Extract key information:
26- SKILL.md format requirements
27- YAML frontmatter specifications (name, description, when, examples, metadata.openclaw.*, requires)
28- Trigger mechanisms (natural language triggers, when conditions)
29- Tool calling conventions (exec, browser, read, write, nodes, MCP)
30- Loading precedence (workspace > ~/.openclaw/skills > bundled)
31- ClawHub installation methods
32- Breaking changes (latest versions)
33
34### Step 2: Research Related Public Skills on ClawHub/ClawdHub
35Thoroughly query ClawHub/ClawdHub for relevant skills:
36- Search keywords: weather, reminder, schedule, translate, image, cron, memory, task-tracker, notification, backup, automation
37- Select 2-4 most relevant skills with high downloads/recent updates/community ratings
38- Analyze:
39 - Trigger descriptions (when, examples)
40 - YAML metadata
41 - Pure Markdown vs. scripts/ structure
42 - Dependency declarations
43 - Error handling recommendations
44 - Community feedback (why popular or criticized)
45 - Security considerations
46
47### Step 3: Search Best Practices
48Use comprehensive keyword combinations for GitHub searches:
49- "OpenClaw SKILL.md" OR "ClawDBot skill example" OR "Moltbot create skill"
50- "SKILL.md" "when:" OR "metadata.openclaw" site:github.com
51- "clawhub install" "custom skill" OR "openclaw skill tutorial"
52- "skill security" OR "prompt injection prevention" OR "skill best practices"
53
54Focus on:
55- Active GitHub repositories
56- Recent commits
57- Blog/Reddit/X content
58- Security best practices
59- Known security pitfalls (prompt injection, exec abuse)
60
61### Step 4: Solution Fusion & Comparison
62Comprehensively summarize implementation approaches from all three sources:
63Compare across key dimensions:
64- Trigger precision (false positive rate)
65- Maintainability/readability
66- Loading speed/memory impact
67- Compatibility (different gateways/channels/versions)
68- Security & error isolation
69- Upgrade friendliness (dependency on specific tools)
70- Dependency management complexity
71- Performance optimization
72- Error handling robustness
73
74Select optimal solution for current context with 4-7 clear reasons prioritized:
75- Official documentation > High-quality ClawHub skills > Active community solutions > Self-optimization
76
77### Step 5: Proper Output Structure
78Output must follow exact structure without adding extra headers or showing raw search logs:
79- Use the exact headings: 【最终推荐方案】, 【文件结构预览】, 【完整文件内容】
80- Provide complete file contents with proper formatting
81- Include tree-style directory structure preview
82- Use proper YAML frontmatter in SKILL.md examples
83- Ensure comprehensive documentation
84
85## Resource Utilization
86
87### Documentation Features Utilized
88- YAML frontmatter format (name, description, when, examples, metadata.openclaw.*)
89- Trigger mechanism definition (when field)
90- Example specification (examples field)
91- Metadata definition (metadata.openclaw.requires)
92- Standardized skill description structure
93
94### Skills Referenced
95- system-monitor: Structure and functional organization
96- security-monitor: Metadata definition format
97- integrated-system-monitor: Script organization and implementation
98- Other existing skills: YAML frontmatter best practices
99
100### Community Practices Integrated
101- GitHub popular OpenClaw skill project structures
102- Community-recommended security practices (input validation, error handling)
103- Optimal metadata configuration methods
104- Effective trigger word definition patterns
105
106### Custom Scripts Created
107- advanced_skill_processor.py: Implements complete 5-step research flow automation
108 - Automated documentation query, public skill research, best practice search
109 - Solution fusion and comparison functionality
110 - Standardized output generation
111 - Error handling and logging features
112
113## Implementation Requirements
1141. Execute all 5 steps in strict sequence - no skipping allowed
1152. Do not rely on memory or "approximately correct" code
1163. Demonstrate research → comparison → selection logical chain
1174. Show evidence of consulting official documentation
1185. Include proper metadata and security considerations
1196. Provide complete, functional skill implementations with proper structure
1207. Ensure all outputs follow the exact template structure required
1218. Apply universally regardless of timeframe or version
1229. Include security best practices and error handling
12310. Provide comprehensive examples and use cases
12411. Include system prompt integration for enhanced AI interaction
12512. Incorporate thinking model framework for improved decision-making
126
127## System Prompt Integration
128
129When creating new skills, include system prompt elements that enhance AI interaction:
130
131"You are now an OpenClaw (formerly ClawDBot / Moltbot) skill development expert, implementing advanced thinking models for enhanced decision-making. Apply structured cognitive processing while balancing speed and accuracy based on specific situational requirements."
132
133### Skill Creation Guidelines
134- Apply the multi-stage cognitive processing pipeline during skill design
135- Integrate memory systems for continuous learning and improvement
136- Balance speed optimization with accuracy enhancement in skill functionality
137- Include appropriate system prompts for AI assistants using the skill
138- Document decision-making processes for future reference and learning