{"id":292,"date":"2026-03-21T22:47:26","date_gmt":"2026-03-21T14:47:26","guid":{"rendered":"https:\/\/pa.yingzhi8.cn\/index.php\/2026\/03\/21\/tools-skills-config\/"},"modified":"2026-03-21T23:08:52","modified_gmt":"2026-03-21T15:08:52","slug":"tools-skills-config","status":"publish","type":"post","link":"https:\/\/pa.yingzhi8.cn\/index.php\/2026\/03\/21\/tools-skills-config\/","title":{"rendered":"Skills \u914d\u7f6e"},"content":{"rendered":"<h1>Skills \u914d\u7f6e<\/h1>\n<p>\u6240\u6709 Skills \u76f8\u5173\u914d\u7f6e\u90fd\u4f4d\u4e8e <code>~\/.openclaw\/openclaw.json<\/code> \u4e2d\u7684 <code>skills<\/code> \u4e0b\u3002<\/p>\n<p><code>json5  theme={\"theme\":{\"light\":\"min-light\",\"dark\":\"min-dark\"}}<br \/>\n{<br \/>\n  skills: {<br \/>\n    allowBundled: [\"gemini\", \"peekaboo\"],<br \/>\n    load: {<br \/>\n      extraDirs: [\"~\/Projects\/agent-scripts\/skills\", \"~\/Projects\/oss\/some-skill-pack\/skills\"],<br \/>\n      watch: true,<br \/>\n      watchDebounceMs: 250,<br \/>\n    },<br \/>\n    install: {<br \/>\n      preferBrew: true,<br \/>\n      nodeManager: \"npm\", \/\/ npm | pnpm | yarn | bun\uff08Gateway \u7f51\u5173\u8fd0\u884c\u65f6\u4ecd\u4e3a Node\uff1b\u4e0d\u63a8\u8350 bun\uff09<br \/>\n    },<br \/>\n    entries: {<br \/>\n      \"nano-banana-pro\": {<br \/>\n        enabled: true,<br \/>\n        apiKey: \"GEMINI_KEY_HERE\",<br \/>\n        env: {<br \/>\n          GEMINI_API_KEY: \"GEMINI_KEY_HERE\",<br \/>\n        },<br \/>\n      },<br \/>\n      peekaboo: { enabled: true },<br \/>\n      sag: { enabled: false },<br \/>\n    },<br \/>\n  },<br \/>\n}<\/code><\/p>\n<h2>\u5b57\u6bb5<\/h2>\n<ul>\n<li><code>allowBundled<\/code>\uff1a\u53ef\u9009\u7684\u4ec5\u7528\u4e8e<strong>\u5185\u7f6e<\/strong> Skills \u7684\u767d\u540d\u5355\u3002\u8bbe\u7f6e\u540e\uff0c\u53ea\u6709\u5217\u8868\u4e2d\u7684\u5185\u7f6e Skills \u624d\u6709\u8d44\u683c\uff08\u6258\u7ba1\/\u5de5\u4f5c\u533a Skills \u4e0d\u53d7\u5f71\u54cd\uff09\u3002<\/li>\n<li><code>load.extraDirs<\/code>\uff1a\u8981\u626b\u63cf\u7684\u9644\u52a0 Skills \u76ee\u5f55\uff08\u6700\u4f4e\u4f18\u5148\u7ea7\uff09\u3002<\/li>\n<li><code>load.watch<\/code>\uff1a\u76d1\u89c6 Skills \u6587\u4ef6\u5939\u5e76\u5237\u65b0 Skills \u5feb\u7167\uff08\u9ed8\u8ba4\uff1atrue\uff09\u3002<\/li>\n<li><code>load.watchDebounceMs<\/code>\uff1aSkills \u76d1\u89c6\u5668\u4e8b\u4ef6\u7684\u9632\u6296\u65f6\u95f4\uff08\u6beb\u79d2\uff09\uff08\u9ed8\u8ba4\uff1a250\uff09\u3002<\/li>\n<li><code>install.preferBrew<\/code>\uff1a\u5728\u53ef\u7528\u65f6\u4f18\u5148\u4f7f\u7528 brew \u5b89\u88c5\u5668\uff08\u9ed8\u8ba4\uff1atrue\uff09\u3002<\/li>\n<li><code>install.nodeManager<\/code>\uff1anode \u5b89\u88c5\u5668\u504f\u597d\uff08<code>npm<\/code> | <code>pnpm<\/code> | <code>yarn<\/code> | <code>bun<\/code>\uff0c\u9ed8\u8ba4\uff1anpm\uff09\u3002\u8fd9\u4ec5\u5f71\u54cd <strong>Skills \u5b89\u88c5<\/strong>\uff1bGateway \u7f51\u5173\u8fd0\u884c\u65f6\u5e94\u4ecd\u4e3a Node\uff08\u4e0d\u63a8\u8350 Bun \u7528\u4e8e WhatsApp\/Telegram\uff09\u3002<\/li>\n<li><code>entries.&lt;skillKey&gt;<\/code>\uff1a\u5355 Skills \u8986\u76d6\u3002<\/li>\n<\/ul>\n<p>\u5355 Skills \u5b57\u6bb5\uff1a<\/p>\n<ul>\n<li><code>enabled<\/code>\uff1a\u8bbe\u7f6e\u4e3a <code>false<\/code> \u4ee5\u7981\u7528\u67d0\u4e2a Skills\uff0c\u5373\u4f7f\u5b83\u662f\u5185\u7f6e\/\u5df2\u5b89\u88c5\u7684\u3002<\/li>\n<li><code>env<\/code>\uff1a\u4e3a\u667a\u80fd\u4f53\u8fd0\u884c\u6ce8\u5165\u7684\u73af\u5883\u53d8\u91cf\uff08\u4ec5\u5728\u5c1a\u672a\u8bbe\u7f6e\u65f6\uff09\u3002<\/li>\n<li><code>apiKey<\/code>\uff1a\u53ef\u9009\u7684\u4fbf\u6377\u5b57\u6bb5\uff0c\u7528\u4e8e\u58f0\u660e\u4e3b\u73af\u5883\u53d8\u91cf\u7684 Skills\u3002<\/li>\n<\/ul>\n<h2>\u6ce8\u610f\u4e8b\u9879<\/h2>\n<ul>\n<li><code>entries<\/code> \u4e0b\u7684\u952e\u9ed8\u8ba4\u6620\u5c04\u5230 Skills \u540d\u79f0\u3002\u5982\u679c Skills \u5b9a\u4e49\u4e86 <code>metadata.openclaw.skillKey<\/code>\uff0c\u5219\u4f7f\u7528\u8be5\u952e\u3002<\/li>\n<li>\u542f\u7528\u76d1\u89c6\u5668\u540e\uff0cSkills \u7684\u66f4\u6539\u4f1a\u5728\u4e0b\u4e00\u4e2a\u667a\u80fd\u4f53\u8f6e\u6b21\u88ab\u83b7\u53d6\u3002<\/li>\n<\/ul>\n<h3>\u6c99\u7bb1\u9694\u79bb\u7684 Skills + \u73af\u5883\u53d8\u91cf<\/h3>\n<p>\u5f53\u4f1a\u8bdd\u5904\u4e8e<strong>\u6c99\u7bb1\u9694\u79bb<\/strong>\u72b6\u6001\u65f6\uff0cSkills \u8fdb\u7a0b\u5728 Docker \u5185\u8fd0\u884c\u3002\u6c99\u7bb1<strong>\u4e0d\u4f1a<\/strong>\u7ee7\u627f\u5bbf\u4e3b\u673a\u7684 <code>process.env<\/code>\u3002<\/p>\n<p>\u4f7f\u7528\u4ee5\u4e0b\u65b9\u5f0f\u4e4b\u4e00\uff1a<\/p>\n<ul>\n<li><code>agents.defaults.sandbox.docker.env<\/code>\uff08\u6216\u5355\u667a\u80fd\u4f53\u7684 <code>agents.list[].sandbox.docker.env<\/code>\uff09<\/li>\n<li>\u5c06\u73af\u5883\u53d8\u91cf\u70d8\u7119\u5230\u4f60\u7684\u81ea\u5b9a\u4e49\u6c99\u7bb1\u955c\u50cf\u4e2d<\/li>\n<\/ul>\n<p>\u5168\u5c40 <code>env<\/code> \u548c <code>skills.entries.&lt;skill&gt;.env\/apiKey<\/code> \u4ec5\u9002\u7528\u4e8e<strong>\u5bbf\u4e3b\u673a<\/strong>\u8fd0\u884c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Skills \u914d\u7f6e \u6240\u6709 Skills \u76f8\u5173\u914d\u7f6e\u90fd\u4f4d\u4e8e ~\/.openclaw\/openclaw.json \u4e2d [&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-292","post","type-post","status-publish","format-standard","hentry","category-docs"],"_links":{"self":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/292","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=292"}],"version-history":[{"count":1,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/292\/revisions"}],"predecessor-version":[{"id":587,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/292\/revisions\/587"}],"wp:attachment":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/media?parent=292"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/categories?post=292"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/tags?post=292"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}