-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsnippets.toml
More file actions
360 lines (291 loc) · 14.4 KB
/
snippets.toml
File metadata and controls
360 lines (291 loc) · 14.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
# psh Snippet Collection
# Comprehensive prompt snippets for LLM interactions
#
# Design: Global ops provide defaults, namespace-specific ops override them
# Multiple ops can be combined - later ops override earlier ones
# Default: no emoji (ne), professional tone
# ============================================================================
# GLOBAL OPS - Default configurations applicable across all namespaces
# ============================================================================
[global]
# Base defaults - applied first if no other ops specified
[global.ops.base]
length_instruction = "Provide a moderately detailed response (2-3 paragraphs)."
emoji_instruction = "Do not use any emoji in your response."
tone_instruction = "Maintain a professional but approachable tone."
format_instruction = ""
detail_instruction = ""
doc_instruction = ""
# Length levels - ONLY set length_instruction
[global.ops.l1]
length_instruction = "Be extremely concise. Provide only essential information in 1-2 sentences."
[global.ops.l2]
length_instruction = "Be concise but complete. Limit response to 1 paragraph."
[global.ops.l3]
length_instruction = "Provide a moderately detailed response (2-3 paragraphs)."
[global.ops.l4]
length_instruction = "Provide a detailed response with comprehensive coverage (4-5 paragraphs)."
[global.ops.l5]
length_instruction = "Provide an extremely detailed, in-depth response with extensive examples and edge cases."
# Emoji control - ONLY set emoji_instruction
[global.ops.ne]
emoji_instruction = "Do not use any emoji in your response."
[global.ops.e]
emoji_instruction = "You may use emoji sparingly for clarity and emphasis."
# Tone modifiers - ONLY set tone_instruction
[global.ops.pro]
tone_instruction = "Use strictly professional, formal language suitable for business documentation."
[global.ops.cas]
tone_instruction = "Use casual, conversational language as if explaining to a friend."
[global.ops.tec]
tone_instruction = "Use technical, precise language with appropriate jargon and terminology."
# Format modifiers - ONLY set format_instruction
[global.ops.blt]
format_instruction = "as a bulleted list with clear, actionable points."
[global.ops.num]
format_instruction = "as a numbered list in logical order."
# Documentation control - ONLY set doc_instruction
[global.ops.nd]
doc_instruction = "Do NOT create any new documentation files (*.md, README, docs, etc.). Only provide explanations or code as requested."
# ============================================================================
# NAMESPACE-SPECIFIC SNIPPETS
# ============================================================================
[[snippet]]
id = "doc-create"
namespace = "d"
description = "Explicitly instruct to CREATE documentation files (README, docs, etc.)"
tags = ["documentation", "files", "creation"]
template = """{{ length_instruction }}
{{ emoji_instruction }}
CREATE documentation files for this project.
Generate appropriate documentation including README, API docs, usage guides, etc.
Use proper formatting with headings, code blocks, and examples where appropriate.
{{ tone_instruction }}"""
# Documentation namespace defaults - no emoji, professional tone
[snippet.ops.base]
length_instruction = "Create moderate documentation with installation, usage, and examples."
emoji_instruction = "Do not use any emoji in your response."
tone_instruction = "Maintain a professional but approachable tone."
format_instruction = ""
detail_instruction = ""
doc_instruction = "Do NOT create any new documentation files (*.md, README, docs, etc.). Only provide explanations or code as requested."
# Documentation-specific length ops - ONLY override length_instruction
[snippet.ops.l1]
length_instruction = "Create minimal essential documentation only (README with basic usage)."
[snippet.ops.l2]
length_instruction = "Create concise documentation covering key features and basic usage."
[snippet.ops.l3]
length_instruction = "Create moderate documentation with installation, usage, and examples."
[snippet.ops.l4]
length_instruction = "Create comprehensive documentation including API reference and advanced usage."
[snippet.ops.l5]
length_instruction = "Create extensive documentation with detailed API reference, examples, edge cases, and troubleshooting."
# Documentation-specific tone op - ONLY override tone_instruction
[snippet.ops.pro]
tone_instruction = "Use formal, technical documentation style suitable for API references and official documentation."
[[snippet]]
id = "summarize"
namespace = "sum"
description = "Summarize content in various formats"
tags = ["summarize", "condense"]
template = """{{ length_instruction }}
{{ emoji_instruction }}
Summarize the following content {{ format_instruction }}
Focus on the key points and main takeaways.
{{ detail_instruction }}
{{ tone_instruction }}"""
# Summary namespace defaults
[snippet.ops.base]
length_instruction = "Provide a moderate summary (3-5 key points)."
emoji_instruction = "Do not use any emoji in your response."
format_instruction = "in paragraph form"
detail_instruction = "Preserve important details and context."
tone_instruction = "Maintain a professional but approachable tone."
doc_instruction = "Do NOT create any new documentation files (*.md, README, docs, etc.). Only provide explanations or code as requested."
# Summary-specific length ops - ONLY override length and detail
[snippet.ops.l1]
length_instruction = "Provide a one-sentence summary capturing only the core essence."
detail_instruction = "Focus only on the single most important point."
[snippet.ops.l3]
length_instruction = "Provide a moderate summary (3-5 key points)."
detail_instruction = "Preserve important details and context."
[snippet.ops.l5]
length_instruction = "Provide a comprehensive summary covering all major points and supporting details."
detail_instruction = "Include context, nuances, and supporting information."
# Summary-specific format ops - ONLY override format
[snippet.ops.blt]
format_instruction = "as a bulleted list with clear, actionable points."
[snippet.ops.num]
format_instruction = "as a numbered list in logical order."
[[snippet]]
id = "plan"
namespace = "plan"
description = "Generate step-by-step plans and strategies"
tags = ["planning", "strategy"]
template = """{{ length_instruction }}
{{ emoji_instruction }}
Create a {{ format_instruction }} plan to accomplish the stated goal.
{{ structure_instruction }}
Consider dependencies, prerequisites, and potential challenges.
{{ tone_instruction }}"""
# Planning namespace defaults
[snippet.ops.base]
length_instruction = "Provide a moderately detailed response (2-3 paragraphs)."
emoji_instruction = "Do not use any emoji in your response."
format_instruction = "clear, step-by-step"
structure_instruction = "Break down into detailed steps with substeps where needed. Include rationale for each major step."
tone_instruction = "Maintain a professional but approachable tone."
doc_instruction = "Do NOT create any new documentation files (*.md, README, docs, etc.). Only provide explanations or code as requested."
# Planning-specific ops - ONLY override what's needed
[snippet.ops.stp]
structure_instruction = "Break down into detailed steps with substeps where needed. Include rationale for each major step."
[snippet.ops.l1]
length_instruction = "Provide a high-level plan with 3-5 major steps only."
structure_instruction = "List only major steps without substeps."
[snippet.ops.l4]
length_instruction = "Provide a detailed plan with comprehensive steps, timelines, and resource considerations."
structure_instruction = "Break down into detailed steps with substeps, timelines, dependencies, and resource requirements."
[[snippet]]
id = "code-review"
namespace = "cr"
description = "Code review with language-specific best practices"
tags = ["code", "review"]
template = """{{ length_instruction }}
{{ emoji_instruction }}
Review the following {{ lang }} code with {{ detail }} level of detail.
Focus on:
- Code quality and best practices
- Potential bugs or edge cases
- Performance considerations
- Readability and maintainability
{{ tone_instruction }}
Provide specific, actionable feedback."""
# Code review namespace defaults
[snippet.ops.base]
lang = "code"
detail = "moderate"
length_instruction = "Provide a moderate code review covering main quality aspects."
emoji_instruction = "Do not use any emoji in your response."
tone_instruction = "Maintain a professional but approachable tone."
doc_instruction = "Do NOT create any new documentation files (*.md, README, docs, etc.). Only provide explanations or code as requested."
# Code review-specific length ops - ONLY override length and detail
[snippet.ops.l2]
detail = "basic"
length_instruction = "Provide a basic code review focusing on critical issues only."
[snippet.ops.l3]
detail = "moderate"
length_instruction = "Provide a moderate code review covering main quality aspects."
[snippet.ops.l4]
detail = "comprehensive"
length_instruction = "Provide a comprehensive code review with detailed analysis."
[snippet.ops.l5]
detail = "exhaustive"
length_instruction = "Provide an exhaustive code review covering all aspects including edge cases and optimizations."
[[snippet]]
id = "rewrite"
namespace = "rr"
description = "Rewrite text in different styles or tones"
tags = ["rewrite", "style"]
template = """{{ emoji_instruction }}
Rewrite the following text {{ tone_instruction }}
{{ length_instruction }}
Preserve the core meaning while adapting the style appropriately."""
# Rewrite namespace defaults
[snippet.ops.base]
emoji_instruction = "Do not use any emoji in your response."
tone_instruction = "Maintain the original tone."
length_instruction = "Maintain approximately the same length."
doc_instruction = "Do NOT create any new documentation files (*.md, README, docs, etc.). Only provide explanations or code as requested."
# Rewrite-specific tone ops - ONLY override tone
[snippet.ops.pro]
tone_instruction = "in a formal, professional business tone suitable for executive communication."
[snippet.ops.cas]
tone_instruction = "in a casual, friendly conversational tone."
[snippet.ops.tec]
tone_instruction = "in a technical, precise manner with appropriate jargon."
# Rewrite-specific length ops - ONLY override length
[snippet.ops.l1]
length_instruction = "Make it significantly more concise while preserving key points."
[snippet.ops.l5]
length_instruction = "Expand with additional detail, examples, and elaboration."
[[snippet]]
id = "git-commit"
namespace = "git"
description = "Git-related operations"
tags = ["git", "version-control"]
template = """{{ length_instruction }}
{{ emoji_instruction }}
Follow conventional commit format: type(scope): description
Types: feat, fix, docs, style, refactor, test, chore
{{ detail_instruction }}
{{ tone_instruction }}"""
# Git namespace defaults
[snippet.ops.base]
length_instruction = "Generate a clear, descriptive commit message for the changes."
emoji_instruction = "Do not use any emoji in your response."
detail_instruction = "Include a brief body if the changes are complex."
tone_instruction = "Maintain a professional but approachable tone."
doc_instruction = "Do NOT create any new documentation files (*.md, README, docs, etc.). Only provide explanations or code as requested."
# Git commit op - same as base for now
[snippet.ops.cm]
length_instruction = "Generate a clear, descriptive commit message for the changes."
emoji_instruction = "Do not use any emoji in your response."
detail_instruction = "Include a brief body if the changes are complex."
tone_instruction = "Maintain a professional but approachable tone."
# Git commit-specific ops - ONLY override what's needed
[snippet.ops.full]
detail_instruction = "Include a brief body if the changes are complex."
[snippet.ops.l1]
length_instruction = "Generate a concise one-line commit message."
detail_instruction = "Provide only the commit title (one line)."
[[snippet]]
id = "context-catchup"
namespace = "c"
description = "Catch up on project by reading DevLogs and/or inspecting codebase"
tags = ["context", "devlog", "codebase", "onboarding", "catchup"]
template = """{{ scope_instruction }}
{{ detail_instruction }}
{{ emoji_instruction }}
{{ focus_instruction }}
{{ output_instruction }}
{{ tone_instruction }}"""
[snippet.ops.base]
scope_instruction = "Read DevLogs and inspect the current codebase to gain complete project context."
detail_instruction = "Provide a comprehensive understanding of both project history and current implementation."
emoji_instruction = "Do not use any emoji in your response."
focus_instruction = "Focus on: current implementation status, key design decisions, architecture, and next steps."
output_instruction = "Summarize your findings and indicate you're ready to work on the project."
tone_instruction = "Maintain a professional but approachable tone."
doc_instruction = "Do NOT create any new documentation files (*.md, README, docs, etc.). Only provide explanations or code as requested."
# Scope modifiers - what to read
[snippet.ops.rd]
scope_instruction = """Read and analyze all DevLog files to understand:
- Development history and timeline
- Key design decisions and rationale
- Current implementation status
- Completed features and pending tasks"""
[snippet.ops.cb]
scope_instruction = """Inspect the current codebase to understand:
- Architecture and component structure
- Implementation details and patterns
- Code organization and dependencies
- Testing coverage and quality"""
[snippet.ops.full]
scope_instruction = """Read and analyze the following to gain complete project context:
1. **DevLog Files**: Review development history, decisions, and current status
2. **Current Codebase**: Inspect implementation, architecture, and code structure
3. **Documentation**: Review README, design docs, and inline documentation"""
# Focus modifiers - what to emphasize
[snippet.ops.arch]
focus_instruction = "Focus primarily on: architecture, design patterns, component relationships, and system structure."
[snippet.ops.status]
focus_instruction = "Focus primarily on: current implementation status, completed features, pending tasks, and blockers."
[snippet.ops.tech]
focus_instruction = "Focus primarily on: technical implementation details, code quality, testing coverage, and technical debt."
[snippet.ops.next]
focus_instruction = "Focus primarily on: next steps, pending tasks, roadmap, and what needs to be done."
# Output format modifiers
[snippet.ops.sum]
output_instruction = "Provide a structured summary with key findings organized by category."
[snippet.ops.rdy]
output_instruction = "After catching up, confirm you're ready and ask what task to work on next."