@sassywares/skills 0.11.21 → 0.11.22
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/CONCEPTS.md +1 -1
- package/package.json +1 -1
- package/skills/sassy-cycle/SKILL.md +7 -6
- package/skills/sassy-plan/SKILL.md +4 -4
package/CONCEPTS.md
CHANGED
|
@@ -22,7 +22,7 @@ A skill that mostly coordinates. It reads compact results, writes briefs, and av
|
|
|
22
22
|
|
|
23
23
|
## Change tier
|
|
24
24
|
|
|
25
|
-
The depth of quality work a unit needs: declared per plan phase with `**Review:**`, passed as a `review:` token, or detected by `sassy-cycle` from the work. `logic` is core code and anything that can change runtime behavior; `surface` is everything that is not core code — docs, Markdown, comments, copy/i18n, tests, fixtures, formatting; `none` is machine-generated or mechanical churn. A declared `surface` or `none` is promoted to `logic` when the
|
|
25
|
+
The depth of quality work a unit needs: declared per plan phase with `**Review:**`, passed as a `review:` token, or detected by `sassy-cycle` from the work. `logic` is core code and anything that can change runtime behavior; `surface` is everything that is not core code — docs, Markdown, comments, copy/i18n, tests, fixtures, formatting; `none` is machine-generated or mechanical churn. A declared `surface` or `none` is promoted to `logic` when the changed files include core code; never the reverse, and a worker's `Runtime behavior: yes` does not promote on its own, because tests and tooling can exercise behavior without changing it.
|
|
26
26
|
|
|
27
27
|
## Dogfood
|
|
28
28
|
|
package/package.json
CHANGED
|
@@ -46,18 +46,19 @@ Every worker brief this cycle dispatches — implement and fix — carries:
|
|
|
46
46
|
- Tests only for the files the worker changed and the existing tests that directly regress them. The full suite runs once at the final gate.
|
|
47
47
|
- A hard timeout around long-running commands, for example `timeout 300 bunx vitest run path/to/file.test.ts`; a hung command is killed and reported.
|
|
48
48
|
- Stop and report a blocker to the orchestrator after one failed retry, with the exact command and error, instead of looping on the same failure.
|
|
49
|
-
- Report the files it changed and state `Runtime behavior: yes` or `Runtime behavior: no` — whether the change alters what the product does.
|
|
49
|
+
- Report the files it changed and state `Runtime behavior: yes` or `Runtime behavior: no` — whether the change alters what the product does for a user. Running the product in a test or tooling does not count.
|
|
50
50
|
- For a **simplification**: behavior stays identical — same output for every input, same errors, same side effects and ordering. Never remove validation, error handling that prevents data loss, authorization, escaping, or accessibility code to make something simpler, and never weaken a test to make it pass. A simplification that cannot meet that is skipped and reported with the reason.
|
|
51
51
|
|
|
52
52
|
## Steps
|
|
53
53
|
|
|
54
54
|
1. **Recon (optional).** If the work is large or its location is unclear, run `sassy-scout` first and pass the grounding brief path into the work brief. Skip when the brief is already precise.
|
|
55
55
|
2. **Implement.** Dispatch a `worker` with the work brief, the intent reference, and the plan path if there is one, carrying the worker brief constraints above. For independent chunks, batch them as **parallel** `worker` tasks in one call (max 8). The worker reads whatever it needs itself.
|
|
56
|
-
3. **Resolve the tier.** An explicit tier from Inputs wins, unless the work contradicts it: a `surface` or `none` unit whose files include core
|
|
57
|
-
- any core-code path
|
|
58
|
-
- only human-authored docs, copy, comments, tests, or
|
|
56
|
+
3. **Resolve the tier.** An explicit tier from Inputs wins, unless the work contradicts it: a `surface` or `none` unit whose files include a core-code path is promoted to `logic`. Never demote. The worker's `Runtime behavior: yes` is not a promotion on its own — tests, fixtures, and tooling often exercise runtime behavior without changing it. Without an explicit tier, classify from the worker's file report:
|
|
57
|
+
- any core-code path → `logic`
|
|
58
|
+
- only human-authored docs, copy, comments, tests, fixtures, or tooling → `surface`
|
|
59
59
|
- only generated, vendored, lock, or formatting files → `none`
|
|
60
|
-
- mixed surface and generated files → `surface`; the human-authored part decides
|
|
60
|
+
- mixed surface and generated files → `surface`; the human-authored part decides
|
|
61
|
+
- anything else → `logic` if the worker reported `Runtime behavior: yes`, otherwise `surface`.
|
|
61
62
|
|
|
62
63
|
Core code is what ships and runs: product source, UI and styles, schemas and migrations, public contracts, and behavior-changing config. Report the resolved tier as `declared`, `detected`, or `promoted` in the result.
|
|
63
64
|
4. **Quality (by tier).** Dispatch in one **parallel** call where the tier has more than one agent:
|
|
@@ -98,7 +99,7 @@ Notes: <anything the caller needs>
|
|
|
98
99
|
| Orchestrator only | Never edit code or read source in the main context. Delegate. |
|
|
99
100
|
| Tier decides agents | `logic` → simplifier + reviewer + validator (validator only with an intent reference); `surface` → reviewer; `none` → none. |
|
|
100
101
|
| One fix pass, no verify | At most one work pass after the quality agents. Never re-review the fix. |
|
|
101
|
-
| Never demote | A declared `surface` or `none` promotes to `logic` when the
|
|
102
|
+
| Never demote | A declared `surface` or `none` promotes to `logic` only when the changed files include core code. |
|
|
102
103
|
| Parallel where independent | Independent work chunks → parallel workers. The tier's quality agents run in one parallel call. |
|
|
103
104
|
| Only fixes block | Simplifications are applied or reported but never make a run `blocked`; reviewer suggestions go to the caller's gate for the user to pick and are never applied automatically. |
|
|
104
105
|
| Simplifier runs once | Only at the `logic` tier. It never runs on rework. |
|
|
@@ -51,8 +51,8 @@ Only when the read-back is confirmed with zero open items — and no `out:` was
|
|
|
51
51
|
```text
|
|
52
52
|
Settled. Pick one:
|
|
53
53
|
1. Write the plan — <artifacts.plans>/<slug>.md
|
|
54
|
-
2. Start working via
|
|
55
|
-
3. Implement and ship it via
|
|
54
|
+
2. Start working via sassy-work
|
|
55
|
+
3. Implement and ship it via sassy-lfg
|
|
56
56
|
```
|
|
57
57
|
|
|
58
58
|
The user must pick explicitly. There is no default and no auto-selection. If no human is present to answer (rare, e.g. a scripted invocation), take option 2 and say so; every branch you resolved without the user is recorded as an assumption, never as a decision.
|
|
@@ -63,8 +63,8 @@ Read `references/plan-format.md` and write the plan, including the per-phase QA
|
|
|
63
63
|
|
|
64
64
|
```text
|
|
65
65
|
Plan written to <absolute path>. Pick one, or stop here:
|
|
66
|
-
1. Start working via
|
|
67
|
-
2. Implement and ship it via
|
|
66
|
+
1. Start working via sassy-work
|
|
67
|
+
2. Implement and ship it via sassy-lfg
|
|
68
68
|
```
|
|
69
69
|
|
|
70
70
|
Wait for the user. A pick loads that skill with the plan path as its argument — `sassy-work` runs the next phase, `sassy-lfg` runs every phase and ships. Anything else, or no human present, ends here with the plan written. Do not recommend one, and do not implement or commit before a pick.
|