@zalom/plastic 1.0.0-beta.34 → 1.0.0-beta.36
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.
- package/PLASTIC-reference.md +133 -0
- package/PLASTIC.md +29 -151
- package/agents/plastic-brainstorming.md +2 -6
- package/agents/plastic-enforcer.md +11 -6
- package/agents/plastic-executor.md +2 -6
- package/agents/plastic-future-intent-researcher.md +2 -7
- package/agents/plastic-intent-curator.md +2 -10
- package/agents/plastic-intent-discovery.md +8 -10
- package/agents/plastic-planner.md +2 -6
- package/agents/plastic-spec-specialist.md +2 -6
- package/bin/plastic.js +7 -3
- package/package.json +2 -1
- package/scripts/install.rb +42 -6
- package/scripts/lib/bridge.rb +84 -5
- package/scripts/lib/installer_core.rb +40 -6
- package/scripts/lib/power_tools.rb +18 -16
- package/scripts/lib/preflight.rb +79 -0
- package/skills/auto/SKILL.md +40 -38
- package/skills/auto/references/end-tail.md +56 -0
- package/skills/auto/references/human-report-contract.md +55 -0
- package/skills/brainstorming/SKILL.md +7 -34
- package/skills/brainstorming/references/design-principles.md +49 -0
- package/skills/creating-intent/SKILL.md +5 -26
- package/skills/creating-project/SKILL.md +11 -74
- package/skills/creating-project/references/project-scaffolding.md +97 -0
- package/skills/dashboard/SKILL.md +2 -17
- package/skills/dashboard/references/classification.md +22 -0
- package/skills/doctor/SKILL.md +6 -6
- package/skills/install/SKILL.md +75 -84
- package/skills/intent-discovery/SKILL.md +8 -7
- package/skills/intent-starting/SKILL.md +11 -8
- package/skills/releasing/SKILL.md +14 -46
- package/skills/releasing/references/promotion-and-tagging.md +60 -0
- package/skills/uninstall/SKILL.md +29 -11
- package/skills/update/SKILL.md +34 -23
- package/skills/versions/SKILL.md +27 -12
- package/skills/writing-plans/SKILL.md +10 -88
- package/skills/writing-plans/references/plan-format.md +102 -0
package/skills/versions/SKILL.md
CHANGED
|
@@ -3,7 +3,7 @@ name: plastic-versions
|
|
|
3
3
|
description: Use when the user wants to see their Plastic version history or roll back to a previously-installed version after a bad release. Manages the local, append-only versions.json ledger and steps between versions the user has actually run. For moving to a brand-new release, use plastic-update instead.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Plastic Versions
|
|
6
|
+
# Plastic Versions: local version time-machine
|
|
7
7
|
|
|
8
8
|
## When to Use
|
|
9
9
|
- "show plastic versions", "version history", "what versions have I run"
|
|
@@ -11,11 +11,18 @@ description: Use when the user wants to see their Plastic version history or rol
|
|
|
11
11
|
- A new version broke something and the user wants their last known-good build
|
|
12
12
|
|
|
13
13
|
For upgrading to a **new** release, use `plastic-update`. This skill only navigates
|
|
14
|
-
versions you have **already installed
|
|
14
|
+
versions you have **already installed**, the ones recorded in the ledger.
|
|
15
|
+
|
|
16
|
+
## Channel rule
|
|
17
|
+
|
|
18
|
+
`versions` restores whichever build you pick from the ledger, it does not take a channel
|
|
19
|
+
flag for the target. The pinned `<channel>` below is only the npx invocation itself:
|
|
20
|
+
derive it from `~/.plastic/VERSION` the same way as the other lifecycle skills,
|
|
21
|
+
`-alpha` -> `@alpha`, `-beta` -> `@beta`, otherwise `@latest`.
|
|
15
22
|
|
|
16
23
|
## The ledger
|
|
17
24
|
|
|
18
|
-
`~/.plastic/versions.json` is an **append-only JSONL** ledger
|
|
25
|
+
`~/.plastic/versions.json` is an **append-only JSONL** ledger, one line per version
|
|
19
26
|
change, never modified or deleted:
|
|
20
27
|
|
|
21
28
|
```json
|
|
@@ -23,15 +30,16 @@ change, never modified or deleted:
|
|
|
23
30
|
{"version":"1.0.0-alpha.18","action":"update","at":"..."}
|
|
24
31
|
```
|
|
25
32
|
|
|
26
|
-
`action`
|
|
27
|
-
channel is derived from the version string, never stored). It is a
|
|
33
|
+
`action` is one of `install`, `reinstall`, `update`, `downgrade` (derived from version
|
|
34
|
+
direction; the channel is derived from the version string, never stored). It is a
|
|
35
|
+
troubleshooting record.
|
|
28
36
|
|
|
29
37
|
## Procedure
|
|
30
38
|
|
|
31
39
|
### Show history
|
|
32
40
|
|
|
33
41
|
```bash
|
|
34
|
-
npx @zalom/plastic versions
|
|
42
|
+
npx -y @zalom/plastic@<channel> versions
|
|
35
43
|
```
|
|
36
44
|
|
|
37
45
|
Prints the table with the currently-installed version marked. If the most recent action was
|
|
@@ -40,8 +48,8 @@ a `downgrade`, it asks whether to keep rolling back.
|
|
|
40
48
|
### Roll back
|
|
41
49
|
|
|
42
50
|
```bash
|
|
43
|
-
npx @zalom/plastic versions --downgrade # one step back
|
|
44
|
-
npx @zalom/plastic versions --downgrade --version 1.0.0-alpha.15 # to a specific run
|
|
51
|
+
npx -y @zalom/plastic@<channel> versions --downgrade # one step back
|
|
52
|
+
npx -y @zalom/plastic@<channel> versions --downgrade --version 1.0.0-alpha.15 # to a specific run
|
|
45
53
|
```
|
|
46
54
|
|
|
47
55
|
Rollback targets are restricted to versions in the ledger (only builds you have actually
|
|
@@ -51,15 +59,22 @@ re-fetched from npm and re-synced; your intent store, config, and the ledger are
|
|
|
51
59
|
### Step forward (after a rollback)
|
|
52
60
|
|
|
53
61
|
```bash
|
|
54
|
-
npx @zalom/plastic versions --upgrade # one step forward in your history
|
|
62
|
+
npx -y @zalom/plastic@<channel> versions --upgrade # one step forward in your history
|
|
55
63
|
```
|
|
56
64
|
|
|
57
65
|
### After any change
|
|
58
66
|
|
|
59
|
-
Run `plastic-doctor` to confirm health,
|
|
60
|
-
swapped conventions
|
|
67
|
+
Run `plastic-doctor` to confirm health, then emit the reporting block and suggest
|
|
68
|
+
`/clear` so the session picks up the swapped conventions:
|
|
69
|
+
|
|
70
|
+
```
|
|
71
|
+
Plastic versions (<channel>)
|
|
72
|
+
Command: npx -y @zalom/plastic@<channel> versions <flags>
|
|
73
|
+
Version: <before> -> <after>
|
|
74
|
+
Doctor: <summary or "all clear">
|
|
75
|
+
```
|
|
61
76
|
|
|
62
77
|
## Notes
|
|
63
|
-
- The ledger is **never** edited or pruned
|
|
78
|
+
- The ledger is **never** edited or pruned, it is the audit trail.
|
|
64
79
|
- Downgrades cannot un-migrate a store-format change; if a warning appears, surface it to
|
|
65
80
|
the user rather than forcing the rollback.
|
|
@@ -48,70 +48,13 @@ This structure informs the task decomposition. Each task should produce self-con
|
|
|
48
48
|
- "Run the tests and make sure they pass" - step
|
|
49
49
|
- "Commit" - step
|
|
50
50
|
|
|
51
|
-
## Plan
|
|
51
|
+
## Plan Format
|
|
52
52
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
> **For agentic workers:** Use `plastic-executing-plan` to implement this plan task-by-task.
|
|
59
|
-
|
|
60
|
-
**Goal:** [One sentence describing what this builds]
|
|
61
|
-
|
|
62
|
-
**Architecture:** [2-3 sentences about approach]
|
|
63
|
-
|
|
64
|
-
**Tech Stack:** [Key technologies/libraries]
|
|
65
|
-
|
|
66
|
-
**Intent:** {id} — {name}
|
|
67
|
-
|
|
68
|
-
---
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
## Task Structure
|
|
72
|
-
|
|
73
|
-
````markdown
|
|
74
|
-
### Task N: [Component Name]
|
|
75
|
-
|
|
76
|
-
**Files:**
|
|
77
|
-
- Create: `exact/path/to/file.rb`
|
|
78
|
-
- Modify: `exact/path/to/existing.rb:123-145`
|
|
79
|
-
- Test: `test/exact/path/to/test.rb`
|
|
80
|
-
|
|
81
|
-
- [ ] **Step 1: Write the failing test**
|
|
82
|
-
|
|
83
|
-
```ruby
|
|
84
|
-
def test_specific_behavior
|
|
85
|
-
result = function(input)
|
|
86
|
-
assert_equal expected, result
|
|
87
|
-
end
|
|
88
|
-
```
|
|
89
|
-
|
|
90
|
-
- [ ] **Step 2: Run test to verify it fails**
|
|
91
|
-
|
|
92
|
-
Run: `ruby -Itest test/path/test.rb --name test_specific_behavior`
|
|
93
|
-
Expected: FAIL with "undefined method"
|
|
94
|
-
|
|
95
|
-
- [ ] **Step 3: Write minimal implementation**
|
|
96
|
-
|
|
97
|
-
```ruby
|
|
98
|
-
def function(input)
|
|
99
|
-
expected
|
|
100
|
-
end
|
|
101
|
-
```
|
|
102
|
-
|
|
103
|
-
- [ ] **Step 4: Run test to verify it passes**
|
|
104
|
-
|
|
105
|
-
Run: `ruby -Itest test/path/test.rb --name test_specific_behavior`
|
|
106
|
-
Expected: PASS
|
|
107
|
-
|
|
108
|
-
- [ ] **Step 5: Commit**
|
|
109
|
-
|
|
110
|
-
```bash
|
|
111
|
-
git add test/path/test.rb lib/path/file.rb
|
|
112
|
-
git commit -m "feat: add specific feature"
|
|
113
|
-
```
|
|
114
|
-
````
|
|
53
|
+
For the exact plan/task/checklist/action format (the Plan Document Header
|
|
54
|
+
template, the full Task Structure worked example, and the checklist.md /
|
|
55
|
+
actions/ACTION_N.md templates), read `references/plan-format.md` before
|
|
56
|
+
writing plan.md. Every plan starts with the header template and decomposes
|
|
57
|
+
into tasks matching the Task Structure shape.
|
|
115
58
|
|
|
116
59
|
## No Placeholders
|
|
117
60
|
|
|
@@ -144,31 +87,10 @@ If you find issues, fix them inline. No need to re-review — just fix and move
|
|
|
144
87
|
## Plastic Artifacts
|
|
145
88
|
|
|
146
89
|
After writing `plan.md`, create two additional artifacts in the intent directory:
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
```markdown
|
|
153
|
-
# Checklist — Intent {id}: {name}
|
|
154
|
-
|
|
155
|
-
- [ ] Task 1: {task title}
|
|
156
|
-
- [ ] Task 2: {task title}
|
|
157
|
-
- [ ] Task 3: {task title}
|
|
158
|
-
...
|
|
159
|
-
```
|
|
160
|
-
|
|
161
|
-
### actions/ACTION_N.md
|
|
162
|
-
|
|
163
|
-
One file per task. Each action is self-contained — a subagent can execute it without reading the plan.
|
|
164
|
-
|
|
165
|
-
```markdown
|
|
166
|
-
# Action {N}: {task title}
|
|
167
|
-
|
|
168
|
-
{Full task text copied from plan.md — all steps, all code, all commands. Nothing omitted.}
|
|
169
|
-
```
|
|
170
|
-
|
|
171
|
-
Create the `actions/` directory inside the intent directory: `{intent_dir}/actions/`
|
|
90
|
+
`checklist.md` (execution registry with one checkbox per task) and
|
|
91
|
+
`actions/ACTION_N.md` (one self-contained file per task, in an `actions/`
|
|
92
|
+
directory inside the intent directory). For the exact format of both, read
|
|
93
|
+
`references/plan-format.md`.
|
|
172
94
|
|
|
173
95
|
## Git Commit
|
|
174
96
|
|
|
@@ -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/`
|