@sassywares/skills 0.11.20 → 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 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 work touches core code; never the reverse.
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sassywares/skills",
3
- "version": "0.11.20",
3
+ "version": "0.11.22",
4
4
  "description": "Lean, explicit-invocation Agent Skills for shipping fast: plan, work, review, validate, ship.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -34,7 +34,7 @@ argument-hint: "<work brief | findings> [review:logic|surface|none] [intent refe
34
34
  - **Work brief** — what to build or fix, concretely.
35
35
  - **Intent reference** — how conformance is judged: a plan path + phase, or root-cause findings. Optional; without one the validator is skipped.
36
36
  - **Scope hint** — files or areas, optional.
37
- - **Review tier** — `logic` (default), `surface`, or `none`. Callers pass the plan phase's `**Review:**` line or a `review:` token. When neither exists, step 3 detects it from the work's own report.
37
+ - **Review tier** — `logic`, `surface`, or `none`. Callers pass the plan phase's `**Review:**` line or a `review:` token. When neither exists, step 3 detects it from the work's own report; when the report cannot decide, the tier is `logic`.
38
38
  - **Findings** — rework only: fixes to work that already exists — failing QA rows, a standalone skill's picked findings, PR threads, goal gaps. Each is a **fix** unless the caller marks it a **simplification**. Given findings, skip steps 1–5 and start at step 6 with the findings as its lists.
39
39
 
40
40
  A change the user asks for at a gate is **not** a finding. It is new work: the caller runs a new cycle with that change as the work brief, so tier detection, review, and one fix pass apply to it like any other unit.
@@ -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 code, or whose worker reported `Runtime behavior: yes`, is promoted to `logic`. Never demote. Without an explicit tier, classify from the worker's file report:
57
- - any core-code path, or `Runtime behavior: yes` → `logic`
58
- - only human-authored docs, copy, comments, tests, or fixtures → `surface`
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 work touches core code or reports changed runtime behavior. |
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. |
@@ -13,7 +13,7 @@ argument-hint: "<plan path | brief> [branch:infer|current|new] [worktree:on|off]
13
13
 
14
14
  **The orchestrator does not do work.** Read the plan, dispatch `sassy-cycle` per phase, then `sassy-ship`. Never edit application code. Keep the main context small — all heavy work happens in subagents.
15
15
 
16
- **Config.** Resolve `.sassywares/config.yaml` (nearest, walking up) per the `sassy-setup` skill's `references/config.md`. Precedence: explicit token > session instruction > config > skill default. Plans live under `artifacts.plans`; `git.repo` decides how the close-out persists; `commit.branch` decides whether the run needs its own branch, and a `worktree:on|off` token answers the checkout question `branching.md` asks at step 6. The token outranks config but never widens what `worktrees.enabled` allows.
16
+ **Config.** Resolve `.sassywares/config.yaml` (nearest, walking up) per the `sassy-setup` skill's `references/config.md`. Precedence: explicit token > session instruction > config > skill default. Plans live under `artifacts.plans`; `git.repo` decides how the close-out persists; `commit.branch` decides whether the run needs its own branch, and a `worktree:on|off` token answers the checkout question the `sassy-setup` skill's `references/branching.md` asks at step 6. The token outranks config but never widens what `worktrees.enabled` allows.
17
17
 
18
18
  **Harness.** Loading another skill, dispatching an agent, and any command you hand the user follow the `sassy-setup` skill's `references/harness.md`. Read it once per run, before the first of those.
19
19
 
@@ -57,7 +57,7 @@ A brief has no QA table, so its gate is code approval alone. Never invent, enabl
57
57
  5. **Resolve the gate.** Four outcomes:
58
58
  - **Code approved and every QA row passes** → mark the rows `Done` (`Manual` with the user's notes, `Auto` with the verdict and run id), mark the phases `Done`, then run the close-out below.
59
59
  - **Code approved, `Manual` rows still pending** → tick nothing, mark nothing `Done`, commit nothing, ship nothing. Report which rows are outstanding and how to resume (invoke `sassy-lfg <plan>` in the harness's syntax), and stop.
60
- - **Changes requested** → a new cycle per affected phase: load `sassy-cycle` with that phase's requested changes as the work brief and as the intent reference; the plan path and phase stay as context. The cycle detects the change's tier and runs that tier's agents. When every new cycle is `done`, re-prove the `Auto` rows and present the gate again; a `blocked` cycle marks its phase `Blocked` and stops the run. If a QA row also failed, name it in the work brief as an additional requirement. Change requests have no cap — each one is the user's call.
60
+ - **Changes requested** → a new cycle per affected phase: load `sassy-cycle` with that phase's requested changes as the work brief and the plan path and phase, as amended by those changes, as the intent reference. The cycle detects the change's tier and runs that tier's agents. When every new cycle is `done`, re-prove the `Auto` rows and present the gate again; a `blocked` cycle marks its phase `Blocked` and stops the run. If a QA row also failed, name it in the work brief as an additional requirement. Change requests have no cap — each one is the user's call.
61
61
  - **A QA row fails, with no change requested** → a rework cycle per affected phase: load `sassy-cycle` with that phase's failing rows as findings and the plan path and phase as the intent reference. When every rework is `done`, present the gate again; a `blocked` rework marks its phase `Blocked` and stops the run. A row that fails again after its rework is `Blocked` with the reason and stops the run.
62
62
  6. **Close-out.** On both gates passing, load the `sassy-ship` skill and follow it. Do only the close-out steps the user approves. Babysit options (`merge:on|off`, `delete-branch:on|off`) are forwarded through `sassy-ship` to `sassy-babysit`. The branch from step 2 already carries the work, so ship commits and opens the PR on it; ship never creates the branch. Under `commit.branch: current` ship commits and pushes the checked-out branch to its upstream and skips the PR, `hooks.pr.*`, babysit, and merge.
63
63
 
@@ -67,7 +67,7 @@ When the argument is not a plan path, the brief is the one phase:
67
67
 
68
68
  1. Resolve the branch exactly as the plan path does — the `sassy-setup` skill's `references/branching.md`, this run's `branch:` and `worktree:` tokens — before the cycle runs.
69
69
  2. Run one `sassy-cycle` with the brief as the work brief, its decisions / done-when as the intent reference, and this run's `review:` token as the tier. Do not split it into multiple phases.
70
- 3. Present the code approval gate with no QA checklist, and wait. Changes requested → a new cycle with the changes as the work brief and as the intent reference, the brief's decisions / done-when staying as context, then this gate again; `blocked` stops.
70
+ 3. Present the code approval gate with no QA checklist, and wait. Changes requested → a new cycle with the changes as the work brief and the brief's decisions / done-when, as amended by those changes, as the intent reference, then this gate again; `blocked` stops.
71
71
  4. On code approval, run `sassy-ship`. Do not run `sassy-plan` or write a plan file.
72
72
 
73
73
  ## Hard rules
@@ -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 /sassy-work
55
- 3. Implement and ship it via /sassy-lfg
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 /sassy-work
67
- 2. Implement and ship it via /sassy-lfg
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.
@@ -22,7 +22,7 @@ Every phase names the depth of quality work it needs with a `**Review:**` line.
22
22
  - **`surface`** — everything that is not core code: docs, Markdown, comments, copy/i18n strings, tests, fixtures, formatting. Reviewer only, then one fix pass.
23
23
  - **`none`** — machine-generated or mechanical: lockfiles, generated or vendored files, formatter churn, mass renames. No review; the worker's own checks are the record.
24
24
 
25
- Default to `logic` when unsure. The tier is a declaration, not a trap: a `surface` phase that turns out to touch core code is promoted to `logic` by the executor, so declaring it optimistically costs nothing. Omit the line only when the phase is plainly `logic`.
25
+ Default to `logic` when unsure. The tier is a declaration, not a trap: a `surface` phase that turns out to touch core code is promoted to `logic` by the executor, so declaring it optimistically costs nothing. The template shows `logic`; a missing line is read as `logic`.
26
26
 
27
27
  ## QA — part of the gate
28
28
 
@@ -66,7 +66,7 @@ Always gate before committing. The cycle has already fixed its findings in one w
66
66
  6. **Resolve the gate.** Four outcomes, nothing in between:
67
67
  - **Code approved and every QA row passes** → go to step 7.
68
68
  - **Code approved, `Manual` rows still pending** → record that code is approved but leave the phase `In progress`, tick nothing, commit nothing, and report that the phase is waiting on manual QA plus the command that resumes it.
69
- - **Changes requested** → a new cycle: load `sassy-cycle` with the requested changes as the work brief and as the intent reference; the plan path and phase stay as context. The cycle detects the change's tier and runs that tier's agents. On `done`, re-prove the `Auto` rows (step 4) and present the gate again from step 5; on `blocked`, mark the phase `Blocked` and stop. If a QA row also failed, name it in the work brief as an additional requirement. Change requests have no cap — each one is the user's call.
69
+ - **Changes requested** → a new cycle: load `sassy-cycle` with the requested changes as the work brief and the plan path and phase, as amended by those changes, as the intent reference. The cycle detects the change's tier and runs that tier's agents. On `done`, re-prove the `Auto` rows (step 4) and present the gate again from step 5; on `blocked`, mark the phase `Blocked` and stop. If a QA row also failed, name it in the work brief as an additional requirement. Change requests have no cap — each one is the user's call.
70
70
  - **A QA row fails, with no change requested** → a rework cycle: load `sassy-cycle` with the failing rows as findings and the plan path and phase as the intent reference. On `done`, re-prove the `Auto` rows (step 4) and present the gate again from step 5; on `blocked`, mark the phase `Blocked` and stop. A row that fails again after its rework is `Blocked` with the reason and stops the phase.
71
71
  7. **Commit the phase.** On both gates passing, first mark the phase's QA rows `Done` — `Manual` rows with the user's notes, `Auto` rows with the verdict and run id from the report — and the phase `Done` in the Phase tracking table, then persist according to `git.repo`:
72
72
 
@@ -83,9 +83,9 @@ Always gate before committing. The cycle has already fixed its findings in one w
83
83
 
84
84
  When the argument is not a plan path, it is one settled brief:
85
85
 
86
- 1. Resolve the branch exactly as the plan path does — `references/branching.md`, this run's `branch:` and `worktree:` tokens — before the cycle runs. Every brief dispatched from there names the absolute `WT_PATH` when the decision took a checkout.
86
+ 1. Resolve the branch exactly as the plan path does — the `sassy-setup` skill's `references/branching.md`, this run's `branch:` and `worktree:` tokens — before the cycle runs. Every brief dispatched from there names the absolute `WT_PATH` when the decision took a checkout.
87
87
  2. Run one `sassy-cycle` with the brief as the work brief, its decisions / done-when as the intent reference, and this run's `review:` token as the tier. Do not split it into multiple cycles.
88
- 3. Present the code approval gate with no QA checklist, and wait. Changes requested → a new cycle with the changes as the work brief and as the intent reference, the brief's decisions / done-when staying as context, then this gate again; `blocked` stops.
88
+ 3. Present the code approval gate with no QA checklist, and wait. Changes requested → a new cycle with the changes as the work brief and the brief's decisions / done-when, as amended by those changes, as the intent reference, then this gate again; `blocked` stops.
89
89
  4. On code approval, persist the brief's changes the same way the plan path does: a `sassy-commit` delegation with `branch:current` in a remote repo, or the workspace snapshot in a workspace.
90
90
  5. Stop and report. Shipping is a separate step (`sassy-ship`), or `sassy-lfg` would have built and shipped it. Never create or update a plan file.
91
91