@zalom/plastic 1.0.0-alpha.9 → 1.0.0-beta.2
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.md +163 -469
- package/README.md +95 -58
- package/agents/plastic-brainstorming.md +37 -0
- package/agents/plastic-enforcer.md +36 -0
- package/agents/plastic-executor.md +37 -0
- package/agents/{future-intent-researcher.md → plastic-future-intent-researcher.md} +1 -1
- package/agents/{intent-curator.md → plastic-intent-curator.md} +1 -1
- package/agents/plastic-planner.md +37 -0
- package/agents/plastic-spec-specialist.md +37 -0
- package/bin/plastic.js +57 -0
- package/bin/test +28 -0
- package/deprecations.yml +1 -10
- package/hooks/auto-arm +5 -0
- package/hooks/bash-gate +3 -0
- package/hooks/check-update +12 -8
- package/hooks/code-gate +12 -0
- package/hooks/create-gate +3 -0
- package/hooks/gate-check +3 -1
- package/hooks/hooks.json +52 -0
- package/hooks/qmd-search +8 -0
- package/package.json +2 -2
- package/scripts/dashboard.rb +687 -0
- package/scripts/doctor.rb +1054 -628
- package/scripts/hook-auto-arm +51 -0
- package/scripts/hook-bash-gate +41 -0
- package/scripts/hook-code-gate +27 -0
- package/scripts/hook-continue +15 -114
- package/scripts/hook-create-gate +59 -0
- package/scripts/hook-gate-check +47 -32
- package/scripts/hook-qmd-search +44 -0
- package/scripts/hook-session-start +106 -38
- package/scripts/install.rb +91 -529
- package/scripts/lib/boot_banner.rb +28 -0
- package/scripts/lib/bridge.rb +404 -19
- package/scripts/lib/installer_core.rb +807 -0
- package/scripts/lib/intent_validator.rb +235 -0
- package/scripts/lib/qmd_hook.rb +44 -0
- package/scripts/lib/qmd_sync.rb +209 -0
- package/scripts/lib/store_provisioning.rb +100 -0
- package/scripts/migrate-to-global +1 -1
- package/scripts/new-intent +226 -0
- package/scripts/provision-project-store +53 -0
- package/scripts/qmd-sync +92 -0
- package/scripts/select-update-target +93 -0
- package/scripts/spawn-preamble +121 -0
- package/scripts/uninstall.rb +53 -0
- package/scripts/update.rb +164 -0
- package/scripts/validate-intent +54 -0
- package/scripts/versions.rb +141 -0
- package/skills/_active-intent-gate.md +1 -1
- package/skills/add-project-store/SKILL.md +54 -0
- package/skills/auto/SKILL.md +77 -7
- package/skills/auto/evals/evals.json +207 -0
- package/skills/auto/references/agent-architecture.md +135 -0
- package/skills/brainstorming/SKILL.md +9 -9
- package/skills/brainstorming-grill-me/SKILL.md +6 -6
- package/skills/continuing/SKILL.md +92 -82
- package/skills/continuing/evals/evals.json +136 -0
- package/skills/continuing/references/context-management.md +32 -0
- package/skills/creating-intent/SKILL.md +74 -36
- package/skills/creating-intent/evals/evals.json +56 -0
- package/skills/creating-intent/references/lifecycle.md +76 -0
- package/skills/creating-intent/references/wikilinks.md +8 -0
- package/skills/creating-project/SKILL.md +40 -8
- package/skills/creating-project/references/hubs-projects.md +55 -0
- package/skills/dashboard/SKILL.md +121 -0
- package/skills/dashboard/templates/dashboard-global.md +31 -0
- package/skills/dashboard/templates/dashboard-project.md +40 -0
- package/skills/doctor/SKILL.md +51 -4
- package/skills/doctor/references/gates-stuck-detection.md +38 -0
- package/skills/doctor/report.md +4 -0
- package/skills/evaluating-skills/SKILL.md +140 -0
- package/skills/evaluating-skills/assets/eval-template.json +12 -0
- package/skills/evaluating-skills/evals/evals.json +75 -0
- package/skills/evaluating-skills/references/convention-checks.md +76 -0
- package/skills/evaluating-skills/references/eval-methodology.md +154 -0
- package/skills/executing-plan/SKILL.md +5 -3
- package/skills/install/SKILL.md +69 -8
- package/skills/intent-curator/SKILL.md +3 -3
- package/skills/linking-intents/SKILL.md +16 -7
- package/skills/linking-intents/references/zettelkasten.md +38 -0
- package/skills/managing-index/SKILL.md +5 -1
- package/skills/managing-index/references/zettelkasten-linking.md +1 -1
- package/skills/releasing/SKILL.md +80 -23
- package/skills/releasing/references/deprecations.md +60 -0
- package/skills/research/SKILL.md +2 -2
- package/skills/savepoint/SKILL.md +46 -37
- package/skills/savepoint/references/context-management.md +32 -0
- package/skills/uninstall/SKILL.md +39 -28
- package/skills/update/SKILL.md +41 -44
- package/skills/versions/SKILL.md +65 -0
- package/skills/writing-instructions/SKILL.md +159 -0
- package/skills/writing-instructions/references/agentskills-spec.md +135 -0
- package/skills/writing-plans/SKILL.md +5 -5
- package/templates/agents.md +7 -7
- package/templates/outcome.md +13 -0
- package/templates/savepoint.md +14 -13
- package/templates/spec.md +25 -0
- package/bin/install.js +0 -29
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
# Evaluation Methodology
|
|
2
|
+
|
|
3
|
+
Load when choosing a grader type, interpreting pass rate results, or deciding
|
|
4
|
+
whether to graduate or retire evals.
|
|
5
|
+
|
|
6
|
+
Sources: agentskills.io, Anthropic eval engineering, Tessl eval framework,
|
|
7
|
+
Philipp Schmid skill testing guide.
|
|
8
|
+
|
|
9
|
+
## Three-Tier Grader Taxonomy
|
|
10
|
+
|
|
11
|
+
Layer graders like a Swiss cheese model — no single tier catches everything.
|
|
12
|
+
Use the simplest grader that covers the assertion. Combine tiers for coverage.
|
|
13
|
+
|
|
14
|
+
### Code-Based Graders
|
|
15
|
+
|
|
16
|
+
Best for structural and mechanical checks:
|
|
17
|
+
- File existence and correct path
|
|
18
|
+
- JSON/YAML validity
|
|
19
|
+
- Line count, character count, token budget
|
|
20
|
+
- Regex pattern matching (frontmatter fields, required sections)
|
|
21
|
+
- Exit codes from bundled scripts
|
|
22
|
+
|
|
23
|
+
Use as the default tier. Fast, deterministic, reproducible.
|
|
24
|
+
|
|
25
|
+
### LLM-as-Judge Graders
|
|
26
|
+
|
|
27
|
+
Best for subjective quality and semantic checks:
|
|
28
|
+
- "Does this description convey when to use the skill?"
|
|
29
|
+
- "Are the gotchas concrete corrections, not general advice?"
|
|
30
|
+
- "Does the output address the user's actual intent?"
|
|
31
|
+
|
|
32
|
+
Calibration protocol:
|
|
33
|
+
1. Write a natural-language rubric (not binary pass/fail)
|
|
34
|
+
2. Run the judge on 10-15 cases where you already know the correct grade
|
|
35
|
+
3. Compare judge grades to your grades — adjust rubric until >80% agreement
|
|
36
|
+
4. Spot-check with human grading periodically (every 5th eval run)
|
|
37
|
+
|
|
38
|
+
Rubric template:
|
|
39
|
+
- PASS: [specific criteria with examples]
|
|
40
|
+
- PARTIAL: [what partial credit looks like]
|
|
41
|
+
- FAIL: [specific failure modes]
|
|
42
|
+
|
|
43
|
+
### Human Graders
|
|
44
|
+
|
|
45
|
+
Best for edge cases and final calibration:
|
|
46
|
+
- Novel failure modes the other tiers miss
|
|
47
|
+
- Calibration set for LLM judges
|
|
48
|
+
- Final sign-off on graduating evals to regression
|
|
49
|
+
|
|
50
|
+
Use sparingly — human grading doesn't scale. Reserve for calibration
|
|
51
|
+
and cases where code + LLM judges disagree.
|
|
52
|
+
|
|
53
|
+
## pass@k vs pass^k
|
|
54
|
+
|
|
55
|
+
Two metrics that diverge dramatically. Always track both.
|
|
56
|
+
|
|
57
|
+
### pass@k — Capability
|
|
58
|
+
|
|
59
|
+
"Did it succeed at least once in k trials?"
|
|
60
|
+
|
|
61
|
+
Formula: pass@k = 1 - (1 - p)^k where p = single-trial pass rate
|
|
62
|
+
|
|
63
|
+
Measures: Can the skill/agent do this at all?
|
|
64
|
+
|
|
65
|
+
Example at p=0.7, k=10: pass@k = 97.2%
|
|
66
|
+
|
|
67
|
+
Use when: evaluating whether a skill enables a new capability,
|
|
68
|
+
initial development, deciding whether to invest more iteration.
|
|
69
|
+
|
|
70
|
+
### pass^k — Reliability
|
|
71
|
+
|
|
72
|
+
"Did it succeed every time in k trials?"
|
|
73
|
+
|
|
74
|
+
Formula: pass^k = p^k
|
|
75
|
+
|
|
76
|
+
Measures: Will it always do this correctly?
|
|
77
|
+
|
|
78
|
+
Example at p=0.7, k=10: pass^k = 2.8%
|
|
79
|
+
|
|
80
|
+
Use when: evaluating production readiness, regression testing,
|
|
81
|
+
deciding whether a skill is reliable enough to ship.
|
|
82
|
+
|
|
83
|
+
### Interpreting the Gap
|
|
84
|
+
|
|
85
|
+
| pass@k | pass^k | Interpretation |
|
|
86
|
+
|--------|--------|----------------|
|
|
87
|
+
| High | High | Reliable — ready for production |
|
|
88
|
+
| High | Low | Capable but flaky — needs iteration on consistency |
|
|
89
|
+
| Low | Low | Not yet capable — needs fundamental skill improvement |
|
|
90
|
+
| Low | High | Impossible (pass^k <= pass@k always) |
|
|
91
|
+
|
|
92
|
+
Run k=3 minimum for meaningful results. k=5 for production decisions.
|
|
93
|
+
|
|
94
|
+
## Capability-to-Regression Graduation
|
|
95
|
+
|
|
96
|
+
Track pass rates across iterations. When a capability eval consistently
|
|
97
|
+
hits ~100% (pass@k=1.0 for 3+ consecutive runs):
|
|
98
|
+
|
|
99
|
+
1. Graduate the eval from "capability" to "regression"
|
|
100
|
+
2. Regression evals run on every skill change — they protect against backsliding
|
|
101
|
+
3. If a regression eval starts failing, the recent change broke something
|
|
102
|
+
4. Investigate the failing regression before iterating further
|
|
103
|
+
|
|
104
|
+
Graduation is one-way. Once an eval is regression, it stays regression
|
|
105
|
+
unless the underlying requirement changes.
|
|
106
|
+
|
|
107
|
+
## Skill Retirement Detection
|
|
108
|
+
|
|
109
|
+
Monitor the with/without skill delta over time:
|
|
110
|
+
|
|
111
|
+
1. Run paired evals (with-skill vs without-skill) periodically
|
|
112
|
+
2. Compute the delta in pass rates
|
|
113
|
+
3. If delta shrinks to near-zero across 3+ consecutive runs:
|
|
114
|
+
- The model has likely internalized the skill's knowledge
|
|
115
|
+
- The skill may be ready for retirement
|
|
116
|
+
4. Before retiring: run one final full eval suite to confirm
|
|
117
|
+
5. Archive the skill (don't delete — may need to restore if model changes)
|
|
118
|
+
|
|
119
|
+
Common cause of false retirement signals: model update changed capabilities.
|
|
120
|
+
Re-test after model updates.
|
|
121
|
+
|
|
122
|
+
## Tessl Three-Layer Eval Taxonomy
|
|
123
|
+
|
|
124
|
+
Three layers of increasing realism. Each catches failures the others miss.
|
|
125
|
+
|
|
126
|
+
### Layer 1: Skill Review (Structural Lint)
|
|
127
|
+
|
|
128
|
+
Does the skill itself follow best practices?
|
|
129
|
+
- SKILL.md structure (frontmatter, sections, length)
|
|
130
|
+
- Description quality (imperative, user-intent, trigger keywords)
|
|
131
|
+
- Reference organization (conditional triggers, one level deep)
|
|
132
|
+
- Convention compliance (for Plastic skills, see convention-checks.md)
|
|
133
|
+
|
|
134
|
+
Fast, cheap, runs without executing the skill.
|
|
135
|
+
|
|
136
|
+
### Layer 2: Task Evals (Synthetic)
|
|
137
|
+
|
|
138
|
+
Does the skill improve agent output on synthetic tasks?
|
|
139
|
+
- Paired with/without comparison
|
|
140
|
+
- Controlled prompts with known-good expected outputs
|
|
141
|
+
- Measures the delta the skill adds
|
|
142
|
+
|
|
143
|
+
This is the core eval loop (Steps 2-5 in the SKILL.md procedure).
|
|
144
|
+
|
|
145
|
+
### Layer 3: Repo Evals (Real Codebase)
|
|
146
|
+
|
|
147
|
+
Does the skill work correctly in a real project context?
|
|
148
|
+
- Install the skill in a real repository
|
|
149
|
+
- Run real tasks (not synthetic prompts)
|
|
150
|
+
- Measure whether the agent uses the skill correctly in situ
|
|
151
|
+
|
|
152
|
+
Most expensive, most realistic. Catches skills that pass synthetic tests
|
|
153
|
+
but fail under real project complexity. Use for high-stakes skills
|
|
154
|
+
or before shipping to users.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
name: plastic
|
|
2
|
+
name: plastic-executing-plan
|
|
3
3
|
description: Use when you have a written implementation plan to execute. Default mode is subagent-driven (dispatches fresh subagent per task with two-stage review). Fallback mode is inline execution for environments without subagent support. If superpowers:subagent-driven-development or superpowers:executing-plans are available, delegates to them.
|
|
4
4
|
---
|
|
5
5
|
|
|
@@ -70,11 +70,12 @@ After all tasks complete, dispatch a final reviewer for the entire implementatio
|
|
|
70
70
|
### Step 4: Update Intent and Complete
|
|
71
71
|
Capture observations in `## Insights`. When ALL checklist items are checked:
|
|
72
72
|
|
|
73
|
-
1. Write `outcome.md` with detailed results in the intent directory
|
|
73
|
+
1. Write `outcome.md` with detailed results in the intent directory, using the `${CLAUDE_PLUGIN_ROOT}/templates/outcome.md` form
|
|
74
74
|
2. Write `## Outcome` summary in the intent file (1-2 sentences)
|
|
75
75
|
3. Move intent from `## Active` to `## Completed` in INDEX.md (with today's date)
|
|
76
76
|
4. Update cluster entries to show `_(completed)_`
|
|
77
77
|
5. Auto-commit: `cd <store-root> && git add . && git commit -m "feat: complete intent <ID> — <name>"`
|
|
78
|
+
6. Refresh the QMD search index for this store (optional, no-op when QMD is absent): `ruby ~/.plastic/scripts/qmd-sync reindex --store <store-root>`. Delivery is the lifecycle event that keeps the search index fresh.
|
|
78
79
|
|
|
79
80
|
**This is NOT optional.** An intent with all checklist items done but no Outcome is a broken state. Complete the intent immediately — do not leave it for later.
|
|
80
81
|
|
|
@@ -95,11 +96,12 @@ For each task:
|
|
|
95
96
|
### Step 3: Update Intent and Complete
|
|
96
97
|
Capture observations in `## Insights`. When ALL checklist items are checked:
|
|
97
98
|
|
|
98
|
-
1. Write `outcome.md` with detailed results in the intent directory
|
|
99
|
+
1. Write `outcome.md` with detailed results in the intent directory, using the `${CLAUDE_PLUGIN_ROOT}/templates/outcome.md` form
|
|
99
100
|
2. Write `## Outcome` summary in the intent file (1-2 sentences)
|
|
100
101
|
3. Move intent from `## Active` to `## Completed` in INDEX.md (with today's date)
|
|
101
102
|
4. Update cluster entries to show `_(completed)_`
|
|
102
103
|
5. Auto-commit: `cd <store-root> && git add . && git commit -m "feat: complete intent <ID> — <name>"`
|
|
104
|
+
6. Refresh the QMD search index for this store (optional, no-op when QMD is absent): `ruby ~/.plastic/scripts/qmd-sync reindex --store <store-root>`. Delivery is the lifecycle event that keeps the search index fresh.
|
|
103
105
|
|
|
104
106
|
**This is NOT optional.** Complete the intent immediately when work is done.
|
|
105
107
|
|
package/skills/install/SKILL.md
CHANGED
|
@@ -1,22 +1,64 @@
|
|
|
1
1
|
---
|
|
2
|
-
name: plastic
|
|
3
|
-
description: Use when initializing Plastic globally (~/.plastic/) or locally in a project. Global install is recommended — creates the global intent store as a git-backed repository. Local install creates .plastic/ in the current project for testing.
|
|
2
|
+
name: plastic-install
|
|
3
|
+
description: Use when initializing Plastic globally (~/.plastic/) or locally in a project, or to re-install/repair a broken installation. Accepts channel flags (--alpha, --beta, --latest) to select release channel. Default is --latest (stable). Global install is recommended — creates the global intent store as a git-backed repository. Local install creates .plastic/ in the current project for testing.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Install Plastic
|
|
7
7
|
|
|
8
|
+
> **Recommended path:** for a first install, run `npx @zalom/plastic@latest install --claude`
|
|
9
|
+
> in your shell (or `bunx @zalom/plastic@latest --claude` if you use Bun). This skill
|
|
10
|
+
> exists to **re-install or repair** an existing setup from inside the agent, and to
|
|
11
|
+
> drive interactive global configuration. Whenever this skill performs an install or
|
|
12
|
+
> re-install, it **runs `/plastic-doctor` afterward** and reports the result.
|
|
13
|
+
|
|
14
|
+
## Re-install / repair
|
|
15
|
+
|
|
16
|
+
If Plastic is already installed but something is broken (skills missing, hooks not
|
|
17
|
+
firing, leftover legacy plugin), re-run the installer — it is idempotent, prunes
|
|
18
|
+
files that no longer ship, and removes any legacy plugin/marketplace layout:
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
npx @zalom/plastic@latest install --reinstall --claude # or @beta / @alpha to match your channel
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Then **run `/plastic-doctor`** and report what it found.
|
|
25
|
+
|
|
26
|
+
## Channel Flags
|
|
27
|
+
|
|
28
|
+
| Flag | Behavior |
|
|
29
|
+
|------|----------|
|
|
30
|
+
| `--latest` | Install from stable channel (default) |
|
|
31
|
+
| `--beta` | Install from beta channel |
|
|
32
|
+
| `--alpha` | Install from alpha channel |
|
|
33
|
+
|
|
34
|
+
When invoked from within Claude Code (re-install or channel switch), the skill
|
|
35
|
+
runs the appropriate npx command:
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
# Stable (default)
|
|
39
|
+
npx @zalom/plastic install --claude
|
|
40
|
+
|
|
41
|
+
# Beta
|
|
42
|
+
npx @zalom/plastic@beta install --claude
|
|
43
|
+
|
|
44
|
+
# Alpha
|
|
45
|
+
npx @zalom/plastic@alpha install --claude
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
The installed version and channel are recorded in `~/.plastic/VERSION`.
|
|
49
|
+
|
|
8
50
|
## Modes
|
|
9
51
|
|
|
10
52
|
### Global Install (default, recommended)
|
|
11
53
|
|
|
12
|
-
Run `/plastic
|
|
54
|
+
Run `/plastic-install` with no arguments.
|
|
13
55
|
|
|
14
56
|
#### Procedure
|
|
15
57
|
|
|
16
58
|
**Step 1: Check for existing installation**
|
|
17
59
|
|
|
18
60
|
Check if `~/.plastic/INDEX.md` exists.
|
|
19
|
-
- If yes: announce "Plastic is already installed at ~/.plastic/. Run `/plastic
|
|
61
|
+
- If yes: announce "Plastic is already installed at ~/.plastic/. Run `/plastic-update` to sync core files."
|
|
20
62
|
- If no: proceed with fresh install.
|
|
21
63
|
|
|
22
64
|
**Step 2: Create ~/.plastic/ as a git repo**
|
|
@@ -106,13 +148,32 @@ Update `config.yml` with any additional roots.
|
|
|
106
148
|
|
|
107
149
|
Auto-commit the config change.
|
|
108
150
|
|
|
109
|
-
**Step 4:
|
|
151
|
+
**Step 4: Verify with doctor**
|
|
152
|
+
|
|
153
|
+
Run `/plastic-doctor` and report the result. Resolve any fixable findings before
|
|
154
|
+
announcing success.
|
|
155
|
+
|
|
156
|
+
**Step 5: Register stores with QMD (optional)**
|
|
157
|
+
|
|
158
|
+
QMD is an optional search layer. If it is installed, register the Plastic stores so
|
|
159
|
+
they are searchable:
|
|
160
|
+
|
|
161
|
+
```bash
|
|
162
|
+
ruby ~/.plastic/scripts/qmd-sync detect && ruby ~/.plastic/scripts/qmd-sync register --all
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
`qmd-sync` no-ops cleanly when QMD is absent, so this is safe to run unconditionally.
|
|
166
|
+
It registers `plastic-global` and every project store from `projects.yml`, then indexes
|
|
167
|
+
them. Report what was registered, or that QMD was not detected and the step was skipped.
|
|
168
|
+
|
|
169
|
+
**Step 6: Announce**
|
|
110
170
|
|
|
111
|
-
> "Plastic installed globally at ~/.plastic/.
|
|
171
|
+
> "Plastic installed globally at ~/.plastic/. Health check: [doctor summary].
|
|
172
|
+
> Create your first intent with `/plastic-creating-intent`."
|
|
112
173
|
|
|
113
174
|
### Local Install (testing/legacy)
|
|
114
175
|
|
|
115
|
-
Run `/plastic
|
|
176
|
+
Run `/plastic-install --local`.
|
|
116
177
|
|
|
117
178
|
#### Procedure
|
|
118
179
|
|
|
@@ -131,4 +192,4 @@ Run `/plastic:install --local`.
|
|
|
131
192
|
|
|
132
193
|
**Step 4:** Commit in project: `git add .plastic/ && git commit -m "chore: initialize Plastic local store"`
|
|
133
194
|
|
|
134
|
-
**Step 5:** Announce: "Plastic initialized locally. This is a testing/legacy mode. Consider `/plastic
|
|
195
|
+
**Step 5:** Announce: "Plastic initialized locally. This is a testing/legacy mode. Consider `/plastic-install` for global mode."
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
name: plastic
|
|
2
|
+
name: plastic-intent-curator
|
|
3
3
|
description: |
|
|
4
4
|
Use when completing or reviewing intents, reorganizing the index,
|
|
5
5
|
or when the intent store needs maintenance. Examples:
|
|
@@ -15,7 +15,7 @@ description: |
|
|
|
15
15
|
|
|
16
16
|
# Intent Curator
|
|
17
17
|
|
|
18
|
-
Dispatches to the `plastic
|
|
18
|
+
Dispatches to the `plastic-intent-curator` agent for intent store maintenance.
|
|
19
19
|
|
|
20
20
|
## When to Use
|
|
21
21
|
- Completing or reviewing intents
|
|
@@ -25,7 +25,7 @@ Dispatches to the `plastic:intent-curator` agent for intent store maintenance.
|
|
|
25
25
|
|
|
26
26
|
## Workflow
|
|
27
27
|
|
|
28
|
-
Invoke the `plastic
|
|
28
|
+
Invoke the `plastic-intent-curator` agent via the Agent tool with `subagent_type: "plastic-intent-curator"`. Pass the user's request as the prompt, including:
|
|
29
29
|
|
|
30
30
|
1. **What to do** — complete intent, reorganize, triage stale, etc.
|
|
31
31
|
2. **Which store** — global (`~/.plastic/`) or project (`.plastic/store/`)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
name: plastic
|
|
2
|
+
name: plastic-linking-intents
|
|
3
3
|
description: Use when creating connections between intents, the user says "link" or "connect", or when discovering that two intents are related. Manages sources, chain, and cross-reference links.
|
|
4
4
|
---
|
|
5
5
|
|
|
@@ -21,13 +21,13 @@ Explicit wikilinks in the `## Links` section. Bidirectional — add to both inte
|
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
### 2. Sources (Backward)
|
|
24
|
-
The `sources` array in frontmatter.
|
|
24
|
+
The `sources` array in frontmatter. The direct ascendant(s) this intent was created from / emerged from the lifecycle of (formation, not topic similarity), backward links to the work it was built out of:
|
|
25
25
|
```yaml
|
|
26
26
|
sources: ["1a", "1a2"]
|
|
27
27
|
```
|
|
28
28
|
|
|
29
29
|
### 3. Chain (Forward)
|
|
30
|
-
The `chain` array in frontmatter. What this intent spawned
|
|
30
|
+
The `chain` array in frontmatter. What this intent spawned AND related-but-not-spawned successors it leads to, forward links to children, follow-on, and related work:
|
|
31
31
|
```yaml
|
|
32
32
|
chain: ["1b1", "1b2"]
|
|
33
33
|
```
|
|
@@ -55,18 +55,27 @@ done
|
|
|
55
55
|
|
|
56
56
|
### 2. Choose Connection Type
|
|
57
57
|
Ask the user which type of connection:
|
|
58
|
-
- **source
|
|
59
|
-
- **cross-reference
|
|
58
|
+
- **source**: "this was CREATED FROM that" (D1). The reciprocal update is one-directional (I1): add the ascendant id to this intent's `sources[]` AND add this intent's id to the ascendant's `chain[]`. A merely-related (not-created-from) connection is NOT a source: record it on the predecessor's `chain[]` only, plus a `## Links` wikilink, with NO `sources` (the related-but-not-spawned rule).
|
|
59
|
+
- **cross-reference**: "these are related" (add wikilink in `## Links` of both intents)
|
|
60
60
|
|
|
61
61
|
### 3. Apply Connection
|
|
62
62
|
|
|
63
|
-
**For sources:**
|
|
64
|
-
Update frontmatter arrays on both intents:
|
|
63
|
+
**For sources (a true created-from edge only):**
|
|
64
|
+
Update frontmatter arrays on both intents (I1, two-sided):
|
|
65
65
|
- Add the parent's ID to the child's `sources` array
|
|
66
66
|
- Add the child's ID to the parent's `chain` array
|
|
67
67
|
|
|
68
|
+
For the merely-related case, only the predecessor's `chain` (and both sides' `## Links`)
|
|
69
|
+
get the link, never `sources`. `chain` is NOT strictly the reverse of `sources` (I2):
|
|
70
|
+
relational `chain` entries are valid and must never be "corrected" by adding a reciprocal
|
|
71
|
+
`sources`.
|
|
72
|
+
|
|
68
73
|
**For cross-references:**
|
|
69
74
|
Add a wikilink in the `## Links` section of **both** intents (bidirectional).
|
|
70
75
|
|
|
71
76
|
### 4. Update INDEX.md Clusters
|
|
72
77
|
If both intents share a topic, ensure they're in the same cluster.
|
|
78
|
+
|
|
79
|
+
## References
|
|
80
|
+
|
|
81
|
+
- Read `references/zettelkasten.md` for the three Zettelkasten structures (Folgezettel, directed graph, tags), ID encoding rules, and dual-mode (Obsidian + programmatic) design
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# Zettelkasten Structure
|
|
2
|
+
|
|
3
|
+
Plastic implements three Zettelkasten structures:
|
|
4
|
+
|
|
5
|
+
| Structure | Implementation | Purpose |
|
|
6
|
+
|---|---|---|
|
|
7
|
+
| Folgezettel (linked list) | `sources` + `chain` in frontmatter | Sequential provenance |
|
|
8
|
+
| Directed graph (web of notes) | `## Links` with wikilinks | Obsidian navigation |
|
|
9
|
+
| Tag-based taxonomy | `tags` in frontmatter | Topic grouping |
|
|
10
|
+
|
|
11
|
+
INDEX.md is a structure note (hub), not a table of contents.
|
|
12
|
+
|
|
13
|
+
## Folgezettel IDs
|
|
14
|
+
|
|
15
|
+
IDs encode lineage using Luhmann's alternating convention:
|
|
16
|
+
- Root intents: sequential numbers (`1`, `2`, `3`...)
|
|
17
|
+
- Branches alternate letters and numbers: `1` → `1a` → `1a1` → `1a1a` → ...
|
|
18
|
+
- Multiple branches from the same parent increment: `1a`, `1b`, `1c`
|
|
19
|
+
- IDs are assigned at creation time and never change
|
|
20
|
+
|
|
21
|
+
## Knowledge Graph
|
|
22
|
+
|
|
23
|
+
`sources` and `chain` form the directed knowledge graph:
|
|
24
|
+
- `sources` = the direct ascendant(s) this intent was created from / emerged from the
|
|
25
|
+
lifecycle of (formation, not topic similarity); a DAG (acyclic), strong must-load context.
|
|
26
|
+
- `chain` = forward continuations AND related-but-not-spawned successors it leads to; a
|
|
27
|
+
directed graph that may cycle, lighter contributory context.
|
|
28
|
+
- Reciprocity is one-directional: every `sources` edge has a reciprocal `chain` entry (I1),
|
|
29
|
+
but `chain` may carry relational entries with no reciprocal `sources` (I2), so the graph is
|
|
30
|
+
NOT strictly double-linked.
|
|
31
|
+
|
|
32
|
+
## Dual-Mode
|
|
33
|
+
|
|
34
|
+
This store works in two modes without modification:
|
|
35
|
+
- **Obsidian** (human, offline) — browse, link, write markdown
|
|
36
|
+
- **Programmatic** (any agent) — read/write via filesystem operations
|
|
37
|
+
|
|
38
|
+
No special tooling required for either mode.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
name: plastic
|
|
2
|
+
name: plastic-managing-index
|
|
3
3
|
description: Use after creating, completing, or abandoning intents, when the user says "index" or "organize", or when INDEX.md needs maintenance. Curates the INDEX.md structure note.
|
|
4
4
|
---
|
|
5
5
|
|
|
@@ -64,3 +64,7 @@ When 3+ intents share tags but aren't in a cluster, suggest a new cluster headin
|
|
|
64
64
|
Intents with no links (empty `sources`, empty `chain`, no `## Links` entries, not in any cluster) should be flagged for curation.
|
|
65
65
|
|
|
66
66
|
REQUIRED BACKGROUND: linking-intents (for understanding connection types and Zettelkasten theory)
|
|
67
|
+
|
|
68
|
+
## References
|
|
69
|
+
|
|
70
|
+
- Read `references/zettelkasten-linking.md` for the three structural layers (Folgezettel, directed graph, tags) and how they map to INDEX.md organization
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
## Three Connection Types (Ranked)
|
|
10
10
|
|
|
11
11
|
1. **Direct links** (strongest) — wikilinks in `## Links` section
|
|
12
|
-
2. **Sources/Chain** (knowledge graph)
|
|
12
|
+
2. **Sources/Chain** (knowledge graph): `sources` = direct ascendants this was created from (formation, acyclic, must-load); `chain` = forward continuations and related successors (may cycle, lighter context). See `docs/concepts/how-plastic-sources-and-chains-intents.md` for the full model.
|
|
13
13
|
3. **Tags** (weakest) — shared tags, `project-<name>` for project membership
|
|
14
14
|
|
|
15
15
|
## When to Create a Cluster
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
---
|
|
2
|
-
name: plastic
|
|
2
|
+
name: plastic-releasing
|
|
3
3
|
description: Use when merging a feature branch to main and tagging a release, bumping the version, or when the user says "release", "tag", or "ship it"
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Releasing
|
|
7
7
|
|
|
8
8
|
Merge, bump, tag, push. Annotated tags with changelogs. Semantic versioning.
|
|
9
|
-
Project configuration drives the workflow
|
|
9
|
+
Project configuration drives the workflow - no hardcoded assumptions.
|
|
10
10
|
|
|
11
11
|
## Checklist
|
|
12
12
|
|
|
@@ -18,6 +18,7 @@ Project configuration drives the workflow — no hardcoded assumptions.
|
|
|
18
18
|
- [ ] Create annotated tag
|
|
19
19
|
- [ ] Push to remote with tags
|
|
20
20
|
- [ ] Run post-push actions (GitHub release, npm publish, etc.)
|
|
21
|
+
- [ ] Verify release sync (npm dist-tag, GitHub "Latest", git tag all show the new version)
|
|
21
22
|
- [ ] Complete active intent
|
|
22
23
|
|
|
23
24
|
## Workflow
|
|
@@ -26,9 +27,9 @@ Project configuration drives the workflow — no hardcoded assumptions.
|
|
|
26
27
|
|
|
27
28
|
Before anything else, determine which project we are releasing and load its config.
|
|
28
29
|
|
|
29
|
-
1. Read `~/.plastic/projects.yml`
|
|
30
|
+
1. Read `~/.plastic/projects.yml` - find the project whose `path` matches the current working directory.
|
|
30
31
|
2. Extract the project slug (the key under `projects:`).
|
|
31
|
-
3. Read `~/.plastic/projects/{slug}/project.yml`
|
|
32
|
+
3. Read `~/.plastic/projects/{slug}/project.yml` - this contains the `release:` section.
|
|
32
33
|
|
|
33
34
|
Expected `release:` keys in project.yml:
|
|
34
35
|
|
|
@@ -37,8 +38,9 @@ release:
|
|
|
37
38
|
verify: "bin/rails test" # command to run before release
|
|
38
39
|
version_file: package.json # single file containing the version
|
|
39
40
|
version_files: # multiple files (overrides version_file)
|
|
40
|
-
- package.json
|
|
41
|
-
- .claude-plugin/plugin.json
|
|
41
|
+
- package.json # list EVERY file carrying the version;
|
|
42
|
+
- .claude-plugin/plugin.json # they must all be bumped together or they drift
|
|
43
|
+
- .claude-plugin/marketplace.json
|
|
42
44
|
tag_format: "v{{version}}" # tag naming pattern ({{version}} is replaced)
|
|
43
45
|
on_green: # actions to run after push succeeds
|
|
44
46
|
- github_release
|
|
@@ -47,7 +49,7 @@ release:
|
|
|
47
49
|
on_red: stop # what to do if verification fails
|
|
48
50
|
```
|
|
49
51
|
|
|
50
|
-
**Fallback:** If no project.yml exists or it has no `release:` section, fall back to asking the user for each step
|
|
52
|
+
**Fallback:** If no project.yml exists or it has no `release:` section, fall back to asking the user for each step - verify command, version files, tag format, and post-push actions.
|
|
51
53
|
|
|
52
54
|
### 1. Verify Tests Pass
|
|
53
55
|
|
|
@@ -77,7 +79,7 @@ Pre-1.0: minor bumps for features, patch for fixes. No major until stable.
|
|
|
77
79
|
|
|
78
80
|
```bash
|
|
79
81
|
git checkout main
|
|
80
|
-
git merge <branch-name> --no-ff -m "feat: merge intent [ID]
|
|
82
|
+
git merge <branch-name> --no-ff -m "feat: merge intent [ID] - [description]"
|
|
81
83
|
```
|
|
82
84
|
|
|
83
85
|
Always `--no-ff` to preserve branch history in the merge commit.
|
|
@@ -94,7 +96,7 @@ Update the version string in each file, then commit:
|
|
|
94
96
|
|
|
95
97
|
```bash
|
|
96
98
|
git add <version-files>
|
|
97
|
-
git commit -m "chore: bump version to X.Y.Z
|
|
99
|
+
git commit -m "chore: bump version to X.Y.Z - [one-line summary]"
|
|
98
100
|
```
|
|
99
101
|
|
|
100
102
|
### 5. Create Annotated Tag
|
|
@@ -113,7 +115,7 @@ git log $(git describe --tags --abbrev=0)..HEAD --oneline --no-merges | grep -E
|
|
|
113
115
|
Create the tag with a multi-line message:
|
|
114
116
|
|
|
115
117
|
```bash
|
|
116
|
-
git tag -a <tag-name> -m "<tag-name>
|
|
118
|
+
git tag -a <tag-name> -m "<tag-name> - [release name]
|
|
117
119
|
|
|
118
120
|
- [changelog bullet points from feat/fix/refactor commits]"
|
|
119
121
|
```
|
|
@@ -133,23 +135,37 @@ Read `release.on_green` from project.yml. This is a list of actions to run after
|
|
|
133
135
|
Create a GitHub release from the tag:
|
|
134
136
|
|
|
135
137
|
```bash
|
|
136
|
-
gh release create <tag-name> --title "<tag-name>
|
|
138
|
+
gh release create <tag-name> --title "<tag-name> - [release name]" --latest --generate-notes --notes-start-tag <previous-tag>
|
|
137
139
|
```
|
|
138
140
|
|
|
141
|
+
`--latest` is REQUIRED. Pre-release (alpha/beta) tags are NOT auto-promoted to the "Latest"
|
|
142
|
+
badge by GitHub, so without it the Releases page keeps showing an older version as Latest while
|
|
143
|
+
the newest tag sits below it (a real sync drift we hit on the alpha line). Pass `--latest` on
|
|
144
|
+
every release so the newest one always carries the badge. Do NOT pass `--prerelease` unless you
|
|
145
|
+
specifically want the release hidden from Latest.
|
|
146
|
+
|
|
139
147
|
For the first release (no previous tag), write notes manually with `--notes "..."` instead.
|
|
140
148
|
|
|
141
149
|
#### `npm_publish`
|
|
142
150
|
|
|
143
|
-
Publish the package to npm:
|
|
151
|
+
Publish the package to npm with the appropriate dist-tag:
|
|
144
152
|
|
|
145
153
|
```bash
|
|
146
|
-
#
|
|
154
|
+
# Alpha pre-release (version contains -alpha):
|
|
147
155
|
npm publish --access public --tag alpha
|
|
148
156
|
|
|
149
|
-
#
|
|
157
|
+
# Beta pre-release (version contains -beta):
|
|
158
|
+
npm publish --access public --tag beta
|
|
159
|
+
|
|
160
|
+
# Stable release (no pre-release suffix, >= 1.0.0):
|
|
150
161
|
npm publish --access public
|
|
151
162
|
```
|
|
152
163
|
|
|
164
|
+
The dist-tag is derived from the version string in `package.json`:
|
|
165
|
+
- Contains `-alpha` → `--tag alpha`
|
|
166
|
+
- Contains `-beta` → `--tag beta`
|
|
167
|
+
- No pre-release suffix → no `--tag` flag (publishes to `latest`)
|
|
168
|
+
|
|
153
169
|
#### Other values
|
|
154
170
|
|
|
155
171
|
If `on_green` contains an action not listed above, log it:
|
|
@@ -160,6 +176,22 @@ If `on_green` contains an action not listed above, log it:
|
|
|
160
176
|
|
|
161
177
|
If `on_green` is empty or absent: skip post-push actions entirely.
|
|
162
178
|
|
|
179
|
+
#### Verify sync (always, after the post-push actions)
|
|
180
|
+
|
|
181
|
+
A release is not done until all three surfaces show the SAME newest version. Confirm:
|
|
182
|
+
|
|
183
|
+
```bash
|
|
184
|
+
npm view <package> dist-tags # channel tag (alpha/beta/latest) -> new version
|
|
185
|
+
gh release list --limit 1 # newest release is the new tag AND marked "Latest"
|
|
186
|
+
git ls-remote --tags origin | grep <tag-name> # the tag reached the remote
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
If the GitHub "Latest" badge is on an older tag (the common drift), fix it without re-releasing:
|
|
190
|
+
|
|
191
|
+
```bash
|
|
192
|
+
gh release edit <tag-name> --latest
|
|
193
|
+
```
|
|
194
|
+
|
|
163
195
|
### 8. Complete Active Intent
|
|
164
196
|
|
|
165
197
|
A release IS a delivery. The active intent that drove this work must be completed as part of the release process. This is NOT optional.
|
|
@@ -171,25 +203,50 @@ A release IS a delivery. The active intent that drove this work must be complete
|
|
|
171
203
|
c. Update `## Insights` with final observations
|
|
172
204
|
d. Move from `## Active` to `## Completed` in INDEX.md (with today's date)
|
|
173
205
|
e. Update clusters to show `_(completed)_`
|
|
174
|
-
3. Auto-commit: `cd ~/.plastic && git add . && git commit -m "feat: complete intent <ID>
|
|
206
|
+
3. Auto-commit: `cd ~/.plastic && git add . && git commit -m "feat: complete intent <ID> - delivered in <tag-name>"`
|
|
175
207
|
|
|
176
|
-
**If no active intent exists for this release**, that itself is a problem
|
|
208
|
+
**If no active intent exists for this release**, that itself is a problem - work happened outside the intent system. Log it and move on, but flag it.
|
|
177
209
|
|
|
178
210
|
## Conventions
|
|
179
211
|
|
|
180
|
-
- **Annotated tags only**
|
|
181
|
-
- **Tag format**
|
|
182
|
-
- **Tag message**
|
|
183
|
-
- **Commit prefixes**
|
|
184
|
-
- **
|
|
185
|
-
- **
|
|
212
|
+
- **Annotated tags only** - `git tag -a`, never lightweight tags
|
|
213
|
+
- **Tag format** - driven by `release.tag_format` in project.yml (default: `vX.Y.Z`)
|
|
214
|
+
- **Tag message** - first line: `<tag> - [short name]`, then blank line, then bullet changelog
|
|
215
|
+
- **Commit prefixes** - `feat:`, `fix:`, `refactor:`, `chore:`, `docs:` (conventional commits)
|
|
216
|
+
- **Hyphens, never em-dashes** - in tag names, release titles, and commit messages, use a hyphen (`-`). Never an em-dash.
|
|
217
|
+
- **Latest badge** - always `gh release create --latest`; the newest release must carry GitHub's "Latest" badge.
|
|
218
|
+
- **Version files** - driven by project.yml; list and bump EVERY file carrying the version (they drift otherwise)
|
|
219
|
+
- **Verify sync** - after pushing, confirm npm dist-tag, GitHub "Latest", and the git tag all show the new version
|
|
220
|
+
- **Branch cleanup** - delete merged feature branches: `git branch -d <branch>`
|
|
221
|
+
|
|
222
|
+
## Promotion
|
|
223
|
+
|
|
224
|
+
To promote a release across channels, use `--promote`:
|
|
225
|
+
|
|
226
|
+
```bash
|
|
227
|
+
plastic-releasing --promote beta # promotes current alpha → beta
|
|
228
|
+
plastic-releasing --promote stable # promotes current beta → stable
|
|
229
|
+
```
|
|
230
|
+
|
|
231
|
+
**Promotion rules:**
|
|
232
|
+
- Linear only: alpha → beta → stable. Cannot skip channels.
|
|
233
|
+
- `--promote beta`: reads version from `package.json`, changes `-alpha.N` suffix
|
|
234
|
+
to `-beta.1`, publishes with `--tag beta`.
|
|
235
|
+
- `--promote stable`: reads version from `package.json`, strips pre-release suffix
|
|
236
|
+
entirely (e.g., `1.0.0-beta.3` → `1.0.0`), publishes to `latest`.
|
|
237
|
+
- Version files are bumped and committed as in a normal release.
|
|
238
|
+
- An annotated tag is created for the promoted version.
|
|
186
239
|
|
|
187
240
|
## Retroactive Tagging
|
|
188
241
|
|
|
189
242
|
For repos without prior tags, tag historical releases:
|
|
190
243
|
|
|
191
244
|
```bash
|
|
192
|
-
git tag -a v0.1.0 <commit-sha> -m "v0.1.0
|
|
245
|
+
git tag -a v0.1.0 <commit-sha> -m "v0.1.0 - [description]"
|
|
193
246
|
```
|
|
194
247
|
|
|
195
248
|
Use `git log --oneline` to find the right commits (look for version bump commits or major feature merges).
|
|
249
|
+
|
|
250
|
+
## References
|
|
251
|
+
|
|
252
|
+
- Read `references/deprecations.md` for the full deprecation process, severity levels, deprecations.yml schema, and dismissal rules when adding or managing deprecations
|