关于 skill-creator
用于创建 Agent Skills 的技能,采用渐进式披露方式组织内容。它介绍技能目录、元数据、核心说明以及按需加载的参考资料。
主要功能
- 01说明三级技能加载结构
- 02指导创建技能目录和文件
- 03提供 SKILL.md 示例
- 04列出参考资料
适用场景
- 01创建新的 Agent Skill
- 02将详细指南整理到参考资料中
- 03检查技能元数据和触发词
安装
复制下面的命令,在终端中运行。
$
npx skills add https:/ / github.com/ hotovo/ aider-desk --skill skill-creator安装后在 Claude Code 中输入/skill-creator确认已加载。
包含的文件
除 SKILL.md 外,安装时一起下载的参考资料和脚本。
references/agent-skills-resources.mdcli-reference.mddevelopment-process.mdquick-start.mdskill-examples.mdwriting-guide.md详细介绍
Skill 创建器
通过渐进式披露创建有效的 Agent Skills。
何时创建 Skill
遇到以下情况时,创建一个 skill:
- 在多次对话中反复出现的上下文
- 需要反复运用的领域专业知识
- Agent 应自动了解的项目专属知识
渐进式披露
Skills 分 3 个层级加载:
- 元数据(约 27 个 token)——用于触发的 YAML frontmatter
- 指令(少于 680 个 token)——包含核心模式的 SKILL.md 正文
- 资源(不限)——按需加载的 references/、scripts/ 和 assets/
要点:精简第 1 和第 2 层的内容。将详细信息移至第 3 层。
快速工作流
- 创建 skill 目录:
.aider-desk/skills/my-skill/ - 编写
SKILL.md,包含 YAML frontmatter(name、description)和正文指令 - 根据需要将详细文档添加到
references/ - 验证:提及一个触发关键词——skill 应出现在活动 skills 侧边栏中
如果 skill 未加载:检查 YAML 语法是否有效,name 是否为小写连字符格式,以及 description 是否包含用户会说的触发词
SKILL.md 示例
---
name: deploy-helper
description: Deploy AiderDesk builds to staging and production environments. Use when deploying, releasing, or publishing builds.
---
# Deploy Helper
Build and deploy AiderDesk to target environments.
## Steps
1. Run `npm run build` to generate production artifacts
2. Verify build output exists in `dist/`
3. Deploy to staging: `./scripts/deploy.sh staging`
4. Verify deployment: check health endpoint returns 200
## Troubleshooting
- Build fails: check `tsconfig.json` paths and run `npm run typecheck`
## References
- [environments.md](references/environments.md) - Environment configs
结构
my-skill/
├── SKILL.md # Core instructions + metadata
├── references/ # Detailed docs (loaded as needed)
├── scripts/ # Executable operations
└── assets/ # Templates, images, files
参考资料
- quick-start.md - 创建你的第一个 skill
- writing-guide.md - 编写有效的 skills
- development-process.md - 分步工作流
- skill-examples.md - 模式和 示例
- cli-reference.md - CLI 工具用法
- agent-skills-resources.md - 架构和最佳实践
评论
支持 Markdown