@ancleto/spec 0.6.5 → 0.6.6

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 (34) hide show
  1. package/agents/documenter.md +2 -0
  2. package/agents/spec-writer.md +2 -1
  3. package/commands/cleto-apply.md +2 -154
  4. package/commands/cleto-archive.md +2 -164
  5. package/commands/cleto-bulk-archive.md +2 -248
  6. package/commands/cleto-continue.md +2 -126
  7. package/commands/cleto-explore.md +2 -174
  8. package/commands/cleto-ff.md +2 -120
  9. package/commands/cleto-new.md +2 -108
  10. package/commands/cleto-onboard.md +2 -550
  11. package/commands/cleto-propose.md +2 -130
  12. package/commands/cleto-recall.md +4 -52
  13. package/commands/cleto-sync.md +2 -137
  14. package/commands/cleto-verify.md +2 -169
  15. package/package.json +1 -1
  16. package/skills/ancleto-apply/SKILL.md +15 -38
  17. package/skills/ancleto-archive/SKILL.md +22 -24
  18. package/skills/ancleto-bulk-archive/SKILL.md +45 -55
  19. package/skills/ancleto-commit/SKILL.md +10 -29
  20. package/skills/ancleto-continue/SKILL.md +18 -24
  21. package/skills/ancleto-explore/SKILL.md +40 -67
  22. package/skills/ancleto-ff/SKILL.md +20 -28
  23. package/skills/ancleto-new/SKILL.md +20 -39
  24. package/skills/ancleto-onboard/SKILL.md +35 -38
  25. package/skills/ancleto-pr/SKILL.md +12 -26
  26. package/skills/ancleto-propose/SKILL.md +22 -69
  27. package/skills/ancleto-recall/SKILL.md +21 -25
  28. package/skills/ancleto-sync-specs/SKILL.md +27 -62
  29. package/skills/ancleto-upgrade/SKILL.md +132 -223
  30. package/skills/ancleto-upgrade/references/templates.md +138 -171
  31. package/skills/ancleto-verify/SKILL.md +36 -66
  32. package/skills/ancleto-workflow/SKILL.md +17 -17
  33. package/src/cli/index.js +36 -31
  34. package/templates/AGENTS.md +3 -0
@@ -2,554 +2,6 @@
2
2
  description: Guided onboarding - walk through a complete aspec workflow cycle with narration
3
3
  ---
4
4
 
5
- Guide the user through their first complete aspec workflow cycle. This is a teaching experience—you'll do real work in their codebase while explaining each step.
5
+ Invoke the `ancleto-onboard` skill with the Skill tool and follow it exactly; do not improvise steps.
6
6
 
7
- ---
8
-
9
- ## Preflight
10
-
11
- No external binaries are required: the change cycle runs on the aspec skills bundled
12
- with your agent (`/cleto-*`). Proceed directly.
13
-
14
- ---
15
-
16
- ## Phase 1: Welcome
17
-
18
- Display:
19
-
20
- ```
21
- ## Welcome to aspec!
22
-
23
- I'll walk you through a complete change cycle—from idea to implementation—using a real task in your codebase. Along the way, you'll learn the workflow by doing it.
24
-
25
- **What we'll do:**
26
- 1. Pick a small, real task in your codebase
27
- 2. Explore the problem briefly
28
- 3. Create a change (the container for our work)
29
- 4. Build the artifacts: proposal → specs → design → tasks
30
- 5. Implement the tasks
31
- 6. Archive the completed change
32
-
33
- **Time:** ~15-20 minutes
34
-
35
- Let's start by finding something to work on.
36
- ```
37
-
38
- ---
39
-
40
- ## Phase 2: Task Selection
41
-
42
- ### Codebase Analysis
43
-
44
- Scan the codebase for small improvement opportunities. Look for:
45
-
46
- 1. **TODO/FIXME comments** - Search for `TODO`, `FIXME`, `HACK`, `XXX` in code files
47
- 2. **Missing error handling** - `catch` blocks that swallow errors, risky operations without try-catch
48
- 3. **Functions without tests** - Cross-reference `src/` with test directories
49
- 4. **Type issues** - `any` types in TypeScript files (`: any`, `as any`)
50
- 5. **Debug artifacts** - `console.log`, `console.debug`, `debugger` statements in non-debug code
51
- 6. **Missing validation** - User input handlers without validation
52
-
53
- Also check recent git activity:
54
-
55
- ```bash
56
- # Unix/macOS
57
- git log --oneline -10 2>/dev/null || echo "No git history"
58
- # Windows (PowerShell)
59
- # git log --oneline -10 2>$null; if ($LASTEXITCODE -ne 0) { echo "No git history" }
60
- ```
61
-
62
- ### Present Suggestions
63
-
64
- From your analysis, present 3-4 specific suggestions:
65
-
66
- ```
67
- ## Task Suggestions
68
-
69
- Based on scanning your codebase, here are some good starter tasks:
70
-
71
- **1. [Most promising task]**
72
- Location: `src/path/to/file.ts:42`
73
- Scope: ~1-2 files, ~20-30 lines
74
- Why it's good: [brief reason]
75
-
76
- **2. [Second task]**
77
- Location: `src/another/file.ts`
78
- Scope: ~1 file, ~15 lines
79
- Why it's good: [brief reason]
80
-
81
- **3. [Third task]**
82
- Location: [location]
83
- Scope: [estimate]
84
- Why it's good: [brief reason]
85
-
86
- **4. Something else?**
87
- Tell me what you'd like to work on.
88
-
89
- Which task interests you? (Pick a number or describe your own)
90
- ```
91
-
92
- **If nothing found:** Fall back to asking what the user wants to build:
93
-
94
- > I didn't find obvious quick wins in your codebase. What's something small you've been meaning to add or fix?
95
-
96
- ### Scope Guardrail
97
-
98
- If the user picks or describes something too large (major feature, multi-day work):
99
-
100
- ```
101
- That's a valuable task, but it's probably larger than ideal for your first aspec run-through.
102
-
103
- For learning the workflow, smaller is better—it lets you see the full cycle without getting stuck in implementation details.
104
-
105
- **Options:**
106
- 1. **Slice it smaller** - What's the smallest useful piece of [their task]? Maybe just [specific slice]?
107
- 2. **Pick something else** - One of the other suggestions, or a different small task?
108
- 3. **Do it anyway** - If you really want to tackle this, we can. Just know it'll take longer.
109
-
110
- What would you prefer?
111
- ```
112
-
113
- Let the user override if they insist—this is a soft guardrail.
114
-
115
- ---
116
-
117
- ## Phase 3: Explore Demo
118
-
119
- Once a task is selected, briefly demonstrate explore mode:
120
-
121
- ```
122
- Before we create a change, let me quickly show you **explore mode**—it's how you think through problems before committing to a direction.
123
- ```
124
-
125
- Spend 1-2 minutes investigating the relevant code:
126
-
127
- - Read the file(s) involved
128
- - Draw a quick ASCII diagram if it helps
129
- - Note any considerations
130
-
131
- ```
132
- ## Quick Exploration
133
-
134
- [Your brief analysis—what you found, any considerations]
135
-
136
- ┌─────────────────────────────────────────┐
137
- │ [Optional: ASCII diagram if helpful] │
138
- └─────────────────────────────────────────┘
139
-
140
- Explore mode (`/cleto-explore`) is for this kind of thinking—investigating before implementing. You can use it anytime you need to think through a problem.
141
-
142
- Now let's create a change to hold our work.
143
- ```
144
-
145
- **PAUSE** - Wait for user acknowledgment before proceeding.
146
-
147
- ---
148
-
149
- ## Phase 4: Create the Change
150
-
151
- **EXPLAIN:**
152
-
153
- ```
154
- ## Creating a Change
155
-
156
- A "change" in aspec is a container for all the thinking and planning around a piece of work. It lives in `aspec/changes/<name>/` and holds your artifacts—proposal, specs, design, tasks.
157
-
158
- Let me create one for our task.
159
- ```
160
-
161
- **DO:** Create the change directory with a derived kebab-case name:
162
-
163
- ```bash
164
- mkdir -p aspec/changes/<derived-name>
165
- ```
166
-
167
- **SHOW:**
168
-
169
- ```
170
- Created: `aspec/changes/<name>/`
171
-
172
- The folder structure:
173
- ```
174
-
175
- aspec/changes/<name>/
176
- ├── proposal.md ← Why we're doing this (empty, we'll fill it)
177
- ├── design.md ← How we'll build it (empty)
178
- ├── specs/ ← Detailed requirements (empty)
179
- └── tasks.md ← Implementation checklist (empty)
180
-
181
- ```
182
-
183
- Now let's fill in the first artifact—the proposal.
184
- ```
185
-
186
- ---
187
-
188
- ## Phase 5: Proposal
189
-
190
- **EXPLAIN:**
191
-
192
- ```
193
- ## The Proposal
194
-
195
- The proposal captures **why** we're making this change and **what** it involves at a high level. It's the "elevator pitch" for the work.
196
-
197
- I'll draft one based on our task.
198
- ```
199
-
200
- **DO:** Draft the proposal content (don't save yet):
201
-
202
- ```
203
- Here's a draft proposal:
204
-
205
- ---
206
-
207
- ## Why
208
-
209
- [1-2 sentences explaining the problem/opportunity]
210
-
211
- ## What Changes
212
-
213
- [Bullet points of what will be different]
214
-
215
- ## Capabilities
216
-
217
- ### New Capabilities
218
- - `<capability-name>`: [brief description]
219
-
220
- ### Modified Capabilities
221
- <!-- If modifying existing behavior -->
222
-
223
- ## Impact
224
-
225
- - `src/path/to/file.ts`: [what changes]
226
- - [other files if applicable]
227
-
228
- ---
229
-
230
- Does this capture the intent? I can adjust before we save it.
231
- ```
232
-
233
- **PAUSE** - Wait for user approval/feedback.
234
-
235
- After approval, save the proposal:
236
-
237
- ```bash
238
- aspec instructions proposal --change "<name>" --json
239
- ```
240
-
241
- Then write the content to `aspec/changes/<name>/proposal.md`.
242
-
243
- ```
244
- Proposal saved. This is your "why" document—you can always come back and refine it as understanding evolves.
245
-
246
- Next up: specs.
247
- ```
248
-
249
- ---
250
-
251
- ## Phase 6: Specs
252
-
253
- **EXPLAIN:**
254
-
255
- ```
256
- ## Specs
257
-
258
- Specs define **what** we're building in precise, testable terms. They use a requirement/scenario format that makes expected behavior crystal clear.
259
-
260
- For a small task like this, we might only need one spec file.
261
- ```
262
-
263
- **DO:** Create the spec file:
264
-
265
- ```bash
266
- # Unix/macOS
267
- mkdir -p aspec/changes/<name>/specs/<capability-name>
268
- # Windows (PowerShell)
269
- # New-Item -ItemType Directory -Force -Path "aspec/changes/<name>/specs/<capability-name>"
270
- ```
271
-
272
- Draft the spec content:
273
-
274
- ```
275
- Here's the spec:
276
-
277
- ---
278
-
279
- ## ADDED Requirements
280
-
281
- ### Requirement: <Name>
282
-
283
- <Description of what the system should do>
284
-
285
- #### Scenario: <Scenario name>
286
-
287
- - **WHEN** <trigger condition>
288
- - **THEN** <expected outcome>
289
- - **AND** <additional outcome if needed>
290
-
291
- ---
292
-
293
- This format—WHEN/THEN/AND—makes requirements testable. You can literally read them as test cases.
294
- ```
295
-
296
- Save to `aspec/changes/<name>/specs/<capability>/spec.md`.
297
-
298
- ---
299
-
300
- ## Phase 7: Design
301
-
302
- **EXPLAIN:**
303
-
304
- ```
305
- ## Design
306
-
307
- The design captures **how** we'll build it—technical decisions, tradeoffs, approach.
308
-
309
- For small changes, this might be brief. That's fine—not every change needs deep design discussion.
310
- ```
311
-
312
- **DO:** Draft design.md:
313
-
314
- ```
315
- Here's the design:
316
-
317
- ---
318
-
319
- ## Context
320
-
321
- [Brief context about the current state]
322
-
323
- ## Goals / Non-Goals
324
-
325
- **Goals:**
326
- - [What we're trying to achieve]
327
-
328
- **Non-Goals:**
329
- - [What's explicitly out of scope]
330
-
331
- ## Decisions
332
-
333
- ### Decision 1: [Key decision]
334
-
335
- [Explanation of approach and rationale]
336
-
337
- ---
338
-
339
- For a small task, this captures the key decisions without over-engineering.
340
- ```
341
-
342
- Save to `aspec/changes/<name>/design.md`.
343
-
344
- ---
345
-
346
- ## Phase 8: Tasks
347
-
348
- **EXPLAIN:**
349
-
350
- ```
351
- ## Tasks
352
-
353
- Finally, we break the work into implementation tasks—checkboxes that drive the apply phase.
354
-
355
- These should be small, clear, and in logical order.
356
- ```
357
-
358
- **DO:** Generate tasks based on specs and design:
359
-
360
- ```
361
- Here are the implementation tasks:
362
-
363
- ---
364
-
365
- ## 1. [Category or file]
366
-
367
- - [ ] 1.1 [Specific task]
368
- - [ ] 1.2 [Specific task]
369
-
370
- ## 2. Verify
371
-
372
- - [ ] 2.1 [Verification step]
373
-
374
- ---
375
-
376
- Each checkbox becomes a unit of work in the apply phase. Ready to implement?
377
- ```
378
-
379
- **PAUSE** - Wait for user to confirm they're ready to implement.
380
-
381
- Save to `aspec/changes/<name>/tasks.md`.
382
-
383
- ---
384
-
385
- ## Phase 9: Apply (Implementation)
386
-
387
- **EXPLAIN:**
388
-
389
- ```
390
- ## Implementation
391
-
392
- Now we implement each task, checking them off as we go. I'll announce each one and occasionally note how the specs/design informed the approach.
393
- ```
394
-
395
- **DO:** For each task:
396
-
397
- 1. Announce: "Working on task N: [description]"
398
- 2. Implement the change in the codebase
399
- 3. Reference specs/design naturally: "The spec says X, so I'm doing Y"
400
- 4. Mark complete in tasks.md: `- [ ]` → `- [x]`
401
- 5. Brief status: "✓ Task N complete"
402
-
403
- Keep narration light—don't over-explain every line of code.
404
-
405
- After all tasks:
406
-
407
- ```
408
- ## Implementation Complete
409
-
410
- All tasks done:
411
- - [x] Task 1
412
- - [x] Task 2
413
- - [x] ...
414
-
415
- The change is implemented! One more step—let's archive it.
416
- ```
417
-
418
- ---
419
-
420
- ## Phase 10: Archive
421
-
422
- **EXPLAIN:**
423
-
424
- ```
425
- ## Archiving
426
-
427
- When a change is complete, we archive it. This moves it from `aspec/changes/` to `aspec/changes/archive/YYYY-MM-DD-<name>/`.
428
-
429
- Archived changes become your project's decision history—you can always find them later to understand why something was built a certain way.
430
- ```
431
-
432
- **DO:**
433
-
434
- ```bash
435
- aspec archive "<name>"
436
- ```
437
-
438
- **SHOW:**
439
-
440
- ```
441
- Archived to: `aspec/changes/archive/YYYY-MM-DD-<name>/`
442
-
443
- The change is now part of your project's history. The code is in your codebase, the decision record is preserved.
444
- ```
445
-
446
- ---
447
-
448
- ## Phase 11: Recap & Next Steps
449
-
450
- ```
451
- ## Congratulations!
452
-
453
- You just completed a full aspec cycle:
454
-
455
- 1. **Explore** - Thought through the problem
456
- 2. **New** - Created a change container
457
- 3. **Proposal** - Captured WHY
458
- 4. **Specs** - Defined WHAT in detail
459
- 5. **Design** - Decided HOW
460
- 6. **Tasks** - Broke it into steps
461
- 7. **Apply** - Implemented the work
462
- 8. **Archive** - Preserved the record
463
-
464
- This same rhythm works for any size change—a small fix or a major feature.
465
-
466
- ---
467
-
468
- ## Command Reference
469
-
470
- **Core workflow:**
471
-
472
- | Command | What it does |
473
- |---------|--------------|
474
- | `/cleto-propose` | Create a change and generate all artifacts |
475
- | `/cleto-explore` | Think through problems before/during work |
476
- | `/cleto-apply` | Implement tasks from a change |
477
- | `/cleto-archive` | Archive a completed change |
478
-
479
- **Additional commands:**
480
-
481
- | Command | What it does |
482
- |---------|--------------|
483
- | `/cleto-new` | Start a new change, step through artifacts one at a time |
484
- | `/cleto-continue` | Continue working on an existing change |
485
- | `/cleto-ff` | Fast-forward: create all artifacts at once |
486
- | `/cleto-verify` | Verify implementation matches artifacts |
487
-
488
- ---
489
-
490
- ## What's Next?
491
-
492
- Try `/cleto-propose` on something you actually want to build. You've got the rhythm now!
493
- ```
494
-
495
- ---
496
-
497
- ## Graceful Exit Handling
498
-
499
- ### User wants to stop mid-way
500
-
501
- If the user says they need to stop, want to pause, or seem disengaged:
502
-
503
- ```
504
- No problem! Your change is saved at `aspec/changes/<name>/`.
505
-
506
- To pick up where we left off later:
507
- - `/cleto-continue <name>` - Resume artifact creation
508
- - `/cleto-apply <name>` - Jump to implementation (if tasks exist)
509
-
510
- The work won't be lost. Come back whenever you're ready.
511
- ```
512
-
513
- Exit gracefully without pressure.
514
-
515
- ### User just wants command reference
516
-
517
- If the user says they just want to see the commands or skip the tutorial:
518
-
519
- ```
520
- ## aspec Quick Reference
521
-
522
- **Core workflow:**
523
-
524
- | Command | What it does |
525
- |---------|--------------|
526
- | `/cleto-propose <name>` | Create a change and generate all artifacts |
527
- | `/cleto-explore` | Think through problems (no code changes) |
528
- | `/cleto-apply <name>` | Implement tasks |
529
- | `/cleto-archive <name>` | Archive when done |
530
-
531
- **Additional commands:**
532
-
533
- | Command | What it does |
534
- |---------|--------------|
535
- | `/cleto-new <name>` | Start a new change, step by step |
536
- | `/cleto-continue <name>` | Continue an existing change |
537
- | `/cleto-ff <name>` | Fast-forward: all artifacts at once |
538
- | `/cleto-verify <name>` | Verify implementation |
539
-
540
- Try `/cleto-propose` to start your first change.
541
- ```
542
-
543
- Exit gracefully.
544
-
545
- ---
546
-
547
- ## Guardrails
548
-
549
- - **Follow the EXPLAIN → DO → SHOW → PAUSE pattern** at key transitions (after explore, after proposal draft, after tasks, after archive)
550
- - **Keep narration light** during implementation—teach without lecturing
551
- - **Don't skip phases** even if the change is small—the goal is teaching the workflow
552
- - **Pause for acknowledgment** at marked points, but don't over-pause
553
- - **Handle exits gracefully**—never pressure the user to continue
554
- - **Use real codebase tasks**—don't simulate or use fake examples
555
- - **Adjust scope gently**—guide toward smaller tasks but respect user choice
7
+ Work Item grounding (when the request references a Work Item) is owned by `@context-resolver`.
@@ -2,136 +2,8 @@
2
2
  description: Propose a new change - create it and generate all artifacts in one step
3
3
  ---
4
4
 
5
- Propose a new change - create the change and generate all artifacts in one step.
6
-
7
- I'll create a change with artifacts:
8
-
9
- - proposal.md (what & why)
10
- - design.md (how)
11
- - tasks.md (implementation steps)
12
-
13
- When ready to implement, run /cleto-apply
14
-
15
- ---
5
+ Invoke the `ancleto-propose` skill with the Skill tool and follow it exactly; do not improvise steps.
16
6
 
17
7
  **Input**: The argument after `/cleto-propose` is the change name (kebab-case), OR a description of what the user wants to build.
18
8
 
19
- **Steps**
20
-
21
- 1. **Resolve Work Item context and derive change name**
22
-
23
- Resolve Work Item context in this order — stop at the first source that yields data:
24
-
25
- a. **In-session context** — If WI data was already fetched in this session, use it. Proceed to name derivation below.
26
- b. **`context.md`** — If a change name was provided as argument and `aspec/changes/<name>/context.md` exists, read it and use its content. Proceed to name derivation.
27
- c. **Ask the user** — Use the **AskUserQuestion tool** to ask for the Work Item reference. Two accepted formats:
28
-
29
- - **ID + Project** — e.g., ID `12345` and project `MyProject`
30
- - **Full URL** — e.g., `https://dev.azure.com/org/MyProject/_workitems/edit/12345`
31
-
32
- > "Do you have an Azure DevOps Work Item for this change? Provide the Work Item ID and Azure DevOps project name (e.g., ID: `12345`, Project: `MyProject`), or paste the full Work Item URL. Skip to describe the change manually."
33
-
34
- **If WI provided:**
35
-
36
- - If URL provided: extract numeric ID (pattern: `_workitems/edit/{id}`) AND project name (pattern: `/{org}/{project}/_workitems/`)
37
- - Use BOTH `id` AND `project` when calling the AzDO MCP (`wit_get_work_item`) — never call with ID alone
38
- - Extract from the response: `System.Id`, `System.Title`, `System.Description`, `Microsoft.VSTS.Common.AcceptanceCriteria`, `System.WorkItemType`
39
- - Suggest a kebab-case name derived from `System.Title` (e.g., "Add payment gateway" → `add-payment-gateway`)
40
- - Let the user accept or modify the suggested name before proceeding
41
-
42
- **If skipped:**
43
-
44
- - Display: "No work item linked — consider linking one for traceability."
45
- - If no change name was provided as argument, ask what they want to build:
46
- > "What change do you want to work on? Describe what you want to build or fix."
47
- - Derive a kebab-case name from the description.
48
-
49
- WI context is held **in-memory** for this flow — no `context.md` is written.
50
-
51
- **IMPORTANT**: Do NOT proceed without a change name.
52
-
53
- 2. **Create the change directory**
54
-
55
- Create the directory `aspec/changes/<name>/` in the repository.
56
-
57
- This scaffolds the change at `aspec/changes/<name>/` with `.aspec.yaml`.
58
-
59
- 3. **Get the artifact build order**
60
-
61
- ```bash
62
- aspec status --change "<name>" --json
63
- ```
64
-
65
- Parse the JSON to get:
66
-
67
- - `applyRequires`: array of artifact IDs needed before implementation (e.g., `["tasks"]`)
68
- - `artifacts`: list of all artifacts with their status and dependencies
69
-
70
- 4. **Create artifacts in sequence until apply-ready**
71
-
72
- Use the **TodoWrite tool** to track progress through the artifacts.
73
-
74
- Loop through artifacts in dependency order (artifacts with no pending dependencies first):
75
-
76
- a. **For each artifact that is `ready` (dependencies satisfied)**:
77
-
78
- - Get instructions:
79
- ```bash
80
- aspec instructions <artifact-id> --change "<name>" --json
81
- ```
82
- - The instructions JSON includes:
83
- - `context`: Project background (constraints for you - do NOT include in output)
84
- - `rules`: Artifact-specific rules (constraints for you - do NOT include in output)
85
- - `template`: The structure to use for your output file
86
- - `instruction`: Schema-specific guidance for this artifact type
87
- - `outputPath`: Where to write the artifact
88
- - `dependencies`: Completed artifacts to read for context
89
- - Read any completed dependency files for context
90
- - If creating the first artifact (proposal):
91
- - If WI context is available (in-memory): use WI title/description as the problem statement, acceptance criteria as the requirements basis, and include a `## Related Work Item` section: `**#{id}** — {System.Title} ({WorkItemType}) · Project: {System.TeamProject}`
92
- - Create the artifact file using `template` as the structure
93
- - Apply `context` and `rules` as constraints - but do NOT copy them into the file
94
- - Show brief progress: "✓ Created <artifact-id>"
95
-
96
- b. **Continue until all `applyRequires` artifacts are complete**
97
-
98
- - After creating each artifact, re-run `aspec status --change "<name>" --json`
99
- - Check if every artifact ID in `applyRequires` has `status: "done"` in the artifacts array
100
- - Stop when all `applyRequires` artifacts are done
101
-
102
- c. **If an artifact requires user input** (unclear context):
103
-
104
- - Use **AskUserQuestion tool** to clarify
105
- - Then continue with creation
106
-
107
- 5. **Show final status**
108
- ```bash
109
- aspec status --change "<name>"
110
- ```
111
-
112
- **Output**
113
-
114
- After completing all artifacts, summarize:
115
-
116
- - Change name and location
117
- - List of artifacts created with brief descriptions
118
- - What's ready: "All artifacts created! Ready for implementation."
119
- - Prompt: "Run `/cleto-apply` to start implementing."
120
-
121
- **Artifact Creation Guidelines**
122
-
123
- - Follow the `instruction` field from `aspec instructions` for each artifact type
124
- - The schema defines what each artifact should contain - follow it
125
- - Read dependency artifacts for context before creating new ones
126
- - Use `template` as the structure for your output file - fill in its sections
127
- - **IMPORTANT**: `context` and `rules` are constraints for YOU, not content for the file
128
- - Do NOT copy `<context>`, `<rules>`, `<project_context>` blocks into the artifact
129
- - These guide what you write, but should never appear in the output
130
-
131
- **Guardrails**
132
-
133
- - Create ALL artifacts needed for implementation (as defined by schema's `apply.requires`)
134
- - Always read dependency artifacts before creating a new one
135
- - If context is critically unclear, ask the user - but prefer making reasonable decisions to keep momentum
136
- - If a change with that name already exists, ask if user wants to continue it or create a new one
137
- - Verify each artifact file exists after writing before proceeding to next
9
+ Work Item grounding (when the request references a Work Item) is owned by `@context-resolver`.