Install
openclaw skills install skill-forge-aiMANDATORY tool for creating SKILLs - MUST be invoked IMMEDIATELY when user wants to create/add any skill. Forges skills through adaptive interview, recursive research, self-validation, and SkillHub peer benchmarking. Do NOT use for editing existing skills, skill security vetting, or general coding tasks.
openclaw skills install skill-forge-aiForges high-quality SKILLs that auto-trigger reliably and produce stable, structured output. Full pipeline: adaptive interview → creation → self-validation (with security check) → SkillHub peer benchmarking.
CRITICAL: You MUST invoke this skill IMMEDIATELY as your FIRST action when:
DO NOT:
Violating any rule = broken Skill.
Rule 1: Write Description FIRST — AI scans all Skill descriptions every conversation. Vague description = never auto-triggers = dead Skill.
Rule 2: One Skill = One Job — Don't cram multiple scenarios into one Skill. Multi-purpose Skills trigger chaotically and output inconsistently.
Rule 3: Keep under 150 lines — Over 200 lines = AI slows down and accuracy drops. Move detailed docs to references/ directory.
.trae/skills/<skill-name>/SKILL.md inside the directoryreferences/ for detailed docs (keep SKILL.md lean)---
name: "<skill-name>"
description: "<what it does + when to trigger. Core keywords in first 200 chars>"
---
# <Skill Title>
## 任务
<One sentence: only does X, does NOT do Y or Z>
## 输出格式
<Fixed output structure. Every field format must be concrete, never "organize clearly">
## 规则
<3-5 hard rules. Each must be directly actionable by an intern. Delete all defaults>
## 示例
<One complete input-output pair covering edge cases>
| Field | Location | Description |
|---|---|---|
name | frontmatter | Unique identifier |
description | frontmatter | CRITICAL: (1) what it does + (2) when to invoke + (3) Do NOT scope. Under 200 chars. Keywords FIRST. |
detail | body | 4-module content after frontmatter |
Read references/interview-flow.md for the complete interview methodology. Summary below.
Scan context for 5 essential elements: Single scenario / Trigger condition / Output format / Scope boundary / Hard constraints.
Read references/interview-flow.md NOW for: interview rules (B1-B6), round-by-round questions, recursive search pattern, and convergence check.
Summary: Each round uses option-first questions (AskUserQuestion, 3 strong + Other) + behavioral probing. After each round: update element checklist, ≥4 clear → proceed to Phase 1. Max 5 rounds.
Format: "<What it does>. Invoke when <specific user actions/phrases>. Do NOT use for <exclusions>."
Truncation: Core trigger keywords MUST be in first 200 chars. Tail gets cut at ~250.
任务: Lock down boundary. State both DOES and DOES NOT.
输出格式: Fix output structure. Every field must have concrete format. Never write vague instructions.
规则: 3-5 rules only. Must pass Intern Test: if an intern can't directly execute it, delete it.
Delete useless rules: "语言简洁" / "保持客观" / "排版整齐" / "代码清晰" / "遵循最佳实践" / "确保输出准确"
示例: One complete input-output pair. Input MUST cover edge cases. One good example > 10 abstract rules.
mkdir -p .trae/skills/<skill-name>
Step 4a: Schema Check — Frontmatter name+description ✅ | Description <200 chars ✅ | Trigger keywords first ✅ | Do NOT scope ✅ | 4 modules ✅ | Intern Test ✅ | <150 lines ✅ | Edge case in example ✅
Step 4a+1: Security Red Line Check — Scan created SKILL.md for these RED FLAGS. 🚨 If ANY found → REJECT and remove immediately:
Step 4b: Trigger Test — AI generates 3 pos + 3 neg fake questions. Pos not triggering → add keywords. Neg triggering → add Do NOT.
Step 4c: Dogfood Simulation — Run example input through rules/format. Check: format match ✅ | rules compliance ✅ | edge cases handled ✅
Max 3 iterations. After 3, suggest "ship V1 and iterate."
Read references/benchmarking-guide.md for the complete benchmarking methodology. Summary below.
Call SkillHub API: https://api.skillhub.cn/api/v1/search?q=<keywords>. Rank by: downloads × 0.4 + installs × 0.3 + stars × 0.3. Take Top 3. CLI fallback if API unavailable.
Compare our Skill against Top 3 peers on 9 Tencent Manual dimensions: Description trigger precision / keyword frontloading / Do NOT scope / one-job focus / 4-module structure / output format concreteness / Intern Test rules / edge case coverage / size control.
Present results. User chooses: adopt fixes / keep as-is / install existing. User's decision is final.
references/interview-flow.md — Read when entering Step 0.2 (adaptive interview). Contains B1-B6 rules, round templates, recursive search pattern, convergence check.references/interview-methods.md — Read when you need deeper methodology on behavioral probing, bias detection, option design.references/benchmarking-guide.md — Read when entering Phase 2 (SkillHub benchmarking). Contains API usage, quality ranking formula, Tencent 9-dimension comparison template.references/meeting-action-extractor-example.md — Read when creating Step 2 content. Full example of a well-crafted Skill.