{"id":280,"date":"2026-03-21T22:47:25","date_gmt":"2026-03-21T14:47:25","guid":{"rendered":"https:\/\/pa.yingzhi8.cn\/index.php\/2026\/03\/21\/tools-creating-skills\/"},"modified":"2026-03-21T23:08:56","modified_gmt":"2026-03-21T15:08:56","slug":"tools-creating-skills","status":"publish","type":"post","link":"https:\/\/pa.yingzhi8.cn\/index.php\/2026\/03\/21\/tools-creating-skills\/","title":{"rendered":"\u521b\u5efa Skills"},"content":{"rendered":"<h1>\u521b\u5efa Skills<\/h1>\n<h1>\u521b\u5efa\u81ea\u5b9a\u4e49 Skills \ud83d\udee0<\/h1>\n<p>OpenClaw \u88ab\u8bbe\u8ba1\u4e3a\u6613\u4e8e\u6269\u5c55\u3002&#8221;Skills&#8221;\u662f\u4e3a\u4f60\u7684\u52a9\u624b\u6dfb\u52a0\u65b0\u529f\u80fd\u7684\u4e3b\u8981\u65b9\u5f0f\u3002<\/p>\n<h2>\u4ec0\u4e48\u662f Skill\uff1f<\/h2>\n<p>Skill \u662f\u4e00\u4e2a\u5305\u542b <code>SKILL.md<\/code> \u6587\u4ef6\uff08\u4e3a LLM \u63d0\u4f9b\u6307\u4ee4\u548c\u5de5\u5177\u5b9a\u4e49\uff09\u7684\u76ee\u5f55\uff0c\u53ef\u9009\u5305\u542b\u4e00\u4e9b\u811a\u672c\u6216\u8d44\u6e90\u3002<\/p>\n<h2>\u5206\u6b65\u6307\u5357\uff1a\u4f60\u7684\u7b2c\u4e00\u4e2a Skill<\/h2>\n<h3>1. \u521b\u5efa\u76ee\u5f55<\/h3>\n<p>Skills \u4f4d\u4e8e\u4f60\u7684\u5de5\u4f5c\u533a\u4e2d\uff0c\u901a\u5e38\u662f <code>~\/.openclaw\/workspace\/skills\/<\/code>\u3002\u4e3a\u4f60\u7684 Skill \u521b\u5efa\u4e00\u4e2a\u65b0\u6587\u4ef6\u5939\uff1a<\/p>\n<p>&#8220;`bash  theme={&#8220;theme&#8221;:{&#8220;light&#8221;:&#8221;min-light&#8221;,&#8221;dark&#8221;:&#8221;min-dark&#8221;}}<br \/>\nmkdir -p ~\/.openclaw\/workspace\/skills\/hello-world<\/p>\n<pre><code>\n### 2. \u5b9a\u4e49 `SKILL.md`\n\n\u5728\u8be5\u76ee\u5f55\u4e2d\u521b\u5efa\u4e00\u4e2a `SKILL.md` \u6587\u4ef6\u3002\u6b64\u6587\u4ef6\u4f7f\u7528 YAML frontmatter \u4f5c\u4e3a\u5143\u6570\u636e\uff0c\u4f7f\u7528 Markdown \u4f5c\u4e3a\u6307\u4ee4\u3002\n\n```markdown  theme={&quot;theme&quot;:{&quot;light&quot;:&quot;min-light&quot;,&quot;dark&quot;:&quot;min-dark&quot;}}\n---\nname: hello_world\ndescription: A simple skill that says hello.\n---\n\n# Hello World Skill\n\nWhen the user asks for a greeting, use the `echo` tool to say &quot;Hello from your custom skill!&quot;.\n<\/code><\/pre>\n<h3>3. \u6dfb\u52a0\u5de5\u5177\uff08\u53ef\u9009\uff09<\/h3>\n<p>\u4f60\u53ef\u4ee5\u5728 frontmatter \u4e2d\u5b9a\u4e49\u81ea\u5b9a\u4e49\u5de5\u5177\uff0c\u6216\u6307\u793a\u667a\u80fd\u4f53\u4f7f\u7528\u73b0\u6709\u7684\u7cfb\u7edf\u5de5\u5177\uff08\u5982 <code>bash<\/code> \u6216 <code>browser<\/code>\uff09\u3002<\/p>\n<h3>4. \u5237\u65b0 OpenClaw<\/h3>\n<p>\u8ba9\u4f60\u7684\u667a\u80fd\u4f53&#8221;\u5237\u65b0 skills&#8221;\u6216\u91cd\u542f Gateway \u7f51\u5173\u3002OpenClaw \u5c06\u53d1\u73b0\u65b0\u76ee\u5f55\u5e76\u7d22\u5f15 <code>SKILL.md<\/code>\u3002<\/p>\n<h2>\u6700\u4f73\u5b9e\u8df5<\/h2>\n<ul>\n<li><strong>\u7b80\u6d01\u660e\u4e86<\/strong>\uff1a\u6307\u793a\u6a21\u578b<em>\u505a\u4ec0\u4e48<\/em>\uff0c\u800c\u4e0d\u662f\u5982\u4f55\u6210\u4e3a\u4e00\u4e2a AI\u3002<\/li>\n<li><strong>\u5b89\u5168\u7b2c\u4e00<\/strong>\uff1a\u5982\u679c\u4f60\u7684 Skill \u4f7f\u7528 <code>bash<\/code>\uff0c\u786e\u4fdd\u63d0\u793a\u8bcd\u4e0d\u5141\u8bb8\u6765\u81ea\u4e0d\u53d7\u4fe1\u4efb\u7528\u6237\u8f93\u5165\u7684\u4efb\u610f\u547d\u4ee4\u6ce8\u5165\u3002<\/li>\n<li><strong>\u672c\u5730\u6d4b\u8bd5<\/strong>\uff1a\u4f7f\u7528 <code>openclaw agent --message \"use my new skill\"<\/code> \u8fdb\u884c\u6d4b\u8bd5\u3002<\/li>\n<\/ul>\n<h2>\u5171\u4eab Skills<\/h2>\n<p>\u4f60\u4e5f\u53ef\u4ee5\u5728 <a href=\"https:\/\/clawhub.com\">ClawHub<\/a> \u4e0a\u6d4f\u89c8\u548c\u8d21\u732e Skills\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u521b\u5efa Skills \u521b\u5efa\u81ea\u5b9a\u4e49 Skills \ud83d\udee0 OpenClaw \u88ab\u8bbe\u8ba1\u4e3a\u6613\u4e8e\u6269\u5c55\u3002&#8221;Skill [&hellip;]<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-280","post","type-post","status-publish","format-standard","hentry","category-docs"],"_links":{"self":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/280","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/comments?post=280"}],"version-history":[{"count":1,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/280\/revisions"}],"predecessor-version":[{"id":575,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/280\/revisions\/575"}],"wp:attachment":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/media?parent=280"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/categories?post=280"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/tags?post=280"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}