@zalom/plastic 1.0.0-beta.35 → 1.0.0-beta.37

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,102 @@
1
+ # Plan, Checklist, and Action Format
2
+
3
+ The exact templates for `plan.md`'s header and task structure, and for the
4
+ `checklist.md` and `actions/ACTION_N.md` artifacts. Read this before writing
5
+ plan.md so the shape matches on the first pass.
6
+
7
+ ## Table of Contents
8
+
9
+ - [Plan Document Header](#plan-document-header)
10
+ - [Task Structure (worked example)](#task-structure-worked-example)
11
+ - [checklist.md format](#checklistmd-format)
12
+ - [actions/ACTION_N.md format](#actionsaction_nmd-format)
13
+
14
+ ## Plan Document Header
15
+
16
+ **Every plan MUST start with this header:**
17
+
18
+ ```markdown
19
+ # [Feature Name] Implementation Plan
20
+
21
+ > **For agentic workers:** Use `plastic-executing-plan` to implement this plan task-by-task.
22
+
23
+ **Goal:** [One sentence describing what this builds]
24
+
25
+ **Architecture:** [2-3 sentences about approach]
26
+
27
+ **Tech Stack:** [Key technologies/libraries]
28
+
29
+ **Intent:** {id} — {name}
30
+
31
+ ---
32
+ ```
33
+
34
+ ## Task Structure (worked example)
35
+
36
+ ````markdown
37
+ ### Task N: [Component Name]
38
+
39
+ **Files:**
40
+ - Create: `exact/path/to/file.rb`
41
+ - Modify: `exact/path/to/existing.rb:123-145`
42
+ - Test: `test/exact/path/to/test.rb`
43
+
44
+ - [ ] **Step 1: Write the failing test**
45
+
46
+ ```ruby
47
+ def test_specific_behavior
48
+ result = function(input)
49
+ assert_equal expected, result
50
+ end
51
+ ```
52
+
53
+ - [ ] **Step 2: Run test to verify it fails**
54
+
55
+ Run: `ruby -Itest test/path/test.rb --name test_specific_behavior`
56
+ Expected: FAIL with "undefined method"
57
+
58
+ - [ ] **Step 3: Write minimal implementation**
59
+
60
+ ```ruby
61
+ def function(input)
62
+ expected
63
+ end
64
+ ```
65
+
66
+ - [ ] **Step 4: Run test to verify it passes**
67
+
68
+ Run: `ruby -Itest test/path/test.rb --name test_specific_behavior`
69
+ Expected: PASS
70
+
71
+ - [ ] **Step 5: Commit**
72
+
73
+ ```bash
74
+ git add test/path/test.rb lib/path/file.rb
75
+ git commit -m "feat: add specific feature"
76
+ ```
77
+ ````
78
+
79
+ ## checklist.md format
80
+
81
+ Execution registry with one checkbox per task. Format:
82
+
83
+ ```markdown
84
+ # Checklist — Intent {id}: {name}
85
+
86
+ - [ ] Task 1: {task title}
87
+ - [ ] Task 2: {task title}
88
+ - [ ] Task 3: {task title}
89
+ ...
90
+ ```
91
+
92
+ ## actions/ACTION_N.md format
93
+
94
+ One file per task. Each action is self-contained — a subagent can execute it without reading the plan.
95
+
96
+ ```markdown
97
+ # Action {N}: {task title}
98
+
99
+ {Full task text copied from plan.md — all steps, all code, all commands. Nothing omitted.}
100
+ ```
101
+
102
+ Create the `actions/` directory inside the intent directory: `{intent_dir}/actions/`