@sassywares/skills 0.14.0 → 0.16.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.
Files changed (73) hide show
  1. package/README.md +58 -34
  2. package/package.json +1 -2
  3. package/skills/sassy-babysit/SKILL.md +3 -0
  4. package/skills/sassy-commit/SKILL.md +4 -1
  5. package/skills/sassy-commit-push-pr/SKILL.md +4 -1
  6. package/skills/sassy-compound/SKILL.md +4 -1
  7. package/skills/sassy-compound/references/concepts.md +8 -2
  8. package/skills/sassy-compound/references/templates.md +6 -0
  9. package/skills/sassy-cycle/SKILL.md +4 -1
  10. package/skills/sassy-debug/SKILL.md +3 -0
  11. package/skills/sassy-docs/SKILL.md +3 -0
  12. package/skills/sassy-docs/references/handbook-format.md +6 -0
  13. package/skills/sassy-docs/references/handbook.md +6 -0
  14. package/skills/sassy-docs/references/review.md +11 -2
  15. package/skills/sassy-dogfood/SKILL.md +3 -0
  16. package/skills/sassy-dogfood/references/check.md +6 -0
  17. package/skills/sassy-dogfood/references/discover.md +6 -0
  18. package/skills/sassy-dogfood/references/run.md +6 -0
  19. package/skills/sassy-goal/SKILL.md +18 -12
  20. package/skills/sassy-goal/references/check.md +7 -1
  21. package/skills/sassy-goal/references/close.md +11 -4
  22. package/skills/sassy-goal/references/goal-format.md +17 -4
  23. package/skills/sassy-goal/references/next.md +15 -9
  24. package/skills/sassy-goal/references/revise.md +25 -0
  25. package/skills/sassy-goal/references/write.md +8 -0
  26. package/skills/sassy-handoff/SKILL.md +3 -0
  27. package/skills/sassy-handoff/references/read.md +6 -0
  28. package/skills/sassy-handoff/references/write.md +6 -0
  29. package/skills/sassy-overview/SKILL.md +3 -0
  30. package/skills/sassy-overview/references/identify.md +6 -0
  31. package/skills/sassy-plan/SKILL.md +30 -23
  32. package/skills/sassy-plan/references/interview.md +8 -2
  33. package/skills/sassy-plan/references/plan-format.md +40 -11
  34. package/skills/sassy-plan/references/revision-format.md +86 -0
  35. package/skills/sassy-plan/references/sketches.md +6 -0
  36. package/skills/sassy-review/SKILL.md +3 -0
  37. package/skills/sassy-scout/SKILL.md +3 -0
  38. package/skills/sassy-setup/SKILL.md +22 -11
  39. package/skills/sassy-setup/assets/agents-md.md +71 -0
  40. package/skills/sassy-setup/assets/roster +1 -1
  41. package/skills/sassy-setup/references/anchors.md +128 -0
  42. package/skills/sassy-setup/references/branching.md +19 -10
  43. package/skills/sassy-setup/references/check.md +20 -2
  44. package/skills/sassy-setup/references/config.md +22 -12
  45. package/skills/sassy-setup/references/dogfood.md +6 -0
  46. package/skills/sassy-setup/references/harness.md +6 -0
  47. package/skills/sassy-setup/references/init.md +10 -0
  48. package/skills/sassy-setup/references/plan-resolution.md +53 -0
  49. package/skills/sassy-setup/references/scaffold-header.md +6 -0
  50. package/skills/sassy-setup/references/workspace.md +29 -0
  51. package/skills/sassy-setup/references/worktree.md +6 -0
  52. package/skills/sassy-setup/scripts/detect.sh +282 -31
  53. package/skills/sassy-ship/SKILL.md +8 -5
  54. package/skills/sassy-ship/references/brief.md +6 -0
  55. package/skills/sassy-ship/references/plan.md +7 -1
  56. package/skills/sassy-ship/references/slice.md +6 -0
  57. package/skills/sassy-simplify/SKILL.md +3 -0
  58. package/skills/sassy-skill/SKILL.md +3 -0
  59. package/skills/sassy-skill/references/create.md +6 -0
  60. package/skills/sassy-skill/references/retune.md +6 -0
  61. package/skills/sassy-skill/references/verify.md +6 -0
  62. package/skills/sassy-strategy/SKILL.md +69 -0
  63. package/skills/sassy-strategy/references/check.md +87 -0
  64. package/skills/sassy-strategy/references/strategy-format.md +90 -0
  65. package/skills/sassy-strategy/references/write.md +186 -0
  66. package/skills/sassy-validate/SKILL.md +4 -1
  67. package/skills/sassy-work/SKILL.md +66 -68
  68. package/skills/sassy-worktree/SKILL.md +3 -0
  69. package/skills/sassy-worktree/references/create.md +6 -0
  70. package/skills/sassy-worktree/references/list.md +6 -0
  71. package/skills/sassy-worktree/references/remove.md +6 -0
  72. package/CONCEPTS.md +0 -178
  73. package/skills/sassy-lfg/SKILL.md +0 -92
package/README.md CHANGED
@@ -13,6 +13,7 @@ It covers the whole path from a rough idea to a shipped PR, and from a bug repor
13
13
  - [Skills](#skills)
14
14
  - [Project config](#project-config)
15
15
  - [Dogfooding a project](#dogfooding-a-project)
16
+ - [The routing block](#the-routing-block)
16
17
  - [Working in parallel](#working-in-parallel)
17
18
  - [Extending the pipeline](#extending-the-pipeline)
18
19
  - [Workflows](#workflows)
@@ -31,7 +32,8 @@ It covers the whole path from a rough idea to a shipped PR, and from a bug repor
31
32
 
32
33
  - **Lean.** Skills are indexes and workflows, not documentation dumps. Detail moves into `references/` only when it is conditionally needed.
33
34
  - **Explicit.** Every skill but `sassy-ship` runs only when you invoke it; ship may be started by the agent once you approve the work, and its review gate still waits. No silent background behavior.
34
- - **Controlled.** Code approval, QA — manual and proved — and ship review are visible gates that all run in sequence. Mode tokens are opt-in per skill: `mode:manual` (default) and `mode:auto` on `sassy-ship` and `sassy-compound`, `mode:return` on `sassy-review`, `sassy-simplify`, and `sassy-validate`, and `mode:review`/`mode:handbook` on `sassy-docs`; work, lfg, and debug take no mode; `sassy-goal` takes one mode per step of a goal (`write`, `next`, `check`, `close`).
35
+ - **Controlled.** Code approval, QA — manual and proved — and ship review are visible gates that all run in sequence. Mode tokens are opt-in per skill: `mode:manual` (default) and `mode:auto` on `sassy-ship` and `sassy-compound`, `mode:return` on `sassy-review`, `sassy-simplify`, and `sassy-validate`, `mode:review`/`mode:handbook` on `sassy-docs`, and `mode:write`/`mode:check` on `sassy-strategy`; work takes `mode:ship`/`mode:phase` and debug takes none; `sassy-goal` takes one mode per step of a goal (`write`, `next`, `check`, `close`).
36
+ - **Anchored, never vetoed.** Direction is written down once, in a strategy at `artifacts.strategy` (default `docs/strategy.md`), and read only where direction is decided — a plan, a goal, docs review, and setup's check. It changes the question a run asks and never blocks one: a missing or `draft` strategy is a note, not a gate, and no executor reads it.
35
37
  - **Reliable.** Work runs through `sassy-cycle` with isolated subagents for implementation, review, simplification, validation, and fixes — at the depth the change tier needs.
36
38
  - **Context-efficient.** Orchestrators coordinate; subagents do the heavy reading and return compact results.
37
39
  - **Never surprising.** Nothing is committed just because a step finished. Shipping is its own phase.
@@ -50,30 +52,44 @@ That discussion settles the work, then offers a pick:
50
52
 
51
53
  ```text
52
54
  Settled. Pick one:
53
- 1. Keep the plan — docs/plans/<type>-<slug>.md
55
+ 1. Done for now — docs/plans/<type>-<slug>/plan.md
54
56
  2. Start working via /sassy-work
55
- 3. Implement and ship it via /sassy-lfg
56
57
  ```
57
58
 
58
- The plan file is written **while** you talk, not after: `/sassy-plan` opens `docs/plans/<type>-<slug>.md` as `status: draft` with every section heading in place, and appends each decision as its branch settles — so a compaction or a dead session costs the conversation, not the ledger. `status` flips to `active` at the confirmed read-back, before the picker ever appears, and Pick 1 keeps it. Frontmatter is `type`, `status`, `created`, and `updated` (plus `qa: off` when you ask for a plan with no QA gates); the body carries intent, decisions, and per-phase QA tables. Picks 2 and 3 delete the plan and carry the brief in context instead. Keeping it asks again with just the other two — start working on it, or implement and ship it — or you stop there and run it later, one phase at a time:
59
+ The plan is written **while** you talk, not after: `/sassy-plan` opens `docs/plans/<type>-<slug>/plan.md` as `status: draft` — with an empty `revisions/` beside it — with every section heading in place, and appends each decision as its branch settles, so a compaction or a dead session costs the conversation, not the ledger. `status` flips to `active` at the confirmed read-back, before the picker ever appears, and it never moves: the path you were handed at the start is the path it stays at. Frontmatter is `type`, `status`, `created`, and `updated` (plus `qa: off` when you ask for a plan with no QA gates); the body carries intent, decisions, and per-phase QA tables. **No pick deletes the plan** — pick 2 hands its path to the executor, so what happens next is recorded in `revisions/` instead of in a conversation that ends. Stopping there leaves an honest `active` plan you can run whenever you like: the whole plan and then the close-out,
59
60
 
60
61
  ```text
61
- /sassy-work docs/plans/feat-add-workspace-invitations.md
62
+ /sassy-work docs/plans/feat-add-workspace-invitations/plan.md
62
63
  ```
63
64
 
64
- Or the whole plan through one session:
65
+ or one phase at a time,
65
66
 
66
67
  ```text
67
- /sassy-lfg docs/plans/feat-add-workspace-invitations.md
68
+ /sassy-work docs/plans/feat-add-workspace-invitations/plan.md mode:phase
68
69
  ```
69
70
 
70
- For small work that does not need a plan document, choose 2 or 3 at the picker, or invoke the executor directly with the brief:
71
+ or a single phase by number, or a plan cut short and resumed later:
72
+
73
+ ```text
74
+ /sassy-work docs/plans/feat-add-workspace-invitations/plan.md phase:2
75
+ ```
76
+
77
+ A plan written before this shape existed is still a flat `docs/plans/<type>-<slug>.md`, and every skill reads both — a reader never converts one, and the first write to a flat plan migrates it in that commit.
78
+
79
+ ### Revisions — the plan never loses what it used to say
80
+
81
+ Every turn of feedback **after** the read-back is one file in `revisions/`, `R<nn>-<slug>.md`, holding what you asked in your own words and the atomic items it splits into. Each item is `amend` (the outcome was right, the detail was not), `gap` (the plan and the code disagree — recorded, never quietly corrected), or `scope` (a phase is added, or marked `Withdrawn — R03`, never deleted).
82
+
83
+ `plan.md` stays the one thing an executor reads. A line in it changes only through a revision that quotes the text it replaced, and a revision moves from `open` to `applied` (or `dropped`) in exactly one edit — the same edit that fills in the commit that applied it. After that it is never reopened or edited: a later change to the same thing is a new file with `supersedes: [R03.2]`. So the plan reads as one current document, and the reasoning behind any line is one file away, still standing.
84
+
85
+ For small work that does not need a plan document, invoke the executor directly with the brief:
71
86
 
72
87
  ```text
73
88
  /sassy-work "Add a copy-link button to the invite modal"
74
- /sassy-lfg "Add a copy-link button to the invite modal"
75
89
  ```
76
90
 
91
+ A brief is run once and never revised: the first change you ask for promotes it to a real one-phase plan, and the change lands there as a revision, so nothing worth keeping is left in a conversation.
92
+
77
93
  Debugging:
78
94
 
79
95
  ```text
@@ -86,12 +102,11 @@ Debugging:
86
102
 
87
103
  | Skill | What it does |
88
104
  |---|---|
89
- | **`sassy-plan`** | Grills you one question at a time through every branch of the work — pushing back, assuming nothing, sketching UI on request — until nothing is open, then offers three choices: keep the plan, start working via `sassy-work`, or implement and ship via `sassy-lfg`. The file is written as you talk, `status: draft` until the read-back is confirmed. |
90
- | **`sassy-goal`** | Runs a project too big for one plan — a migration, an epic — as a goal split into slices that each ship something complete. `mode:write` (default) grills and writes the goal, `mode:next` plans the next slice via `sassy-plan`, `mode:check` validates a shipped slice and carries its lessons forward, `mode:close` verifies the whole goal. You run every step. The goal is `draft` while it is grilled and `active` only after a confirmed read-back; `next`, `check`, `close`, and a slice's `sassy-plan` all refuse a draft. |
105
+ | **`sassy-plan`** | Grills you one question at a time through every branch of the work — pushing back, assuming nothing, sketching UI on request — until nothing is open, then offers two choices: stop there, or start working via `sassy-work`. The plan is written as you talk, `status: draft` until the read-back is confirmed — and a later `mode:revise` records each new turn as a revision instead of overwriting what the plan used to say. |
106
+ | **`sassy-goal`** | Runs a project too big for one plan — a migration, an epic — as a goal split into slices that each ship something complete. `mode:write` (default) grills and writes the goal, `mode:revise` records one turn of feedback on a settled goal as a revision, `mode:next` plans the next slice via `sassy-plan`, `mode:check` validates a shipped slice and carries its lessons forward, `mode:close` verifies the whole goal. You run every step. The goal is `draft` while it is grilled and `active` only after a confirmed read-back; `next`, `check`, `close`, and a slice's `sassy-plan` all refuse a draft. |
91
107
  | **`sassy-scout`** | Grounds an area on demand and writes the shared grounding brief other agents read instead of re-exploring. |
92
108
  | **`sassy-overview`** | Answers what a project is and how it runs — stack, runner, install, up, down, test, compose, env, wired — by inspecting files, read-only and with the source file for every value. `unknown` when the project hasn't said, and exit `3` so a caller branches instead of guessing. |
93
- | **`sassy-work`** | Executes exactly one plan phase, or one in-context brief, commits after code approval, then stops — the next phase is a run you start. A brief stops before ship. |
94
- | **`sassy-lfg`** | Executes every phase of a plan, or one in-context brief, then closes out via `sassy-ship` after code approval. |
109
+ | **`sassy-work`** | The only executor. `mode:ship` (default) runs every phase not `Done` and closes out via `sassy-ship`; `mode:phase` runs one phase and stops at its gate. Both commit at every phase boundary and gate on code approval plus the plan's QA rows, and feedback at a gate becomes a plan revision rather than a pile of edits. |
95
110
  | **`sassy-worktree`** | One checkout per branch, each with its own derived namespace, so two agents can work in one repo — taken when you ask, never because the config allows it. `create`, `list`, `remove`: cut a checkout, see what exists and what is safe to delete, or delete one. |
96
111
  | **`sassy-cycle`** | Runs one unit of work through a tiered loop: implement → simplify + review + validate for `logic`, review for `surface`, nothing for mechanical → one fix pass. No verify. Also reworks finished work from failed QA rows and picked findings. |
97
112
  | **`sassy-debug`** | Diagnoses a bug, gates the fix, fixes via `sassy-work` (cycle, code approval, commit), then ships. Debug takes no mode and always leaves ship's review gate in place unless you invoke ship yourself with `mode:auto`. |
@@ -106,7 +121,7 @@ Debugging:
106
121
  | **`sassy-validate`** | Checks whether work matches a plan or stated intent, then closes the gaps you pick. |
107
122
  | **`sassy-dogfood`** | Uses the product the way a user does to prove a change actually works at runtime — runs the project's stored procedure, writes a report with a verdict, and in `mode:discover` builds or repairs that procedure from what really worked. Tooling-agnostic: it uses whatever your harness has connected and never installs a runner. |
108
123
 
109
- Each does one job and takes `mode:manual` (default: ask which to fix), `mode:auto` (fix without asking), or `mode:return` (report only). Fixes run through `sassy-cycle` as one work pass. Inside work, lfg, and debug, the cycle runs the agents its change tier needs.
124
+ Each does one job and takes `mode:manual` (default: ask which to fix), `mode:auto` (fix without asking), or `mode:return` (report only). Fixes run through `sassy-cycle` as one work pass. Inside work and debug, the cycle runs the agents its change tier needs.
110
125
 
111
126
  `sassy-dogfood` takes its own modes instead: `run` (default), `discover`, and `check`.
112
127
 
@@ -123,6 +138,7 @@ Each does one job and takes `mode:manual` (default: ask which to fix), `mode:aut
123
138
 
124
139
  | Skill | What it does |
125
140
  |---|---|
141
+ | **`sassy-strategy`** | `mode:write` (default) grounds in the repo, shows a model to correct, interviews with pushback, stress-tests three to five metrics, and writes the project's strategy — Purpose, Positioning, Users, Boundaries, Key metrics, Tracks — one section at a time. `mode:check` gives a read-only fit verdict on a plan, goal, proposal, or diff: it quotes the strategy line and offers three outs, never a veto. |
126
142
  | **`sassy-compound`** | Records a solved problem as a durable repo learning. Takes `mode:manual` or `mode:auto`; ship passes `mode:auto` after its own gate. |
127
143
  | **`sassy-docs`** | `mode:review` (default) audits every document against a change — README, concepts, `AGENTS.md`, plans, handbooks — and fixes or names each stale claim. `mode:handbook` writes a plain-English team handbook with mermaid diagrams. |
128
144
 
@@ -131,20 +147,21 @@ Each does one job and takes `mode:manual` (default: ask which to fix), `mode:aut
131
147
  | Skill | What it does |
132
148
  |---|---|
133
149
  | **`sassy-skill`** | Creates, retunes, or restructures Agent Skills. |
134
- | **`sassy-setup`** | Detects the project topology and writes `.sassywares/config.yaml`; installs the suite and the sassy-agents subagents, globally or per project, when missing; installs the snapshot tooling for a multi-repo workspace; commits the files it wrote. `mode:check` verifies an existing setup, including a project install's pin, and reports a config that has fallen behind the shipped template with the `--sync --write` merge that closes it. |
150
+ | **`sassy-setup`** | Detects the project topology and writes `.sassywares/config.yaml`; installs the suite and the sassy-agents subagents, globally or per project, when missing; writes the routing block into `AGENTS.md`; installs the snapshot tooling for a multi-repo workspace; commits the files it wrote. `mode:check` verifies an existing setup, including a project install's pin, and reports a config that has fallen behind the shipped template with the `--sync --write` merge that closes it. |
135
151
 
136
152
  ## Project config
137
153
 
138
154
  Every skill resolves one file, `.sassywares/config.yaml`, found by walking up from where you are. It is optional — no file means the documented defaults.
139
155
 
140
156
  ```yaml
141
- artifacts: # where plans, learnings, handbooks, and the glossary live
157
+ artifacts: # where plans, learnings, handbooks, and the anchors live
142
158
  plans: docs/plans
143
159
  solutions: docs/solutions
144
160
  handbooks: docs/handbooks
145
- concepts: CONCEPTS.md
161
+ concepts: docs/concepts.md
162
+ strategy: docs/strategy.md
146
163
  knowledge:
147
- read: [docs/solutions, CONCEPTS.md] # searched for prior learnings
164
+ read: [docs/solutions, docs/concepts.md] # searched for prior learnings
148
165
  write: true # false = this project takes no learnings
149
166
  git:
150
167
  repo: origin # a remote name | workspace (repos below, none here) | none (no git)
@@ -312,6 +329,14 @@ In a `workspace` there is exactly one ignore file, and it is not at the root:
312
329
  └── mirror/ the side clone, excluded by the script itself
313
330
  ```
314
331
 
332
+ ### The routing block
333
+
334
+ Setup also writes `AGENTS.md` — the file an agent reads before anyone tells it a suite exists — with a routing block between `<!-- sassywares:skills v1 -->` markers: what the suite is, where each anchor lives, and which gates a run keeps. A project with no `AGENTS.md` gets the whole file from the shipped template; a project that already has one gets the block appended, and no other line of that file changes. Every path in it comes from the resolved `artifacts.*` values, so a project that moved its plans, its glossary, or its strategy is described correctly, and the strategy route is named whether or not the file has been written yet, with `/sassy-strategy` beside it. It is `AGENTS.md` only: no per-harness copy, and a `CLAUDE.md` is never touched.
335
+
336
+ The write is idempotent — a second run that finds the same block leaves the file alone — and any difference, a hand-edited row or an older marker version, is shown as a diff and asked about, never replaced blind. The version in the marker is what makes a stale block reportable: `mode:check` notes a missing or out-of-date block and calls it a note, never drift, and `--sync --write` is what replaces it in place, byte for byte outside the markers. `--no-agents` scopes that run to the config and `--agents` to the block alone, so a project that declines one half can still fix the other.
337
+
338
+ In a `workspace` the block goes at the workspace root always, and into a nested repo only when that repo already keeps an `AGENTS.md`: setup writes both lists into the report, and never invents an `AGENTS.md` in a repo that never had one. Nothing commits it — the root isn't a repo, so the block rides the next snapshot.
339
+
315
340
  ## Workflows
316
341
 
317
342
  ### From idea to ship
@@ -320,34 +345,33 @@ In a `workspace` there is exactly one ignore file, and it is not at the root:
320
345
  flowchart LR
321
346
  A[Idea] --> B[sassy-plan]
322
347
  B --> C[Discussion]
323
- C --> D{3-option picker}
324
- D -->|1. plan document| E["docs/plans/<type>-<slug>.md"]
348
+ C --> D{2-option picker}
349
+ D -->|1. done for now| E["docs/plans/<type>-<slug>/plan.md"]
325
350
  D -->|2. start working| F[sassy-work]
326
- D -->|3. implement and ship| G[sassy-lfg]
327
351
  E -->|then: start working| F
328
- E -->|then: implement and ship| G
329
352
  F --> H[sassy-cycle]
330
- G --> H
331
353
  H --> I{Code approval}
332
- I -->|changes| H
354
+ I -->|changes: a plan revision| H
333
355
  I --> Q{Manual QA}
334
356
  Q -->|fails| H
335
- Q -->|passes, via sassy-work| J[Commit on the run branch and stop]
336
- Q -->|passes, via sassy-lfg| K[sassy-ship]
357
+ Q -->|passes, mode:phase| J[Commit on the run branch and stop]
358
+ Q -->|passes, mode:ship| K[sassy-ship]
337
359
  K --> L{Ship review}
338
360
  L -->|approve or mode:auto| M[Commit, PR, babysit]
339
361
  ```
340
362
 
341
- Option 1 keeps the durable plan — phased slices, QA tables, and a change tier per phase. Options 2 and 3 delete the draft plan the interview wrote and keep the whole job as one settled in-context brief.
363
+ Stopping at the picker keeps the durable plan — phased slices, QA tables, a change tier per phase, and a `revisions/` log of every turn after the read-back. Starting hands that path to the executor; nothing is ever deleted, and no change is made to the plan without a revision recording what it replaced.
342
364
 
343
- `sassy-work` handles one phase and stops after its commit. `sassy-lfg` drains the whole plan in one session. Both delegate to `sassy-cycle` and stop at one gate carrying code approval plus the QA checklist; nothing is `Done`, committed, or shipped until both pass. `Manual` rows are yours to run. `Auto` rows are proved before the gate by `sassy-dogfood`, and a failed one goes back through the cycle as a finding. With an in-context brief there are no QA rows, so the gate is code approval alone.
365
+ There is one executor. `sassy-work` in `mode:ship` (default) runs every phase not `Done` and then closes out; in `mode:phase` it runs one phase and stops after that phase's commit. Both share one process — the mode only moves the gate — and both commit at every phase boundary, before any gate, so a revision's diff is exactly the revision. Both delegate to `sassy-cycle` and gate on code approval plus the QA checklist; no phase turns `Done` before both pass. `Manual` rows are yours to run. `Auto` rows are proved before the gate by `sassy-dogfood`, and a failed one goes back through the cycle as a finding. With an in-context brief there are no QA rows, so the gate is code approval alone.
344
366
 
345
367
  Inside the cycle, the **change tier** decides the depth: a `logic` change runs the simplifier, reviewer, and validator in parallel; a `surface` change — docs, copy, tests, fixtures — runs the reviewer; a mechanical change skips review. Every finding is then fixed in one work pass — criticals, warnings, validator gaps, and simplifications together — and the cycle does not re-review the fix. Findings the worker leaves open are reported at the gate, simplifications never block, and the reviewer's suggestions are listed for you to pick. A change you request at the gate is new work: a fresh cycle at its detected tier, so it gets the review its change deserves, then the gate comes back. QA rows that fail on their own are the one-pass rework.
346
368
 
347
- The branch is cut once, before the first change, by `sassy-work` or `sassy-lfg` — never at commit time — and `sassy-ship` never creates it. `commit.branch` (default `new`) decides whether the run cuts one at all; see [Branching](#branching).
369
+ The branch is cut once, before the first change, by `sassy-work` — never at commit time — and `sassy-ship` never creates it. `commit.branch` (default `new`) decides whether the run cuts one at all; see [Branching](#branching).
348
370
 
349
371
  `sassy-ship` is the close-out. It summarizes what is about to ship and waits, unless the caller passed `mode:auto`.
350
372
 
373
+ The project's direction enters before the first question. `sassy-plan` reads the strategy — `artifacts.strategy`, default `docs/strategy.md` — before the grill and again at its non-goals sweep; `sassy-goal` reads it when it writes a goal, `sassy-docs mode:review` reports on it, and `sassy-setup` notes whether it exists and offers the interview when you set a project up. A quoted strategy line the work would meet becomes a question with three outs — change the work, make it a track through `sassy-strategy`, or override it, recorded in the plan with the line, its section, the date, and your reason. It is never a veto: no quote, no conflict, and no run fails for a strategy that is absent or `draft` — a draft is reported as unsettled and read as context only. The rules live in the `sassy-setup` skill's [`references/anchors.md`](skills/sassy-setup/references/anchors.md).
374
+
351
375
  ### From goal to done
352
376
 
353
377
  ```mermaid
@@ -356,7 +380,7 @@ flowchart LR
356
380
  B --> C[goal.md + slice table]
357
381
  C --> D[sassy-goal next]
358
382
  D --> E[sassy-plan: slice plan]
359
- E --> F[sassy-work / sassy-lfg]
383
+ E --> F[sassy-work]
360
384
  F --> G[sassy-ship]
361
385
  G --> H[sassy-goal check]
362
386
  H -->|more slices, after merge| D
@@ -364,9 +388,9 @@ flowchart LR
364
388
  I --> J[Goal done, rides the last PR]
365
389
  ```
366
390
 
367
- A goal is a folder under `artifacts.plans` — `<type>-<slug>/` — holding `goal.md` and one plan per started slice (`01-<slice>.md`, `02-…`). `mode:write` grounds every affected domain once, grills only goal-level branches — slice boundaries and order, coexistence, the goal's done-when, non-goals — and pushes back on any slice that would leave a half-built layer. Each slice's plan is grilled only when `mode:next` starts it, with the goal's decisions and every carry-forward entry already settled; before that grill, and once the previous slice's merge is confirmed, `mode:next` runs the project's `before_slice` steps. The slice then runs the usual work or lfg → ship path on its own branch (`feat/<goal>/<NN-slice>`, with `<goal>` the goal folder minus its `<type>-` prefix — `feat-offline-reads/` → `feat/offline-reads/02-cached-list`); ship marks the slice plan `done` and the slice `Shipped`, and babysits the PR without merging, so the check can still land in it. Ship never closes the goal itself — `goal.md`'s `status: done` is `mode:close`'s to write, after every slice has been checked.
391
+ A goal is a folder under `artifacts.plans` — `<type>-<slug>/` — holding `goal.md` and one plan per started slice (`01-<slice>/plan.md`, `02-<slice>/plan.md`, each with its own `revisions/`). `mode:write` grounds every affected domain once, grills only goal-level branches — slice boundaries and order, coexistence, the goal's done-when, non-goals — and pushes back on any slice that would leave a half-built layer. Each slice's plan is grilled only when `mode:next` starts it, with the goal's decisions and every carry-forward entry already settled; before that grill, and once the previous slice's merge is confirmed, `mode:next` runs the project's `before_slice` steps. The slice then runs the usual work → ship path on its own branch (`feat/<goal>/<NN-slice>`, with `<goal>` the goal folder minus its `<type>-` prefix — `feat-offline-reads/` → `feat/offline-reads/02-cached-list`); ship marks the slice plan `done` and the slice `Shipped`, and babysits the PR without merging, so the check can still land in it. Ship never closes the goal itself — `goal.md`'s `status: done` is `mode:close`'s to write, after every slice has been checked.
368
392
 
369
- `mode:check` runs on the slice branch before the PR merges: it validates the whole slice plan against the branch's commits, and every gap is fixed now, deferred to a named later slice, or accepted with a reason. It appends the slice's carry-forward entry, marks it `Done` with its PR link, and pushes `goal.md` into the same PR. After the last slice, `mode:close` checks the goal's done-when against the whole tree and marks the goal `done` in the last PR, then runs the project's `after_close` steps once the status is persisted. One slice is in flight at a time, and nothing chains on its own.
393
+ `mode:check` runs on the slice branch before the PR merges: it validates the whole slice plan against the branch's commits, and every gap is fixed now, deferred to a named later slice, or accepted with a reason. It appends the slice's carry-forward entry, marks it `Done` with its PR link, and pushes `goal.md` into the same PR. After the last slice, `mode:close` checks the goal's done-when against the whole tree and marks the goal `done` in the last PR, then runs the project's `after_close` steps once the status is persisted. One slice is in flight at a time, and nothing chains on its own. `mode:write` reads the strategy at the start, and `mode:close` asks once whether the goal changed what the product is for — a yes is an offer to revise a section through `sassy-strategy`, never an edit by the goal run.
370
394
 
371
395
  ### From bug to ship
372
396
 
@@ -403,7 +427,7 @@ The fix gate offers four options:
403
427
 
404
428
  | Control | When it applies |
405
429
  |---|---|
406
- | Code approval | Always on for `sassy-work` and `sassy-lfg`. |
430
+ | Code approval | Always on for `sassy-work`. |
407
431
  | Review tier | Per plan phase (`**Review:**`) or a `review:` token, else detected by the cycle. `logic` runs simplify + review + validate; `surface` runs review; `none` skips review. The cycle fixes once and never re-reviews. |
408
432
  | Gate changes | A change you request while the gate is open is new work: a fresh cycle at its detected tier, then the gate again. Failing QA rows alone are a one-pass rework. |
409
433
  | QA | Part of the same gate, and only when the plan document has QA tables. `Manual` rows are yours; `Auto` rows are settled by a `sassy-dogfood` report. A phase is `Done` only when both pass. |
@@ -414,7 +438,7 @@ The artifact decides QA: a plan document carries QA tables that gate phase compl
414
438
 
415
439
  ## Branching
416
440
 
417
- `sassy-work`, `sassy-lfg`, and `sassy-debug` decide the branch **before they touch code**, from `commit.branch` (default `new`) compared against `base_map`. On `new`, the run cuts a branch and every commit — phases, docs, ship — lands on it, so no change ever exists on a base branch. A run that is already on a branch that is not a base reuses it, which is how a resumed run, a second `sassy-work` for the next phase, or `sassy-lfg` after `sassy-work` converges instead of cutting a second branch.
441
+ `sassy-work` and `sassy-debug` decide the branch **before they touch code**, from `commit.branch` (default `new`) compared against `base_map`. On `new`, the run cuts a branch and every commit — phases, docs, ship — lands on it, so no change ever exists on a base branch. A run that is already on a branch that is not a base reuses it, which is how a resumed run, a second `sassy-work`, or a `mode:phase` run after a `mode:ship` one converges instead of cutting a second branch.
418
442
 
419
443
  With `worktrees.enabled`, a run **offers** a worktree when it cuts a branch and
420
444
  takes one only if you say yes: the branch and its checkout appear together, the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sassywares/skills",
3
- "version": "0.14.0",
3
+ "version": "0.16.0",
4
4
  "description": "Lean, explicit-invocation Agent Skills for shipping fast: plan, work, review, validate, ship.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -25,7 +25,6 @@
25
25
  "files": [
26
26
  "skills",
27
27
  "README.md",
28
- "CONCEPTS.md",
29
28
  "LICENSE"
30
29
  ],
31
30
  "publishConfig": {
@@ -1,4 +1,7 @@
1
1
  ---
2
+ suite: sassy-skills
3
+ artifact: skill
4
+ generated_by: sassy-babysit
2
5
  name: sassy-babysit
3
6
  description: >-
4
7
  Babysits an open GitHub PR until it looks merge-ready. Use when asked to watch
@@ -1,4 +1,7 @@
1
1
  ---
2
+ suite: sassy-skills
3
+ artifact: skill
4
+ generated_by: sassy-commit
2
5
  name: sassy-commit
3
6
  description: >-
4
7
  Create a git commit with a Conventional Commits message that states the outcome. Use when asked
@@ -31,7 +34,7 @@ Treat the reads as a snapshot; re-read branch and staged set right before commit
31
34
 
32
35
  **Config.** Resolve `.sassywares/config.yaml` (nearest, walking up) per the `sassy-setup` skill's `references/config.md`. `commit.branch` supplies the default.
33
36
 
34
- **Who may pass a token.** Precedence is explicit token > session instruction > config > skill default, and a token counts as explicit only when the **caller** supplied it — the user typed it, or an earlier gate of the same run authorized it. A skill must never pass its own default as a token: that promotes a default over the project's config and makes `commit.branch` unreachable. When the entry skill (`sassy-work`, `sassy-lfg`, `sassy-debug`) has already resolved the branch through `sassy-setup`'s `references/branching.md`, it passes `branch:current`, because the branch exists and the work belongs on it.
37
+ **Who may pass a token.** Precedence is explicit token > session instruction > config > skill default, and a token counts as explicit only when the **caller** supplied it — the user typed it, or an earlier gate of the same run authorized it. A skill must never pass its own default as a token: that promotes a default over the project's config and makes `commit.branch` unreachable. When the entry skill (`sassy-work`, `sassy-debug`) has already resolved the branch through `sassy-setup`'s `references/branching.md`, it passes `branch:current`, because the branch exists and the work belongs on it.
35
38
 
36
39
  **Branch option.** `branch:current|new [<name>]`. `current` commits on the checked-out branch. `new` cuts a branch from `origin/<base>` — `<base>` is `base_map` from the repo's own config when it has one, else `repos[<dir>]` from the workspace config, else the probed base **confirmed with the user** — named `<name>` when given, else from the change. Use `new` only when no branch has been cut yet; the entry skills cut at the start of a run, so a `new` from them means the cut was skipped. `sassy-commit-push-pr` forwards its own `branch` choice here.
37
40
 
@@ -1,4 +1,7 @@
1
1
  ---
2
+ suite: sassy-skills
3
+ artifact: skill
4
+ generated_by: sassy-commit-push-pr
2
5
  name: sassy-commit-push-pr
3
6
  description: >-
4
7
  Commit, push, and open a PR, then babysit it by default. Use when asked to
@@ -40,7 +43,7 @@ gh pr list --head <branch> --state open --json url,number
40
43
 
41
44
  Only an exit-0 empty list means "no open PR". A non-zero exit means **unknown** — resolve auth/connectivity first, never treat it as "none". Probe output is a snapshot; re-check branch/remote/PR state right before the push and the PR create.
42
45
 
43
- **Branch policy.** The run's branch is normally already decided: `sassy-work` and `sassy-lfg` cut it at the start via the `sassy-setup` skill's `references/branching.md`, and `sassy-ship` forwards `branch:current`. So the default here is to commit on the checked-out branch when `state` is not `on-base`. Only when it *is* `on-base` or `detached` — a bare invocation with no orchestrator above it — create a feature branch named from the work and say so. `branch:current` or a plain request keeps the checked-out branch (that run still pushes and opens the PR; only `commit.branch: current` in the config skips it, in `sassy-ship`). Never ask whether to branch. Forward the resolved choice to `sassy-commit`: `branch:new <name>` only when this run creates a branch, else `branch:current`.
46
+ **Branch policy.** The run's branch is normally already decided: `sassy-work` cut it at the start via the `sassy-setup` skill's `references/branching.md`, and `sassy-ship` forwards `branch:current`. So the default here is to commit on the checked-out branch when `state` is not `on-base`. Only when it *is* `on-base` or `detached` — a bare invocation with no orchestrator above it — create a feature branch named from the work and say so. `branch:current` or a plain request keeps the checked-out branch (that run still pushes and opens the PR; only `commit.branch: current` in the config skips it, in `sassy-ship`). Never ask whether to branch. Forward the resolved choice to `sassy-commit`: `branch:new <name>` only when this run creates a branch, else `branch:current`.
44
47
 
45
48
  **Base branch.** `<base>` is `base_map[<current head>]` from the nearest config — a nested repo's own config wins over the workspace's `repos[<dir>]` — falling back to `base_map["*"]`, else the probed remote HEAD **confirmed with the user before use**. The map is the reason a release PR targets `main` while the work sits on `staging`, with no token passed. An explicit `base:<branch>` token wins over all of them — use it when this PR targets something other than the day-to-day base, such as a release PR aimed at `main` while work lands on `staging`. **Never use `defaultBranchRef` as the PR base when the config names one.** Pass it explicitly: `gh pr create --base <base>`.
46
49
 
@@ -1,4 +1,7 @@
1
1
  ---
2
+ suite: sassy-skills
3
+ artifact: skill
4
+ generated_by: sassy-compound
2
5
  name: sassy-compound
3
6
  description: >-
4
7
  Document a solved problem as a durable repo learning. Use after a bug is fixed,
@@ -41,7 +44,7 @@ If several problems were solved, run once per learning. Never batch them into on
41
44
  1. **Identify the learning.** Extract the problem and the verified solution from the conversation. Ground every behavior claim against the code (read the defining line) or soften/attribute it. Redact secrets.
42
45
  2. **Classify.** Bug track (a defect fixed) or knowledge track (a durable insight or pattern). Pick a `category` and a descriptive `slug`. If the exact path exists and covers the same problem, update it (refresh `updated:`); otherwise create it.
43
46
  3. **Write the doc.** Read `references/templates.md` now and use the matching template.
44
- 4. **Concepts.** If the learning surfaced a term a new engineer would need defined, read `references/concepts.md` now and follow its rules to add or refine it in the configured concepts file. Create the file if absent. Skip cleanly when nothing qualifies.
47
+ 4. **Concepts.** If the learning surfaced a term a new engineer would need defined, read `references/concepts.md` now and follow its rules to add or refine it in the configured concepts file. Default `docs/concepts.md`; if the config is silent and a root `CONCEPTS.md` exists, that root file is the glossary. Create the file if absent. Skip cleanly when nothing qualifies.
45
48
  5. **AGENTS.md pointer.** If a project instruction file exists (`AGENTS.md` or `CLAUDE.md`) and does not already mention the configured solutions path or concepts file, add one short line pointing at them. Edit only; never create the file. With `mode:auto`, do it silently; with `mode:manual` (default), ask.
46
49
  6. **Report.** Path, create vs update, concepts touched, and whether an AGENTS.md pointer was added.
47
50
 
@@ -1,6 +1,12 @@
1
- # CONCEPTS.md rules
1
+ ---
2
+ suite: sassy-skills
3
+ artifact: reference
4
+ generated_by: sassy-compound
5
+ ---
2
6
 
3
- Read this before touching `CONCEPTS.md`.
7
+ # Concepts file rules
8
+
9
+ Read this before touching the glossary — the file `artifacts.concepts` names in the config. Default `docs/concepts.md`; if the config is silent and a root `CONCEPTS.md` exists, that root file is the glossary. Never assume a filename.
4
10
 
5
11
  - A term qualifies when a new engineer would need it defined to follow conversations, tickets, or code, and it is a concept in its own right (not a property of one already defined).
6
12
  - One-sentence definition: what it means here, and what makes it distinct from its neighbors.
@@ -1,3 +1,9 @@
1
+ ---
2
+ suite: sassy-skills
3
+ artifact: reference
4
+ generated_by: sassy-compound
5
+ ---
6
+
1
7
  # Learning document templates
2
8
 
3
9
  Read this before writing a learning doc.
@@ -1,11 +1,14 @@
1
1
  ---
2
+ suite: sassy-skills
3
+ artifact: skill
4
+ generated_by: sassy-cycle
2
5
  name: sassy-cycle
3
6
  description: >-
4
7
  Run one unit of work through a tiered quality loop using subagents: implement,
5
8
  then simplify + review + validate for logic changes, review for surface
6
9
  changes, or nothing for mechanical ones, fix once, and return. No verify pass.
7
10
  Also reworks existing work from a list of findings (failed QA rows, a
8
- standalone review's picks, PR threads, goal gaps). Used by sassy-work, sassy-lfg,
11
+ standalone review's picks, PR threads, goal gaps). Used by sassy-work,
9
12
  sassy-review, sassy-simplify, sassy-validate, sassy-babysit, and sassy-goal.
10
13
  Never commits. Built for
11
14
  context and token efficiency — the orchestrator only writes briefs and reads
@@ -1,4 +1,7 @@
1
1
  ---
2
+ suite: sassy-skills
3
+ artifact: skill
4
+ generated_by: sassy-debug
2
5
  name: sassy-debug
3
6
  description: >-
4
7
  Diagnose a bug to root cause, get approval for the proposed fix, then fix it
@@ -1,4 +1,7 @@
1
1
  ---
2
+ suite: sassy-skills
3
+ artifact: skill
4
+ generated_by: sassy-docs
2
5
  name: sassy-docs
3
6
  description: >-
4
7
  Keep a project's documents true after the code moves, and write the team's
@@ -1,3 +1,9 @@
1
+ ---
2
+ suite: sassy-skills
3
+ artifact: reference
4
+ generated_by: sassy-docs
5
+ ---
6
+
1
7
  # Handbook format, diagrams, and voice
2
8
 
3
9
  Read this before writing a handbook.
@@ -1,3 +1,9 @@
1
+ ---
2
+ suite: sassy-skills
3
+ artifact: reference
4
+ generated_by: sassy-docs
5
+ ---
6
+
1
7
  # Mode: handbook — write the team's handover
2
8
 
3
9
  Read this before writing a handbook. The shape, the diagrams, and the voice rules live in `references/handbook-format.md`; read that too, and only when you are actually writing.
@@ -1,3 +1,9 @@
1
+ ---
2
+ suite: sassy-skills
3
+ artifact: reference
4
+ generated_by: sassy-docs
5
+ ---
6
+
1
7
  # Mode: review — keep the documents true
2
8
 
3
9
  Read this before auditing anything. It runs on a scope the caller named — a branch or diff range, a plan, a PR, a topic, or a file list — and it reports and fixes documents. It never changes behavior.
@@ -6,7 +12,7 @@ Read this before auditing anything. It runs on a scope the caller named — a br
6
12
 
7
13
  The documents to check are the project's declared ones plus everything the change invalidated:
8
14
 
9
- - `artifacts.plans`, `artifacts.solutions`, `artifacts.handbooks`, `artifacts.concepts`, from the config.
15
+ - `artifacts.plans`, `artifacts.solutions`, `artifacts.handbooks`, `artifacts.concepts`, from the config, plus `artifacts.strategy` — reported on, never edited (see the strategy row below).
10
16
  - `README.md` and `AGENTS.md` at the repo root, when they describe behavior rather than intent.
11
17
  - The plan, goal, or handbook that drove the work, when the caller named one or a scope points at it.
12
18
 
@@ -29,9 +35,12 @@ One question per claim: **is this still true, and does it still describe everyth
29
35
  | Examples | A worked example that would now fail if a reader ran it |
30
36
  | Skill and capability tables | A skill added, renamed, or removed and a table that still lists the old set |
31
37
  | Workflow narrative | Prose describing the old order of steps, or a diagram that contradicts the body |
38
+ | Strategy anchor | A `draft` strategy, one whose `updated` is far behind the work, or a Track with no commits behind it — report-only |
32
39
 
33
40
  A document silent about a user-visible change fails this audit exactly like a wrong sentence does. Silence is the commoner bug and the harder one to see, because nothing looks broken.
34
41
 
42
+ **The strategy row is report-only.** `artifacts.strategy` is authored and revised only by `sassy-strategy`, so this mode never edits it and never raises a finding from its content. Report by name, with `/sassy-strategy` as the fix: a `draft` (unsettled, not enforced), an `updated` far behind the work the scope covers, or a Track with no commits behind it. A missing file is not a finding — a project without a strategy has not broken anything. The rules are the `sassy-setup` skill's `references/anchors.md`.
43
+
35
44
  ## 4. Fix or name
36
45
 
37
46
  - **Fix in place**, with the smallest edit that makes the claim true. Never rewrite a document to make it easier to review: provenance in a decision, a learning, or a carry-forward entry is the reason the file exists.
@@ -47,7 +56,7 @@ Return a table and one line, and nothing else:
47
56
  | Document | Claim | Stale | Outcome |
48
57
  |---|---|---|---|
49
58
  | README.md:141 | a config key described against its old owner | yes | fixed |
50
- | CONCEPTS.md | Goal statuses omit `draft` | yes | fixed |
59
+ | docs/concepts.md | Goal statuses omit `draft` | yes | fixed |
51
60
  | docs/handbooks/sync-handbook.md:22 | cites a removed helper | yes | reported — owned by another repo |
52
61
  ```
53
62
 
@@ -1,4 +1,7 @@
1
1
  ---
2
+ suite: sassy-skills
3
+ artifact: skill
4
+ generated_by: sassy-dogfood
2
5
  name: sassy-dogfood
3
6
  description: >-
4
7
  Use the product the way a user does, to prove a change actually works at
@@ -1,3 +1,9 @@
1
+ ---
2
+ suite: sassy-skills
3
+ artifact: reference
4
+ generated_by: sassy-dogfood
5
+ ---
6
+
1
7
  # Mode: check — lint the setup, print the last verdict, change nothing
2
8
 
3
9
  Read the shared sections in `SKILL.md` first. This file is the check path only, and it is four lines long for a reason.
@@ -1,3 +1,9 @@
1
+ ---
2
+ suite: sassy-skills
3
+ artifact: reference
4
+ generated_by: sassy-dogfood
5
+ ---
6
+
1
7
  # Mode: discover — build or repair the recipe from what really worked
2
8
 
3
9
  Read the shared sections in `SKILL.md` first (the recipe artifact, config, no-tooling, and the every-mode rules). This file is the discover path only. The recipe format is the `sassy-setup` skill's `references/dogfood.md`; you are writing that file, not executing it.
@@ -1,3 +1,9 @@
1
+ ---
2
+ suite: sassy-skills
3
+ artifact: reference
4
+ generated_by: sassy-dogfood
5
+ ---
6
+
1
7
  # Mode: run — execute the procedure, return a verdict
2
8
 
3
9
  Read the shared sections in `SKILL.md` first (the recipe artifact, config, no-tooling, and the every-mode rules). This file is the run path only. The recipe format, report layout, and verdict classes are the `sassy-setup` skill's `references/dogfood.md`.
@@ -1,24 +1,27 @@
1
1
  ---
2
+ suite: sassy-skills
3
+ artifact: skill
4
+ generated_by: sassy-goal
2
5
  name: sassy-goal
3
6
  description: >-
4
7
  Run a large project or major feature that one plan cannot hold — a migration,
5
8
  an epic, a milestone, a whole-app rewrite — as a goal split into slices, each
6
9
  of which plans, ships, and is checked on its own. mode:write (default)
7
- grills and writes or revises the goal; mode:next plans the next slice via
8
- sassy-plan; mode:check validates a shipped slice and records carry-forward;
10
+ grills and writes the goal; mode:revise records one turn of feedback as a
11
+ revision; mode:next plans the next slice via sassy-plan; mode:check validates a shipped slice and records carry-forward;
9
12
  mode:close verifies the whole goal before the last PR merges. Use when work
10
13
  is too big for one plan, spans several PRs, or the user says goal, epic,
11
14
  milestone, or migration.
12
- argument-hint: "<idea | goal path> [mode:write|next|check|close] [slice:<ID>]"
15
+ argument-hint: "<idea | goal path> [mode:write|revise|next|check|close] [slice:<ID>]"
13
16
  ---
14
17
 
15
18
  # Sassy Goal
16
19
 
17
- **Outcome:** a goal folder whose `goal.md` holds the intent, the cross-slice decisions, and a slice table — then, one slice at a time, a slice plan written when that slice starts, shipped through the usual `sassy-work` / `sassy-lfg` → `sassy-ship` path, checked against its plan, and carried forward; finally the whole goal verified and marked `done`.
20
+ **Outcome:** a goal folder whose `goal.md` holds the intent, the cross-slice decisions, and a slice table — then, one slice at a time, a slice plan written when that slice starts, shipped through the usual `sassy-work` → `sassy-ship` path, checked against its plan, and carried forward; finally the whole goal verified and marked `done`.
18
21
 
19
- **One slice ships at a time, and every slice ships something complete.** A slice is its own plan → work or lfg → ship. It never leaves a half-built layer behind for a later slice to finish.
22
+ **One slice ships at a time, and every slice ships something complete.** A slice is its own plan → work → ship. It never leaves a half-built layer behind for a later slice to finish.
20
23
 
21
- **The user drives every step.** Each mode ends by printing the next command; nothing chains on its own. This skill never implements: code changes belong to `sassy-work`, `sassy-lfg`, and `sassy-cycle`.
24
+ **The user drives every step.** Each mode ends by printing the next command; nothing chains on its own. This skill never implements: code changes belong to `sassy-work`, and `sassy-cycle`.
22
25
 
23
26
  **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. Goals live under `artifacts.plans`; `git.repo` and `commit.branch` decide how check and close persist. `hooks.goal.<slug>` decides the project steps `mode:next` and `mode:close` fire.
24
27
 
@@ -26,7 +29,7 @@ argument-hint: "<idea | goal path> [mode:write|next|check|close] [slice:<ID>]"
26
29
 
27
30
  ## The goal
28
31
 
29
- A goal is the folder `<artifacts.plans>/<type>-<slug>/`: `goal.md` plus one plan per started slice, named `NN-<slice-slug>.md` where `NN` matches the slice ID (`S1` → `01-`). Slice plans are ordinary sassy plans. `references/goal-format.md` owns the `goal.md` format, the slice statuses, and the template — read it before writing or revising `goal.md`.
32
+ A goal is the folder `<artifacts.plans>/<type>-<slug>/`: `goal.md` plus one directory per started slice, `NN-<slice-slug>/plan.md`, where `NN` matches the slice ID (`S1` → `01-`) and the plan carries its own `revisions/` because it is an ordinary sassy plan. `references/goal-format.md` owns the `goal.md` format, the slice statuses, and the template — read it before writing or revising `goal.md`.
30
33
 
31
34
  `goal.md` carries its own frontmatter `status` — `draft` while it is being written, `active` once it is settled, `done` once it is verified — and `references/goal-format.md` owns which mode writes each and which modes read it. A goal is written while it is grilled: `mode:write` creates it as `draft` and appends a section per settled branch, so the file, not the conversation, is the ledger. Only the confirmed read-back flips it to `active`.
32
35
 
@@ -36,17 +39,20 @@ Slice statuses run `Pending` > `Planned` > `Shipped` > `Done`, plus `Blocked`. `
36
39
 
37
40
  | Mode | Load | Runs | It ends with |
38
41
  |---|---|---|---|
39
- | `write` (default) | `references/write.md` | anytime | a new or revised `goal.md`, and the `mode:next` command |
40
- | `next` | `references/next.md` | previous slice merged; on the base once `before_slice` has run | the `before_slice` hooks run, the slice's plan written, the slice `Planned`, and the work / lfg commands |
42
+ | `write` (default) | `references/write.md` | an idea, or an existing goal's first grill | a new `goal.md`, and the `mode:next` command |
43
+ | `revise` | `references/revise.md` | one turn of feedback on an `active` or `done` goal, between slices | the revision, `goal.md` amended, and the next command |
44
+ | `next` | `references/next.md` | previous slice merged; on the base once `before_slice` has run | the `before_slice` hooks run, the slice's plan written, the slice `Planned`, and the work commands |
41
45
  | `check` | `references/check.md` | on the slice branch after ship, before merge | the slice `Done`, carry-forward appended, pushed with the slice |
42
46
  | `close` | `references/close.md` | on the last slice's branch after its check, before merge | `status: done` (or `active` with a slice to add), pushed with the last slice, then the `after_close` hooks run |
43
47
 
44
- Resolve the mode: an explicit `mode:` token wins. With none, it is `write` — an idea creates a goal, a path to an existing goal folder or `goal.md` revises it. Read the one reference for that mode **and only that one**.
48
+ Resolve the mode: an explicit `mode:` token wins. With none, it is `write` — an idea creates a goal, and a path to a settled goal folder means `mode:revise`. Read the one reference for that mode **and only that one**.
49
+
50
+ **A settled goal is amended, never re-grilled.** `write` creates and `revise` amends: once a goal is `active`, feedback goes through `mode:revise`, which records it as a revision instead of rewriting the document the slices were planned from. `write` on an `active` goal asks once which the user wants and takes the answer.
45
51
 
46
52
  **Every mode reads the goal's `status` before it does anything else.** `write` owns `draft` and is the only mode that may open one. `next`, `check`, and `close` refuse a `draft` goal and send the user back to `mode:write` — `next` before the `before_slice` hooks and the base check, so a half-written goal can never fire a project's hook, and never gets a slice planned against it.
47
53
 
48
54
  ```text
49
- write → next → work/lfg → ship → check → next → … → ship → check → close
55
+ write → next → work → ship → check → next → … → ship → check → close
50
56
  ```
51
57
 
52
58
  ## Persisting
@@ -74,7 +80,7 @@ write → next → work/lfg → ship → check → next → … → ship → che
74
80
 
75
81
  | Rule | Requirement |
76
82
  |------|-------------|
77
- | Writing never implements | `mode:write` and `mode:next` produce documents only. Fixes in check and close go through `sassy-cycle`. |
83
+ | Writing never implements | `mode:write`, `mode:revise`, and `mode:next` produce documents only. Fixes in check and close go through `sassy-cycle`. |
78
84
  | Complete slices | Push back on any slice that does not ship a working outcome on its own; re-cut it before the goal is written. |
79
85
  | One slice in flight | Never plan a slice while another is `Planned` or `Shipped`. No parallel slices. |
80
86
  | Draft is never sliceable | `next`, `check`, and `close` read `status` first and refuse a `draft` goal, sending the user back to `mode:write`. Only `write` opens a draft, and only a confirmed read-back flips it to `active`. |
@@ -1,8 +1,14 @@
1
+ ---
2
+ suite: sassy-skills
3
+ artifact: reference
4
+ generated_by: sassy-goal
5
+ ---
6
+
1
7
  # Mode: check — validate a shipped slice and carry it forward
2
8
 
3
9
  Runs on the slice branch after `sassy-ship`, before the PR merges, so whatever it changes rides in the same PR.
4
10
 
5
- 1. **Precondition.** Read `goal.md`. If its status is `draft`, stop: a goal still being written has no shipped slice to check, and it goes back to `/sassy-goal <goal path> mode:write`. Then find the slice (`slice:<ID>`, else the one `Shipped`). It must be `Shipped`, its plan must not be `draft` — a shipped slice always has a finished plan — and every phase in its plan's Phase tracking table must be `Done`. Otherwise stop and say what is due — unfinished phases need `sassy-work` or `sassy-lfg`, an unshipped slice needs `sassy-ship`.
11
+ 1. **Precondition.** Read `goal.md`. If its status is `draft`, stop: a goal still being written has no shipped slice to check, and it goes back to `/sassy-goal <goal path> mode:write`. Then find the slice (`slice:<ID>`, else the one `Shipped`). It must be `Shipped`, its plan must not be `draft` — a shipped slice always has a finished plan — and every phase in its plan's Phase tracking table must be `Done`. Otherwise stop and say what is due — unfinished phases need `sassy-work`, an unshipped slice needs `sassy-ship`.
6
12
 
7
13
  Then dispatch a probe `worker` to run the `sassy-setup` skill's `scripts/detect.sh --branch` (no `--policy`), returning `state` and `head`, and `gh pr view <head> --json state,url,baseRefName`. Outside `commit.branch: current`:
8
14
  - `state` must be `on-branch` — the slice branch. Anything else → stop and tell the user to check out the slice branch.