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