skills/skill-generator/SKILL.md
帮助用户通过对话创建新的 DunCrew 技能。
npx skillsauth add fatby/duncrew skill-generatorInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
帮助用户通过对话创建新的 DunCrew 技能。
当用户请求创建新技能时,按以下步骤执行:
必须询问用户以下信息:
git-helper, file-backup)按以下模板结构生成:
# {技能名称}
{简短描述}
## Usage
{"thought": "说明推理过程", "tool": "{工具名}", "args": {...}}
## Examples
### {示例1标题}
User: "{用户输入}"
{"thought": "{推理}", "tool": "{工具}", "args": {...}}
### {示例2标题}
...
## Notes
- {注意事项1}
- {注意事项2}
{"thought": "需求收集完毕,保存技能定义到 skills/{skill-name}/SKILL.md", "tool": "writeFile", "args": {"path": "skills/{skill-name}/SKILL.md", "content": "{生成的完整内容}"}}
保存成功后,告知用户:
技能已创建!请在
src/services/LocalClawService.ts的 SKILL_TRIGGERS 添加:'{skill-id}': { keywords: ['{关键词1}', '{关键词2}', ...], path: 'skills/{skill-name}/SKILL.md', },重启前端后即可使用。
创建技能的标准流程:
{"thought": "用户想创建新技能,需要先收集需求信息", "tool": null, "args": {}}
保存技能文件:
{"thought": "需求已收集,生成并保存 SKILL.md", "tool": "writeFile", "args": {"path": "skills/example-skill/SKILL.md", "content": "# Example Skill\n\n..."}}
User: "帮我创建一个备份文件的技能"
Agent 回复: "好的!我需要了解一些信息来创建这个技能:
file-backup)[用户回答后]
{"thought": "用户需求: 名称 file-backup, 使用 readFile+writeFile, 关键词 '备份/backup'。生成 SKILL.md 内容并保存", "tool": "writeFile", "args": {"path": "skills/file-backup/SKILL.md", "content": "# File Backup\n\n自动备份指定文件到备份目录。\n\n## Usage\n..."}}
User: "创建一个帮我提交 Git 的技能"
[同样的需求收集流程]
skills/ 目录下创建tools
Use the webSearch tool to find information online.
development
Query weather information for any location.
tools
Send WhatsApp messages to other people or search/sync WhatsApp history via the wacli CLI (not for normal user chats).
tools
Start voice calls via the OpenClaw voice-call plugin.