SKILL.md फ़ाइल होती है।
OpenClaw कई roots से skills को एक निर्धारित precedence order में लोड करता है।
अपनी पहली skill बनाएँ
Create the skill directory
Skills आपके workspace के संगठन के लिए आप skills को subfolders में समूहित कर सकते हैं — फिर भी skill का नाम
skills/ फ़ोल्डर में रहती हैं। अपनी
नई skill के लिए एक डायरेक्टरी बनाएँ:SKILL.md frontmatter से तय होता है, फ़ोल्डर path से नहीं:Write SKILL.md
डायरेक्टरी के अंदर OpenClaw डिफ़ॉल्ट रूप से skills roots के अंतर्गत
SKILL.md बनाएँ। frontmatter metadata परिभाषित करता है;
body एजेंट को निर्देश देता है।SKILL.md फ़ाइलों को देखता है। यदि
watcher अक्षम है या आप किसी मौजूदा session को जारी रख रहे हैं, तो एक नया
session शुरू करें ताकि एजेंट को refreshed सूची मिल सके:SKILL.md संदर्भ
आवश्यक fields
| Field | Description |
|---|---|
name | lowercase अक्षरों, अंकों और hyphens वाला unique slug |
description | एजेंट और discovery output में दिखाया जाने वाला एक-पंक्ति विवरण |
वैकल्पिक frontmatter keys
| Field | Default | Description |
|---|---|---|
user-invocable | true | skill को user slash command के रूप में expose करें |
disable-model-invocation | false | skill को एजेंट के system prompt से बाहर रखें (/skill के ज़रिए फिर भी चलता है) |
command-dispatch | — | model को bypass करते हुए slash command को सीधे tool पर route करने के लिए tool पर set करें |
command-tool | — | command-dispatch: tool set होने पर invoke किया जाने वाला tool नाम |
command-arg-mode | raw | tool dispatch के लिए raw args string को tool तक forward करता है |
homepage | — | macOS Skills UI में “Website” के रूप में दिखाया जाने वाला URL |
requires.bins, requires.env, आदि) के लिए देखें
Skills — Gating।
{baseDir} का उपयोग
skill body में {baseDir} का उपयोग करके hardcoded paths के बिना skill
डायरेक्टरी के अंदर की फ़ाइलों को reference करें:
conditional activation जोड़ना
अपनी skill को gate करें ताकि वह केवल तब load हो जब उसकी dependencies उपलब्ध हों:Gating options
Gating options
| Key | Description |
|---|---|
requires.bins | सभी binaries PATH पर मौजूद होनी चाहिए |
requires.anyBins | कम से कम एक binary PATH पर मौजूद होनी चाहिए |
requires.env | हर env var process या config में मौजूद होना चाहिए |
requires.config | हर openclaw.json path truthy होना चाहिए |
os | Platform filter: ["darwin"], ["linux"], ["win32"] |
always | सभी gates छोड़ने और skill को हमेशा शामिल करने के लिए true set करें |
Environment and API keys
Environment and API keys
openclaw.json में किसी skill entry से API key जोड़ें:Skill Workshop के ज़रिए प्रस्ताव दें
agent-drafted skills के लिए या जब आप किसी skill के live होने से पहले operator review चाहते हों,SKILL.md सीधे लिखने के बजाय Skill Workshop proposals का उपयोग करें।
--proposal-dir का उपयोग करें:
PROPOSAL.md होना चाहिए। Support files assets/,
examples/, references/, scripts/, या templates/ में जा सकती हैं।
review के बाद:
ClawHub पर publish करना
Ensure your SKILL.md is complete
सुनिश्चित करें कि
name, description, और कोई भी metadata.openclaw gating fields
set हैं। यदि आपके पास project page है तो homepage URL जोड़ें।Install the ClawHub skill
ClawHub skill current publish command shape और आवश्यक
metadata को document करती है:
Publish
Best practices
संबंधित
Skills reference
Loading order, gating, allowlists, और SKILL.md format।
Skill Workshop
agent-drafted skills के लिए proposal queue।
Skills config
पूरा
skills.* config schema।ClawHub
public registry पर skills browse और publish करें।
Building plugins
Plugins उन tools के साथ skills ship कर सकते हैं जिन्हें वे document करते हैं।