aiblueprint-cli 1.4.23 → 1.4.24
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/claude-code-config/skills/git-commit/SKILL.md +42 -0
- package/claude-code-config/{commands/git/create-pr.md → skills/git-create-pr/SKILL.md} +12 -18
- package/claude-code-config/skills/git-fix-pr-comments/SKILL.md +51 -0
- package/claude-code-config/skills/git-merge/SKILL.md +68 -0
- package/claude-code-config/skills/{claude-memory → meta-claude-memory}/SKILL.md +7 -2
- package/claude-code-config/skills/meta-claude-memory/references/rules-directory-guide.md +298 -0
- package/claude-code-config/skills/meta-prompt-creator/SKILL.md +285 -0
- package/claude-code-config/skills/meta-prompt-creator/references/anthropic-best-practices.md +126 -0
- package/claude-code-config/skills/meta-prompt-creator/references/anti-patterns.md +57 -0
- package/claude-code-config/skills/meta-prompt-creator/references/clarity-principles.md +54 -0
- package/claude-code-config/skills/meta-prompt-creator/references/context-management.md +389 -0
- package/claude-code-config/skills/meta-prompt-creator/references/few-shot-patterns.md +47 -0
- package/claude-code-config/skills/meta-prompt-creator/references/openai-best-practices.md +50 -0
- package/claude-code-config/skills/meta-prompt-creator/references/prompt-templates.md +110 -0
- package/claude-code-config/skills/meta-prompt-creator/references/reasoning-techniques.md +52 -0
- package/claude-code-config/skills/meta-prompt-creator/references/system-prompt-patterns.md +48 -0
- package/claude-code-config/skills/meta-prompt-creator/references/xml-structure.md +36 -0
- package/claude-code-config/skills/meta-skill-creator/LICENSE.txt +202 -0
- package/claude-code-config/skills/meta-skill-creator/SKILL.md +421 -0
- package/claude-code-config/skills/meta-skill-creator/package.json +5 -0
- package/claude-code-config/skills/meta-skill-creator/references/output-patterns.md +82 -0
- package/claude-code-config/skills/meta-skill-creator/references/progressive-disclosure-patterns.md +374 -0
- package/claude-code-config/skills/meta-skill-creator/references/prompting-integration.md +363 -0
- package/claude-code-config/skills/meta-skill-creator/references/real-world-examples.md +513 -0
- package/claude-code-config/skills/meta-skill-creator/references/script-patterns.md +385 -0
- package/claude-code-config/skills/meta-skill-creator/references/workflows.md +28 -0
- package/claude-code-config/skills/meta-skill-creator/references/xml-tag-guide.md +606 -0
- package/claude-code-config/skills/meta-skill-creator/scripts/init-skill.ts +214 -0
- package/claude-code-config/skills/meta-skill-creator/scripts/package-skill.ts +146 -0
- package/claude-code-config/skills/meta-skill-creator/scripts/validate.ts +138 -0
- package/claude-code-config/skills/{create-subagents → meta-subagent-creator}/SKILL.md +41 -15
- package/claude-code-config/skills/{setup-ralph → ralph-loop}/steps/step-00-init.md +2 -3
- package/claude-code-config/skills/utils-fix-errors/SKILL.md +61 -0
- package/claude-code-config/skills/utils-fix-grammar/SKILL.md +59 -0
- package/claude-code-config/skills/utils-oneshot/SKILL.md +56 -0
- package/claude-code-config/skills/workflow-apex/SKILL.md +303 -0
- package/claude-code-config/skills/workflow-apex/scripts/setup-templates.sh +134 -0
- package/claude-code-config/skills/workflow-apex/scripts/update-progress.sh +80 -0
- package/claude-code-config/skills/workflow-apex/steps/step-00-init.md +288 -0
- package/claude-code-config/skills/workflow-apex/steps/step-00b-branch.md +126 -0
- package/claude-code-config/skills/workflow-apex/steps/step-00b-economy.md +244 -0
- package/claude-code-config/skills/workflow-apex/steps/step-00b-interactive.md +153 -0
- package/claude-code-config/skills/workflow-apex/steps/step-01-analyze.md +361 -0
- package/claude-code-config/skills/workflow-apex/steps/step-02-plan.md +264 -0
- package/claude-code-config/skills/workflow-apex/steps/step-03-execute.md +239 -0
- package/claude-code-config/skills/workflow-apex/steps/step-04-validate.md +264 -0
- package/claude-code-config/skills/workflow-apex/steps/step-05-examine.md +294 -0
- package/claude-code-config/skills/workflow-apex/steps/step-06-resolve.md +237 -0
- package/claude-code-config/skills/workflow-apex/steps/step-07-tests.md +250 -0
- package/claude-code-config/skills/workflow-apex/steps/step-08-run-tests.md +308 -0
- package/claude-code-config/skills/workflow-apex/steps/step-09-finish.md +193 -0
- package/claude-code-config/skills/workflow-apex/templates/00-context.md +51 -0
- package/claude-code-config/skills/workflow-apex/templates/01-analyze.md +10 -0
- package/claude-code-config/skills/workflow-apex/templates/02-plan.md +10 -0
- package/claude-code-config/skills/workflow-apex/templates/03-execute.md +10 -0
- package/claude-code-config/skills/workflow-apex/templates/04-validate.md +10 -0
- package/claude-code-config/skills/workflow-apex/templates/05-examine.md +10 -0
- package/claude-code-config/skills/workflow-apex/templates/06-resolve.md +10 -0
- package/claude-code-config/skills/workflow-apex/templates/07-tests.md +10 -0
- package/claude-code-config/skills/workflow-apex/templates/08-run-tests.md +10 -0
- package/claude-code-config/skills/workflow-apex/templates/09-finish.md +10 -0
- package/claude-code-config/skills/workflow-apex/templates/README.md +195 -0
- package/claude-code-config/skills/workflow-apex/templates/step-complete.md +7 -0
- package/package.json +1 -1
- package/claude-code-config/commands/explore.md +0 -90
- package/claude-code-config/commands/git/commit.md +0 -60
- package/claude-code-config/commands/git/fix-pr-comments.md +0 -59
- package/claude-code-config/commands/oneshot.md +0 -57
- package/claude-code-config/skills/create-slash-commands/SKILL.md +0 -1110
- package/claude-code-config/skills/create-slash-commands/references/arguments.md +0 -273
- package/claude-code-config/skills/create-slash-commands/references/patterns.md +0 -947
- package/claude-code-config/skills/create-slash-commands/references/prompt-examples.md +0 -656
- package/claude-code-config/skills/create-slash-commands/references/tool-restrictions.md +0 -389
- /package/claude-code-config/skills/{claude-memory → meta-claude-memory}/references/comprehensive-example.md +0 -0
- /package/claude-code-config/skills/{claude-memory → meta-claude-memory}/references/project-patterns.md +0 -0
- /package/claude-code-config/skills/{claude-memory → meta-claude-memory}/references/prompting-techniques.md +0 -0
- /package/claude-code-config/skills/{claude-memory → meta-claude-memory}/references/section-templates.md +0 -0
- /package/claude-code-config/skills/{create-subagents → meta-subagent-creator}/references/context-management.md +0 -0
- /package/claude-code-config/skills/{create-subagents → meta-subagent-creator}/references/debugging-agents.md +0 -0
- /package/claude-code-config/skills/{create-subagents → meta-subagent-creator}/references/error-handling-and-recovery.md +0 -0
- /package/claude-code-config/skills/{create-subagents → meta-subagent-creator}/references/evaluation-and-testing.md +0 -0
- /package/claude-code-config/skills/{create-subagents → meta-subagent-creator}/references/orchestration-patterns.md +0 -0
- /package/claude-code-config/skills/{create-subagents → meta-subagent-creator}/references/subagents.md +0 -0
- /package/claude-code-config/skills/{create-subagents → meta-subagent-creator}/references/writing-subagent-prompts.md +0 -0
- /package/claude-code-config/skills/{setup-ralph → ralph-loop}/SKILL.md +0 -0
- /package/claude-code-config/skills/{setup-ralph → ralph-loop}/scripts/setup.sh +0 -0
- /package/claude-code-config/skills/{setup-ralph → ralph-loop}/steps/step-01-interactive-prd.md +0 -0
- /package/claude-code-config/skills/{setup-ralph → ralph-loop}/steps/step-02-create-stories.md +0 -0
- /package/claude-code-config/skills/{setup-ralph → ralph-loop}/steps/step-03-finish.md +0 -0
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
# Output Patterns
|
|
2
|
+
|
|
3
|
+
Use these patterns when skills need to produce consistent, high-quality output.
|
|
4
|
+
|
|
5
|
+
## Template Pattern
|
|
6
|
+
|
|
7
|
+
Provide templates for output format. Match the level of strictness to your needs.
|
|
8
|
+
|
|
9
|
+
**For strict requirements (like API responses or data formats):**
|
|
10
|
+
|
|
11
|
+
```markdown
|
|
12
|
+
## Report structure
|
|
13
|
+
|
|
14
|
+
ALWAYS use this exact template structure:
|
|
15
|
+
|
|
16
|
+
# [Analysis Title]
|
|
17
|
+
|
|
18
|
+
## Executive summary
|
|
19
|
+
[One-paragraph overview of key findings]
|
|
20
|
+
|
|
21
|
+
## Key findings
|
|
22
|
+
- Finding 1 with supporting data
|
|
23
|
+
- Finding 2 with supporting data
|
|
24
|
+
- Finding 3 with supporting data
|
|
25
|
+
|
|
26
|
+
## Recommendations
|
|
27
|
+
1. Specific actionable recommendation
|
|
28
|
+
2. Specific actionable recommendation
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
**For flexible guidance (when adaptation is useful):**
|
|
32
|
+
|
|
33
|
+
```markdown
|
|
34
|
+
## Report structure
|
|
35
|
+
|
|
36
|
+
Here is a sensible default format, but use your best judgment:
|
|
37
|
+
|
|
38
|
+
# [Analysis Title]
|
|
39
|
+
|
|
40
|
+
## Executive summary
|
|
41
|
+
[Overview]
|
|
42
|
+
|
|
43
|
+
## Key findings
|
|
44
|
+
[Adapt sections based on what you discover]
|
|
45
|
+
|
|
46
|
+
## Recommendations
|
|
47
|
+
[Tailor to the specific context]
|
|
48
|
+
|
|
49
|
+
Adjust sections as needed for the specific analysis type.
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## Examples Pattern
|
|
53
|
+
|
|
54
|
+
For skills where output quality depends on seeing examples, provide input/output pairs:
|
|
55
|
+
|
|
56
|
+
```markdown
|
|
57
|
+
## Commit message format
|
|
58
|
+
|
|
59
|
+
Generate commit messages following these examples:
|
|
60
|
+
|
|
61
|
+
**Example 1:**
|
|
62
|
+
Input: Added user authentication with JWT tokens
|
|
63
|
+
Output:
|
|
64
|
+
```
|
|
65
|
+
feat(auth): implement JWT-based authentication
|
|
66
|
+
|
|
67
|
+
Add login endpoint and token validation middleware
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
**Example 2:**
|
|
71
|
+
Input: Fixed bug where dates displayed incorrectly in reports
|
|
72
|
+
Output:
|
|
73
|
+
```
|
|
74
|
+
fix(reports): correct date formatting in timezone conversion
|
|
75
|
+
|
|
76
|
+
Use UTC timestamps consistently across report generation
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
Follow this style: type(scope): brief description, then detailed explanation.
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
Examples help Claude understand the desired style and level of detail more clearly than descriptions alone.
|
package/claude-code-config/skills/meta-skill-creator/references/progressive-disclosure-patterns.md
ADDED
|
@@ -0,0 +1,374 @@
|
|
|
1
|
+
<overview>
|
|
2
|
+
Advanced progressive disclosure strategies for organizing skill content efficiently across multiple files.
|
|
3
|
+
</overview>
|
|
4
|
+
|
|
5
|
+
<principle>
|
|
6
|
+
SKILL.md serves as an overview that points to detailed materials as needed. This keeps context window usage efficient while providing access to comprehensive documentation.
|
|
7
|
+
</principle>
|
|
8
|
+
|
|
9
|
+
<three_level_system>
|
|
10
|
+
Skills use a three-level loading system:
|
|
11
|
+
|
|
12
|
+
**Level 1: Metadata (always in context)**
|
|
13
|
+
- Name + description from YAML frontmatter
|
|
14
|
+
- ~100 words
|
|
15
|
+
- Always loaded for skill discovery
|
|
16
|
+
|
|
17
|
+
**Level 2: SKILL.md body (loaded when skill triggers)**
|
|
18
|
+
- Core concepts and quick start
|
|
19
|
+
- Essential procedures
|
|
20
|
+
- Pointers to level 3 resources
|
|
21
|
+
- Target: <500 lines ideal, <1000 max
|
|
22
|
+
|
|
23
|
+
**Level 3: Bundled resources (loaded as needed)**
|
|
24
|
+
- Detailed references (unlimited size)
|
|
25
|
+
- Examples and templates
|
|
26
|
+
- Scripts (may execute without loading)
|
|
27
|
+
</three_level_system>
|
|
28
|
+
|
|
29
|
+
<what_goes_where>
|
|
30
|
+
<skill_md_content>
|
|
31
|
+
**Include in SKILL.md** (always loaded when skill triggers):
|
|
32
|
+
|
|
33
|
+
- Core concepts and overview
|
|
34
|
+
- Essential procedures and workflows
|
|
35
|
+
- Quick reference tables
|
|
36
|
+
- Most common use cases
|
|
37
|
+
- Pointers to references/examples/scripts
|
|
38
|
+
|
|
39
|
+
**Keep under 500 lines, ideally 300-400 lines**
|
|
40
|
+
</skill_md_content>
|
|
41
|
+
|
|
42
|
+
<references_content>
|
|
43
|
+
**Move to references/** (loaded as needed):
|
|
44
|
+
|
|
45
|
+
- Detailed patterns and advanced techniques
|
|
46
|
+
- Comprehensive API documentation
|
|
47
|
+
- Migration guides
|
|
48
|
+
- Edge cases and troubleshooting
|
|
49
|
+
- Extensive examples and walkthroughs
|
|
50
|
+
- Domain-specific knowledge
|
|
51
|
+
|
|
52
|
+
**Each reference file can be large (2,000-5,000+ words)**
|
|
53
|
+
</references_content>
|
|
54
|
+
|
|
55
|
+
<examples_content>
|
|
56
|
+
**Move to examples/**:
|
|
57
|
+
|
|
58
|
+
- Complete, runnable scripts
|
|
59
|
+
- Configuration files
|
|
60
|
+
- Template files
|
|
61
|
+
- Real-world usage examples
|
|
62
|
+
|
|
63
|
+
**Users can copy and adapt these directly**
|
|
64
|
+
</examples_content>
|
|
65
|
+
|
|
66
|
+
<scripts_content>
|
|
67
|
+
**Move to scripts/**:
|
|
68
|
+
|
|
69
|
+
- Validation tools
|
|
70
|
+
- Testing helpers
|
|
71
|
+
- Parsing utilities
|
|
72
|
+
- Automation scripts
|
|
73
|
+
|
|
74
|
+
**Should be executable and documented**
|
|
75
|
+
</scripts_content>
|
|
76
|
+
</what_goes_where>
|
|
77
|
+
|
|
78
|
+
<organization_patterns>
|
|
79
|
+
<pattern name="high_level_guide">
|
|
80
|
+
**Use case**: Simple skill with some advanced features
|
|
81
|
+
|
|
82
|
+
Quick start in SKILL.md, details in reference files:
|
|
83
|
+
|
|
84
|
+
```yaml
|
|
85
|
+
---
|
|
86
|
+
name: pdf-processing
|
|
87
|
+
description: Extract text and tables from PDF files, fill forms, and merge documents. Use when working with PDF files or when the user mentions PDFs, forms, or document extraction.
|
|
88
|
+
---
|
|
89
|
+
|
|
90
|
+
<objective>
|
|
91
|
+
Extract text and tables from PDF files, fill forms, and merge documents using Python libraries.
|
|
92
|
+
</objective>
|
|
93
|
+
|
|
94
|
+
<quick_start>
|
|
95
|
+
Extract text with pdfplumber:
|
|
96
|
+
|
|
97
|
+
```python
|
|
98
|
+
import pdfplumber
|
|
99
|
+
with pdfplumber.open("file.pdf") as pdf:
|
|
100
|
+
text = pdf.pages[0].extract_text()
|
|
101
|
+
```
|
|
102
|
+
</quick_start>
|
|
103
|
+
|
|
104
|
+
<advanced_features>
|
|
105
|
+
**Form filling**: See [references/forms.md](references/forms.md)
|
|
106
|
+
**API reference**: See [references/api-reference.md](references/api-reference.md)
|
|
107
|
+
**Troubleshooting**: See [references/troubleshooting.md](references/troubleshooting.md)
|
|
108
|
+
</advanced_features>
|
|
109
|
+
|
|
110
|
+
<success_criteria>
|
|
111
|
+
- Text extracted successfully from PDF
|
|
112
|
+
- Output is clean and properly formatted
|
|
113
|
+
</success_criteria>
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
Claude loads forms.md or api-reference.md only when needed.
|
|
117
|
+
</pattern>
|
|
118
|
+
|
|
119
|
+
<pattern name="domain_organization">
|
|
120
|
+
**Use case**: Multiple domains within one skill
|
|
121
|
+
|
|
122
|
+
Organize by domain to avoid loading irrelevant context:
|
|
123
|
+
|
|
124
|
+
```
|
|
125
|
+
bigquery-skill/
|
|
126
|
+
├── SKILL.md (overview and navigation)
|
|
127
|
+
└── references/
|
|
128
|
+
├── finance.md (revenue, billing metrics)
|
|
129
|
+
├── sales.md (opportunities, pipeline)
|
|
130
|
+
├── product.md (API usage, features)
|
|
131
|
+
└── marketing.md (campaigns, attribution)
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
In SKILL.md:
|
|
135
|
+
|
|
136
|
+
```xml
|
|
137
|
+
<domain_references>
|
|
138
|
+
Query different domains with specialized references:
|
|
139
|
+
|
|
140
|
+
- **Finance data**: See [references/finance.md](references/finance.md)
|
|
141
|
+
- **Sales data**: See [references/sales.md](references/sales.md)
|
|
142
|
+
- **Product data**: See [references/product.md](references/product.md)
|
|
143
|
+
- **Marketing data**: See [references/marketing.md](references/marketing.md)
|
|
144
|
+
</domain_references>
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
When user asks about revenue, Claude reads only finance.md. Other files stay on filesystem consuming zero tokens.
|
|
148
|
+
</pattern>
|
|
149
|
+
|
|
150
|
+
<pattern name="conditional_details">
|
|
151
|
+
**Use case**: Different levels of expertise needed
|
|
152
|
+
|
|
153
|
+
Show basic content in SKILL.md, link to advanced in reference files:
|
|
154
|
+
|
|
155
|
+
```xml
|
|
156
|
+
<objective>
|
|
157
|
+
Process DOCX files with creation and editing capabilities.
|
|
158
|
+
</objective>
|
|
159
|
+
|
|
160
|
+
<quick_start>
|
|
161
|
+
<creating_documents>
|
|
162
|
+
Use docx-js for new documents. See [references/docx-js.md](references/docx-js.md).
|
|
163
|
+
</creating_documents>
|
|
164
|
+
|
|
165
|
+
<editing_documents>
|
|
166
|
+
For simple edits, modify XML directly.
|
|
167
|
+
|
|
168
|
+
**For tracked changes**: See [references/redlining.md](references/redlining.md)
|
|
169
|
+
**For OOXML details**: See [references/ooxml.md](references/ooxml.md)
|
|
170
|
+
</editing_documents>
|
|
171
|
+
</quick_start>
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
Claude reads redlining.md or ooxml.md only when the user needs those features.
|
|
175
|
+
</pattern>
|
|
176
|
+
|
|
177
|
+
<pattern name="progressive_complexity">
|
|
178
|
+
**Use case**: Beginner to advanced workflows
|
|
179
|
+
|
|
180
|
+
Layer complexity across multiple files:
|
|
181
|
+
|
|
182
|
+
```
|
|
183
|
+
skill-name/
|
|
184
|
+
├── SKILL.md (beginner quick start)
|
|
185
|
+
└── references/
|
|
186
|
+
├── intermediate.md (common patterns)
|
|
187
|
+
├── advanced.md (complex scenarios)
|
|
188
|
+
└── expert.md (edge cases, optimizations)
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
In SKILL.md:
|
|
192
|
+
|
|
193
|
+
```xml
|
|
194
|
+
<quick_start>
|
|
195
|
+
Basic usage for common cases...
|
|
196
|
+
</quick_start>
|
|
197
|
+
|
|
198
|
+
<next_steps>
|
|
199
|
+
**Ready for more?**
|
|
200
|
+
- [Intermediate patterns](references/intermediate.md) - Common use cases
|
|
201
|
+
- [Advanced techniques](references/advanced.md) - Complex scenarios
|
|
202
|
+
- [Expert guide](references/expert.md) - Edge cases and optimizations
|
|
203
|
+
</next_steps>
|
|
204
|
+
```
|
|
205
|
+
</pattern>
|
|
206
|
+
|
|
207
|
+
<pattern name="feature_based">
|
|
208
|
+
**Use case**: Multiple independent features
|
|
209
|
+
|
|
210
|
+
Organize by feature:
|
|
211
|
+
|
|
212
|
+
```
|
|
213
|
+
skill-name/
|
|
214
|
+
├── SKILL.md (overview of all features)
|
|
215
|
+
└── references/
|
|
216
|
+
├── feature-a.md
|
|
217
|
+
├── feature-b.md
|
|
218
|
+
└── feature-c.md
|
|
219
|
+
```
|
|
220
|
+
|
|
221
|
+
In SKILL.md:
|
|
222
|
+
|
|
223
|
+
```xml
|
|
224
|
+
<features>
|
|
225
|
+
This skill supports multiple features:
|
|
226
|
+
|
|
227
|
+
- **Feature A**: See [references/feature-a.md](references/feature-a.md)
|
|
228
|
+
- **Feature B**: See [references/feature-b.md](references/feature-b.md)
|
|
229
|
+
- **Feature C**: See [references/feature-c.md](references/feature-c.md)
|
|
230
|
+
</features>
|
|
231
|
+
```
|
|
232
|
+
</pattern>
|
|
233
|
+
</organization_patterns>
|
|
234
|
+
|
|
235
|
+
<critical_rules>
|
|
236
|
+
<one_level_deep>
|
|
237
|
+
**Keep references one level deep**: All reference files should link directly from SKILL.md.
|
|
238
|
+
|
|
239
|
+
❌ **Avoid nested references**:
|
|
240
|
+
```
|
|
241
|
+
SKILL.md → advanced.md → details.md → examples.md
|
|
242
|
+
```
|
|
243
|
+
|
|
244
|
+
✅ **Prefer flat structure**:
|
|
245
|
+
```
|
|
246
|
+
SKILL.md → advanced-details.md
|
|
247
|
+
SKILL.md → advanced-examples.md
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
**Why**: Claude may only partially read deeply nested files.
|
|
251
|
+
</one_level_deep>
|
|
252
|
+
|
|
253
|
+
<table_of_contents>
|
|
254
|
+
**Add table of contents to long files**: For reference files over 100 lines, include a table of contents at the top.
|
|
255
|
+
|
|
256
|
+
```xml
|
|
257
|
+
<contents>
|
|
258
|
+
- [Overview](#overview)
|
|
259
|
+
- [Basic Patterns](#basic-patterns)
|
|
260
|
+
- [Advanced Patterns](#advanced-patterns)
|
|
261
|
+
- [Examples](#examples)
|
|
262
|
+
- [Troubleshooting](#troubleshooting)
|
|
263
|
+
</contents>
|
|
264
|
+
```
|
|
265
|
+
</table_of_contents>
|
|
266
|
+
|
|
267
|
+
<xml_in_references>
|
|
268
|
+
**Use pure XML in reference files**: Reference files should also use pure XML structure (no markdown headings in body).
|
|
269
|
+
|
|
270
|
+
This maintains consistency and parseability across all skill files.
|
|
271
|
+
</xml_in_references>
|
|
272
|
+
</critical_rules>
|
|
273
|
+
|
|
274
|
+
<practical_guidance>
|
|
275
|
+
<line_count_targets>
|
|
276
|
+
- **SKILL.md**: 300-500 lines ideal, <1000 max
|
|
277
|
+
- **Reference files**: 100-500 lines each (can be larger if needed)
|
|
278
|
+
- **Split when approaching limits**: Don't wait until files are huge
|
|
279
|
+
</line_count_targets>
|
|
280
|
+
|
|
281
|
+
<reference_linking>
|
|
282
|
+
Always use relative paths from SKILL.md:
|
|
283
|
+
|
|
284
|
+
```xml
|
|
285
|
+
See [references/patterns.md](references/patterns.md)
|
|
286
|
+
```
|
|
287
|
+
|
|
288
|
+
Not absolute paths:
|
|
289
|
+
|
|
290
|
+
```xml
|
|
291
|
+
See [~/.claude/skills/skill-name/references/patterns.md]
|
|
292
|
+
```
|
|
293
|
+
</reference_linking>
|
|
294
|
+
|
|
295
|
+
<descriptive_names>
|
|
296
|
+
Name reference files descriptively:
|
|
297
|
+
|
|
298
|
+
✅ `references/api-authentication.md`
|
|
299
|
+
✅ `references/error-handling-patterns.md`
|
|
300
|
+
✅ `references/database-schema.md`
|
|
301
|
+
|
|
302
|
+
❌ `references/doc1.md`
|
|
303
|
+
❌ `references/misc.md`
|
|
304
|
+
❌ `references/stuff.md`
|
|
305
|
+
</descriptive_names>
|
|
306
|
+
</practical_guidance>
|
|
307
|
+
|
|
308
|
+
<examples>
|
|
309
|
+
<example name="minimal_skill">
|
|
310
|
+
**When to use**: Simple, focused skills
|
|
311
|
+
|
|
312
|
+
```
|
|
313
|
+
skill-name/
|
|
314
|
+
└── SKILL.md (300 lines)
|
|
315
|
+
```
|
|
316
|
+
|
|
317
|
+
Good for: File format conversion, simple API calls, basic utilities
|
|
318
|
+
</example>
|
|
319
|
+
|
|
320
|
+
<example name="standard_skill">
|
|
321
|
+
**When to use**: Most skills
|
|
322
|
+
|
|
323
|
+
```
|
|
324
|
+
skill-name/
|
|
325
|
+
├── SKILL.md (400 lines)
|
|
326
|
+
├── references/
|
|
327
|
+
│ ├── patterns.md (300 lines)
|
|
328
|
+
│ └── advanced.md (400 lines)
|
|
329
|
+
└── examples/
|
|
330
|
+
└── example.sh
|
|
331
|
+
```
|
|
332
|
+
|
|
333
|
+
Good for: API integrations, document processing, data analysis
|
|
334
|
+
</example>
|
|
335
|
+
|
|
336
|
+
<example name="complex_skill">
|
|
337
|
+
**When to use**: Multi-domain or security-critical skills
|
|
338
|
+
|
|
339
|
+
```
|
|
340
|
+
skill-name/
|
|
341
|
+
├── SKILL.md (500 lines)
|
|
342
|
+
├── references/
|
|
343
|
+
│ ├── domain-a.md (500 lines)
|
|
344
|
+
│ ├── domain-b.md (500 lines)
|
|
345
|
+
│ ├── security.md (300 lines)
|
|
346
|
+
│ └── troubleshooting.md (400 lines)
|
|
347
|
+
├── examples/
|
|
348
|
+
│ ├── basic.py
|
|
349
|
+
│ └── advanced.py
|
|
350
|
+
└── scripts/
|
|
351
|
+
└── validate.sh
|
|
352
|
+
```
|
|
353
|
+
|
|
354
|
+
Good for: Payment processing, authentication, multi-step workflows
|
|
355
|
+
</example>
|
|
356
|
+
</examples>
|
|
357
|
+
|
|
358
|
+
<decision_tree>
|
|
359
|
+
**When to split content to references/**:
|
|
360
|
+
|
|
361
|
+
1. Is SKILL.md approaching 500 lines? → Split to references/
|
|
362
|
+
2. Does this section serve a specific subset of use cases? → Split to references/
|
|
363
|
+
3. Is this advanced/expert content? → Split to references/
|
|
364
|
+
4. Is this domain-specific knowledge? → Split to references/
|
|
365
|
+
5. Would most users skip this section? → Split to references/
|
|
366
|
+
6. Is this troubleshooting/edge cases? → Split to references/
|
|
367
|
+
|
|
368
|
+
**When to keep in SKILL.md**:
|
|
369
|
+
|
|
370
|
+
1. Is this core to understanding the skill? → Keep in SKILL.md
|
|
371
|
+
2. Would most users need this immediately? → Keep in SKILL.md
|
|
372
|
+
3. Is this part of the quick start? → Keep in SKILL.md
|
|
373
|
+
4. Is this a pointer to references? → Keep in SKILL.md
|
|
374
|
+
</decision_tree>
|