aiblueprint-cli 1.4.59 → 1.4.61

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.
Files changed (184) hide show
  1. package/README.md +16 -36
  2. package/agents-config/agents/action.md +1 -1
  3. package/agents-config/agents/explore-codebase.md +53 -53
  4. package/agents-config/agents/explore-docs.md +50 -69
  5. package/agents-config/agents/websearch.md +36 -40
  6. package/agents-config/claude-config/scripts/.claude/skills/fix-on-my-computer/SKILL.md +81 -0
  7. package/agents-config/claude-config/scripts/CLAUDE.md +10 -4
  8. package/agents-config/claude-config/scripts/bun.lockb +0 -0
  9. package/agents-config/claude-config/scripts/package.json +22 -30
  10. package/agents-config/claude-config/scripts/statusline/CLAUDE.md +37 -155
  11. package/agents-config/claude-config/scripts/statusline/README.md +18 -94
  12. package/agents-config/claude-config/scripts/statusline/defaults.json +13 -10
  13. package/agents-config/claude-config/scripts/statusline/fixtures/mock-transcript.jsonl +4 -4
  14. package/agents-config/claude-config/scripts/statusline/fixtures/test-input.json +4 -4
  15. package/agents-config/claude-config/scripts/statusline/src/commands/interactive-config.ts +403 -0
  16. package/agents-config/claude-config/scripts/statusline/src/index.ts +33 -82
  17. package/agents-config/claude-config/scripts/statusline/src/lib/config-types.ts +7 -1
  18. package/agents-config/claude-config/scripts/statusline/src/lib/formatters.ts +40 -0
  19. package/agents-config/claude-config/scripts/statusline/src/lib/presets.ts +13 -13
  20. package/agents-config/claude-config/scripts/statusline/src/lib/render-pure.ts +24 -5
  21. package/agents-config/claude-config/scripts/statusline/statusline.config.free.json +79 -0
  22. package/agents-config/claude-config/scripts/statusline/statusline.config.json +77 -77
  23. package/agents-config/codex-config/config.toml +9 -0
  24. package/agents-config/codex-config/hooks/command-deny-list.ts +203 -0
  25. package/agents-config/commands/prompts/create-vitejs-app.md +272 -0
  26. package/agents-config/commands/prompts/nextjs-add-prisma-db.md +136 -0
  27. package/agents-config/commands/prompts/nextjs-setup-better-auth.md +173 -0
  28. package/agents-config/commands/prompts/nextjs-setup-project.md +200 -0
  29. package/agents-config/commands/prompts/prompt.md +55 -0
  30. package/agents-config/commands/prompts/saas-challenge-idea.md +135 -0
  31. package/agents-config/commands/prompts/saas-create-architecture.md +242 -0
  32. package/agents-config/commands/prompts/saas-create-headline.md +132 -0
  33. package/agents-config/commands/prompts/saas-create-landing-copywritting.md +267 -0
  34. package/agents-config/commands/prompts/saas-create-legals-docs.md +176 -0
  35. package/agents-config/commands/prompts/saas-create-logos.md +240 -0
  36. package/agents-config/commands/prompts/saas-create-prd.md +195 -0
  37. package/agents-config/commands/prompts/saas-create-tasks.md +240 -0
  38. package/agents-config/commands/prompts/saas-define-pricing.md +293 -0
  39. package/agents-config/commands/prompts/saas-find-domain-name.md +190 -0
  40. package/agents-config/commands/prompts/saas-implement-landing-page.md +257 -0
  41. package/agents-config/commands/prompts/setup-tmux.md +160 -0
  42. package/agents-config/commands/prompts/tools.md +148 -0
  43. package/agents-config/scripts/.claude/skills/fix-on-my-computer/SKILL.md +81 -0
  44. package/agents-config/scripts/CLAUDE.md +37 -0
  45. package/agents-config/scripts/biome.json +37 -0
  46. package/agents-config/scripts/bun.lockb +0 -0
  47. package/agents-config/scripts/package.json +24 -0
  48. package/agents-config/scripts/statusline/CLAUDE.md +87 -0
  49. package/agents-config/scripts/statusline/README.md +117 -0
  50. package/agents-config/scripts/statusline/__tests__/context.test.ts +229 -0
  51. package/agents-config/scripts/statusline/__tests__/formatters.test.ts +108 -0
  52. package/agents-config/scripts/statusline/__tests__/statusline.test.ts +309 -0
  53. package/agents-config/scripts/statusline/defaults.json +82 -0
  54. package/agents-config/scripts/statusline/fixtures/mock-transcript.jsonl +4 -0
  55. package/agents-config/scripts/statusline/fixtures/test-input.json +35 -0
  56. package/agents-config/scripts/statusline/src/commands/interactive-config.ts +403 -0
  57. package/agents-config/scripts/statusline/src/index.ts +141 -0
  58. package/agents-config/scripts/statusline/src/lib/config-types.ts +110 -0
  59. package/agents-config/scripts/statusline/src/lib/config.ts +21 -0
  60. package/agents-config/scripts/statusline/src/lib/context.ts +103 -0
  61. package/agents-config/scripts/statusline/src/lib/formatters.ts +426 -0
  62. package/agents-config/scripts/statusline/src/lib/git.ts +100 -0
  63. package/agents-config/scripts/statusline/src/lib/menu-factories.ts +224 -0
  64. package/agents-config/scripts/statusline/src/lib/presets.ts +177 -0
  65. package/agents-config/scripts/statusline/src/lib/render-pure.ts +516 -0
  66. package/agents-config/scripts/statusline/src/lib/types.ts +36 -0
  67. package/agents-config/scripts/statusline/src/lib/utils.ts +15 -0
  68. package/agents-config/scripts/statusline/statusline.config.free.json +79 -0
  69. package/agents-config/scripts/statusline/statusline.config.json +79 -0
  70. package/agents-config/scripts/statusline/test-with-fixtures.ts +37 -0
  71. package/agents-config/scripts/statusline/test.ts +20 -0
  72. package/agents-config/scripts/statusline/tsconfig.json +27 -0
  73. package/agents-config/scripts/tsconfig.json +27 -0
  74. package/agents-config/skills/{subagent-creator → agents-managers}/SKILL.md +47 -47
  75. package/agents-config/skills/{subagent-creator/references/subagents.md → agents-managers/references/agents.md} +45 -45
  76. package/agents-config/skills/{subagent-creator → agents-managers}/references/context-management.md +20 -20
  77. package/agents-config/skills/{subagent-creator → agents-managers}/references/debugging-agents.md +27 -27
  78. package/agents-config/skills/{subagent-creator → agents-managers}/references/error-handling-and-recovery.md +19 -19
  79. package/agents-config/skills/{subagent-creator → agents-managers}/references/evaluation-and-testing.md +29 -29
  80. package/agents-config/skills/{subagent-creator → agents-managers}/references/orchestration-patterns.md +5 -5
  81. package/agents-config/skills/{subagent-creator/references/writing-subagent-prompts.md → agents-managers/references/writing-agent-prompts.md} +23 -23
  82. package/agents-config/skills/codex-environment/SKILL.md +2 -0
  83. package/agents-config/skills/commit/SKILL.md +2 -0
  84. package/agents-config/skills/create-pr/SKILL.md +2 -0
  85. package/agents-config/skills/environments-manager/SKILL.md +271 -0
  86. package/agents-config/skills/environments-manager/examples/claude/.worktreeinclude +3 -0
  87. package/agents-config/skills/environments-manager/examples/claude/commands/dev.md +5 -0
  88. package/agents-config/skills/environments-manager/examples/claude/commands/lint.md +5 -0
  89. package/agents-config/skills/environments-manager/examples/claude/commands/test.md +5 -0
  90. package/agents-config/skills/environments-manager/examples/claude/commands/typecheck.md +5 -0
  91. package/agents-config/skills/environments-manager/examples/claude/settings.json +24 -0
  92. package/agents-config/skills/environments-manager/examples/codex/environments/environment.toml +29 -0
  93. package/agents-config/skills/environments-manager/examples/cursor/worktrees.json +3 -0
  94. package/agents-config/skills/environments-manager/examples/scripts/claude-worktree-create.sh +96 -0
  95. package/agents-config/skills/environments-manager/examples/scripts/claude-worktree-remove.sh +66 -0
  96. package/agents-config/skills/environments-manager/examples/scripts/dev.sh +15 -0
  97. package/agents-config/skills/environments-manager/examples/scripts/worktree-down.sh +22 -0
  98. package/agents-config/skills/environments-manager/examples/scripts/worktree-up.sh +50 -0
  99. package/agents-config/skills/environments-manager/references/claude.md +156 -0
  100. package/agents-config/skills/environments-manager/references/codex.md +97 -0
  101. package/agents-config/skills/environments-manager/references/cursor.md +88 -0
  102. package/agents-config/skills/fix-pr-comments/SKILL.md +2 -0
  103. package/agents-config/skills/grill-me/SKILL.md +10 -0
  104. package/agents-config/skills/merge/SKILL.md +2 -0
  105. package/agents-config/skills/rules-manager/SKILL.md +191 -0
  106. package/agents-config/skills/rules-manager/references/agents-vs-claude.md +66 -0
  107. package/agents-config/skills/rules-manager/references/examples.md +117 -0
  108. package/agents-config/skills/skill-manager/SKILL.md +101 -0
  109. package/agents-config/skills/skill-manager/references/claude-code.md +81 -0
  110. package/agents-config/skills/skill-manager/references/codex.md +288 -0
  111. package/agents-config/skills/skill-manager/references/cursor.md +125 -0
  112. package/agents-config/skills/skill-manager/references/description-recommandation.md +97 -0
  113. package/agents-config/skills/skill-manager/scripts/inspect-description.ts +743 -0
  114. package/agents-config/skills/ultrathink/SKILL.md +2 -0
  115. package/dist/cli.js +581 -299
  116. package/package.json +1 -1
  117. package/agents-config/claude-config/scripts/statusline/data/.gitignore +0 -8
  118. package/agents-config/claude-config/scripts/statusline/data/.gitkeep +0 -0
  119. package/agents-config/claude-config/scripts/statusline/docs/ARCHITECTURE.md +0 -166
  120. package/agents-config/claude-config/scripts/statusline/src/tests/spend-v2.test.ts +0 -306
  121. package/agents-config/skills/apex/SKILL.md +0 -261
  122. package/agents-config/skills/apex/scripts/setup-templates.sh +0 -100
  123. package/agents-config/skills/apex/scripts/update-progress.sh +0 -80
  124. package/agents-config/skills/apex/steps/step-00-init.md +0 -267
  125. package/agents-config/skills/apex/steps/step-00b-branch.md +0 -126
  126. package/agents-config/skills/apex/steps/step-00b-economy.md +0 -244
  127. package/agents-config/skills/apex/steps/step-00b-interactive.md +0 -153
  128. package/agents-config/skills/apex/steps/step-01-analyze.md +0 -361
  129. package/agents-config/skills/apex/steps/step-02-plan.md +0 -264
  130. package/agents-config/skills/apex/steps/step-03-execute.md +0 -239
  131. package/agents-config/skills/apex/steps/step-04-validate.md +0 -251
  132. package/agents-config/skills/apex/templates/00-context.md +0 -43
  133. package/agents-config/skills/apex/templates/01-analyze.md +0 -10
  134. package/agents-config/skills/apex/templates/02-plan.md +0 -10
  135. package/agents-config/skills/apex/templates/03-execute.md +0 -10
  136. package/agents-config/skills/apex/templates/04-validate.md +0 -10
  137. package/agents-config/skills/apex/templates/README.md +0 -176
  138. package/agents-config/skills/apex/templates/step-complete.md +0 -7
  139. package/agents-config/skills/claude-memory/SKILL.md +0 -293
  140. package/agents-config/skills/claude-memory/references/comprehensive-example.md +0 -175
  141. package/agents-config/skills/claude-memory/references/optimize-guide.md +0 -300
  142. package/agents-config/skills/claude-memory/references/project-patterns.md +0 -334
  143. package/agents-config/skills/claude-memory/references/prompting-techniques.md +0 -411
  144. package/agents-config/skills/claude-memory/references/rules-directory-guide.md +0 -298
  145. package/agents-config/skills/claude-memory/references/section-templates.md +0 -347
  146. package/agents-config/skills/fix-errors/SKILL.md +0 -61
  147. package/agents-config/skills/fix-grammar/SKILL.md +0 -59
  148. package/agents-config/skills/ralph-loop/SKILL.md +0 -117
  149. package/agents-config/skills/ralph-loop/scripts/setup.sh +0 -278
  150. package/agents-config/skills/ralph-loop/steps/step-00-init.md +0 -215
  151. package/agents-config/skills/ralph-loop/steps/step-01-interactive-prd.md +0 -366
  152. package/agents-config/skills/ralph-loop/steps/step-02-create-stories.md +0 -273
  153. package/agents-config/skills/ralph-loop/steps/step-03-finish.md +0 -245
  154. package/agents-config/skills/skill-creator/LICENSE.txt +0 -202
  155. package/agents-config/skills/skill-creator/SKILL.md +0 -421
  156. package/agents-config/skills/skill-creator/package.json +0 -5
  157. package/agents-config/skills/skill-creator/references/output-patterns.md +0 -82
  158. package/agents-config/skills/skill-creator/references/progressive-disclosure-patterns.md +0 -374
  159. package/agents-config/skills/skill-creator/references/prompting-integration.md +0 -363
  160. package/agents-config/skills/skill-creator/references/real-world-examples.md +0 -513
  161. package/agents-config/skills/skill-creator/references/script-patterns.md +0 -385
  162. package/agents-config/skills/skill-creator/references/workflows.md +0 -28
  163. package/agents-config/skills/skill-creator/references/xml-tag-guide.md +0 -606
  164. package/agents-config/skills/skill-creator/scripts/init-skill.ts +0 -214
  165. package/agents-config/skills/skill-creator/scripts/package-skill.ts +0 -146
  166. package/agents-config/skills/skill-creator/scripts/validate.ts +0 -138
  167. package/agents-config/skills/workflow-apex-free/SKILL.md +0 -261
  168. package/agents-config/skills/workflow-apex-free/scripts/setup-templates.sh +0 -100
  169. package/agents-config/skills/workflow-apex-free/scripts/update-progress.sh +0 -80
  170. package/agents-config/skills/workflow-apex-free/steps/step-00-init.md +0 -267
  171. package/agents-config/skills/workflow-apex-free/steps/step-00b-branch.md +0 -126
  172. package/agents-config/skills/workflow-apex-free/steps/step-00b-economy.md +0 -244
  173. package/agents-config/skills/workflow-apex-free/steps/step-00b-interactive.md +0 -153
  174. package/agents-config/skills/workflow-apex-free/steps/step-01-analyze.md +0 -361
  175. package/agents-config/skills/workflow-apex-free/steps/step-02-plan.md +0 -264
  176. package/agents-config/skills/workflow-apex-free/steps/step-03-execute.md +0 -239
  177. package/agents-config/skills/workflow-apex-free/steps/step-04-validate.md +0 -251
  178. package/agents-config/skills/workflow-apex-free/templates/00-context.md +0 -43
  179. package/agents-config/skills/workflow-apex-free/templates/01-analyze.md +0 -10
  180. package/agents-config/skills/workflow-apex-free/templates/02-plan.md +0 -10
  181. package/agents-config/skills/workflow-apex-free/templates/03-execute.md +0 -10
  182. package/agents-config/skills/workflow-apex-free/templates/04-validate.md +0 -10
  183. package/agents-config/skills/workflow-apex-free/templates/README.md +0 -176
  184. package/agents-config/skills/workflow-apex-free/templates/step-complete.md +0 -7
@@ -1,421 +0,0 @@
1
- ---
2
- name: skill-creator
3
- description: This skill should be used when the user asks to "create a skill", "build a skill", "write a skill", "improve skill structure", "understand skill creation", or mentions SKILL.md files, skill development, progressive disclosure, XML structure, or bundled resources (scripts, references, assets). Comprehensive guide for creating effective Claude Code skills.
4
- license: Complete terms in LICENSE.txt
5
- ---
6
-
7
- # Skill Creator
8
-
9
- This skill provides guidance for creating effective skills.
10
-
11
- > **Official Documentation**: https://code.claude.com/docs/llms.txt
12
- > Fetch the complete documentation index to discover all available pages.
13
-
14
- ## About Skills
15
-
16
- Skills are modular, self-contained packages that extend Claude's capabilities by providing
17
- specialized knowledge, workflows, and tools. Think of them as "onboarding guides" for specific
18
- domains or tasks—they transform Claude from a general-purpose agent into a specialized agent
19
- equipped with procedural knowledge that no model can fully possess.
20
-
21
- ### What Skills Provide
22
-
23
- 1. Specialized workflows - Multi-step procedures for specific domains
24
- 2. Tool integrations - Instructions for working with specific file formats or APIs
25
- 3. Domain expertise - Company-specific knowledge, schemas, business logic
26
- 4. Bundled resources - Scripts, references, and assets for complex and repetitive tasks
27
-
28
- ## Core Principles
29
-
30
- ### Concise is Key
31
-
32
- The context window is a public good. Skills share the context window with everything else Claude needs: system prompt, conversation history, other Skills' metadata, and the actual user request.
33
-
34
- **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?"
35
-
36
- Prefer concise examples over verbose explanations.
37
-
38
- ### Set Appropriate Degrees of Freedom
39
-
40
- Match the level of specificity to the task's fragility and variability:
41
-
42
- **High freedom (text-based instructions)**: Use when multiple approaches are valid, decisions depend on context, or heuristics guide the approach.
43
-
44
- **Medium freedom (pseudocode or scripts with parameters)**: Use when a preferred pattern exists, some variation is acceptable, or configuration affects behavior.
45
-
46
- **Low freedom (specific scripts, few parameters)**: Use when operations are fragile and error-prone, consistency is critical, or a specific sequence must be followed.
47
-
48
- 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).
49
-
50
- ### Where Skills Live
51
-
52
- | Location | Path | Applies to |
53
- | :--------- | :--------------------------------------- | :----------------------------- |
54
- | Enterprise | Managed settings | All users in organization |
55
- | Personal | `~/.claude/skills/<skill-name>/SKILL.md` | All your projects |
56
- | Project | `.claude/skills/<skill-name>/SKILL.md` | This project only |
57
- | Plugin | `<plugin>/skills/<skill-name>/SKILL.md` | Where plugin is enabled |
58
-
59
- Higher-priority locations win when skills share the same name: enterprise > personal > project.
60
-
61
- **Nested discovery**: When working with files in subdirectories, Claude Code automatically discovers skills from nested `.claude/skills/` directories (supports monorepos).
62
-
63
- ### Anatomy of a Skill
64
-
65
- Every skill consists of a required SKILL.md file and optional bundled resources:
66
-
67
- ```
68
- skill-name/
69
- ├── SKILL.md (required)
70
- │ ├── YAML frontmatter metadata
71
- │ │ ├── name: (optional, defaults to directory name)
72
- │ │ └── description: (recommended)
73
- │ └── Markdown instructions (required)
74
- └── Bundled Resources (optional)
75
- ├── scripts/ - Executable code (Python/Bash/etc.)
76
- ├── references/ - Documentation intended to be loaded into context as needed
77
- └── assets/ - Files used in output (templates, icons, fonts, etc.)
78
- ```
79
-
80
- #### SKILL.md (required)
81
-
82
- Every SKILL.md consists of:
83
-
84
- - **Frontmatter** (YAML): Configuration fields like `name`, `description`, `context`, `agent`, `allowed-tools`, etc. The `description` field is most important - Claude uses it to decide when to load the skill automatically.
85
- - **Body** (Markdown): Instructions and guidance for using the skill. Only loaded AFTER the skill triggers (if at all).
86
-
87
- #### Bundled Resources (optional)
88
-
89
- ##### Scripts (`scripts/`)
90
-
91
- Executable code (Python/Bash/etc.) for tasks that require deterministic reliability or are repeatedly rewritten.
92
-
93
- - **When to include**: When the same code is being rewritten repeatedly or deterministic reliability is needed
94
- - **Example**: `scripts/rotate_pdf.py` for PDF rotation tasks
95
- - **Benefits**: Token efficient, deterministic, may be executed without loading into context
96
- - **Note**: Scripts may still need to be read by Claude for patching or environment-specific adjustments
97
-
98
- ##### References (`references/`)
99
-
100
- Documentation and reference material intended to be loaded as needed into context to inform Claude's process and thinking.
101
-
102
- - **When to include**: For documentation that Claude should reference while working
103
- - **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
104
- - **Use cases**: Database schemas, API documentation, domain knowledge, company policies, detailed workflow guides
105
- - **Benefits**: Keeps SKILL.md lean, loaded only when Claude determines it's needed
106
- - **Best practice**: If files are large (>10k words), include grep search patterns in SKILL.md
107
- - **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.
108
-
109
- ##### Assets (`assets/`)
110
-
111
- Files not intended to be loaded into context, but rather used within the output Claude produces.
112
-
113
- - **When to include**: When the skill needs files that will be used in the final output
114
- - **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
115
- - **Use cases**: Templates, images, icons, boilerplate code, fonts, sample documents that get copied or modified
116
- - **Benefits**: Separates output resources from documentation, enables Claude to use files without loading them into context
117
-
118
- #### What to Not Include in a Skill
119
-
120
- A skill should only contain essential files that directly support its functionality. Do NOT create extraneous documentation or auxiliary files, including:
121
-
122
- - README.md
123
- - INSTALLATION_GUIDE.md
124
- - QUICK_REFERENCE.md
125
- - CHANGELOG.md
126
- - etc.
127
-
128
- 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.
129
-
130
- ### Progressive Disclosure Design Principle
131
-
132
- Skills use a three-level loading system to manage context efficiently:
133
-
134
- 1. **Metadata (name + description)** - Always in context (~100 words)
135
- 2. **SKILL.md body** - When skill triggers (<5k words)
136
- 3. **Bundled resources** - As needed by Claude (Unlimited because scripts can be executed without reading into context window)
137
-
138
- #### Progressive Disclosure Patterns
139
-
140
- 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.
141
-
142
- **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.
143
-
144
- **Pattern 1: High-level guide with references**
145
-
146
- ```markdown
147
- # PDF Processing
148
-
149
- ## Quick start
150
-
151
- Extract text with pdfplumber:
152
- [code example]
153
-
154
- ## Advanced features
155
-
156
- - **Form filling**: See [FORMS.md](FORMS.md) for complete guide
157
- - **API reference**: See [REFERENCE.md](REFERENCE.md) for all methods
158
- - **Examples**: See [EXAMPLES.md](EXAMPLES.md) for common patterns
159
- ```
160
-
161
- Claude loads FORMS.md, REFERENCE.md, or EXAMPLES.md only when needed.
162
-
163
- **Pattern 2: Domain-specific organization**
164
-
165
- For Skills with multiple domains, organize content by domain to avoid loading irrelevant context:
166
-
167
- ```
168
- bigquery-skill/
169
- ├── SKILL.md (overview and navigation)
170
- └── reference/
171
- ├── finance.md (revenue, billing metrics)
172
- ├── sales.md (opportunities, pipeline)
173
- ├── product.md (API usage, features)
174
- └── marketing.md (campaigns, attribution)
175
- ```
176
-
177
- When a user asks about sales metrics, Claude only reads sales.md.
178
-
179
- Similarly, for skills supporting multiple frameworks or variants, organize by variant:
180
-
181
- ```
182
- cloud-deploy/
183
- ├── SKILL.md (workflow + provider selection)
184
- └── references/
185
- ├── aws.md (AWS deployment patterns)
186
- ├── gcp.md (GCP deployment patterns)
187
- └── azure.md (Azure deployment patterns)
188
- ```
189
-
190
- When the user chooses AWS, Claude only reads aws.md.
191
-
192
- **Pattern 3: Conditional details**
193
-
194
- Show basic content, link to advanced content:
195
-
196
- ```markdown
197
- # DOCX Processing
198
-
199
- ## Creating documents
200
-
201
- Use docx-js for new documents. See [DOCX-JS.md](DOCX-JS.md).
202
-
203
- ## Editing documents
204
-
205
- For simple edits, modify the XML directly.
206
-
207
- **For tracked changes**: See [REDLINING.md](REDLINING.md)
208
- **For OOXML details**: See [OOXML.md](OOXML.md)
209
- ```
210
-
211
- Claude reads REDLINING.md or OOXML.md only when the user needs those features.
212
-
213
- **Important guidelines:**
214
-
215
- - **Avoid deeply nested references** - Keep references one level deep from SKILL.md. All reference files should link directly from SKILL.md.
216
- - **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.
217
-
218
- ## Skill Creation Process
219
-
220
- Skill creation involves these steps:
221
-
222
- 1. Understand the skill with concrete examples
223
- 2. Plan reusable skill contents (scripts, references, assets)
224
- 3. Initialize the skill (run init-skill.ts)
225
- 4. Edit the skill (implement resources and write SKILL.md)
226
- 5. Package the skill (run package-skill.ts)
227
- 6. Iterate based on real usage
228
-
229
- Follow these steps in order, skipping only if there is a clear reason why they are not applicable.
230
-
231
- ### Step 1: Understanding the Skill with Concrete Examples
232
-
233
- Skip this step only when the skill's usage patterns are already clearly understood. It remains valuable even when working with an existing skill.
234
-
235
- 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.
236
-
237
- For example, when building an image-editor skill, relevant questions include:
238
-
239
- - "What functionality should the image-editor skill support? Editing, rotating, anything else?"
240
- - "Can you give some examples of how this skill would be used?"
241
- - "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?"
242
- - "What would a user say that should trigger this skill?"
243
-
244
- 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.
245
-
246
- Conclude this step when there is a clear sense of the functionality the skill should support.
247
-
248
- ### Step 2: Planning the Reusable Skill Contents
249
-
250
- To turn concrete examples into an effective skill, analyze each example by:
251
-
252
- 1. Considering how to execute on the example from scratch
253
- 2. Identifying what scripts, references, and assets would be helpful when executing these workflows repeatedly
254
-
255
- Example: When building a `pdf-editor` skill to handle queries like "Help me rotate this PDF," the analysis shows:
256
-
257
- 1. Rotating a PDF requires re-writing the same code each time
258
- 2. A `scripts/rotate_pdf.py` script would be helpful to store in the skill
259
-
260
- Example: When designing a `frontend-webapp-builder` skill for queries like "Build me a todo app" or "Build me a dashboard to track my steps," the analysis shows:
261
-
262
- 1. Writing a frontend webapp requires the same boilerplate HTML/React each time
263
- 2. An `assets/hello-world/` template containing the boilerplate HTML/React project files would be helpful to store in the skill
264
-
265
- Example: When building a `big-query` skill to handle queries like "How many users have logged in today?" the analysis shows:
266
-
267
- 1. Querying BigQuery requires re-discovering the table schemas and relationships each time
268
- 2. A `references/schema.md` file documenting the table schemas would be helpful to store in the skill
269
-
270
- To establish the skill's contents, analyze each concrete example to create a list of the reusable resources to include: scripts, references, and assets.
271
-
272
- ### Step 3: Initializing the Skill
273
-
274
- At this point, it is time to actually create the skill.
275
-
276
- 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.
277
-
278
- When creating a new skill from scratch, always run the `init-skill.ts` 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.
279
-
280
- Usage:
281
-
282
- ```bash
283
- bun scripts/init-skill.ts <skill-name> --path <output-directory>
284
- ```
285
-
286
- The script:
287
-
288
- - Creates the skill directory at the specified path
289
- - Generates a SKILL.md template with proper frontmatter and TODO placeholders
290
- - Creates example resource directories: `scripts/`, `references/`, and `assets/`
291
- - Adds example files in each directory that can be customized or deleted
292
-
293
- After initialization, customize or remove the generated SKILL.md and example files as needed.
294
-
295
- ### Step 4: Edit the Skill
296
-
297
- When editing the (newly-generated or existing) skill, remember that the skill is being created for another instance of Claude to use. Include information that would be beneficial and non-obvious to Claude. Consider what procedural knowledge, domain-specific details, or reusable assets would help another Claude instance execute these tasks more effectively.
298
-
299
- #### Learn Proven Design Patterns
300
-
301
- Consult these helpful guides based on your skill's needs:
302
-
303
- - **Multi-step processes**: See references/workflows.md for sequential workflows and conditional logic
304
- - **Specific output formats or quality standards**: See references/output-patterns.md for template and example patterns
305
-
306
- These files contain established best practices for effective skill design.
307
-
308
- #### Start with Reusable Skill Contents
309
-
310
- To begin implementation, start with the reusable resources identified above: `scripts/`, `references/`, and `assets/` files. Note that this step may require user input. For example, when implementing a `brand-guidelines` skill, the user may need to provide brand assets or templates to store in `assets/`, or documentation to store in `references/`.
311
-
312
- Added scripts must be tested by actually running them to ensure there are no bugs and that the output matches what is expected. If there are many similar scripts, only a representative sample needs to be tested to ensure confidence that they all work while balancing time to completion.
313
-
314
- Any example files and directories not needed for the skill should be deleted. The initialization script creates example files in `scripts/`, `references/`, and `assets/` to demonstrate structure, but most skills won't need all of them.
315
-
316
- #### Update SKILL.md
317
-
318
- **Writing Guidelines:** Always use imperative/infinitive form.
319
-
320
- ##### Frontmatter
321
-
322
- Write the YAML frontmatter. All fields are optional except `description` which is recommended.
323
-
324
- **Core fields:**
325
- - `name`: Display name (lowercase letters, numbers, hyphens, max 64 chars). If omitted, uses directory name.
326
- - `description`: What the skill does and when to use it. Claude uses this to decide when to load the skill automatically.
327
- - Example: "Explains code with diagrams and analogies. Use when explaining how code works or when user asks 'how does this work?'"
328
-
329
- **Invocation control:**
330
- - `disable-model-invocation: true` - Only user can invoke (prevents Claude auto-loading). Use for workflows with side effects like `/deploy`.
331
- - `user-invocable: false` - Only Claude can invoke. Use for background knowledge that isn't actionable as a command.
332
- - `argument-hint`: Hint shown during autocomplete. Example: `[issue-number]` or `[filename]`
333
-
334
- **Execution control:**
335
- - `allowed-tools`: Tools Claude can use without asking permission when skill is active.
336
- - `model`: Model to use when skill is active.
337
- - `context: fork` - Run in a forked subagent context (isolated, no conversation history).
338
- - `agent`: Which subagent type to use when `context: fork` is set (e.g., `Explore`, `Plan`, `general-purpose`, or custom agent).
339
- - `hooks`: Hooks scoped to this skill's lifecycle.
340
-
341
- **String substitutions (in skill content):**
342
- - `$ARGUMENTS` - All arguments passed when invoking the skill
343
- - `${CLAUDE_SESSION_ID}` - Current session ID
344
-
345
- **Dynamic context injection:**
346
- Prefix a shell command with exclamation mark and wrap in backticks to run it before the skill content is sent to Claude. The output replaces the placeholder.
347
-
348
- Syntax: exclamation + backtick + command + backtick (e.g., for "gh pr diff")
349
-
350
- See official docs for examples: https://code.claude.com/en/skills#inject-dynamic-context
351
-
352
- **Subagent execution example:**
353
- ```yaml
354
- ---
355
- name: deep-research
356
- description: Research a topic thoroughly
357
- context: fork
358
- agent: Explore
359
- ---
360
-
361
- Research $ARGUMENTS thoroughly:
362
- 1. Find relevant files using Glob and Grep
363
- 2. Read and analyze the code
364
- 3. Summarize findings with file references
365
- ```
366
-
367
- See official documentation: https://code.claude.com/docs/llms.txt
368
-
369
- ##### Body
370
-
371
- Write instructions for using the skill and its bundled resources.
372
-
373
- ### Step 5: Packaging a Skill
374
-
375
- 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:
376
-
377
- ```bash
378
- bun scripts/package-skill.ts <path/to/skill-folder>
379
- ```
380
-
381
- Optional output directory specification:
382
-
383
- ```bash
384
- bun scripts/package-skill.ts <path/to/skill-folder> ./dist
385
- ```
386
-
387
- The packaging script will:
388
-
389
- 1. **Validate** the skill automatically, checking:
390
-
391
- - YAML frontmatter format and required fields
392
- - Skill naming conventions and directory structure
393
- - Description completeness and quality
394
- - File organization and resource references
395
-
396
- 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.
397
-
398
- 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.
399
-
400
- ### Step 6: Iterate
401
-
402
- After testing the skill, users may request improvements. Often this happens right after using the skill, with fresh context of how the skill performed.
403
-
404
- **Iteration workflow:**
405
-
406
- 1. Use the skill on real tasks
407
- 2. Notice struggles or inefficiencies
408
- 3. Identify how SKILL.md or bundled resources should be updated
409
- 4. Implement changes and test again
410
-
411
- ## Reference Guides
412
-
413
- For deeper topics and advanced patterns, see:
414
-
415
- - **[references/xml-tag-guide.md](references/xml-tag-guide.md)** - Complete guide to XML tags and structure (required/conditional tags, nesting, naming conventions)
416
- - **[references/progressive-disclosure-patterns.md](references/progressive-disclosure-patterns.md)** - Advanced strategies for organizing content across multiple files
417
- - **[references/prompting-integration.md](references/prompting-integration.md)** - How to integrate expert prompting techniques into skills
418
- - **[references/real-world-examples.md](references/real-world-examples.md)** - Complete examples of well-structured skills (simple, standard, complex)
419
- - **[references/script-patterns.md](references/script-patterns.md)** - Executable code patterns, error handling, script templates
420
- - **[references/output-patterns.md](references/output-patterns.md)** - Template and example patterns for consistent output
421
- - **[references/workflows.md](references/workflows.md)** - Sequential and conditional workflow patterns
@@ -1,5 +0,0 @@
1
- {
2
- "dependencies": {
3
- "yaml": "^2.8.2"
4
- }
5
- }
@@ -1,82 +0,0 @@
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.