@zalom/plastic 1.0.0-beta.8 → 1.0.0
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 +407 -84
- package/README.md +99 -82
- package/agents/plastic-brainstorming.md +12 -9
- package/agents/plastic-enforcer.md +52 -12
- package/agents/plastic-executor.md +10 -10
- package/agents/plastic-future-intent-researcher.md +4 -8
- package/agents/plastic-intent-curator.md +12 -14
- package/agents/plastic-intent-discovery.md +35 -0
- package/agents/plastic-planner.md +15 -10
- package/agents/plastic-spec-specialist.md +15 -10
- package/bin/plastic.js +7 -3
- package/hooks/code-gate +10 -1
- package/hooks/hooks.json +28 -3
- package/hooks/lock-gate +21 -0
- package/hooks/retrieval-gate +10 -0
- package/hooks/savepoint-pre +10 -0
- package/hooks/statusline +48 -6
- package/package.json +2 -1
- package/scripts/agent-report +21 -0
- package/scripts/dashboard.rb +98 -23
- package/scripts/doctor.rb +404 -5
- package/scripts/hook-auto-arm +1 -1
- package/scripts/hook-bash-gate +22 -4
- package/scripts/hook-code-gate +11 -6
- package/scripts/hook-continue +17 -0
- package/scripts/hook-create-gate +45 -9
- package/scripts/hook-gate-check +24 -23
- package/scripts/hook-lock-gate +83 -0
- package/scripts/hook-retrieval-gate +148 -0
- package/scripts/hook-savepoint-pre +32 -0
- package/scripts/hook-session-start +1 -1
- package/scripts/insight-append +51 -0
- package/scripts/install.rb +44 -7
- package/scripts/lib/agent_models.rb +43 -0
- package/scripts/lib/bridge.rb +924 -84
- package/scripts/lib/dashboard_banner.rb +42 -0
- package/scripts/lib/frontmatter_writer.rb +130 -0
- package/scripts/lib/graph_rebuild.rb +328 -0
- package/scripts/lib/hook_registry.rb +95 -0
- package/scripts/lib/insights.rb +86 -0
- package/scripts/lib/installer_core.rb +104 -60
- package/scripts/lib/link_suggestions.rb +319 -0
- package/scripts/lib/links_projection.rb +160 -0
- package/scripts/lib/links_section.rb +207 -0
- package/scripts/lib/lock.rb +375 -0
- package/scripts/lib/power_tools.rb +22 -21
- package/scripts/lib/preflight.rb +79 -0
- package/scripts/lib/qmd_sync.rb +15 -0
- package/scripts/lib/retrieval_gate.rb +211 -0
- package/scripts/lib/worktree.rb +384 -0
- package/scripts/link-suggest +213 -0
- package/scripts/new-intent +138 -29
- package/scripts/plastic-lock +164 -0
- package/scripts/project-links +287 -0
- package/scripts/read-config +4 -0
- package/scripts/rebuild-graph +244 -0
- package/scripts/spawn-preamble +11 -3
- package/scripts/update.rb +16 -7
- package/skills/auto/SKILL.md +126 -19
- package/skills/auto/references/agent-architecture.md +7 -4
- package/skills/auto/references/agent-report-contract.md +36 -1
- package/skills/auto/references/end-tail.md +56 -0
- package/skills/auto/references/human-report-contract.md +55 -0
- package/skills/auto/references/tiers.md +77 -0
- package/skills/brainstorming/SKILL.md +7 -34
- package/skills/brainstorming/references/design-principles.md +49 -0
- package/skills/continuing/SKILL.md +26 -7
- package/skills/creating-intent/SKILL.md +13 -28
- package/skills/creating-intent/references/lifecycle.md +9 -4
- package/skills/creating-project/SKILL.md +11 -74
- package/skills/creating-project/references/project-scaffolding.md +97 -0
- package/skills/creating-skills/SKILL.md +65 -0
- package/skills/creating-skills/evals/evals.json +108 -0
- package/skills/creating-skills/references/agents.md +168 -0
- package/skills/creating-skills/references/evals.md +41 -0
- package/skills/creating-skills/references/hooks.md +248 -0
- package/skills/creating-skills/references/progressive-disclosure.md +176 -0
- package/skills/creating-skills/references/scripts.md +166 -0
- package/skills/creating-skills/references/skills.md +165 -0
- package/skills/creating-skills/scripts/scaffold.rb +313 -0
- package/skills/dashboard/SKILL.md +13 -11
- package/skills/dashboard/references/classification.md +22 -0
- package/skills/doctor/SKILL.md +10 -7
- package/skills/executing-plan/SKILL.md +4 -4
- package/skills/humanizer/SKILL.md +39 -0
- package/skills/humanizer/evals/evals.json +70 -0
- package/skills/humanizer/references/always-on-snippet.md +9 -0
- package/skills/humanizer/references/examples.md +48 -0
- package/skills/install/SKILL.md +75 -84
- package/skills/intent-curator/SKILL.md +5 -1
- package/skills/intent-discovery/SKILL.md +47 -0
- package/skills/intent-starting/SKILL.md +130 -0
- package/skills/intent-starting/evals/evals.json +117 -0
- package/skills/intent-starting/references/boarding-matrix.md +35 -0
- package/skills/linking-intents/SKILL.md +48 -12
- package/skills/linking-intents/references/zettelkasten.md +7 -0
- package/skills/lock/SKILL.md +41 -0
- package/skills/managing-index/SKILL.md +6 -0
- package/skills/managing-index/references/zettelkasten-linking.md +6 -1
- package/skills/releasing/SKILL.md +44 -29
- package/skills/releasing/references/promotion-and-tagging.md +60 -0
- package/skills/roadmap/SKILL.md +51 -0
- package/skills/roadmap/references/file-format.md +91 -0
- package/skills/roadmap/references/operations.md +78 -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/templates/config.yml +8 -0
- package/templates/outcome.md +3 -0
- package/templates/revisions.md +58 -0
- package/templates/roadmap.md +30 -0
- package/skills/writing-instructions/SKILL.md +0 -159
- package/skills/writing-instructions/references/agentskills-spec.md +0 -135
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: plastic-roadmap
|
|
3
|
+
description: Use when the user wants to plan a delivery batch, order waves of intents, ship a batch of tickets in one go, track a named collection of intents toward a goal, or asks for a "roadmap". Creates and maintains a roadmap file, a delivery-side collection of intents (the counterpart to a release), separate from INDEX.md status tracking.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Roadmap
|
|
7
|
+
|
|
8
|
+
A roadmap is a named, ordered, delivery-side collection of intents: the delivery-side counterpart
|
|
9
|
+
to a release (completion-side, `CHANGELOG.md`). It lives at `roadmaps/{slug}.md`, a sibling of
|
|
10
|
+
`INDEX.md` wherever `INDEX.md` lives: the global tier's `~/.plastic/roadmaps/` (beside
|
|
11
|
+
`~/.plastic/INDEX.md`), or a project's root, `~/.plastic/projects/{slug}/roadmaps/` (beside that
|
|
12
|
+
project's `INDEX.md` and `project.yml`). It never sits inside `store/`, which holds intent
|
|
13
|
+
directories, not project artifacts.
|
|
14
|
+
|
|
15
|
+
A roadmap file has four parts: a title/meta header, `## Goal` (prose), `## Waves` (ordered; entries
|
|
16
|
+
inside a wave are parallel-safe, waves run sequentially), and an append-only dated `## Log`. Each
|
|
17
|
+
wave entry mirrors that intent's status in `INDEX.md` (`queued`/`delivering`/`delivered`/
|
|
18
|
+
`abandoned`/`blocked`).
|
|
19
|
+
|
|
20
|
+
**`INDEX.md` is the single writer of intent status; on any conflict INDEX wins and the roadmap
|
|
21
|
+
entry is corrected to match.**
|
|
22
|
+
|
|
23
|
+
The skill operates on the file directly via Read/Edit; no helper script.
|
|
24
|
+
|
|
25
|
+
## Verbs
|
|
26
|
+
|
|
27
|
+
| Verb | When | Mechanics |
|
|
28
|
+
|------|------|-----------|
|
|
29
|
+
| Create | user wants to start a new roadmap / plan a delivery batch | `references/operations.md#create` |
|
|
30
|
+
| Add / reorder entries | user wants to add intents to a wave or resequence waves | `references/operations.md#add--reorder-entries` |
|
|
31
|
+
| Sync status mirror | an entry's status may be stale against INDEX | `references/operations.md#sync-status-mirror` |
|
|
32
|
+
| Append log line | a roadmap event just happened (created, wave done, closed) | `references/operations.md#append-a-log-line` |
|
|
33
|
+
| Read / consume | a human or a coordinator needs the roadmap's current state | `references/operations.md#read--consume` |
|
|
34
|
+
| Close / archive | the roadmap's `## Goal` is reached | `references/operations.md#close--archive` |
|
|
35
|
+
|
|
36
|
+
See `references/file-format.md` for the exact entry-line shape, status vocabulary, checkbox/log
|
|
37
|
+
format, and a worked example. See `references/operations.md` for step-by-step mechanics of each
|
|
38
|
+
verb above.
|
|
39
|
+
|
|
40
|
+
## Notes
|
|
41
|
+
|
|
42
|
+
- File location and the four-section shape are identical across tiers; do not invent a different
|
|
43
|
+
layout per project. The general rule: `roadmaps/` is a sibling of `INDEX.md`, wherever `INDEX.md`
|
|
44
|
+
lives.
|
|
45
|
+
- `## Goal` is a checkable prose condition read by a human or agent, not an executable checker.
|
|
46
|
+
- Wave entries render as checkboxes (`- [x] ... — delivered` / `- [ ] ... — <status>`); a human
|
|
47
|
+
reading cold should see shipped/running/next within a minute. `## Log` lines are one-sentence,
|
|
48
|
+
EM-to-CTO-voice, dated, and link each entry-intent's `outcome.md` (lossless-by-reference).
|
|
49
|
+
- Additive: this skill introduces no gate, lock, or hook, and does not change `INDEX.md`'s section
|
|
50
|
+
list or the intent frontmatter schema.
|
|
51
|
+
- Closing a roadmap moves it to `roadmaps/archived/{slug}.md` so `roadmaps/` lists only live ones.
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
# Roadmap File Format
|
|
2
|
+
|
|
3
|
+
## Location
|
|
4
|
+
|
|
5
|
+
`roadmaps/{slug}.md`, a sibling of `INDEX.md`, wherever `INDEX.md` lives. For the global tier
|
|
6
|
+
that is `~/.plastic/roadmaps/{slug}.md` (beside `~/.plastic/INDEX.md`); for any project it is
|
|
7
|
+
that project's root, `~/.plastic/projects/{slug}/roadmaps/{slug}.md` (beside that project's
|
|
8
|
+
`INDEX.md` and `project.yml`). `roadmaps/` never sits inside `store/`: `store/` holds intent
|
|
9
|
+
directories, not project artifacts. Create the `roadmaps/` directory the first time a tier gets a
|
|
10
|
+
roadmap.
|
|
11
|
+
|
|
12
|
+
`roadmaps/` lists only live (open or in-flight) roadmaps. Once a roadmap's `## Goal` is reached,
|
|
13
|
+
its file moves to `roadmaps/archived/{slug}.md` (see Close/archive in `operations.md`); the
|
|
14
|
+
`archived/` subdirectory is scaffolded once, alongside `roadmaps/`, with a `.gitkeep`.
|
|
15
|
+
|
|
16
|
+
## The four sections (in order)
|
|
17
|
+
|
|
18
|
+
1. **Title/meta header** — `# Roadmap: <name>` plus a one-line meta sentence naming what the
|
|
19
|
+
roadmap delivers and which tier (project or global) it lives in.
|
|
20
|
+
2. **`## Goal`** — a checkable prose condition: one or a few sentences a human or coordinator reads
|
|
21
|
+
to decide the roadmap is done. Not an executable checker, not a list of tasks.
|
|
22
|
+
3. **`## Waves`** — ordered waves (`### Wave 1`, `### Wave 2`, ...). Entries inside a wave are
|
|
23
|
+
parallel-safe (can be dispatched together); waves run top to bottom, sequentially (wave 2 does
|
|
24
|
+
not start until wave 1's entries are no longer `queued`/`delivering`).
|
|
25
|
+
4. **`## Log`** — append-only, dated, one line per event. Newest entry at the bottom. Never edit or
|
|
26
|
+
remove an existing log line.
|
|
27
|
+
|
|
28
|
+
## Entry line shape
|
|
29
|
+
|
|
30
|
+
One line per intent, inside its wave, as a Markdown checkbox:
|
|
31
|
+
|
|
32
|
+
```
|
|
33
|
+
- [x] <intent-id> <title> — delivered
|
|
34
|
+
- [ ] <intent-id> <title> — <status>
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
`<intent-id>` and `<title>` match the intent's `INDEX.md` entry (terse, not a summary). The
|
|
38
|
+
checkbox is checked (`[x]`) once `<status>` is `delivered`, unchecked (`[ ]`) for every other
|
|
39
|
+
status. The checkbox is a rendering of the mirrored status token, not a second piece of state: a
|
|
40
|
+
human scanning the file sees at a glance what shipped (checked) and what has not (unchecked),
|
|
41
|
+
while the trailing token still carries the precise state (`queued`/`delivering`/`blocked`/
|
|
42
|
+
`abandoned`) when unchecked.
|
|
43
|
+
|
|
44
|
+
## Status vocabulary
|
|
45
|
+
|
|
46
|
+
`queued` | `delivering` | `delivered` | `abandoned` | `blocked`
|
|
47
|
+
|
|
48
|
+
Status is a **mirror** of `INDEX.md`. `INDEX.md` is the single writer of intent status; on any
|
|
49
|
+
conflict INDEX wins and the roadmap entry (both its token and its checkbox) is corrected to match
|
|
50
|
+
it. The roadmap never sets a status that INDEX does not already reflect.
|
|
51
|
+
|
|
52
|
+
## Log line shape
|
|
53
|
+
|
|
54
|
+
One line per event, starting `YYYY-MM-DD HH:MM UTC` (human-readable, sortable, zone-explicit so
|
|
55
|
+
same-day parallel deliveries can still be ordered), in plain-language EM-to-CTO voice: what shipped
|
|
56
|
+
and why it matters to a non-expert reader, no jargon or internal codenames, ending with a link to
|
|
57
|
+
that entry-intent's `outcome.md`:
|
|
58
|
+
|
|
59
|
+
```
|
|
60
|
+
- <YYYY-MM-DD HH:MM UTC> <one plain-language sentence: what shipped, its impact> — see store/<id>--<slug>/outcome.md
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
The log line never restates `outcome.md` detail; it points at it (lossless-by-reference). This
|
|
64
|
+
complements, and does not replace, `INDEX.md`'s `## Completed` section or `CHANGELOG.md`.
|
|
65
|
+
|
|
66
|
+
## Worked example
|
|
67
|
+
|
|
68
|
+
```
|
|
69
|
+
# Roadmap: Stable 1.0
|
|
70
|
+
|
|
71
|
+
Delivery-side collection of intents that close out the pre-1.0 hardening pass, plastic project store.
|
|
72
|
+
|
|
73
|
+
## Goal
|
|
74
|
+
All intents below are delivered, the suite is green, and a 1.0.0 release is cut.
|
|
75
|
+
|
|
76
|
+
## Waves
|
|
77
|
+
Entries in a wave are parallel-safe; waves run top to bottom. The checkbox tracks delivered/not;
|
|
78
|
+
the token after the em-dash carries the precise mirrored status (queued | delivering | delivered |
|
|
79
|
+
abandoned | blocked); INDEX wins on any conflict.
|
|
80
|
+
|
|
81
|
+
### Wave 1
|
|
82
|
+
- [x] 121 Fix bash gate redirect parsing — delivered
|
|
83
|
+
- [ ] 130 Proportional cycle tiers — delivering
|
|
84
|
+
|
|
85
|
+
### Wave 2
|
|
86
|
+
- [x] 124 Roadmap feature — delivered
|
|
87
|
+
|
|
88
|
+
## Log
|
|
89
|
+
- 2026-07-06 14:32 UTC Shipped the bash-gate redirect fix so quoted arrows and heredoc trailers
|
|
90
|
+
stop blocking legitimate commits — see store/121--fix-bash-gate-redirect-parsing/outcome.md.
|
|
91
|
+
```
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# Roadmap Operations
|
|
2
|
+
|
|
3
|
+
All six verbs operate on the Markdown file directly (Read/Edit). No helper script exists or is
|
|
4
|
+
needed; the file is small and the edits are mechanical.
|
|
5
|
+
|
|
6
|
+
**Human-comprehension goal.** Every operation below should leave the file such that a cold reader
|
|
7
|
+
(no INDEX.md, no intent directories open) can answer "what's shipped, what's running, what's
|
|
8
|
+
next" in under a minute, just from this one file.
|
|
9
|
+
|
|
10
|
+
## Create
|
|
11
|
+
|
|
12
|
+
1. Pick a `slug` (kebab-case, descriptive) and a `title`.
|
|
13
|
+
2. Resolve the tier root: the directory that holds `INDEX.md` (a project's root, beside
|
|
14
|
+
`project.yml`, or `~/.plastic/` for the global tier). `roadmaps/` is always a sibling of
|
|
15
|
+
`INDEX.md`, never inside `store/`. Create `roadmaps/` there if it does not exist yet.
|
|
16
|
+
3. Copy `templates/roadmap.md` to `roadmaps/{slug}.md`.
|
|
17
|
+
4. Fill the header (`# Roadmap: <title>` + the one-line meta) and write a real `## Goal` prose
|
|
18
|
+
condition.
|
|
19
|
+
5. Add at least one `## Waves` wave with real entries (see Add / reorder below), each entry's
|
|
20
|
+
status mirroring that intent's current `INDEX.md` status.
|
|
21
|
+
6. Append the first `## Log` line, a short `YYYY-MM-DD HH:MM UTC`-prefixed plain-language note
|
|
22
|
+
that the roadmap was created.
|
|
23
|
+
|
|
24
|
+
## Add / reorder entries
|
|
25
|
+
|
|
26
|
+
- **Add**: append an entry line (`- <intent-id> <title> — <status>`) to the target wave. Pick the
|
|
27
|
+
intent's title and status straight from `INDEX.md`.
|
|
28
|
+
- **New wave**: add a new `### Wave N` heading after the last wave; entries in it are gated behind
|
|
29
|
+
every earlier wave's entries leaving `queued`/`delivering`.
|
|
30
|
+
- **Reorder**: move an entry line to a different wave, or move a `### Wave` heading (with its
|
|
31
|
+
entries) earlier or later. Reordering never changes an entry's status; it only changes when the
|
|
32
|
+
entry is eligible to run.
|
|
33
|
+
- After any add/reorder, append a `## Log` line describing the change (e.g.
|
|
34
|
+
`- <YYYY-MM-DD HH:MM UTC> added 132 to wave 2`).
|
|
35
|
+
|
|
36
|
+
## Sync status mirror
|
|
37
|
+
|
|
38
|
+
1. Read the intent's real status from `INDEX.md` (`## Active`, `## Future`, `## Completed`, or
|
|
39
|
+
`## Abandoned`).
|
|
40
|
+
2. Compare to the roadmap entry's `<status>` token.
|
|
41
|
+
3. If they differ, **INDEX wins**: rewrite the roadmap entry's status token to match INDEX, and
|
|
42
|
+
flip its checkbox in the same edit (`[x]` when the new status is `delivered`, `[ ]` otherwise).
|
|
43
|
+
Never edit INDEX.md from the roadmap skill; the roadmap is a mirror, not a second writer.
|
|
44
|
+
4. Append a `## Log` line recording the change. When the new status is `delivered`, write the
|
|
45
|
+
one-line EM-to-CTO entry described in `file-format.md` (date, what shipped and its impact in
|
|
46
|
+
plain language, then a link to that intent's `outcome.md`). For other transitions, write a
|
|
47
|
+
short dated plain-language line (no codenames, no jargon).
|
|
48
|
+
|
|
49
|
+
## Append a log line
|
|
50
|
+
|
|
51
|
+
- One line per event, starting `YYYY-MM-DD HH:MM UTC`, appended at the bottom of `## Log`. Never
|
|
52
|
+
edit or delete an existing line (append-only).
|
|
53
|
+
- Every line is plain language a non-expert can read, never a codename or a raw `field -> value`.
|
|
54
|
+
A delivery event follows the EM-to-CTO one-line shape with an `outcome.md` link (see
|
|
55
|
+
`file-format.md`); bookkeeping events (created, an intent added to a wave, a wave completed, a
|
|
56
|
+
roadmap closed) are short dated plain-language lines.
|
|
57
|
+
|
|
58
|
+
## Read / consume
|
|
59
|
+
|
|
60
|
+
- A human reading the file gets the current picture directly: `## Goal` for the target, `## Waves`
|
|
61
|
+
for what is queued/delivering/delivered per wave (checkboxes give the shipped/not-shipped view at
|
|
62
|
+
a glance), `## Log` for a one-line, plain-language history with a link into each intent's
|
|
63
|
+
`outcome.md` for detail.
|
|
64
|
+
- A future coordinator (for example, an auto-mode dispatcher) reads `## Waves` top to bottom:
|
|
65
|
+
a wave is eligible to dispatch once every entry in the previous wave is no longer
|
|
66
|
+
`queued`/`delivering`; within an eligible wave, entries still `queued` are parallel-dispatchable.
|
|
67
|
+
Always re-sync against `INDEX.md` before dispatch decisions, since INDEX is the source of truth.
|
|
68
|
+
|
|
69
|
+
## Close / archive
|
|
70
|
+
|
|
71
|
+
1. Confirm the roadmap's `## Goal` prose condition is met (every entry `delivered` or explicitly
|
|
72
|
+
`abandoned` with a recorded reason, plus whatever else the goal states).
|
|
73
|
+
2. Create `roadmaps/archived/` beside `roadmaps/` (both siblings of `INDEX.md`) if it does not
|
|
74
|
+
exist yet.
|
|
75
|
+
3. Move the file: `roadmaps/{slug}.md` -> `roadmaps/archived/{slug}.md`. `roadmaps/` itself then
|
|
76
|
+
lists only live (open or in-flight) roadmaps.
|
|
77
|
+
4. Append the final `## Log` line before or as part of the move:
|
|
78
|
+
`- <YYYY-MM-DD HH:MM UTC> roadmap closed`.
|
|
@@ -9,15 +9,21 @@ The installer tracks every file it writes in a manifest, so uninstall is exact a
|
|
|
9
9
|
leaves no orphans. Prefer running it through the CLI; this skill wraps the same
|
|
10
10
|
underlying uninstaller and adds reporting + verification.
|
|
11
11
|
|
|
12
|
+
## Channel rule
|
|
13
|
+
|
|
14
|
+
If Plastic is installed, derive `<channel>` from `~/.plastic/VERSION`: a version containing
|
|
15
|
+
`-alpha` means `@alpha`, `-beta` means `@beta`, otherwise `@latest`. If not installed,
|
|
16
|
+
default to `@beta`. The user can always override with `--alpha` / `--beta` / `--latest`.
|
|
17
|
+
|
|
12
18
|
## Procedure
|
|
13
19
|
|
|
14
20
|
### Step 1: Run the uninstaller
|
|
15
21
|
|
|
16
22
|
```bash
|
|
17
|
-
npx @zalom/plastic
|
|
23
|
+
npx -y @zalom/plastic@<channel> uninstall --claude
|
|
18
24
|
```
|
|
19
25
|
|
|
20
|
-
(Use `--codex` / `--hermes` / `--all` to target other agents. `bunx` works too.)
|
|
26
|
+
(Use `--codex` / `--hermes` / `--all` to target other agents. `bunx -y @zalom/plastic@<channel> uninstall --claude` works too.)
|
|
21
27
|
|
|
22
28
|
This removes, for the targeted agent:
|
|
23
29
|
- all `~/.claude/skills/plastic-*/` skills
|
|
@@ -29,8 +35,8 @@ This removes, for the targeted agent:
|
|
|
29
35
|
|
|
30
36
|
### Step 2: Report removed vs left
|
|
31
37
|
|
|
32
|
-
Relay the uninstaller's output to the user
|
|
33
|
-
**left in place
|
|
38
|
+
Relay the uninstaller's output to the user: what was **removed** and what was
|
|
39
|
+
**left in place**.
|
|
34
40
|
- **Left:** `~/.plastic/` (intent store, history, projects) and any non-Plastic
|
|
35
41
|
settings.json entries.
|
|
36
42
|
|
|
@@ -39,21 +45,33 @@ Relay the uninstaller's output to the user — what was **removed** and what was
|
|
|
39
45
|
Tell the user to confirm:
|
|
40
46
|
|
|
41
47
|
```bash
|
|
42
|
-
ls ~/.claude/skills | grep '^plastic-' #
|
|
43
|
-
ls ~/.claude/hooks | grep '^plastic-' #
|
|
44
|
-
grep -n plastic ~/.claude/settings.json #
|
|
48
|
+
ls ~/.claude/skills | grep '^plastic-' # -> no output
|
|
49
|
+
ls ~/.claude/hooks | grep '^plastic-' # -> no output
|
|
50
|
+
grep -n plastic ~/.claude/settings.json # -> no plastic hook/plugin refs
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
### Step 4: Report + offer the data decision
|
|
54
|
+
|
|
55
|
+
Emit the reporting block, using the Step 3 checks for the verification line:
|
|
56
|
+
|
|
57
|
+
```
|
|
58
|
+
Plastic uninstall (<channel>)
|
|
59
|
+
Command: npx -y @zalom/plastic@<channel> uninstall --claude <flags>
|
|
60
|
+
Version: removed
|
|
61
|
+
Verification: <Step 3 results, or "clean">
|
|
45
62
|
```
|
|
46
63
|
|
|
47
|
-
|
|
64
|
+
Then:
|
|
48
65
|
|
|
49
66
|
```
|
|
50
67
|
Plastic is uninstalled from [agent].
|
|
51
68
|
Your intent store at ~/.plastic/ is untouched.
|
|
52
69
|
|
|
53
70
|
Delete it too?
|
|
54
|
-
a) Keep everything (recommended)
|
|
55
|
-
b) Delete everything now
|
|
71
|
+
a) Keep everything (recommended): re-install anytime with npx
|
|
72
|
+
b) Delete everything now: removes ~/.plastic/ entirely (irreversible)
|
|
56
73
|
```
|
|
57
74
|
|
|
58
|
-
- **Keep:** "Your data is at ~/.plastic/. Re-install anytime with
|
|
75
|
+
- **Keep:** "Your data is at ~/.plastic/. Re-install anytime with
|
|
76
|
+
`npx -y @zalom/plastic@beta install --claude` (or your channel)."
|
|
59
77
|
- **Delete:** run `rm -rf ~/.plastic/` and confirm.
|
package/skills/update/SKILL.md
CHANGED
|
@@ -13,58 +13,69 @@ description: Use when updating Plastic. Runs the `update` verb, which reads the
|
|
|
13
13
|
## What it does
|
|
14
14
|
|
|
15
15
|
`update` is a single deterministic command. It reads `~/.plastic/VERSION`, derives the
|
|
16
|
-
channel from the version string (`-alpha`/`-beta`/none
|
|
16
|
+
channel from the version string (`-alpha`/`-beta`/none -> stable), queries `npm` dist-tags,
|
|
17
17
|
and advances to the **next version on the current channel**. "Already up to date" is a
|
|
18
|
-
clean no-op. You do not compute the target yourself
|
|
18
|
+
clean no-op. You do not compute the target yourself, the script does.
|
|
19
|
+
|
|
20
|
+
## Channel rule
|
|
21
|
+
|
|
22
|
+
If Plastic is installed, derive `<channel>` from `~/.plastic/VERSION`: a version containing
|
|
23
|
+
`-alpha` means `@alpha`, `-beta` means `@beta`, otherwise `@latest`. If not installed
|
|
24
|
+
(first install), default to `@beta`. The user can always override with
|
|
25
|
+
`--alpha` / `--beta` / `--latest`.
|
|
19
26
|
|
|
20
27
|
## Flags
|
|
21
28
|
|
|
22
29
|
| Flag | Behaviour |
|
|
23
30
|
|------|-----------|
|
|
24
31
|
| (none) | Advance to the next version on the **current** channel |
|
|
25
|
-
| `--latest` | Switch to / advance the **stable** channel (toward stability
|
|
32
|
+
| `--latest` | Switch to / advance the **stable** channel (toward stability, frictionless) |
|
|
26
33
|
| `--beta` | Switch to / advance the **beta** channel |
|
|
27
|
-
| `--alpha` | Switch to / advance the **alpha** channel (bleeding edge
|
|
34
|
+
| `--alpha` | Switch to / advance the **alpha** channel (bleeding edge, confirmed if moving down in stability) |
|
|
28
35
|
|
|
29
36
|
Switching toward a more stable channel is frictionless; switching toward bleeding edge is
|
|
30
37
|
confirmed. To roll **back** to a previously-installed version, use `plastic-versions`.
|
|
31
38
|
|
|
32
39
|
## Prerequisites
|
|
33
40
|
|
|
34
|
-
Plastic must be installed (`~/.plastic/VERSION` present). If not, run
|
|
35
|
-
`npx @zalom/plastic install --claude`
|
|
41
|
+
Plastic must be installed (`~/.plastic/VERSION` present). If not, run `plastic-install`
|
|
42
|
+
first (or `npx -y @zalom/plastic@beta install --claude` directly).
|
|
36
43
|
|
|
37
44
|
## Procedure
|
|
38
45
|
|
|
39
46
|
### Step 1: Run the update
|
|
40
47
|
|
|
41
48
|
```bash
|
|
42
|
-
npx @zalom/plastic update
|
|
43
|
-
#
|
|
49
|
+
npx -y @zalom/plastic@<channel> update --claude
|
|
50
|
+
# channel switch: append --beta / --latest / --alpha
|
|
51
|
+
# other agents: append --codex / --hermes / --all
|
|
44
52
|
```
|
|
45
53
|
|
|
46
|
-
|
|
47
|
-
The command prints the transition (`vX
|
|
48
|
-
move in the append-only
|
|
54
|
+
`bunx -y @zalom/plastic@<channel> update --claude` works as a fallback if `npx` is
|
|
55
|
+
unavailable. The command prints the transition (`vX -> vY`) or "already up to date", runs
|
|
56
|
+
a post-update doctor summary, and records the move in the append-only
|
|
57
|
+
`~/.plastic/versions.json` ledger.
|
|
49
58
|
|
|
50
|
-
### Step 2:
|
|
59
|
+
### Step 2: Relay the result, announce convention changes
|
|
51
60
|
|
|
52
|
-
|
|
53
|
-
|
|
61
|
+
Relay what `update` printed, do not recompute the version transition or the doctor
|
|
62
|
+
summary:
|
|
54
63
|
|
|
55
64
|
```
|
|
56
|
-
Plastic
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
Recommendation: run /clear for a clean session with all new conventions loaded.
|
|
65
|
+
Plastic update (<channel>)
|
|
66
|
+
Command: npx -y @zalom/plastic@<channel> update --claude <flags>
|
|
67
|
+
Version: <before> -> <after>
|
|
68
|
+
Doctor: <relayed summary, or "all clear">
|
|
62
69
|
```
|
|
63
70
|
|
|
64
|
-
|
|
71
|
+
Then read `~/.plastic/PLASTIC.md` and announce convention changes that affect the
|
|
72
|
+
current session, and recommend `/clear` for a clean session with all new conventions
|
|
73
|
+
loaded.
|
|
74
|
+
|
|
75
|
+
### Step 3: Health check only on a relayed failure
|
|
65
76
|
|
|
66
|
-
|
|
67
|
-
|
|
77
|
+
If the relayed doctor summary shows a failure, invoke `plastic-doctor` for the full
|
|
78
|
+
report and offer to fix. If it already reads clean, do not re-run doctor.
|
|
68
79
|
|
|
69
80
|
### Step 4: Commit + clear update cache
|
|
70
81
|
|
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
|
|