llms-py 3.0.14__py3-none-any.whl → 3.0.15__py3-none-any.whl

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.
@@ -0,0 +1,178 @@
1
+ """YAML frontmatter parsing for SKILL.md files."""
2
+
3
+ from pathlib import Path
4
+ from typing import Optional
5
+
6
+ from .errors import ParseError, ValidationError
7
+ from .models import SkillProperties
8
+
9
+
10
+ def load_yaml(content: str) -> dict:
11
+ """Simple YAML parser for skill frontmatter.
12
+
13
+ Supports:
14
+ - Key-value pairs: key: "value"
15
+ - Comments: # comment
16
+ - Simple nesting (indentation-based)
17
+ """
18
+ result = {}
19
+ stack = [result]
20
+ indents = [-1]
21
+ last_key = None
22
+
23
+ for line in content.splitlines():
24
+ # Skip empty lines or full comments
25
+ stripped = line.strip()
26
+ if not stripped or stripped.startswith("#"):
27
+ continue
28
+
29
+ indent = len(line) - len(line.lstrip())
30
+
31
+ # Handle indent levels
32
+ while indent <= indents[-1]:
33
+ indents.pop()
34
+ stack.pop()
35
+
36
+ # If we have a nested block under last key
37
+ if indent > indents[-1] and last_key and isinstance(stack[-1], dict) and stack[-1].get(last_key) is None:
38
+ # This branch is tricky with the simple look-behind.
39
+ # Better approach: check if line is a key-value or array item
40
+ pass
41
+
42
+ # Parse key: value
43
+ if ":" in stripped:
44
+ key, val = stripped.split(":", 1)
45
+ key = key.strip()
46
+ val = val.strip()
47
+
48
+ # Handle quotes
49
+ if (val.startswith('"') and val.endswith('"')) or (val.startswith("'") and val.endswith("'")):
50
+ val = val[1:-1]
51
+ elif val.lower() == "true":
52
+ val = True
53
+ elif val.lower() == "false":
54
+ val = False
55
+ elif val == "":
56
+ val = None # Could be start of nested object
57
+
58
+ current_dict = stack[-1]
59
+
60
+ if val is None:
61
+ # Prepare for nested object
62
+ new_dict = {}
63
+ current_dict[key] = new_dict
64
+ stack.append(new_dict)
65
+ indents.append(indent)
66
+ else:
67
+ current_dict[key] = val
68
+
69
+ last_key = key
70
+ else:
71
+ # Handle continuation lines or unknown format if needed,
72
+ # but for our simple use case we might error or ignore.
73
+ pass
74
+
75
+ return result
76
+
77
+
78
+ def find_skill_md(skill_dir: Path) -> Optional[Path]:
79
+ """Find the SKILL.md file in a skill directory.
80
+
81
+ Prefers SKILL.md (uppercase) but accepts skill.md (lowercase).
82
+
83
+ Args:
84
+ skill_dir: Path to the skill directory
85
+
86
+ Returns:
87
+ Path to the SKILL.md file, or None if not found
88
+ """
89
+ for name in ("SKILL.md", "skill.md"):
90
+ path = skill_dir / name
91
+ if path.exists():
92
+ return path
93
+ return None
94
+
95
+
96
+ def parse_frontmatter(content: str) -> tuple[dict, str]:
97
+ """Parse YAML frontmatter from SKILL.md content.
98
+
99
+ Args:
100
+ content: Raw content of SKILL.md file
101
+
102
+ Returns:
103
+ Tuple of (metadata dict, markdown body)
104
+
105
+ Raises:
106
+ ParseError: If frontmatter is missing or invalid
107
+ """
108
+ if not content.startswith("---"):
109
+ raise ParseError("SKILL.md must start with YAML frontmatter (---)")
110
+
111
+ parts = content.split("---", 2)
112
+ if len(parts) < 3:
113
+ raise ParseError("SKILL.md frontmatter not properly closed with ---")
114
+
115
+ frontmatter_str = parts[1]
116
+ body = parts[2].strip()
117
+
118
+ try:
119
+ metadata = load_yaml(frontmatter_str)
120
+ except Exception as e:
121
+ raise ParseError(f"Invalid YAML in frontmatter: {e}") from e
122
+
123
+ if not isinstance(metadata, dict):
124
+ raise ParseError("SKILL.md frontmatter must be a YAML mapping")
125
+
126
+ # Clean up metadata values if necessary (simple parser already handles basics)
127
+ if "metadata" in metadata and isinstance(metadata["metadata"], dict):
128
+ metadata["metadata"] = {str(k): str(v) for k, v in metadata["metadata"].items()}
129
+
130
+ return metadata, body
131
+
132
+
133
+ def read_properties(skill_dir: Path) -> SkillProperties:
134
+ """Read skill properties from SKILL.md frontmatter.
135
+
136
+ This function parses the frontmatter and returns properties.
137
+ It does NOT perform full validation. Use validate() for that.
138
+
139
+ Args:
140
+ skill_dir: Path to the skill directory
141
+
142
+ Returns:
143
+ SkillProperties with parsed metadata
144
+
145
+ Raises:
146
+ ParseError: If SKILL.md is missing or has invalid YAML
147
+ ValidationError: If required fields (name, description) are missing
148
+ """
149
+ skill_dir = Path(skill_dir)
150
+ skill_md = find_skill_md(skill_dir)
151
+
152
+ if skill_md is None:
153
+ raise ParseError(f"SKILL.md not found in {skill_dir}")
154
+
155
+ content = skill_md.read_text()
156
+ metadata, _ = parse_frontmatter(content)
157
+
158
+ if "name" not in metadata:
159
+ raise ValidationError("Missing required field in frontmatter: name")
160
+ if "description" not in metadata:
161
+ raise ValidationError("Missing required field in frontmatter: description")
162
+
163
+ name = metadata["name"]
164
+ description = metadata["description"]
165
+
166
+ if not isinstance(name, str) or not name.strip():
167
+ raise ValidationError("Field 'name' must be a non-empty string")
168
+ if not isinstance(description, str) or not description.strip():
169
+ raise ValidationError("Field 'description' must be a non-empty string")
170
+
171
+ return SkillProperties(
172
+ name=name.strip(),
173
+ description=description.strip(),
174
+ license=metadata.get("license"),
175
+ compatibility=metadata.get("compatibility"),
176
+ allowed_tools=metadata.get("allowed-tools"),
177
+ metadata=metadata.get("metadata"),
178
+ )
@@ -0,0 +1,335 @@
1
+ import { ref, inject, computed } from "vue"
2
+
3
+ let ext
4
+
5
+ const SkillSelector = {
6
+ template: `
7
+ <div class="px-4 py-4 bg-gray-50 dark:bg-gray-800 border-b border-gray-200 dark:border-gray-700 max-h-[80vh] overflow-y-auto">
8
+
9
+ <!-- Global Controls -->
10
+ <div class="flex items-center justify-between mb-4">
11
+ <span class="text-xs font-bold uppercase text-gray-500 tracking-wider">Include Skills</span>
12
+ <div class="flex items-center gap-2">
13
+ <button @click="$ctx.setPrefs({ onlySkills: null })"
14
+ class="px-3 py-1 rounded-md text-xs font-medium border transition-colors select-none"
15
+ :class="$prefs.onlySkills == null
16
+ ? 'bg-green-100 dark:bg-green-900/40 text-green-800 dark:text-green-300 border-green-300 dark:border-green-800'
17
+ : 'cursor-pointer bg-white dark:bg-gray-800 text-gray-600 dark:text-gray-400 border-gray-200 dark:border-gray-700 hover:border-gray-300 dark:hover:border-gray-600'">
18
+ All Skills
19
+ </button>
20
+ <button @click="$ctx.setPrefs({ onlySkills:[] })"
21
+ class="px-3 py-1 rounded-md text-xs font-medium border transition-colors select-none"
22
+ :class="$prefs.onlySkills?.length === 0
23
+ ? 'bg-fuchsia-100 dark:bg-fuchsia-900/40 text-fuchsia-800 dark:text-fuchsia-300 border-fuchsia-200 dark:border-fuchsia-800'
24
+ : 'cursor-pointer bg-white dark:bg-gray-800 text-gray-600 dark:text-gray-400 border-gray-200 dark:border-gray-700 hover:border-gray-300 dark:hover:border-gray-600'">
25
+ No Skills
26
+ </button>
27
+ </div>
28
+ </div>
29
+
30
+ <!-- Groups -->
31
+ <div class="space-y-3">
32
+ <div v-for="group in skillGroups" :key="group.name"
33
+ class="bg-white dark:bg-gray-900 rounded-lg border border-gray-200 dark:border-gray-700 overflow-hidden">
34
+
35
+ <!-- Group Header -->
36
+ <div class="flex items-center justify-between px-3 py-2 bg-gray-50/50 dark:bg-gray-800/50 cursor-pointer hover:bg-gray-100 dark:hover:bg-gray-800 transition-colors"
37
+ @click="toggleCollapse(group.name)">
38
+
39
+ <div class="flex items-center gap-2 min-w-0">
40
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" class="w-4 h-4 text-gray-400 transition-transform duration-200" :class="{ '-rotate-90': isCollapsed(group.name) }">
41
+ <path fill-rule="evenodd" d="M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z" clip-rule="evenodd" />
42
+ </svg>
43
+ <span class="font-semibold text-sm text-gray-700 dark:text-gray-200 truncate">
44
+ {{ group.name || 'Other Skills' }}
45
+ </span>
46
+ <span class="text-xs text-gray-400 font-mono">
47
+ {{ getActiveCount(group) }}/{{ group.skills.length }}
48
+ </span>
49
+ </div>
50
+
51
+ <div class="flex items-center gap-2" @click.stop>
52
+ <button @click="setGroupSkills(group, true)" type="button"
53
+ title="Include All in Group"
54
+ class="px-2 py-0.5 rounded text-xs font-medium border transition-colors select-none"
55
+ :class="getActiveCount(group) === group.skills.length
56
+ ? 'bg-green-50 dark:bg-green-900/20 text-green-700 dark:text-green-300 border-green-300 dark:border-green-800 hover:bg-green-100 dark:hover:bg-green-900/40'
57
+ : 'bg-white dark:bg-gray-800 text-gray-600 dark:text-gray-400 border-gray-200 dark:border-gray-700 hover:border-gray-300 dark:hover:border-gray-600'">
58
+ all
59
+ </button>
60
+ <button @click="setGroupSkills(group, false)" type="button"
61
+ title="Include None in Group"
62
+ class="px-2 py-0.5 rounded text-xs font-medium border transition-colors select-none"
63
+ :class="getActiveCount(group) === 0
64
+ ? 'bg-fuchsia-50 dark:bg-fuchsia-900/20 text-fuchsia-700 dark:text-fuchsia-300 border-fuchsia-200 dark:border-fuchsia-800 hover:bg-fuchsia-100 dark:hover:bg-fuchsia-900/40'
65
+ : 'bg-white dark:bg-gray-800 text-gray-600 dark:text-gray-400 border-gray-200 dark:border-gray-700 hover:border-gray-300 dark:hover:border-gray-600'">
66
+ none
67
+ </button>
68
+ </div>
69
+ </div>
70
+
71
+ <!-- Group Body -->
72
+ <div v-show="!isCollapsed(group.name)" class="p-3 bg-white dark:bg-gray-900 border-t border-gray-100 dark:border-gray-800">
73
+ <div class="flex flex-wrap gap-2">
74
+ <button v-for="skill in group.skills" :key="skill.name" type="button"
75
+ @click="toggleSkill(skill.name)"
76
+ :title="skill.description"
77
+ class="px-2.5 py-1 rounded-full text-xs font-medium border transition-colors select-none text-left truncate max-w-[200px]"
78
+ :class="isSkillActive(skill.name)
79
+ ? 'bg-blue-100 dark:bg-blue-900/40 text-blue-800 dark:text-blue-300 border-blue-200 dark:border-blue-800'
80
+ : 'bg-gray-50 dark:bg-gray-800 text-gray-600 dark:text-gray-400 border-gray-200 dark:border-gray-700 hover:border-gray-300 dark:hover:border-gray-600'">
81
+ {{ skill.name }}
82
+ </button>
83
+ </div>
84
+ </div>
85
+ </div>
86
+ </div>
87
+ </div>
88
+ `,
89
+ setup() {
90
+ const ctx = inject('ctx')
91
+ const collapsedState = ref({})
92
+
93
+ const availableSkills = computed(() => Object.values(ctx.state.skills || {}))
94
+
95
+ const skillGroups = computed(() => {
96
+ const skills = availableSkills.value
97
+ const groupsMap = {}
98
+ const otherSkills = []
99
+
100
+ skills.forEach(skill => {
101
+ if (skill.group) {
102
+ if (!groupsMap[skill.group]) groupsMap[skill.group] = []
103
+ groupsMap[skill.group].push(skill)
104
+ } else {
105
+ otherSkills.push(skill)
106
+ }
107
+ })
108
+
109
+ const definedGroups = Object.entries(groupsMap).map(([name, skills]) => ({
110
+ name,
111
+ skills
112
+ }))
113
+
114
+ // Sort groups by name if needed, but for now rely on insertion order or backend order
115
+ definedGroups.sort((a, b) => a.name.localeCompare(b.name))
116
+
117
+ if (otherSkills.length > 0) {
118
+ definedGroups.push({ name: '', skills: otherSkills })
119
+ }
120
+
121
+ return definedGroups
122
+ })
123
+
124
+ function isSkillActive(name) {
125
+ const only = ctx.prefs.onlySkills
126
+ if (only == null) return true
127
+ if (Array.isArray(only)) {
128
+ return only.includes(name)
129
+ }
130
+ return false
131
+ }
132
+
133
+ function toggleSkill(name) {
134
+ let onlySkills = ctx.prefs.onlySkills
135
+
136
+ if (onlySkills == null) {
137
+ // If currently 'All', clicking a skill means we enter custom mode with all OTHER skills selected (deselecting clicked)
138
+ // Wait, logic in ToolSelector:
139
+ // if (onlyTools == null) { onlyTools = availableTools.value.map(t => t.function.name).filter(t => t !== name) }
140
+ // This means deselecting one tool switches to "custom" with all but that one.
141
+
142
+ onlySkills = availableSkills.value.map(s => s.name).filter(s => s !== name)
143
+ } else {
144
+ if (onlySkills.includes(name)) {
145
+ onlySkills = onlySkills.filter(s => s !== name)
146
+ } else {
147
+ onlySkills = [...onlySkills, name]
148
+ }
149
+ }
150
+
151
+ ctx.setPrefs({ onlySkills })
152
+ }
153
+
154
+ function toggleCollapse(groupName) {
155
+ const key = groupName || '_other_'
156
+ collapsedState.value[key] = !collapsedState.value[key]
157
+ }
158
+
159
+ function isCollapsed(groupName) {
160
+ const key = groupName || '_other_'
161
+ return !!collapsedState.value[key]
162
+ }
163
+
164
+ function setGroupSkills(group, enable) {
165
+ const groupSkillNames = group.skills.map(s => s.name)
166
+ let onlySkills = ctx.prefs.onlySkills
167
+
168
+ if (enable) {
169
+ if (onlySkills == null) return
170
+ const newSet = new Set(onlySkills)
171
+ groupSkillNames.forEach(n => newSet.add(n))
172
+ onlySkills = Array.from(newSet)
173
+ if (onlySkills.length === availableSkills.value.length) {
174
+ onlySkills = null
175
+ }
176
+ } else {
177
+ if (onlySkills == null) {
178
+ onlySkills = availableSkills.value
179
+ .map(s => s.name)
180
+ .filter(n => !groupSkillNames.includes(n))
181
+ } else {
182
+ onlySkills = onlySkills.filter(n => !groupSkillNames.includes(n))
183
+ }
184
+ }
185
+
186
+ ctx.setPrefs({ onlySkills })
187
+ }
188
+
189
+ function getActiveCount(group) {
190
+ const onlySkills = ctx.prefs.onlySkills
191
+ if (onlySkills == null) return group.skills.length
192
+ return group.skills.filter(s => onlySkills.includes(s.name)).length
193
+ }
194
+
195
+ return {
196
+ availableSkills,
197
+ skillGroups,
198
+ isSkillActive,
199
+ toggleSkill,
200
+ toggleCollapse,
201
+ isCollapsed,
202
+ setGroupSkills,
203
+ getActiveCount
204
+ }
205
+ }
206
+ }
207
+
208
+ function codeFragment(s) {
209
+ return "`" + s + "`"
210
+ }
211
+ function codeBlock(s) {
212
+ return "```\n" + s + "\n```\n"
213
+ }
214
+
215
+ const SkillInstructions = `
216
+ You have access to specialized skills that extend your capabilities with domain-specific knowledge, workflows, and tools.
217
+ Skills are modular packages containing instructions, scripts, references, and assets for particular tasks.
218
+
219
+ ## Using Skills
220
+
221
+ Use the skill tool to read a skill's main instructions and guidance, e.g:
222
+ ${codeBlock("skill({ name: \"skill-name\" })")}
223
+
224
+ To read a specific file within a skill (scripts, references, assets):
225
+ ${codeBlock("skill({ name: \"skill-name\", file: \"relative/path/to/file\" })")}
226
+
227
+ Examples:
228
+ - ${codeFragment("skill({ name: \"create-plan\" })")} - Read the create-plan skill's SKILL.md instructions
229
+ - ${codeFragment("skill({ name: \"web-artifacts-builder\", file: \"scripts/init-artifact.sh\" })")} - Read a specific script
230
+
231
+ ## When to Use Skills
232
+
233
+ You should read the appropriate skill BEFORE starting work on relevant tasks. Skills contain best practices, scripts, and reference materials that significantly improve output quality.
234
+
235
+ **Skill Selection Guidelines:**
236
+ - Match the task to available skill descriptions
237
+ - Multiple skills may be relevant - read all that apply
238
+ - Read the skill first, then follow its instructions
239
+
240
+ ## Available Skills
241
+ $$AVAILABLE_SKILLS$$
242
+
243
+ ## Important Notes
244
+
245
+ - Always read the skill BEFORE starting implementation
246
+ - Skills may contain scripts that can be executed directly without loading into context
247
+ - Multiple skills can and should be combined when tasks span multiple domains
248
+ - If a skill references additional files (references/, scripts/, assets/), read those as needed during execution
249
+ `
250
+
251
+ export default {
252
+ order: 15 - 100,
253
+
254
+ install(ctx) {
255
+ ext = ctx.scope("skills")
256
+
257
+ ctx.components({ SkillSelector })
258
+
259
+ const svg = (attrs, title) => `<svg ${attrs} xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">${title ? "<title>" + title + "</title>" : ''}<path fill="currentColor" d="M20 17a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H9.46c.35.61.54 1.3.54 2h10v11h-9v2m4-10v2H9v13H7v-6H5v6H3v-8H1.5V9a2 2 0 0 1 2-2zM8 4a2 2 0 0 1-2 2a2 2 0 0 1-2-2a2 2 0 0 1 2-2a2 2 0 0 1 2 2"/></svg>`
260
+
261
+ ctx.setTopIcons({
262
+ skills: {
263
+ component: {
264
+ template: svg([
265
+ `@click="$ctx.toggleTop('SkillSelector')"`,
266
+ `:class="$prefs.onlySkills == null ? 'text-green-600 dark:text-green-300' : $prefs.onlySkills.length ? 'text-blue-600! dark:text-blue-300!' : ''"`
267
+ ].join(' ')),
268
+ },
269
+ isActive({ top }) {
270
+ return top === 'SkillSelector'
271
+ },
272
+ get title() {
273
+ return ctx.prefs.onlySkills == null
274
+ ? `All Skills Included`
275
+ : ctx.prefs.onlySkills.length
276
+ ? `${ctx.prefs.onlySkills.length} ${ctx.utils.pluralize('Skill', ctx.prefs.onlySkills.length)} Included`
277
+ : 'No Skills Included'
278
+ }
279
+ }
280
+ })
281
+
282
+ ctx.chatRequestFilters.push(({ request, thread, context }) => {
283
+
284
+ const prefs = ctx.prefs
285
+ if (prefs.onlySkills != null) {
286
+ if (Array.isArray(prefs.onlySkills)) {
287
+ request.metadata.skills = prefs.onlySkills.length > 0
288
+ ? prefs.onlySkills.join(',')
289
+ : 'none'
290
+ }
291
+ } else {
292
+ request.metadata.skills = 'all'
293
+ }
294
+
295
+ console.log('skills.chatRequestFilters', prefs.onlySkills, Object.keys(ctx.state.skills || {}))
296
+ const skills = ctx.state.skills
297
+ if (!skills) return
298
+
299
+ const includeSkills = []
300
+ for (const skill of Object.values(skills)) {
301
+ if (prefs.onlySkills == null || prefs.onlySkills.includes(skill.name)) {
302
+ includeSkills.push(skill)
303
+ }
304
+ }
305
+ if (!includeSkills.length) return
306
+
307
+ const sb = []
308
+ sb.push("<available_skills>")
309
+ for (const skill of includeSkills) {
310
+ sb.push(" <skill>")
311
+ sb.push(" <name>" + ctx.utils.encodeHtml(skill.name) + "</name>")
312
+ sb.push(" <description>" + ctx.utils.encodeHtml(skill.description) + "</description>")
313
+ sb.push(" <location>" + ctx.utils.encodeHtml(skill.location) + "</location>")
314
+ sb.push(" </skill>")
315
+ }
316
+ sb.push("</available_skills>")
317
+
318
+ const skillsPrompt = SkillInstructions.replace('$$AVAILABLE_SKILLS$$', sb.join('\n')).trim()
319
+ context.requiredSystemPrompts.push(skillsPrompt)
320
+ })
321
+
322
+ ctx.setState({
323
+ skills: {}
324
+ })
325
+ },
326
+
327
+ async load(ctx) {
328
+ const api = await ext.getJson('/')
329
+ if (api.response) {
330
+ ctx.setState({ skills: api.response })
331
+ } else {
332
+ ctx.setError(api.error)
333
+ }
334
+ }
335
+ }
@@ -0,0 +1,74 @@
1
+ ---
2
+ name: create-plan
3
+ description: Create a concise plan. Use when a user explicitly asks for a plan related to a coding task.
4
+ metadata:
5
+ short-description: Create a plan
6
+ ---
7
+
8
+ # Create Plan
9
+
10
+ ## Goal
11
+
12
+ Turn a user prompt into a **single, actionable plan** delivered in the final assistant message.
13
+
14
+ ## Minimal workflow
15
+
16
+ Throughout the entire workflow, operate in read-only mode. Do not write or update files.
17
+
18
+ 1. **Scan context quickly**
19
+ - Read `README.md` and any obvious docs (`docs/`, `CONTRIBUTING.md`, `ARCHITECTURE.md`).
20
+ - Skim relevant files (the ones most likely touched).
21
+ - Identify constraints (language, frameworks, CI/test commands, deployment shape).
22
+
23
+ 2. **Ask follow-ups only if blocking**
24
+ - Ask **at most 1–2 questions**.
25
+ - Only ask if you cannot responsibly plan without the answer; prefer multiple-choice.
26
+ - If unsure but not blocked, make a reasonable assumption and proceed.
27
+
28
+ 3. **Create a plan using the template below**
29
+ - Start with **1 short paragraph** describing the intent and approach.
30
+ - Clearly call out what is **in scope** and what is **not in scope** in short.
31
+ - Then provide a **small checklist** of action items (default 6–10 items).
32
+ - Each checklist item should be a concrete action and, when helpful, mention files/commands.
33
+ - **Make items atomic and ordered**: discovery → changes → tests → rollout.
34
+ - **Verb-first**: “Add…”, “Refactor…”, “Verify…”, “Ship…”.
35
+ - Include at least one item for **tests/validation** and one for **edge cases/risk** when applicable.
36
+ - If there are unknowns, include a tiny **Open questions** section (max 3).
37
+
38
+ 4. **Do not preface the plan with meta explanations; output only the plan as per template**
39
+
40
+ ## Plan template (follow exactly)
41
+
42
+ ```markdown
43
+ # Plan
44
+
45
+ <1–3 sentences: what we’re doing, why, and the high-level approach.>
46
+
47
+ ## Scope
48
+ - In:
49
+ - Out:
50
+
51
+ ## Action items
52
+ [ ] <Step 1>
53
+ [ ] <Step 2>
54
+ [ ] <Step 3>
55
+ [ ] <Step 4>
56
+ [ ] <Step 5>
57
+ [ ] <Step 6>
58
+
59
+ ## Open questions
60
+ - <Question 1>
61
+ - <Question 2>
62
+ - <Question 3>
63
+ ```
64
+
65
+ ## Checklist item guidance
66
+ Good checklist items:
67
+ - Point to likely files/modules: src/..., app/..., services/...
68
+ - Name concrete validation: “Run npm test”, “Add unit tests for X”
69
+ - Include safe rollout when relevant: feature flag, migration plan, rollback note
70
+
71
+ Avoid:
72
+ - Vague steps (“handle backend”, “do auth”)
73
+ - Too many micro-steps
74
+ - Writing code snippets (keep the plan implementation-agnostic)