aiblueprint-cli 1.4.22 → 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.
Files changed (90) hide show
  1. package/claude-code-config/skills/git-commit/SKILL.md +42 -0
  2. package/claude-code-config/{commands/git/create-pr.md → skills/git-create-pr/SKILL.md} +12 -18
  3. package/claude-code-config/skills/git-fix-pr-comments/SKILL.md +51 -0
  4. package/claude-code-config/skills/git-merge/SKILL.md +68 -0
  5. package/claude-code-config/skills/{claude-memory → meta-claude-memory}/SKILL.md +7 -2
  6. package/claude-code-config/skills/meta-claude-memory/references/rules-directory-guide.md +298 -0
  7. package/claude-code-config/skills/meta-prompt-creator/SKILL.md +285 -0
  8. package/claude-code-config/skills/meta-prompt-creator/references/anthropic-best-practices.md +126 -0
  9. package/claude-code-config/skills/meta-prompt-creator/references/anti-patterns.md +57 -0
  10. package/claude-code-config/skills/meta-prompt-creator/references/clarity-principles.md +54 -0
  11. package/claude-code-config/skills/meta-prompt-creator/references/context-management.md +389 -0
  12. package/claude-code-config/skills/meta-prompt-creator/references/few-shot-patterns.md +47 -0
  13. package/claude-code-config/skills/meta-prompt-creator/references/openai-best-practices.md +50 -0
  14. package/claude-code-config/skills/meta-prompt-creator/references/prompt-templates.md +110 -0
  15. package/claude-code-config/skills/meta-prompt-creator/references/reasoning-techniques.md +52 -0
  16. package/claude-code-config/skills/meta-prompt-creator/references/system-prompt-patterns.md +48 -0
  17. package/claude-code-config/skills/meta-prompt-creator/references/xml-structure.md +36 -0
  18. package/claude-code-config/skills/meta-skill-creator/LICENSE.txt +202 -0
  19. package/claude-code-config/skills/meta-skill-creator/SKILL.md +421 -0
  20. package/claude-code-config/skills/meta-skill-creator/package.json +5 -0
  21. package/claude-code-config/skills/meta-skill-creator/references/output-patterns.md +82 -0
  22. package/claude-code-config/skills/meta-skill-creator/references/progressive-disclosure-patterns.md +374 -0
  23. package/claude-code-config/skills/meta-skill-creator/references/prompting-integration.md +363 -0
  24. package/claude-code-config/skills/meta-skill-creator/references/real-world-examples.md +513 -0
  25. package/claude-code-config/skills/meta-skill-creator/references/script-patterns.md +385 -0
  26. package/claude-code-config/skills/meta-skill-creator/references/workflows.md +28 -0
  27. package/claude-code-config/skills/meta-skill-creator/references/xml-tag-guide.md +606 -0
  28. package/claude-code-config/skills/meta-skill-creator/scripts/init-skill.ts +214 -0
  29. package/claude-code-config/skills/meta-skill-creator/scripts/package-skill.ts +146 -0
  30. package/claude-code-config/skills/meta-skill-creator/scripts/validate.ts +138 -0
  31. package/claude-code-config/skills/{create-subagents → meta-subagent-creator}/SKILL.md +41 -15
  32. package/claude-code-config/skills/{setup-ralph → ralph-loop}/steps/step-00-init.md +2 -3
  33. package/claude-code-config/skills/utils-fix-errors/SKILL.md +61 -0
  34. package/claude-code-config/skills/utils-fix-grammar/SKILL.md +59 -0
  35. package/claude-code-config/skills/utils-oneshot/SKILL.md +56 -0
  36. package/claude-code-config/skills/workflow-apex/SKILL.md +303 -0
  37. package/claude-code-config/skills/workflow-apex/scripts/setup-templates.sh +134 -0
  38. package/claude-code-config/skills/workflow-apex/scripts/update-progress.sh +80 -0
  39. package/claude-code-config/skills/workflow-apex/steps/step-00-init.md +288 -0
  40. package/claude-code-config/skills/workflow-apex/steps/step-00b-branch.md +126 -0
  41. package/claude-code-config/skills/workflow-apex/steps/step-00b-economy.md +244 -0
  42. package/claude-code-config/skills/workflow-apex/steps/step-00b-interactive.md +153 -0
  43. package/claude-code-config/skills/workflow-apex/steps/step-01-analyze.md +361 -0
  44. package/claude-code-config/skills/workflow-apex/steps/step-02-plan.md +264 -0
  45. package/claude-code-config/skills/workflow-apex/steps/step-03-execute.md +239 -0
  46. package/claude-code-config/skills/workflow-apex/steps/step-04-validate.md +264 -0
  47. package/claude-code-config/skills/workflow-apex/steps/step-05-examine.md +294 -0
  48. package/claude-code-config/skills/workflow-apex/steps/step-06-resolve.md +237 -0
  49. package/claude-code-config/skills/workflow-apex/steps/step-07-tests.md +250 -0
  50. package/claude-code-config/skills/workflow-apex/steps/step-08-run-tests.md +308 -0
  51. package/claude-code-config/skills/workflow-apex/steps/step-09-finish.md +193 -0
  52. package/claude-code-config/skills/workflow-apex/templates/00-context.md +51 -0
  53. package/claude-code-config/skills/workflow-apex/templates/01-analyze.md +10 -0
  54. package/claude-code-config/skills/workflow-apex/templates/02-plan.md +10 -0
  55. package/claude-code-config/skills/workflow-apex/templates/03-execute.md +10 -0
  56. package/claude-code-config/skills/workflow-apex/templates/04-validate.md +10 -0
  57. package/claude-code-config/skills/workflow-apex/templates/05-examine.md +10 -0
  58. package/claude-code-config/skills/workflow-apex/templates/06-resolve.md +10 -0
  59. package/claude-code-config/skills/workflow-apex/templates/07-tests.md +10 -0
  60. package/claude-code-config/skills/workflow-apex/templates/08-run-tests.md +10 -0
  61. package/claude-code-config/skills/workflow-apex/templates/09-finish.md +10 -0
  62. package/claude-code-config/skills/workflow-apex/templates/README.md +195 -0
  63. package/claude-code-config/skills/workflow-apex/templates/step-complete.md +7 -0
  64. package/dist/cli.js +46 -3
  65. package/package.json +1 -1
  66. package/claude-code-config/commands/explore.md +0 -90
  67. package/claude-code-config/commands/git/commit.md +0 -60
  68. package/claude-code-config/commands/git/fix-pr-comments.md +0 -59
  69. package/claude-code-config/commands/oneshot.md +0 -57
  70. package/claude-code-config/skills/create-slash-commands/SKILL.md +0 -1110
  71. package/claude-code-config/skills/create-slash-commands/references/arguments.md +0 -273
  72. package/claude-code-config/skills/create-slash-commands/references/patterns.md +0 -947
  73. package/claude-code-config/skills/create-slash-commands/references/prompt-examples.md +0 -656
  74. package/claude-code-config/skills/create-slash-commands/references/tool-restrictions.md +0 -389
  75. /package/claude-code-config/skills/{claude-memory → meta-claude-memory}/references/comprehensive-example.md +0 -0
  76. /package/claude-code-config/skills/{claude-memory → meta-claude-memory}/references/project-patterns.md +0 -0
  77. /package/claude-code-config/skills/{claude-memory → meta-claude-memory}/references/prompting-techniques.md +0 -0
  78. /package/claude-code-config/skills/{claude-memory → meta-claude-memory}/references/section-templates.md +0 -0
  79. /package/claude-code-config/skills/{create-subagents → meta-subagent-creator}/references/context-management.md +0 -0
  80. /package/claude-code-config/skills/{create-subagents → meta-subagent-creator}/references/debugging-agents.md +0 -0
  81. /package/claude-code-config/skills/{create-subagents → meta-subagent-creator}/references/error-handling-and-recovery.md +0 -0
  82. /package/claude-code-config/skills/{create-subagents → meta-subagent-creator}/references/evaluation-and-testing.md +0 -0
  83. /package/claude-code-config/skills/{create-subagents → meta-subagent-creator}/references/orchestration-patterns.md +0 -0
  84. /package/claude-code-config/skills/{create-subagents → meta-subagent-creator}/references/subagents.md +0 -0
  85. /package/claude-code-config/skills/{create-subagents → meta-subagent-creator}/references/writing-subagent-prompts.md +0 -0
  86. /package/claude-code-config/skills/{setup-ralph → ralph-loop}/SKILL.md +0 -0
  87. /package/claude-code-config/skills/{setup-ralph → ralph-loop}/scripts/setup.sh +0 -0
  88. /package/claude-code-config/skills/{setup-ralph → ralph-loop}/steps/step-01-interactive-prd.md +0 -0
  89. /package/claude-code-config/skills/{setup-ralph → ralph-loop}/steps/step-02-create-stories.md +0 -0
  90. /package/claude-code-config/skills/{setup-ralph → ralph-loop}/steps/step-03-finish.md +0 -0
@@ -0,0 +1,285 @@
1
+ ---
2
+ name: prompt-creator
3
+ description: Expert prompt engineering for creating effective prompts for Claude, GPT, and other LLMs. Use when writing system prompts, user prompts, few-shot examples, or optimizing existing prompts for better performance.
4
+ ---
5
+
6
+ <objective>
7
+ Create highly effective prompts using proven techniques from Anthropic and OpenAI research. This skill covers all major prompting methodologies: clarity, structure, examples, reasoning, and advanced patterns.
8
+
9
+ Every prompt created should be clear, specific, and optimized for the target model.
10
+ </objective>
11
+
12
+ <quick_start>
13
+ <workflow>
14
+
15
+ 1. **Clarify purpose**: What should the prompt accomplish?
16
+ 2. **Identify model**: Claude, GPT, or other (techniques vary slightly)
17
+ 3. **Select techniques**: Choose from core techniques based on task complexity
18
+ 4. **Structure content**: Use XML tags (Claude) or markdown (GPT) for organization
19
+ 5. **Add examples**: Include few-shot examples for format-sensitive outputs
20
+ 6. **Define success**: Add clear success criteria
21
+ 7. **Test and iterate**: Refine based on outputs
22
+ </workflow>
23
+
24
+ <core_structure>
25
+ Every effective prompt has:
26
+
27
+ ```xml
28
+ <context>
29
+ Background information the model needs
30
+ </context>
31
+
32
+ <task>
33
+ Clear, specific instruction of what to do
34
+ </task>
35
+
36
+ <requirements>
37
+ - Specific constraints
38
+ - Output format
39
+ - Edge cases to handle
40
+ </requirements>
41
+
42
+ <examples>
43
+ Input/output pairs demonstrating expected behavior
44
+ </examples>
45
+
46
+ <success_criteria>
47
+ How to know the task was completed correctly
48
+ </success_criteria>
49
+ ```
50
+
51
+ </core_structure>
52
+ </quick_start>
53
+
54
+ <core_techniques>
55
+ <technique name="be_clear_and_direct">
56
+ **Priority**: Always apply first
57
+
58
+ - State exactly what you want
59
+ - Avoid ambiguous language ("try to", "maybe", "generally")
60
+ - Use "Always..." or "Never..." instead of "Should probably..."
61
+ - Provide specific output format requirements
62
+
63
+ See: [references/clarity-principles.md](references/clarity-principles.md)
64
+ </technique>
65
+
66
+ <technique name="use_xml_tags">
67
+ **When**: Claude prompts, complex structure needed
68
+
69
+ Claude was trained with XML tags. Use them for:
70
+
71
+ - Separating sections: `<context>`, `<task>`, `<output>`
72
+ - Wrapping data: `<document>`, `<schema>`, `<example>`
73
+ - Defining boundaries: Clear start/end of sections
74
+
75
+ See: [references/xml-structure.md](references/xml-structure.md)
76
+ </technique>
77
+
78
+ <technique name="few_shot_examples">
79
+ **When**: Output format matters, pattern recognition easier than rules
80
+
81
+ Provide 2-4 input/output pairs:
82
+
83
+ ```xml
84
+ <examples>
85
+ <example number="1">
86
+ <input>User clicked signup button</input>
87
+ <output>track('signup_initiated', { source: 'homepage' })</output>
88
+ </example>
89
+ </examples>
90
+ ```
91
+
92
+ See: [references/few-shot-patterns.md](references/few-shot-patterns.md)
93
+ </technique>
94
+
95
+ <technique name="chain_of_thought">
96
+ **When**: Complex reasoning, math, multi-step analysis
97
+
98
+ Add explicit reasoning instructions:
99
+
100
+ - "Think step by step before answering"
101
+ - "First analyze X, then consider Y, finally conclude Z"
102
+ - Use `<thinking>` tags for Claude's extended thinking
103
+
104
+ See: [references/reasoning-techniques.md](references/reasoning-techniques.md)
105
+ </technique>
106
+
107
+ <technique name="system_prompts">
108
+ **When**: Setting persistent behavior, role, constraints
109
+
110
+ System prompts set the foundation:
111
+
112
+ - Define Claude's role and expertise
113
+ - Set constraints and boundaries
114
+ - Establish output format expectations
115
+
116
+ See: [references/system-prompt-patterns.md](references/system-prompt-patterns.md)
117
+ </technique>
118
+
119
+ <technique name="prefilling">
120
+ **When**: Enforcing specific output format (Claude-specific)
121
+
122
+ Start Claude's response to guide format:
123
+
124
+ ```
125
+ Assistant: {"result":
126
+ ```
127
+
128
+ Forces JSON output without preamble.
129
+ </technique>
130
+
131
+ <technique name="context_management">
132
+ **When**: Long-running tasks, multi-session work, large context usage
133
+
134
+ For Claude 4.5 with context awareness:
135
+
136
+ - Inform about automatic context compaction
137
+ - Add state tracking (JSON, progress.txt, git)
138
+ - Use test-first patterns for complex implementations
139
+ - Enable autonomous task completion across context windows
140
+
141
+ See: [references/context-management.md](references/context-management.md)
142
+ </technique>
143
+ </core_techniques>
144
+
145
+ <prompt_creation_workflow>
146
+ <step_0>
147
+ **Gather requirements** using AskUserQuestion:
148
+
149
+ 1. What is the prompt's purpose?
150
+ - Generate content
151
+ - Analyze/extract information
152
+ - Transform data
153
+ - Make decisions
154
+ - Other
155
+
156
+ 2. What model will use this prompt?
157
+ - Claude (use XML tags)
158
+ - GPT (use markdown structure)
159
+ - Other/multiple
160
+
161
+ 3. What complexity level?
162
+ - Simple (single task, clear output)
163
+ - Medium (multiple steps, some nuance)
164
+ - Complex (reasoning, edge cases, validation)
165
+
166
+ 4. Output format requirements?
167
+ - Free text
168
+ - JSON/structured data
169
+ - Code
170
+ - Specific template
171
+ </step_0>
172
+
173
+ <step_1>
174
+ **Draft the prompt** using this template:
175
+
176
+ ```xml
177
+ <context>
178
+ [Background the model needs to understand the task]
179
+ </context>
180
+
181
+ <objective>
182
+ [Clear statement of what to accomplish]
183
+ </objective>
184
+
185
+ <instructions>
186
+ [Step-by-step process, numbered if sequential]
187
+ </instructions>
188
+
189
+ <constraints>
190
+ [Rules, limitations, things to avoid]
191
+ </constraints>
192
+
193
+ <output_format>
194
+ [Exact structure of expected output]
195
+ </output_format>
196
+
197
+ <examples>
198
+ [2-4 input/output pairs if format matters]
199
+ </examples>
200
+
201
+ <success_criteria>
202
+ [How to verify the task was done correctly]
203
+ </success_criteria>
204
+ ```
205
+
206
+ </step_1>
207
+
208
+ <step_2>
209
+ **Apply relevant techniques** based on complexity:
210
+
211
+ - **Simple**: Clear instructions + output format
212
+ - **Medium**: Add examples + constraints
213
+ - **Complex**: Add reasoning steps + edge cases + validation
214
+ </step_2>
215
+
216
+ <step_3>
217
+ **Review checklist**:
218
+
219
+ - [ ] Is the task clearly stated?
220
+ - [ ] Are ambiguous words removed?
221
+ - [ ] Is output format specified?
222
+ - [ ] Are edge cases addressed?
223
+ - [ ] Would a person with no context understand it?
224
+ </step_3>
225
+ </prompt_creation_workflow>
226
+
227
+ <anti_patterns>
228
+ <pitfall name="vague_instructions">
229
+ ❌ "Help with the data"
230
+ ✅ "Extract email addresses from the CSV, remove duplicates, output as JSON array"
231
+ </pitfall>
232
+
233
+ <pitfall name="negative_prompting">
234
+ ❌ "Don't use technical jargon"
235
+ ✅ "Write in plain language suitable for a non-technical audience"
236
+ </pitfall>
237
+
238
+ <pitfall name="no_examples">
239
+ ❌ Describing format in words only
240
+ ✅ Showing 2-3 concrete input/output examples
241
+ </pitfall>
242
+
243
+ <pitfall name="missing_edge_cases">
244
+ ❌ "Process the file"
245
+ ✅ "Process the file. If empty, return []. If malformed, return error with line number."
246
+ </pitfall>
247
+
248
+ See: [references/anti-patterns.md](references/anti-patterns.md)
249
+ </anti_patterns>
250
+
251
+ <reference_guides>
252
+ **Core principles:**
253
+
254
+ - [references/clarity-principles.md](references/clarity-principles.md) - Being clear and direct
255
+ - [references/xml-structure.md](references/xml-structure.md) - Using XML tags effectively
256
+
257
+ **Techniques:**
258
+
259
+ - [references/few-shot-patterns.md](references/few-shot-patterns.md) - Example-based prompting
260
+ - [references/reasoning-techniques.md](references/reasoning-techniques.md) - Chain of thought, step-by-step
261
+ - [references/system-prompt-patterns.md](references/system-prompt-patterns.md) - System prompt templates
262
+ - [references/context-management.md](references/context-management.md) - Context windows, long-horizon reasoning, state tracking
263
+
264
+ **Best practices by vendor:**
265
+
266
+ - [references/anthropic-best-practices.md](references/anthropic-best-practices.md) - Claude-specific techniques
267
+ - [references/openai-best-practices.md](references/openai-best-practices.md) - GPT-specific techniques
268
+
269
+ **Quality:**
270
+
271
+ - [references/anti-patterns.md](references/anti-patterns.md) - Common mistakes to avoid
272
+ - [references/prompt-templates.md](references/prompt-templates.md) - Ready-to-use templates
273
+ </reference_guides>
274
+
275
+ <success_criteria>
276
+ A well-crafted prompt has:
277
+
278
+ - Clear, unambiguous objective
279
+ - Specific output format with example
280
+ - Relevant context provided
281
+ - Edge cases addressed
282
+ - No vague language (try, maybe, generally)
283
+ - Appropriate technique selection for task complexity
284
+ - Success criteria defined
285
+ </success_criteria>
@@ -0,0 +1,126 @@
1
+ <overview>
2
+ Claude-specific prompting techniques from Anthropic's official documentation.
3
+ </overview>
4
+
5
+ <techniques>
6
+ <technique name="xml_tags">
7
+ Claude was trained with XML tags. Use them for structure:
8
+ - `<context>` - Background information
9
+ - `<instructions>` - Task description
10
+ - `<document>` - Content to process
11
+ - `<example>` - Input/output pairs
12
+ </technique>
13
+
14
+ <technique name="be_explicit">
15
+ State exactly what you want:
16
+ - Use "Always..." or "Never..." instead of "try to"
17
+ - Specify format, length, style explicitly
18
+ - Add context about WHY (helps Claude make better decisions)
19
+ </technique>
20
+
21
+ <technique name="extended_thinking">
22
+ For complex reasoning:
23
+ - Add "Think step by step"
24
+ - Guide: "First analyze X, then consider Y, finally conclude Z"
25
+ </technique>
26
+
27
+ <technique name="prefilling">
28
+ Start Claude's response to enforce format:
29
+ - Begin with `{"result":` for JSON
30
+ - Prevents preamble text
31
+ </technique>
32
+
33
+ <technique name="positive_framing">
34
+ State what TO DO, not what NOT to do:
35
+ - BAD: "Don't use jargon"
36
+ - GOOD: "Write in plain language for non-technical readers"
37
+ </technique>
38
+
39
+ <technique name="prompt_chaining">
40
+ Break complex tasks into steps:
41
+ - Output of one prompt becomes input for next
42
+ - Each step has clear, focused objective
43
+ </technique>
44
+ </techniques>
45
+
46
+ <claude_4_specific>
47
+ <extended_thinking>
48
+ - Leverage extended thinking for complex tasks
49
+ - Use trigger phrases: "Thoroughly analyze...", "Consider multiple approaches..."
50
+ - Extended thinking tokens count toward context but are auto-stripped from subsequent turns
51
+ </extended_thinking>
52
+
53
+ <parallel_tools>
54
+ - Direct parallel tool calls explicitly
55
+ - "Invoke all independent operations simultaneously"
56
+ - Improves performance for file reads, searches, API calls
57
+ </parallel_tools>
58
+
59
+ <investigation_first>
60
+ - Instruct to investigate/read files BEFORE answering
61
+ - "Read existing implementation before proposing changes"
62
+ - Prevents hallucination and ensures context-aware responses
63
+ </investigation_first>
64
+
65
+ <context_awareness>
66
+ **Claude Sonnet 4.5 and Haiku 4.5** have built-in context awareness:
67
+ - Track remaining token budget throughout conversation
68
+ - Receive periodic updates on capacity
69
+ - Manage long-running tasks more effectively
70
+
71
+ For systems with automatic context compaction (like Claude Code):
72
+ ```xml
73
+ <context>
74
+ Your context window will be automatically compacted as it approaches
75
+ its limit, allowing you to continue working indefinitely from where
76
+ you left off.
77
+ </context>
78
+ ```
79
+
80
+ This prevents Claude from stopping work prematurely.
81
+ </context_awareness>
82
+
83
+ <long_horizon_tasks>
84
+ For tasks spanning multiple context windows:
85
+
86
+ **State tracking:**
87
+ - Use structured formats (JSON) for task status
88
+ - Use unstructured notes (progress.txt) for context
89
+ - Leverage git for work logs and checkpoints
90
+
91
+ **Instructions pattern:**
92
+ ```xml
93
+ <instructions>
94
+ Work systematically through all tasks. Track progress in:
95
+ - progress.json (structured status)
96
+ - progress.txt (session notes)
97
+ - git commits (implementation history)
98
+
99
+ If context refreshes, review these files to resume.
100
+ </instructions>
101
+ ```
102
+
103
+ **Test-first pattern:**
104
+ ```xml
105
+ <requirements>
106
+ Create all tests in tests.json first. It is unacceptable to
107
+ remove or edit tests - they are the source of truth.
108
+ </requirements>
109
+ ```
110
+
111
+ See: [context-management.md](context-management.md) for comprehensive patterns.
112
+ </long_horizon_tasks>
113
+
114
+ <context_window_management>
115
+ **Size limits:**
116
+ - Standard: 200K tokens
117
+ - Enterprise: 500K tokens
118
+ - Sonnet 4/4.5 (beta): 1M tokens
119
+
120
+ **Best practices:**
121
+ - Plan for context accumulation
122
+ - Use token counting API for estimates
123
+ - Consider premium pricing (>200K = 2x input, 1.5x output)
124
+ - Images count toward budget
125
+ </context_window_management>
126
+ </claude_4_specific>
@@ -0,0 +1,57 @@
1
+ <overview>
2
+ Common prompt mistakes and how to avoid them.
3
+ </overview>
4
+
5
+ <anti_patterns>
6
+ <pitfall name="vague_instructions">
7
+ BAD: "Help with the data"
8
+ GOOD: "Extract emails from CSV, remove duplicates, output as JSON array"
9
+ </pitfall>
10
+
11
+ <pitfall name="negative_prompting">
12
+ BAD: "Don't use technical jargon"
13
+ GOOD: "Write in plain language for non-technical readers"
14
+
15
+ Negative instructions can backfire - state what to do instead.
16
+ </pitfall>
17
+
18
+ <pitfall name="no_examples">
19
+ BAD: Describing format in words only
20
+ GOOD: Showing 2-3 concrete input/output examples
21
+
22
+ Examples communicate nuances words cannot.
23
+ </pitfall>
24
+
25
+ <pitfall name="missing_edge_cases">
26
+ BAD: "Process the file"
27
+ GOOD: "Process the file. If empty, return []. If malformed, return error with line number."
28
+ </pitfall>
29
+
30
+ <pitfall name="ambiguous_language">
31
+ BAD: "Try to keep it short", "Maybe add examples"
32
+ GOOD: "Maximum 3 paragraphs", "Include 2 examples"
33
+ </pitfall>
34
+
35
+ <pitfall name="no_success_criteria">
36
+ BAD: "Analyze the data"
37
+ GOOD: "Analyze the data. Success: identify top 3 trends with supporting metrics."
38
+ </pitfall>
39
+
40
+ <pitfall name="too_many_options">
41
+ BAD: "You can use library A, B, C, D, or E..."
42
+ GOOD: "Use library A. For edge case X, use B instead."
43
+
44
+ Provide one default with escape hatch.
45
+ </pitfall>
46
+
47
+ <pitfall name="inconsistent_terminology">
48
+ BAD: Mixing "API endpoint", "URL", "route", "path"
49
+ GOOD: Pick one term and use consistently throughout
50
+ </pitfall>
51
+ </anti_patterns>
52
+
53
+ <testing>
54
+ Ask: "Could I hand these instructions to someone with no context and expect correct results?"
55
+
56
+ If unclear to a human, it's unclear to the model.
57
+ </testing>
@@ -0,0 +1,54 @@
1
+ <overview>
2
+ Clarity reduces errors and improves output quality.
3
+ </overview>
4
+
5
+ <golden_rule>
6
+ Show your prompt to someone with minimal context. If they're confused, the model will be too.
7
+ </golden_rule>
8
+
9
+ <guidelines>
10
+ <guideline name="specificity">
11
+ BAD: "Help with the report"
12
+ GOOD: "Generate markdown report with: Executive Summary, Key Findings, Recommendations"
13
+ </guideline>
14
+
15
+ <guideline name="sequential_steps">
16
+ Provide numbered instructions:
17
+ 1. Extract data
18
+ 2. Transform format
19
+ 3. Validate
20
+ 4. Save output
21
+ </guideline>
22
+
23
+ <guideline name="avoid_ambiguity">
24
+ Replace ambiguous phrases:
25
+ - "Try to..." → "Always..."
26
+ - "Should probably..." → "Must..."
27
+ - "Generally..." → "Always... except when..."
28
+ </guideline>
29
+
30
+ <guideline name="define_edge_cases">
31
+ Anticipate edge cases:
32
+ - What if no results?
33
+ - What if duplicates?
34
+ - What if invalid format?
35
+ </guideline>
36
+
37
+ <guideline name="output_format">
38
+ Specify format with example:
39
+ ```json
40
+ {"name": "string", "email": "string"}
41
+ ```
42
+ </guideline>
43
+
44
+ <guideline name="success_criteria">
45
+ Define success:
46
+ - All rows parsed
47
+ - No validation errors
48
+ - Output file created
49
+ </guideline>
50
+ </guidelines>
51
+
52
+ <show_dont_tell>
53
+ When format matters, show an example rather than describing it.
54
+ </show_dont_tell>