ima-claude 2.20.0 → 2.26.0
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/README.md +74 -9
- package/dist/cli.js +2 -1
- package/package.json +1 -1
- package/plugins/ima-claude/.claude-plugin/plugin.json +2 -2
- package/plugins/ima-claude/agents/explorer.md +29 -15
- package/plugins/ima-claude/agents/implementer.md +58 -13
- package/plugins/ima-claude/agents/memory.md +19 -19
- package/plugins/ima-claude/agents/reviewer.md +84 -34
- package/plugins/ima-claude/agents/tester.md +59 -16
- package/plugins/ima-claude/agents/wp-developer.md +66 -21
- package/plugins/ima-claude/hooks/bootstrap.sh +42 -44
- package/plugins/ima-claude/hooks/prompt_coach_digest.md +14 -17
- package/plugins/ima-claude/hooks/prompt_coach_system.md +10 -12
- package/plugins/ima-claude/personalities/README.md +17 -6
- package/plugins/ima-claude/personalities/enable-efficient.md +61 -0
- package/plugins/ima-claude/personalities/enable-terse.md +71 -0
- package/plugins/ima-claude/skills/agentic-workflows/SKILL.md +35 -71
- package/plugins/ima-claude/skills/architect/SKILL.md +54 -168
- package/plugins/ima-claude/skills/compound-bridge/SKILL.md +41 -94
- package/plugins/ima-claude/skills/design-to-code/SKILL.md +43 -78
- package/plugins/ima-claude/skills/discourse/SKILL.md +79 -194
- package/plugins/ima-claude/skills/discourse-admin/SKILL.md +41 -103
- package/plugins/ima-claude/skills/docs-organize/SKILL.md +63 -203
- package/plugins/ima-claude/skills/ember-discourse/SKILL.md +90 -200
- package/plugins/ima-claude/skills/espocrm/SKILL.md +14 -23
- package/plugins/ima-claude/skills/espocrm-api/SKILL.md +79 -192
- package/plugins/ima-claude/skills/functional-programmer/SKILL.md +33 -237
- package/plugins/ima-claude/skills/gh-cli/SKILL.md +26 -65
- package/plugins/ima-claude/skills/ima-bootstrap/SKILL.md +71 -104
- package/plugins/ima-claude/skills/ima-bootstrap/references/ima-brand.md +32 -22
- package/plugins/ima-claude/skills/ima-brand/SKILL.md +18 -23
- package/plugins/ima-claude/skills/ima-copywriting/SKILL.md +68 -179
- package/plugins/ima-claude/skills/ima-doc2pdf/SKILL.md +32 -102
- package/plugins/ima-claude/skills/ima-editorial-scorecard/SKILL.md +38 -63
- package/plugins/ima-claude/skills/ima-editorial-workflow/SKILL.md +69 -114
- package/plugins/ima-claude/skills/ima-email-creator/SKILL.md +16 -22
- package/plugins/ima-claude/skills/ima-forms-expert/SKILL.md +21 -37
- package/plugins/ima-claude/skills/ima-git/SKILL.md +81 -0
- package/plugins/ima-claude/skills/jira-checkpoint/SKILL.md +39 -120
- package/plugins/ima-claude/skills/jquery/SKILL.md +107 -233
- package/plugins/ima-claude/skills/js-fp/SKILL.md +75 -296
- package/plugins/ima-claude/skills/js-fp-api/SKILL.md +52 -162
- package/plugins/ima-claude/skills/js-fp-react/SKILL.md +47 -270
- package/plugins/ima-claude/skills/js-fp-vue/SKILL.md +55 -209
- package/plugins/ima-claude/skills/js-fp-wordpress/SKILL.md +59 -204
- package/plugins/ima-claude/skills/livecanvas/SKILL.md +19 -32
- package/plugins/ima-claude/skills/mcp-atlassian/SKILL.md +92 -162
- package/plugins/ima-claude/skills/mcp-context7/SKILL.md +32 -64
- package/plugins/ima-claude/skills/mcp-gitea/SKILL.md +98 -188
- package/plugins/ima-claude/skills/mcp-github/SKILL.md +60 -124
- package/plugins/ima-claude/skills/mcp-memory/SKILL.md +1 -177
- package/plugins/ima-claude/skills/mcp-qdrant/SKILL.md +58 -115
- package/plugins/ima-claude/skills/mcp-sequential/SKILL.md +32 -87
- package/plugins/ima-claude/skills/mcp-serena/SKILL.md +54 -80
- package/plugins/ima-claude/skills/mcp-tavily/SKILL.md +40 -63
- package/plugins/ima-claude/skills/mcp-vestige/SKILL.md +75 -116
- package/plugins/ima-claude/skills/php-authnet/SKILL.md +32 -65
- package/plugins/ima-claude/skills/php-fp/SKILL.md +50 -129
- package/plugins/ima-claude/skills/php-fp-wordpress/SKILL.md +25 -73
- package/plugins/ima-claude/skills/phpunit-wp/SKILL.md +103 -463
- package/plugins/ima-claude/skills/playwright/SKILL.md +69 -220
- package/plugins/ima-claude/skills/prompt-starter/SKILL.md +33 -83
- package/plugins/ima-claude/skills/prompt-starter/references/code-review.md +38 -0
- package/plugins/ima-claude/skills/py-fp/SKILL.md +78 -384
- package/plugins/ima-claude/skills/quasar-fp/SKILL.md +54 -255
- package/plugins/ima-claude/skills/quickstart/SKILL.md +7 -11
- package/plugins/ima-claude/skills/rails/SKILL.md +63 -184
- package/plugins/ima-claude/skills/resume-session/SKILL.md +14 -35
- package/plugins/ima-claude/skills/rg/SKILL.md +61 -146
- package/plugins/ima-claude/skills/ruby-fp/SKILL.md +66 -163
- package/plugins/ima-claude/skills/save-session/SKILL.md +10 -39
- package/plugins/ima-claude/skills/scorecard/SKILL.md +42 -40
- package/plugins/ima-claude/skills/skill-analyzer/SKILL.md +42 -71
- package/plugins/ima-claude/skills/skill-creator/SKILL.md +79 -250
- package/plugins/ima-claude/skills/task-master/SKILL.md +11 -31
- package/plugins/ima-claude/skills/task-planner/SKILL.md +44 -153
- package/plugins/ima-claude/skills/task-runner/SKILL.md +61 -143
- package/plugins/ima-claude/skills/unit-testing/SKILL.md +59 -134
- package/plugins/ima-claude/skills/wp-ddev/SKILL.md +38 -120
- package/plugins/ima-claude/skills/wp-local/SKILL.md +26 -108
|
@@ -6,338 +6,167 @@ license: Complete terms in LICENSE.txt
|
|
|
6
6
|
|
|
7
7
|
# Skill Creator
|
|
8
8
|
|
|
9
|
-
Guide for creating skills—modular packages that provide Claude with specialized workflows, tool integrations, and domain expertise.
|
|
10
|
-
|
|
11
9
|
## Core Principles
|
|
12
10
|
|
|
13
11
|
### Concise is Key
|
|
14
12
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
**Default assumption: Claude is already very smart.** Only add context Claude doesn't already have. Challenge each piece of information: "Does Claude really need this explanation?" and "Does this paragraph justify its token cost?"
|
|
18
|
-
|
|
19
|
-
Prefer concise examples over verbose explanations.
|
|
13
|
+
Context window is shared. Only add context Claude doesn't already have. Challenge each piece: "Does Claude need this?" and "Does this justify its token cost?" Prefer concise examples over verbose explanations.
|
|
20
14
|
|
|
21
15
|
### Set Appropriate Degrees of Freedom
|
|
22
16
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
**Low freedom (specific scripts, few parameters)**: Use when operations are fragile and error-prone, consistency is critical, or a specific sequence must be followed.
|
|
30
|
-
|
|
31
|
-
Think of Claude as exploring a path: a narrow bridge with cliffs needs specific guardrails (low freedom), while an open field allows many routes (high freedom).
|
|
17
|
+
| Freedom | When to use |
|
|
18
|
+
|---------|-------------|
|
|
19
|
+
| High (text instructions) | Multiple valid approaches, context-dependent decisions |
|
|
20
|
+
| Medium (pseudocode + params) | Preferred pattern exists, some variation acceptable |
|
|
21
|
+
| Low (specific scripts) | Fragile operations, critical consistency, fixed sequence |
|
|
32
22
|
|
|
33
23
|
### Anatomy of a Skill
|
|
34
24
|
|
|
35
|
-
Every skill consists of a required SKILL.md file and optional bundled resources:
|
|
36
|
-
|
|
37
25
|
```
|
|
38
26
|
skill-name/
|
|
39
27
|
├── SKILL.md (required)
|
|
40
|
-
│ ├── YAML frontmatter
|
|
41
|
-
│
|
|
42
|
-
│ │ ├── description: (required)
|
|
43
|
-
│ │ └── compatibility: (optional, rarely needed)
|
|
44
|
-
│ └── Markdown instructions (required)
|
|
28
|
+
│ ├── YAML frontmatter: name (required), description (required), compatibility (optional)
|
|
29
|
+
│ └── Markdown instructions
|
|
45
30
|
└── Bundled Resources (optional)
|
|
46
|
-
├── scripts/
|
|
47
|
-
├── references/
|
|
48
|
-
└── assets/
|
|
31
|
+
├── scripts/ - Executable code (Python/Bash/etc.)
|
|
32
|
+
├── references/ - Documentation loaded into context as needed
|
|
33
|
+
└── assets/ - Files used in output (templates, icons, fonts)
|
|
49
34
|
```
|
|
50
35
|
|
|
51
|
-
#### SKILL.md
|
|
52
|
-
|
|
53
|
-
Every SKILL.md consists of:
|
|
54
|
-
|
|
55
|
-
- **Frontmatter** (YAML): Contains `name` and `description` fields (required), plus optional fields like `license`, `metadata`, and `compatibility`. Only `name` and `description` are read by Claude to determine when the skill triggers, so be clear and comprehensive about what the skill is and when it should be used. The `compatibility` field is for noting environment requirements (target product, system packages, etc.) but most skills don't need it.
|
|
56
|
-
- **Body** (Markdown): Instructions and guidance for using the skill. Only loaded AFTER the skill triggers (if at all).
|
|
57
|
-
|
|
58
|
-
#### Bundled Resources (optional)
|
|
36
|
+
#### SKILL.md
|
|
59
37
|
|
|
60
|
-
|
|
38
|
+
- **Frontmatter**: `name` and `description` are the only fields Claude reads for triggering. Make `description` comprehensive — "when to use" info belongs here, not in the body (body loads only after triggering).
|
|
39
|
+
- **Body**: Instructions and guidance. Loaded after skill triggers.
|
|
61
40
|
|
|
62
|
-
|
|
41
|
+
#### Scripts (`scripts/`)
|
|
63
42
|
|
|
64
|
-
|
|
65
|
-
-
|
|
66
|
-
-
|
|
67
|
-
- **Note**: Scripts may still need to be read by Claude for patching or environment-specific adjustments
|
|
43
|
+
Include when same code is rewritten repeatedly or deterministic reliability is needed.
|
|
44
|
+
- Token efficient, deterministic, may execute without loading into context
|
|
45
|
+
- Scripts may still be read for patching or environment-specific adjustments
|
|
68
46
|
|
|
69
|
-
|
|
47
|
+
#### References (`references/`)
|
|
70
48
|
|
|
71
|
-
Documentation
|
|
49
|
+
Documentation loaded as needed into context to inform Claude's process.
|
|
50
|
+
- Use for: database schemas, API docs, domain knowledge, company policies, workflow guides
|
|
51
|
+
- Keeps SKILL.md lean. Information lives in either SKILL.md or references — not both.
|
|
52
|
+
- If files >10k words, include grep search patterns in SKILL.md
|
|
53
|
+
- For files >100 lines, include table of contents so Claude can preview scope
|
|
72
54
|
|
|
73
|
-
|
|
74
|
-
- **Examples**: `references/finance.md` for financial schemas, `references/mnda.md` for company NDA template, `references/policies.md` for company policies, `references/api_docs.md` for API specifications
|
|
75
|
-
- **Use cases**: Database schemas, API documentation, domain knowledge, company policies, detailed workflow guides
|
|
76
|
-
- **Benefits**: Keeps SKILL.md lean, loaded only when Claude determines it's needed
|
|
77
|
-
- **Best practice**: If files are large (>10k words), include grep search patterns in SKILL.md
|
|
78
|
-
- **Avoid duplication**: Information should live in either SKILL.md or references files, not both. Prefer references files for detailed information unless it's truly core to the skill—this keeps SKILL.md lean while making information discoverable without hogging the context window. Keep only essential procedural instructions and workflow guidance in SKILL.md; move detailed reference material, schemas, and examples to references files.
|
|
55
|
+
#### Assets (`assets/`)
|
|
79
56
|
|
|
80
|
-
|
|
57
|
+
Files used in output, not loaded into context.
|
|
58
|
+
- Use for: templates, images, boilerplate code, fonts, sample documents
|
|
81
59
|
|
|
82
|
-
|
|
60
|
+
#### What Not to Include
|
|
83
61
|
|
|
84
|
-
|
|
85
|
-
- **Examples**: `assets/logo.png` for brand assets, `assets/slides.pptx` for PowerPoint templates, `assets/frontend-template/` for HTML/React boilerplate, `assets/font.ttf` for typography
|
|
86
|
-
- **Use cases**: Templates, images, icons, boilerplate code, fonts, sample documents that get copied or modified
|
|
87
|
-
- **Benefits**: Separates output resources from documentation, enables Claude to use files without loading them into context
|
|
62
|
+
No auxiliary documentation: README.md, INSTALLATION_GUIDE.md, QUICK_REFERENCE.md, CHANGELOG.md, etc. Only files that directly support functionality.
|
|
88
63
|
|
|
89
|
-
|
|
64
|
+
### Progressive Disclosure
|
|
90
65
|
|
|
91
|
-
|
|
66
|
+
Three loading levels:
|
|
67
|
+
1. **Metadata (name + description)** — always in context (~100 words)
|
|
68
|
+
2. **SKILL.md body** — when skill triggers (<5k words, under 500 lines)
|
|
69
|
+
3. **Bundled resources** — as needed by Claude
|
|
92
70
|
|
|
93
|
-
-
|
|
94
|
-
- INSTALLATION_GUIDE.md
|
|
95
|
-
- QUICK_REFERENCE.md
|
|
96
|
-
- CHANGELOG.md
|
|
97
|
-
- etc.
|
|
98
|
-
|
|
99
|
-
The skill should only contain the information needed for an AI agent to do the job at hand. It should not contain auxilary context about the process that went into creating it, setup and testing procedures, user-facing documentation, etc. Creating additional documentation files just adds clutter and confusion.
|
|
100
|
-
|
|
101
|
-
### Progressive Disclosure Design Principle
|
|
102
|
-
|
|
103
|
-
Skills use a three-level loading system to manage context efficiently:
|
|
104
|
-
|
|
105
|
-
1. **Metadata (name + description)** - Always in context (~100 words)
|
|
106
|
-
2. **SKILL.md body** - When skill triggers (<5k words)
|
|
107
|
-
3. **Bundled resources** - As needed by Claude (Unlimited because scripts can be executed without reading into context window)
|
|
108
|
-
|
|
109
|
-
#### Progressive Disclosure Patterns
|
|
110
|
-
|
|
111
|
-
Keep SKILL.md body to the essentials and under 500 lines to minimize context bloat. Split content into separate files when approaching this limit. When splitting out content into other files, it is very important to reference them from SKILL.md and describe clearly when to read them, to ensure the reader of the skill knows they exist and when to use them.
|
|
112
|
-
|
|
113
|
-
**Key principle:** When a skill supports multiple variations, frameworks, or options, keep only the core workflow and selection guidance in SKILL.md. Move variant-specific details (patterns, examples, configuration) into separate reference files.
|
|
114
|
-
|
|
115
|
-
**Pattern 1: High-level guide with references**
|
|
71
|
+
Keep SKILL.md body lean. Reference other files clearly with when-to-read guidance.
|
|
116
72
|
|
|
73
|
+
**Pattern 1: Guide with references**
|
|
117
74
|
```markdown
|
|
118
|
-
# PDF Processing
|
|
119
|
-
|
|
120
|
-
## Quick start
|
|
121
|
-
|
|
122
|
-
Extract text with pdfplumber:
|
|
123
|
-
[code example]
|
|
124
|
-
|
|
125
75
|
## Advanced features
|
|
126
|
-
|
|
127
76
|
- **Form filling**: See [FORMS.md](FORMS.md) for complete guide
|
|
128
77
|
- **API reference**: See [REFERENCE.md](REFERENCE.md) for all methods
|
|
129
|
-
- **Examples**: See [EXAMPLES.md](EXAMPLES.md) for common patterns
|
|
130
78
|
```
|
|
131
79
|
|
|
132
|
-
Claude loads FORMS.md, REFERENCE.md, or EXAMPLES.md only when needed.
|
|
133
|
-
|
|
134
80
|
**Pattern 2: Domain-specific organization**
|
|
135
|
-
|
|
136
|
-
For Skills with multiple domains, organize content by domain to avoid loading irrelevant context:
|
|
137
|
-
|
|
138
81
|
```
|
|
139
82
|
bigquery-skill/
|
|
140
83
|
├── SKILL.md (overview and navigation)
|
|
141
84
|
└── reference/
|
|
142
|
-
├── finance.md
|
|
143
|
-
├── sales.md
|
|
144
|
-
|
|
145
|
-
└── marketing.md (campaigns, attribution)
|
|
146
|
-
```
|
|
147
|
-
|
|
148
|
-
When a user asks about sales metrics, Claude only reads sales.md.
|
|
149
|
-
|
|
150
|
-
Similarly, for skills supporting multiple frameworks or variants, organize by variant:
|
|
151
|
-
|
|
152
|
-
```
|
|
153
|
-
cloud-deploy/
|
|
154
|
-
├── SKILL.md (workflow + provider selection)
|
|
155
|
-
└── references/
|
|
156
|
-
├── aws.md (AWS deployment patterns)
|
|
157
|
-
├── gcp.md (GCP deployment patterns)
|
|
158
|
-
└── azure.md (Azure deployment patterns)
|
|
85
|
+
├── finance.md
|
|
86
|
+
├── sales.md
|
|
87
|
+
└── product.md
|
|
159
88
|
```
|
|
160
|
-
|
|
161
|
-
When the user chooses AWS, Claude only reads aws.md.
|
|
89
|
+
Claude reads only the relevant domain file.
|
|
162
90
|
|
|
163
91
|
**Pattern 3: Conditional details**
|
|
164
|
-
|
|
165
|
-
Show basic content, link to advanced content:
|
|
166
|
-
|
|
167
92
|
```markdown
|
|
168
|
-
# DOCX Processing
|
|
169
|
-
|
|
170
|
-
## Creating documents
|
|
171
|
-
|
|
172
|
-
Use docx-js for new documents. See [DOCX-JS.md](DOCX-JS.md).
|
|
173
|
-
|
|
174
|
-
## Editing documents
|
|
175
|
-
|
|
176
|
-
For simple edits, modify the XML directly.
|
|
177
|
-
|
|
178
93
|
**For tracked changes**: See [REDLINING.md](REDLINING.md)
|
|
179
94
|
**For OOXML details**: See [OOXML.md](OOXML.md)
|
|
180
95
|
```
|
|
181
96
|
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
**Important guidelines:**
|
|
185
|
-
|
|
186
|
-
- **Avoid deeply nested references** - Keep references one level deep from SKILL.md. All reference files should link directly from SKILL.md.
|
|
187
|
-
- **Structure longer reference files** - For files longer than 100 lines, include a table of contents at the top so Claude can see the full scope when previewing.
|
|
97
|
+
Avoid deeply nested references — keep all reference files one level from SKILL.md.
|
|
188
98
|
|
|
189
99
|
## Skill Creation Process
|
|
190
100
|
|
|
191
|
-
Skill creation involves these steps:
|
|
192
|
-
|
|
193
101
|
1. Understand the skill with concrete examples
|
|
194
102
|
2. Plan reusable skill contents (scripts, references, assets)
|
|
195
|
-
3. Initialize the skill (
|
|
196
|
-
4. Edit the skill (implement resources
|
|
197
|
-
5. Package the skill (
|
|
103
|
+
3. Initialize the skill (`init_skill.py`)
|
|
104
|
+
4. Edit the skill (implement resources, write SKILL.md)
|
|
105
|
+
5. Package the skill (`package_skill.py`)
|
|
198
106
|
6. Iterate based on real usage
|
|
199
107
|
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
### Step 1: Understanding the Skill with Concrete Examples
|
|
203
|
-
|
|
204
|
-
Skip this step only when the skill's usage patterns are already clearly understood. It remains valuable even when working with an existing skill.
|
|
205
|
-
|
|
206
|
-
To create an effective skill, clearly understand concrete examples of how the skill will be used. This understanding can come from either direct user examples or generated examples that are validated with user feedback.
|
|
207
|
-
|
|
208
|
-
For example, when building an image-editor skill, relevant questions include:
|
|
209
|
-
|
|
210
|
-
- "What functionality should the image-editor skill support? Editing, rotating, anything else?"
|
|
211
|
-
- "Can you give some examples of how this skill would be used?"
|
|
212
|
-
- "I can imagine users asking for things like 'Remove the red-eye from this image' or 'Rotate this image'. Are there other ways you imagine this skill being used?"
|
|
213
|
-
- "What would a user say that should trigger this skill?"
|
|
214
|
-
|
|
215
|
-
To avoid overwhelming users, avoid asking too many questions in a single message. Start with the most important questions and follow up as needed for better effectiveness.
|
|
216
|
-
|
|
217
|
-
Conclude this step when there is a clear sense of the functionality the skill should support.
|
|
218
|
-
|
|
219
|
-
### Step 2: Planning the Reusable Skill Contents
|
|
220
|
-
|
|
221
|
-
To turn concrete examples into an effective skill, analyze each example by:
|
|
108
|
+
### Step 1: Understand with Concrete Examples
|
|
222
109
|
|
|
223
|
-
|
|
224
|
-
|
|
110
|
+
Clarify usage patterns before building. Ask:
|
|
111
|
+
- "What functionality should this skill support?"
|
|
112
|
+
- "Can you give examples of how it would be used?"
|
|
113
|
+
- "What would a user say to trigger this skill?"
|
|
225
114
|
|
|
226
|
-
|
|
115
|
+
Avoid multiple questions in one message. Conclude when functionality is clear.
|
|
227
116
|
|
|
228
|
-
|
|
229
|
-
2. A `scripts/rotate_pdf.py` script would be helpful to store in the skill
|
|
117
|
+
### Step 2: Plan Reusable Contents
|
|
230
118
|
|
|
231
|
-
|
|
119
|
+
Analyze each example:
|
|
120
|
+
1. How would you execute this from scratch?
|
|
121
|
+
2. What scripts, references, or assets would help when repeating this?
|
|
232
122
|
|
|
233
|
-
|
|
234
|
-
|
|
123
|
+
Examples:
|
|
124
|
+
- `pdf-editor` → rotate PDF repeatedly → `scripts/rotate_pdf.py`
|
|
125
|
+
- `frontend-webapp-builder` → same boilerplate each time → `assets/hello-world/` template
|
|
126
|
+
- `big-query` → re-discover schemas each time → `references/schema.md`
|
|
235
127
|
|
|
236
|
-
|
|
128
|
+
### Step 3: Initialize the Skill
|
|
237
129
|
|
|
238
|
-
|
|
239
|
-
2. A `references/schema.md` file documenting the table schemas would be helpful to store in the skill
|
|
240
|
-
|
|
241
|
-
To establish the skill's contents, analyze each concrete example to create a list of the reusable resources to include: scripts, references, and assets.
|
|
242
|
-
|
|
243
|
-
### Step 3: Initializing the Skill
|
|
244
|
-
|
|
245
|
-
At this point, it is time to actually create the skill.
|
|
246
|
-
|
|
247
|
-
Skip this step only if the skill being developed already exists, and iteration or packaging is needed. In this case, continue to the next step.
|
|
248
|
-
|
|
249
|
-
When creating a new skill from scratch, always run the `init_skill.py` script. The script conveniently generates a new template skill directory that automatically includes everything a skill requires, making the skill creation process much more efficient and reliable.
|
|
250
|
-
|
|
251
|
-
Usage:
|
|
130
|
+
Run `init_skill.py` for all new skills:
|
|
252
131
|
|
|
253
132
|
```bash
|
|
254
133
|
scripts/init_skill.py <skill-name> --path <output-directory>
|
|
255
134
|
```
|
|
256
135
|
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
- Creates the skill directory at the specified path
|
|
260
|
-
- Generates a SKILL.md template with proper frontmatter and TODO placeholders
|
|
261
|
-
- Creates example resource directories: `scripts/`, `references/`, and `assets/`
|
|
262
|
-
- Adds example files in each directory that can be customized or deleted
|
|
136
|
+
Creates: skill directory, SKILL.md template with frontmatter, example `scripts/`, `references/`, `assets/` dirs.
|
|
263
137
|
|
|
264
|
-
|
|
138
|
+
Skip only if skill already exists and needs iteration or packaging.
|
|
265
139
|
|
|
266
140
|
### Step 4: Edit the Skill
|
|
267
141
|
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
#### Learn Proven Design Patterns
|
|
271
|
-
|
|
272
|
-
Consult these helpful guides based on your skill's needs:
|
|
273
|
-
|
|
274
|
-
- **Multi-step processes**: See references/workflows.md for sequential workflows and conditional logic
|
|
275
|
-
- **Specific output formats or quality standards**: See references/output-patterns.md for template and example patterns
|
|
142
|
+
Write for another Claude instance. Include procedural knowledge, domain details, and reusable assets that would be non-obvious.
|
|
276
143
|
|
|
277
|
-
|
|
144
|
+
**Consult design pattern guides:**
|
|
145
|
+
- Multi-step processes → `references/workflows.md`
|
|
146
|
+
- Output formats/quality standards → `references/output-patterns.md`
|
|
278
147
|
|
|
279
|
-
|
|
148
|
+
**Start with reusable contents** (scripts, references, assets) before writing SKILL.md. Test scripts by running them. Delete unused example files from initialization.
|
|
280
149
|
|
|
281
|
-
|
|
150
|
+
**Frontmatter rules:**
|
|
151
|
+
- `name`: skill name
|
|
152
|
+
- `description`: primary trigger mechanism — include what skill does AND when to use it. Put all "when to use" info here.
|
|
153
|
+
- No other YAML fields.
|
|
282
154
|
|
|
283
|
-
|
|
155
|
+
**Body writing:** Use imperative/infinitive form ("Use X", not "You should consider using X").
|
|
284
156
|
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
#### Update SKILL.md
|
|
288
|
-
|
|
289
|
-
**Writing Guidelines:** Always use imperative/infinitive form.
|
|
290
|
-
|
|
291
|
-
##### Frontmatter
|
|
292
|
-
|
|
293
|
-
Write the YAML frontmatter with `name` and `description`:
|
|
294
|
-
|
|
295
|
-
- `name`: The skill name
|
|
296
|
-
- `description`: This is the primary triggering mechanism for your skill, and helps Claude understand when to use the skill.
|
|
297
|
-
- Include both what the Skill does and specific triggers/contexts for when to use it.
|
|
298
|
-
- Include all "when to use" information here - Not in the body. The body is only loaded after triggering, so "When to Use This Skill" sections in the body are not helpful to Claude.
|
|
299
|
-
- Example description for a `docx` skill: "Comprehensive document creation, editing, and analysis with support for tracked changes, comments, formatting preservation, and text extraction. Use when Claude needs to work with professional documents (.docx files) for: (1) Creating new documents, (2) Modifying or editing content, (3) Working with tracked changes, (4) Adding comments, or any other document tasks"
|
|
300
|
-
|
|
301
|
-
Do not include any other fields in YAML frontmatter.
|
|
302
|
-
|
|
303
|
-
##### Body
|
|
304
|
-
|
|
305
|
-
Write instructions for using the skill and its bundled resources.
|
|
306
|
-
|
|
307
|
-
### Step 5: Packaging a Skill
|
|
308
|
-
|
|
309
|
-
Once development of the skill is complete, it must be packaged into a distributable .skill file that gets shared with the user. The packaging process automatically validates the skill first to ensure it meets all requirements:
|
|
157
|
+
### Step 5: Package
|
|
310
158
|
|
|
311
159
|
```bash
|
|
312
160
|
scripts/package_skill.py <path/to/skill-folder>
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
Optional output directory specification:
|
|
316
|
-
|
|
317
|
-
```bash
|
|
161
|
+
# Optional output dir:
|
|
318
162
|
scripts/package_skill.py <path/to/skill-folder> ./dist
|
|
319
163
|
```
|
|
320
164
|
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
1. **Validate** the skill automatically, checking:
|
|
324
|
-
|
|
325
|
-
- YAML frontmatter format and required fields
|
|
326
|
-
- Skill naming conventions and directory structure
|
|
327
|
-
- Description completeness and quality
|
|
328
|
-
- File organization and resource references
|
|
329
|
-
|
|
330
|
-
2. **Package** the skill if validation passes, creating a .skill file named after the skill (e.g., `my-skill.skill`) that includes all files and maintains the proper directory structure for distribution. The .skill file is a zip file with a .skill extension.
|
|
331
|
-
|
|
332
|
-
If validation fails, the script will report the errors and exit without creating a package. Fix any validation errors and run the packaging command again.
|
|
165
|
+
Validates then packages. Validation checks: YAML format, required fields, naming conventions, description quality, file organization. Fix errors and re-run if validation fails.
|
|
333
166
|
|
|
334
167
|
### Step 6: Iterate
|
|
335
168
|
|
|
336
|
-
After
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
1. Use the skill on real tasks
|
|
341
|
-
2. Notice struggles or inefficiencies
|
|
342
|
-
3. Identify how SKILL.md or bundled resources should be updated
|
|
343
|
-
4. Implement changes and test again
|
|
169
|
+
After real usage:
|
|
170
|
+
1. Notice struggles or inefficiencies
|
|
171
|
+
2. Identify SKILL.md or resource updates needed
|
|
172
|
+
3. Implement changes and test again
|
|
@@ -5,47 +5,27 @@ description: "Default orchestration skill for ALL non-trivial tasks. Umbrella th
|
|
|
5
5
|
|
|
6
6
|
# Task Master - Orchestration Umbrella
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
Complex work fails when we dive in without structure. Task Master coordinates two phases: planning the work and executing through delegation.
|
|
11
|
-
|
|
12
|
-
## Core Philosophy
|
|
13
|
-
|
|
14
|
-
**Think before acting. Plan before implementing. Delegate before coding.**
|
|
15
|
-
|
|
16
|
-
Every hour of planning saves 10 hours of rework. The urge to "just start coding" is the enemy of clean architecture and maintainable systems.
|
|
8
|
+
Think before acting. Plan before implementing. Delegate before coding.
|
|
17
9
|
|
|
18
10
|
## Phase Dispatch
|
|
19
11
|
|
|
20
12
|
```
|
|
21
13
|
Do you have an approved plan with decomposed tasks?
|
|
22
|
-
├── No →
|
|
23
|
-
|
|
24
|
-
│
|
|
25
|
-
└── Yes → Use task-runner to delegate to agents
|
|
26
|
-
(Model selection, skill assignment, parallel execution)
|
|
14
|
+
├── No → task-planner (Epic > Story > Task hierarchy, storage strategy)
|
|
15
|
+
└── Yes → task-runner (model selection, skill assignment, parallel execution)
|
|
27
16
|
```
|
|
28
17
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
**REQUIRED SUB-SKILL:** Use `task-runner` for delegation (model selection, skill assignment, agent execution).
|
|
32
|
-
|
|
33
|
-
## Quick Decision Tree
|
|
18
|
+
## Decision Tree
|
|
34
19
|
|
|
35
20
|
| Situation | Action |
|
|
36
21
|
|-----------|--------|
|
|
37
|
-
| New request, no plan yet |
|
|
38
|
-
| Plan approved, tasks ready |
|
|
39
|
-
| Mid-session, need to re-plan |
|
|
40
|
-
| Subagent failed, need to retry |
|
|
22
|
+
| New request, no plan yet | `/ima-claude:task-planner` |
|
|
23
|
+
| Plan approved, tasks ready | `/ima-claude:task-runner` |
|
|
24
|
+
| Mid-session, need to re-plan | `/ima-claude:task-planner` |
|
|
25
|
+
| Subagent failed, need to retry | `/ima-claude:task-runner` |
|
|
26
|
+
| Subagent returned `ESCALATION: <trigger>` | Opus arbitrates, then `/ima-claude:task-runner` with resolution added to task |
|
|
41
27
|
| Not sure if trivial | If >1 file or >5 lines or judgment needed → task-master |
|
|
42
28
|
|
|
43
|
-
##
|
|
29
|
+
## Advisor Pattern
|
|
44
30
|
|
|
45
|
-
This
|
|
46
|
-
- **task-planner** - Decomposition, hierarchy, storage strategy
|
|
47
|
-
- **task-runner** - Delegation, model selection, execution
|
|
48
|
-
- **mcp-serena** - For persistent memory across sessions
|
|
49
|
-
- **mcp-vestige** - For cross-project decisions, patterns, and intentions
|
|
50
|
-
- **architect** - For evaluating architectural choices during planning
|
|
51
|
-
- **save-session / resume-session** - For session state management
|
|
31
|
+
Executor agents (sonnet/haiku) escalate out-of-scope forks to the parent session (opus) via structured `ESCALATION:` return — see `task-runner` for handling. This keeps work on cheap models while reserving opus for the decisions it's actually good at. Don't rewrite the escalation as a normal retry; handle it as arbitration.
|