$npx -y skills add numman-ali/openskills --skill my-first-skillExample skill demonstrating Anthropic SKILL.md format. Load when learning to create skills or testing the OpenSkills loader.
| 1 | # My First Skill |
| 2 | |
| 3 | This is an example skill demonstrating the Anthropic SKILL.md format. |
| 4 | |
| 5 | ## Purpose |
| 6 | |
| 7 | This skill shows how to structure procedural guidance for AI coding agents using progressive disclosure. |
| 8 | |
| 9 | ## When to Use |
| 10 | |
| 11 | Load this skill when: |
| 12 | - Learning how skills work |
| 13 | - Testing the OpenSkills loader |
| 14 | - Understanding the SKILL.md format |
| 15 | |
| 16 | ## Instructions |
| 17 | |
| 18 | To create a skill: |
| 19 | |
| 20 | 1. Create a directory: `mkdir my-skill/` |
| 21 | 2. Add SKILL.md with YAML frontmatter: |
| 22 | ```yaml |
| 23 | --- |
| 24 | name: my-skill |
| 25 | description: When to use this skill |
| 26 | --- |
| 27 | ``` |
| 28 | 3. Write instructions in imperative form (not second person) |
| 29 | 4. Reference bundled resources as needed |
| 30 | |
| 31 | ## Bundled Resources |
| 32 | |
| 33 | For detailed information about the SKILL.md specification: |
| 34 | |
| 35 | See `references/skill-format.md` |
| 36 | |
| 37 | ## Best Practices |
| 38 | |
| 39 | - Write in imperative/infinitive form: "To do X, execute Y" |
| 40 | - NOT second person: avoid "You should..." |
| 41 | - Keep SKILL.md under 5,000 words |
| 42 | - Move detailed content to references/ |
| 43 | - Use scripts/ for executable code |
| 44 | - Use assets/ for templates and output files |
| 45 | |
| 46 | ## Resource Resolution |
| 47 | |
| 48 | When this skill is loaded, the base directory is provided: |
| 49 | |
| 50 | ``` |
| 51 | Base directory: /path/to/my-first-skill |
| 52 | ``` |
| 53 | |
| 54 | Relative paths resolve from base directory: |
| 55 | - `references/skill-format.md` → `/path/to/my-first-skill/references/skill-format.md` |
| 56 | - `scripts/helper.sh` → `/path/to/my-first-skill/scripts/helper.sh` |