首页/ AI 技能 / @skilllib/skill-2117939930272417312
Skill站外收录 @skilllib/skill-2117939930272417312

my-first-skill

提供技能开发的标准模板与结构化指南,涵盖目录创建、YAML元数据配置、指令编写规范及资源引用方式,帮助开发者快速掌握技能定义方法并验证加载流程。

0.0 (0) 26 次安装 原作者 编程导航
收录于 2026-01-22
数据与分析 AI 技能

Skills.MD

# My First Skill This is an example skill demonstrating the Anthropic SKILL.md format. ## Purpose This skill shows how to structure procedural guidance for AI coding agents using progressive disclosure. ## When to Use Load this skill when: - Learning how skills work - Testing the OpenSkills loader - Understanding the SKILL.md format ## Instructions To create a skill: 1. Create a directory: `mkdir my-skill/` 2. Add SKILL.md with YAML frontmatter: ```yaml --- name: my-skill description: When to use this skill --- ``` 3. Write instructions in imperative form (not second person) 4. Reference bundled resources as needed ## Bundled Resources For detailed information about the SKILL.md specification: See `references/skill-format.md` ## Best Practices - Write in imperative/infinitive form: "To do X, execute Y" - NOT second person: avoid "You should..." - Keep SKILL.md under 5,000 words - Move detailed content to references/ - Use scripts/ for executable code - Use assets/ for templates and output files ## Resource Resolution When this skill is loaded, the base directory is provided: ``` Base directory: /path/to/my-first-skill ``` Relative paths resolve from base directory: - `references/skill-format.md` → `/path/to/my-first-skill/references/skill-format.md` - `scripts/helper.sh` → `/path/to/my-first-skill/scripts/helper.sh`

评论 0

还没有评论,来抢沙发。