cc-dev-template 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/skills/create-agent-skills/SKILL.md +24 -68
- package/src/skills/create-agent-skills/references/audit.md +275 -180
- package/src/skills/create-agent-skills/references/create.md +79 -320
- package/src/skills/create-agent-skills/references/modify.md +57 -330
- package/src/skills/create-agent-skills/references/principles.md +77 -0
package/package.json
CHANGED
|
@@ -5,91 +5,47 @@ description: Expert guidance for creating, modifying, and auditing Claude Code s
|
|
|
5
5
|
|
|
6
6
|
# Create Agent Skills
|
|
7
7
|
|
|
8
|
-
Expert guidance for building Claude Code skills correctly. Skills are prompts with progressive disclosure—they teach Claude how to perform specific tasks repeatedly and reliably.
|
|
9
|
-
|
|
10
|
-
## Why Skills Exist
|
|
11
|
-
|
|
12
|
-
Skills solve one problem: **context window efficiency through progressive disclosure**.
|
|
13
|
-
|
|
14
|
-
Without skills, complex workflows require loading thousands of lines of instructions upfront. With skills:
|
|
15
|
-
- **Level 1**: Metadata (~100 words) loads at startup for all skills
|
|
16
|
-
- **Level 2**: SKILL.md body (1,500-2,000 words) loads only when triggered
|
|
17
|
-
- **Level 3**: references/, scripts/, assets/ load only when needed
|
|
18
|
-
|
|
19
|
-
This means Claude can have access to unlimited specialized knowledge without paying the context cost until actually needed.
|
|
20
|
-
|
|
21
8
|
## What To Do Now
|
|
22
9
|
|
|
23
|
-
Determine what the user wants to accomplish with skills.
|
|
24
|
-
|
|
25
10
|
<step name="Understand Intent">
|
|
26
|
-
Ask the user
|
|
11
|
+
Ask what the user wants to do with skills.
|
|
27
12
|
|
|
28
|
-
Use `AskUserQuestion
|
|
29
|
-
- **Create a new skill** - Build a skill
|
|
30
|
-
- **Audit existing skills** - Review
|
|
13
|
+
Use `AskUserQuestion`:
|
|
14
|
+
- **Create a new skill** - Build a skill through guided conversation
|
|
15
|
+
- **Audit existing skills** - Review skills for best practices compliance
|
|
31
16
|
- **Modify a skill** - Update or improve an existing skill
|
|
32
|
-
- **Something else** - Free-form request
|
|
17
|
+
- **Something else** - Free-form request
|
|
33
18
|
</step>
|
|
34
19
|
|
|
35
20
|
<step name="Route to Workflow">
|
|
36
|
-
Based on the
|
|
21
|
+
Based on choice, read the appropriate workflow:
|
|
37
22
|
|
|
38
23
|
| Choice | Action |
|
|
39
24
|
|--------|--------|
|
|
40
|
-
| Create
|
|
41
|
-
| Audit
|
|
42
|
-
| Modify
|
|
43
|
-
| Something else | Help
|
|
44
|
-
|
|
45
|
-
Reading the workflow file is mandatory—it contains the detailed instructions for that workflow.
|
|
25
|
+
| Create | Read `references/create.md` |
|
|
26
|
+
| Audit | Read `references/audit.md` |
|
|
27
|
+
| Modify | Read `references/modify.md` |
|
|
28
|
+
| Something else | Help find the right approach |
|
|
46
29
|
</step>
|
|
47
30
|
|
|
48
|
-
##
|
|
49
|
-
|
|
50
|
-
Before routing, understand these fundamentals that apply to ALL skill work:
|
|
51
|
-
|
|
52
|
-
### A Skill IS a Prompt
|
|
53
|
-
SKILL.md is not documentation about the skill—it IS what Claude reads when the skill activates. Write it as instructions TO Claude, using imperative form.
|
|
54
|
-
|
|
55
|
-
### Description = Discovery
|
|
56
|
-
The frontmatter `description` field determines when Claude triggers the skill. Include:
|
|
57
|
-
- Third-person phrasing: "This skill should be used when..."
|
|
58
|
-
- Specific trigger phrases users would say
|
|
59
|
-
- Max 1024 characters
|
|
60
|
-
|
|
61
|
-
### Structure Matters
|
|
62
|
-
```
|
|
63
|
-
skill-name/
|
|
64
|
-
├── SKILL.md # Required: lean router (1,500-2,000 words max)
|
|
65
|
-
├── references/ # Detailed docs loaded as needed
|
|
66
|
-
├── scripts/ # Executable utilities (token-efficient)
|
|
67
|
-
└── assets/ # Files used in output, never read into context
|
|
68
|
-
```
|
|
69
|
-
|
|
70
|
-
### Writing Style
|
|
71
|
-
- **Imperative form**: "Parse the file", "Validate the input"
|
|
72
|
-
- **Never second person**: Avoid phrases like "should parse" or "can validate" with pronouns
|
|
73
|
-
- **Objective instructional tone**: Facts and directives, not suggestions
|
|
74
|
-
|
|
75
|
-
For complete principles, each workflow will load `references/principles.md` as needed.
|
|
76
|
-
|
|
77
|
-
## Skill Locations
|
|
31
|
+
## Essential Knowledge
|
|
78
32
|
|
|
79
|
-
|
|
33
|
+
**A skill IS a prompt.** When activated, Claude reads SKILL.md. It must contain instructions, not documentation about the skill.
|
|
80
34
|
|
|
81
|
-
|
|
82
|
-
|-------|------|-------|
|
|
83
|
-
| User | `~/.claude/skills/` | Available in all projects |
|
|
84
|
-
| Project | `.claude/skills/` | Shared with team via git |
|
|
35
|
+
**Progressive disclosure.** SKILL.md should be lean (<150 lines). Heavy content goes in references/. This keeps context efficient.
|
|
85
36
|
|
|
86
|
-
The
|
|
37
|
+
**The test:** After reading SKILL.md, would Claude know what to DO? If it only knows what the skill is about, it's written wrong.
|
|
87
38
|
|
|
88
|
-
|
|
39
|
+
For complete principles, workflows load `references/principles.md` as needed.
|
|
89
40
|
|
|
90
|
-
|
|
41
|
+
## Quick Reference
|
|
91
42
|
|
|
92
|
-
|
|
93
|
-
|
|
43
|
+
**Skill locations:**
|
|
44
|
+
| Level | Path |
|
|
45
|
+
|-------|------|
|
|
46
|
+
| User | `~/.claude/skills/` |
|
|
47
|
+
| Project | `.claude/skills/` |
|
|
94
48
|
|
|
95
|
-
|
|
49
|
+
**Bundled scripts:**
|
|
50
|
+
- `scripts/find-skills.js` - Discover all installed skills
|
|
51
|
+
- `scripts/validate-skill.js` - Validate a skill's structure
|