@sassywares/skills 0.13.2 → 0.15.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 (43) hide show
  1. package/README.md +28 -14
  2. package/package.json +1 -2
  3. package/skills/sassy-compound/SKILL.md +1 -1
  4. package/skills/sassy-compound/references/concepts.md +2 -2
  5. package/skills/sassy-debug/SKILL.md +1 -1
  6. package/skills/sassy-docs/SKILL.md +56 -0
  7. package/skills/sassy-docs/references/handbook.md +17 -0
  8. package/skills/sassy-docs/references/review.md +57 -0
  9. package/skills/sassy-goal/SKILL.md +5 -0
  10. package/skills/sassy-goal/references/check.md +1 -1
  11. package/skills/sassy-goal/references/close.md +6 -5
  12. package/skills/sassy-goal/references/goal-format.md +13 -2
  13. package/skills/sassy-goal/references/next.md +2 -2
  14. package/skills/sassy-goal/references/write.md +9 -5
  15. package/skills/sassy-handoff/references/write.md +1 -1
  16. package/skills/sassy-lfg/SKILL.md +2 -2
  17. package/skills/sassy-plan/SKILL.md +24 -17
  18. package/skills/sassy-plan/references/interview.md +5 -3
  19. package/skills/sassy-plan/references/plan-format.md +22 -2
  20. package/skills/sassy-setup/SKILL.md +19 -11
  21. package/skills/sassy-setup/assets/agents-md.md +71 -0
  22. package/skills/sassy-setup/assets/roster +2 -1
  23. package/skills/sassy-setup/assets/sassywares-readme.md +6 -6
  24. package/skills/sassy-setup/references/anchors.md +122 -0
  25. package/skills/sassy-setup/references/check.md +14 -2
  26. package/skills/sassy-setup/references/config.md +13 -8
  27. package/skills/sassy-setup/references/harness.md +3 -2
  28. package/skills/sassy-setup/references/init.md +9 -4
  29. package/skills/sassy-setup/references/workspace.md +23 -0
  30. package/skills/sassy-setup/scripts/detect.sh +281 -30
  31. package/skills/sassy-ship/SKILL.md +26 -10
  32. package/skills/sassy-ship/references/brief.md +20 -0
  33. package/skills/sassy-ship/references/plan.md +20 -0
  34. package/skills/sassy-ship/references/slice.md +21 -0
  35. package/skills/sassy-strategy/SKILL.md +66 -0
  36. package/skills/sassy-strategy/references/check.md +81 -0
  37. package/skills/sassy-strategy/references/strategy-format.md +84 -0
  38. package/skills/sassy-strategy/references/write.md +180 -0
  39. package/skills/sassy-validate/SKILL.md +1 -1
  40. package/skills/sassy-work/SKILL.md +1 -1
  41. package/CONCEPTS.md +0 -173
  42. package/skills/sassy-handbook/SKILL.md +0 -52
  43. /package/skills/{sassy-handbook → sassy-docs}/references/handbook-format.md +0 -0
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`, plus `mode:return` on `sassy-review`, `sassy-simplify`, and `sassy-validate`; 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, lfg, and debug take no mode; `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,12 +52,12 @@ That discussion settles the work, then offers a pick:
50
52
 
51
53
  ```text
52
54
  Settled. Pick one:
53
- 1. Write the plan — docs/plans/<type>-<slug>.md
55
+ 1. Keep the plan — docs/plans/<type>-<slug>.md
54
56
  2. Start working via /sassy-work
55
57
  3. Implement and ship it via /sassy-lfg
56
58
  ```
57
59
 
58
- Pick 1 to get a plan file — YAML frontmatter (`type`, `created`, `updated`, plus `qa: off` when you ask for a plan with no QA gates) plus intent, decisions, and per-phase QA tables. Plan then 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:
60
+ 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
61
 
60
62
  ```text
61
63
  /sassy-work docs/plans/feat-add-workspace-invitations.md
@@ -86,8 +88,8 @@ Debugging:
86
88
 
87
89
  | Skill | What it does |
88
90
  |---|---|
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: write the plan, start working via `sassy-work`, or implement and ship via `sassy-lfg`. |
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. |
91
+ | **`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. |
92
+ | **`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. |
91
93
  | **`sassy-scout`** | Grounds an area on demand and writes the shared grounding brief other agents read instead of re-exploring. |
92
94
  | **`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
95
  | **`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. |
@@ -114,7 +116,7 @@ Each does one job and takes `mode:manual` (default: ask which to fix), `mode:aut
114
116
 
115
117
  | Skill | What it does |
116
118
  |---|---|
117
- | **`sassy-ship`** | Compound learnings, optional handbook, commit, PR, and babysit (under `commit.branch: current`: commit and push, no PR). Review gate in `mode:manual` (default), skipped by `mode:auto`. |
119
+ | **`sassy-ship`** | Compound learnings, bring the docs in line (`sassy-docs mode:review`), commit, PR, and babysit (under `commit.branch: current`: commit and push, no PR). Review gate in `mode:manual` (default), skipped by `mode:auto`. Resolves whether it is closing a plan, a goal slice, or a brief once, then follows that target's own rules; it is the only writer of a plan's `status: done`. |
118
120
  | **`sassy-commit`** | Creates a local commit with a clear message. No push, no PR. |
119
121
  | **`sassy-commit-push-pr`** | Commits, pushes, opens or updates a PR, and babysits by default. |
120
122
  | **`sassy-babysit`** | Watches a PR until it looks merge-ready or blocked. |
@@ -123,28 +125,30 @@ Each does one job and takes `mode:manual` (default: ask which to fix), `mode:aut
123
125
 
124
126
  | Skill | What it does |
125
127
  |---|---|
128
+ | **`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
129
  | **`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
- | **`sassy-handbook`** | Writes a plain-English team handbook with mermaid diagrams. |
130
+ | **`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
131
 
129
132
  ### Meta
130
133
 
131
134
  | Skill | What it does |
132
135
  |---|---|
133
136
  | **`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. |
137
+ | **`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
138
 
136
139
  ## Project config
137
140
 
138
141
  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
142
 
140
143
  ```yaml
141
- artifacts: # where plans, learnings, handbooks, and the glossary live
144
+ artifacts: # where plans, learnings, handbooks, and the anchors live
142
145
  plans: docs/plans
143
146
  solutions: docs/solutions
144
147
  handbooks: docs/handbooks
145
- concepts: CONCEPTS.md
148
+ concepts: docs/concepts.md
149
+ strategy: docs/strategy.md
146
150
  knowledge:
147
- read: [docs/solutions, CONCEPTS.md] # searched for prior learnings
151
+ read: [docs/solutions, docs/concepts.md] # searched for prior learnings
148
152
  write: true # false = this project takes no learnings
149
153
  git:
150
154
  repo: origin # a remote name | workspace (repos below, none here) | none (no git)
@@ -312,6 +316,14 @@ In a `workspace` there is exactly one ignore file, and it is not at the root:
312
316
  └── mirror/ the side clone, excluded by the script itself
313
317
  ```
314
318
 
319
+ ### The routing block
320
+
321
+ 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.
322
+
323
+ 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.
324
+
325
+ 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.
326
+
315
327
  ## Workflows
316
328
 
317
329
  ### From idea to ship
@@ -338,7 +350,7 @@ flowchart LR
338
350
  L -->|approve or mode:auto| M[Commit, PR, babysit]
339
351
  ```
340
352
 
341
- Option 1 produces a durable plan with phased slices, QA tables, and a change tier per phase. Options 2 and 3 keep the whole job as one settled in-context brief and write no plan file.
353
+ 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.
342
354
 
343
355
  `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.
344
356
 
@@ -348,6 +360,8 @@ The branch is cut once, before the first change, by `sassy-work` or `sassy-lfg`
348
360
 
349
361
  `sassy-ship` is the close-out. It summarizes what is about to ship and waits, unless the caller passed `mode:auto`.
350
362
 
363
+ 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).
364
+
351
365
  ### From goal to done
352
366
 
353
367
  ```mermaid
@@ -364,9 +378,9 @@ flowchart LR
364
378
  I --> J[Goal done, rides the last PR]
365
379
  ```
366
380
 
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 it `Shipped` and babysits the PR without merging, so the check can still land in it.
381
+ 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.
368
382
 
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.
383
+ `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
384
 
371
385
  ### From bug to ship
372
386
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sassywares/skills",
3
- "version": "0.13.2",
3
+ "version": "0.15.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": {
@@ -41,7 +41,7 @@ If several problems were solved, run once per learning. Never batch them into on
41
41
  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
42
  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
43
  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.
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. 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
45
  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
46
  6. **Report.** Path, create vs update, concepts touched, and whether an AGENTS.md pointer was added.
47
47
 
@@ -1,6 +1,6 @@
1
- # CONCEPTS.md rules
1
+ # Concepts file rules
2
2
 
3
- Read this before touching `CONCEPTS.md`.
3
+ 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
4
 
5
5
  - 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
6
  - One-sentence definition: what it means here, and what makes it distinct from its neighbors.
@@ -86,7 +86,7 @@ Report the diagnosis and stop. Nothing is committed.
86
86
 
87
87
  ## Phase 3 — Ship via `sassy-ship`
88
88
 
89
- After work's code approval and commit, load the `sassy-ship` skill and follow it, leaving ship's default `mode:manual` review gate in place. Do not pass a mode yourself. Ship presents its shipping summary and waits. It compounds any learnings, commits, opens or updates the PR, and babysits it via `sassy-babysit` (under `commit.branch: current` it commits and pushes the checked-out branch instead, with no PR, hooks, or babysit). Babysit options (`merge:on|off`, `delete-branch:on|off`) are forwarded through `sassy-ship`. Run only the steps the user approves.
89
+ After work's code approval and commit, load the `sassy-ship` skill and follow it, leaving ship's default `mode:manual` review gate in place. Do not pass a mode yourself. Ship presents its shipping summary and waits. It compounds any learnings, brings the docs in line with the change, commits, opens or updates the PR, and babysits it via `sassy-babysit` (under `commit.branch: current` it commits and pushes the checked-out branch instead, with no PR, hooks, or babysit). Babysit options (`merge:on|off`, `delete-branch:on|off`) are forwarded through `sassy-ship`. Run only the steps the user approves.
90
90
 
91
91
  If the fix gate ended in **Write a plan**, **Hand off**, or **Stop here**, this skill stops there — never commit.
92
92
 
@@ -0,0 +1,56 @@
1
+ ---
2
+ name: sassy-docs
3
+ description: >-
4
+ Keep a project's documents true after the code moves, and write the team's
5
+ handover handbooks. mode:review (default) finds every document a change
6
+ invalidated — README, concepts, AGENTS.md, plans, handbooks — reports what is
7
+ stale, and fixes it; mode:handbook writes a plain-English, self-contained
8
+ developer handbook handing a feature to the team. Use when a feature lands,
9
+ when docs may be outdated, before a close-out, or when asked for a handbook,
10
+ handover notes, or a team reference.
11
+ argument-hint: "[mode:review|handbook] [plan path, topic, branch, or file list]"
12
+ ---
13
+
14
+ # Sassy Docs
15
+
16
+ **Outcome:** `mode:review` — every document the named scope invalidated either corrected or named as outstanding, with the stale claim quoted. `mode:handbook` — one team-readable handbook under the configured handbooks path that any teammate can follow without knowing which agent, skill, or setup produced the work.
17
+
18
+ **Documents, not code.** This skill never changes behavior. A code fix it uncovers is reported, and belongs to `sassy-cycle` through the caller.
19
+
20
+ **Config.** Resolve `.sassywares/config.yaml` (nearest, walking up) per the `sassy-setup` skill's `references/config.md`. Handbooks land in `artifacts.handbooks`; the review's document set starts from `artifacts.*` and `knowledge.read`.
21
+
22
+ **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.
23
+
24
+ ## Modes
25
+
26
+ | Mode | Load | Runs | It ends with |
27
+ |---|---|---|---|
28
+ | `review` (default) | `references/review.md` | after work lands, before a close-out, or on any request to check the docs | a verdict table, every stale claim fixed or named |
29
+ | `handbook` | `references/handbook.md` | a feature that needs a human handover, or a direct request | one handbook created or updated, with its absolute path |
30
+
31
+ Omitted, detect the mode from the request: an ask for a handbook, handover, or team reference is `handbook`; anything that reads like "are the docs still right" is `review`. Read the one reference for that mode **and only that one**, and `references/handbook-format.md` only when you are writing a handbook.
32
+
33
+ ## Hard rules
34
+
35
+ | Rule | Requirement |
36
+ |------|-------------|
37
+ | Truth over coverage | A document that is silent about a user-visible change is as stale as one that is wrong. Both get fixed or named. |
38
+ | Never rewrite | Fix the claim, not the document. Every edit is the smallest one that makes the sentence true, and provenance in a learning or decision survives it. |
39
+ | Fix or name | Nothing stale leaves the run unaccounted for: it is fixed, or it is reported with its file, line, and what is wrong. |
40
+ | Grounded | Paths, types, commands, and behaviors match the tree you can read now. Soften or drop a claim you cannot verify, and say which. |
41
+ | No behavior changes | A source file is never edited here. Report the fix and let the caller route it. |
42
+ | Handbook has no toolchain | Never name skills, slash-commands, agents, or "run X then Y" recipes in a handbook. Say what to check in the app or in code. |
43
+ | One handbook per topic | Update the existing one rather than spawning a near-duplicate. |
44
+ | Honest status | In any document this skill writes: distinguish **done**, **in progress**, and **still to do**. Never write as if unfinished work shipped. |
45
+
46
+ ## Locations
47
+
48
+ ```text
49
+ <artifacts.handbooks>/<kebab-topic>-handbook.md
50
+ ```
51
+
52
+ No dates in the filename, and an existing handbook keeps its name when updated. `mode:review` edits documents where they live; its write boundary is every document the scope invalidated, and no source file.
53
+
54
+ ## Non-goals
55
+
56
+ Not durable gotcha learnings (`sassy-compound`), not implementation plans (`sassy-plan`), and not shipping code.
@@ -0,0 +1,17 @@
1
+ # Mode: handbook — write the team's handover
2
+
3
+ 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.
4
+
5
+ **When it is warranted.** A teammate who did not do the work would benefit from a handover: a multi-phase or multi-slice change, a new subsystem, a feature that changes how the app is built or extended. Skip it for small or tightly-coupled changes, and say in one line that you skipped it. A handbook that restates one paragraph of README is worse than none.
6
+
7
+ ## Workflow
8
+
9
+ 1. **Gather.** The plan, goal, or topic the caller named, plus a light tree check of every path and type the handbook will claim. Open the real files; never invent. Delegate heavy reading to `sassy-scout` when the change is large, and take the change summary from a `mode:review` run when the caller already did one.
10
+ 2. **Create or update.** No handbook for this topic → create `<topic>-handbook.md`. An existing one that is stale → update it in place and refresh **As of**. The user pointed at a path → edit that file.
11
+ 3. **Write.** Read `references/handbook-format.md` and write in that shape, with mermaid diagrams where they clarify rather than decorate.
12
+ 4. **Voice scrub.** Remove skill names, phase IDs, QA gate tables, and jargon piles, per that reference. What to check in the app or in code — never "run X then Y".
13
+ 5. **Ground and report.** Confirm each cited path exists, or mark it planned. Confirm every status matches reality — **done**, **in progress**, **still to do**, never a blurred "mostly there". Report the absolute path, created vs updated, and anything left unverified.
14
+
15
+ ## Write boundary
16
+
17
+ Only the configured handbooks path, creating it when missing. Never rewrite the source plan or goal: the handbook is a reading of them, and if they disagree with the tree, that disagreement is a finding for the caller, not something to paper over in the handbook.
@@ -0,0 +1,57 @@
1
+ # Mode: review — keep the documents true
2
+
3
+ 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.
4
+
5
+ ## 1. Take the scope
6
+
7
+ The documents to check are the project's declared ones plus everything the change invalidated:
8
+
9
+ - `artifacts.plans`, `artifacts.solutions`, `artifacts.handbooks`, `artifacts.concepts`, from the config, plus `artifacts.strategy` — reported on, never edited (see the strategy row below).
10
+ - `README.md` and `AGENTS.md` at the repo root, when they describe behavior rather than intent.
11
+ - The plan, goal, or handbook that drove the work, when the caller named one or a scope points at it.
12
+
13
+ A scope of changed paths is not enough on its own: the diff names what moved, and the documents that *describe* those paths are usually unchanged by it. Take the changed paths for the concrete cases, then follow each one to the document that makes a claim about it.
14
+
15
+ ## 2. Read the change before judging a document
16
+
17
+ Dispatch a worker — or use the summary the caller already gave — to state what the change does in a user's terms: commands added or removed, config keys and defaults, flags, environment variables, outputs, file layout, requirements, install and update steps. Never audit a document against your guess at the change: the guess and the document disagree for the wrong reason.
18
+
19
+ ## 3. Audit each document against that summary
20
+
21
+ One question per claim: **is this still true, and does it still describe everything that changed?** Work the rows that go stale fastest:
22
+
23
+ | Surface | What to read for |
24
+ |---|---|
25
+ | Install, update, removal | Steps that no longer work, or a new step nobody wrote down |
26
+ | Commands, keys, flags, defaults | A renamed or removed token, an unmentioned new one |
27
+ | Environment and requirements | A new dependency, a changed minimum, a removed variable |
28
+ | Outputs and paths | A moved file, a renamed script, a different report shape |
29
+ | Examples | A worked example that would now fail if a reader ran it |
30
+ | Skill and capability tables | A skill added, renamed, or removed and a table that still lists the old set |
31
+ | Workflow narrative | Prose describing the old order of steps, or a diagram that contradicts the body |
32
+ | Strategy anchor | A `draft` strategy, one whose `updated` is far behind the work, or a Track with no commits behind it — report-only |
33
+
34
+ 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.
35
+
36
+ **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`.
37
+
38
+ ## 4. Fix or name
39
+
40
+ - **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.
41
+ - **A document owned elsewhere** — another repo, a vendored copy, a generated file — is named, not edited.
42
+ - **A source file** is never touched. Report the mismatch: the document says X, the code does Y.
43
+ - **A claim you cannot verify** stays in the report as unverified. Never quietly soften a sentence you did not check.
44
+
45
+ ## 5. Verdict
46
+
47
+ Return a table and one line, and nothing else:
48
+
49
+ ```text
50
+ | Document | Claim | Stale | Outcome |
51
+ |---|---|---|---|
52
+ | README.md:141 | a config key described against its old owner | yes | fixed |
53
+ | docs/concepts.md | Goal statuses omit `draft` | yes | fixed |
54
+ | docs/handbooks/sync-handbook.md:22 | cites a removed helper | yes | reported — owned by another repo |
55
+ ```
56
+
57
+ `docs in sync` when nothing is outstanding, otherwise `N documents need a human` with each one named in the table. The caller decides what to do about a reported item; this mode never blocks on one.
@@ -28,6 +28,8 @@ argument-hint: "<idea | goal path> [mode:write|next|check|close] [slice:<ID>]"
28
28
 
29
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`.
30
30
 
31
+ `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
+
31
33
  Slice statuses run `Pending` > `Planned` > `Shipped` > `Done`, plus `Blocked`. `mode:next` sets `Planned`, `sassy-ship` sets `Shipped` (and babysits the slice PR without merging), `mode:check` sets `Done` and records the PR link.
32
34
 
33
35
  ## Modes
@@ -41,6 +43,8 @@ Slice statuses run `Pending` > `Planned` > `Shipped` > `Done`, plus `Blocked`. `
41
43
 
42
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**.
43
45
 
46
+ **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
+
44
48
  ```text
45
49
  write → next → work/lfg → ship → check → next → … → ship → check → close
46
50
  ```
@@ -73,6 +77,7 @@ write → next → work/lfg → ship → check → next → … → ship → che
73
77
  | Writing never implements | `mode:write` and `mode:next` produce documents only. Fixes in check and close go through `sassy-cycle`. |
74
78
  | 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. |
75
79
  | One slice in flight | Never plan a slice while another is `Planned` or `Shipped`. No parallel slices. |
80
+ | 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`. |
76
81
  | Plan at slice start | A slice's plan is grilled and written only when `mode:next` starts it — never upfront. |
77
82
  | Settled stays settled | The goal's decisions and every carry-forward entry reach each slice grill as settled; they are never re-asked. |
78
83
  | Carry-forward is append-only | One entry per checked slice; never edit or remove an earlier one. |
@@ -2,7 +2,7 @@
2
2
 
3
3
  Runs on the slice branch after `sassy-ship`, before the PR merges, so whatever it changes rides in the same PR.
4
4
 
5
- 1. **Precondition.** Read `goal.md` and find the slice (`slice:<ID>`, else the one `Shipped`). It must be `Shipped`, 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`.
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`.
6
6
 
7
7
  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
8
  - `state` must be `on-branch` — the slice branch. Anything else → stop and tell the user to check out the slice branch.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Runs on the last slice's branch after its `mode:check`, before its PR merges, so `status: done` rides in the last PR.
4
4
 
5
- 1. **Precondition.** Read `goal.md`. Every slice must be `Done`. Then dispatch a probe `worker` to return:
5
+ 1. **Precondition.** Read `goal.md`. If its status is `draft`, stop: a goal that was never finished cannot be verified, and it goes back to `/sassy-goal <goal path> mode:write`. Every slice must be `Done`. Then dispatch a probe `worker` to return:
6
6
  - the `sassy-setup` skill's `scripts/detect.sh --branch` (no `--policy`) `state` and `head`;
7
7
  - `gh pr view <head> --json state,url` for the last slice's PR;
8
8
  - `gh pr view <url> --json state` for every earlier slice's PR link.
@@ -17,7 +17,8 @@ Runs on the last slice's branch after its `mode:check`, before its PR merges, so
17
17
  - **Accept** — record it as a Decision with provenance: `D<n>: <gap> accepted unmet — <reason> (user-directed, over fixing)`. Never as an Assumption or a Carry-forward entry.
18
18
 
19
19
  Nothing is left unchosen. With mixed choices, run the chosen fixes first.
20
- 4. **Mark it `Done`** — only when no gap was sent to a new slice: set `status: done` in the frontmatter. If any was, the goal stays `active`.
21
- 5. **Persist** per the SKILL.md Persisting section, on this branch, so `goal.md` and any fixes merge with the last slice. Skip step 6 if this step failed.
22
- 6. **Run the `after_close` hooks.** No `hooks.goal.<slug>.after_close` entry resolves for this goal's slug → skip in one line. Otherwise resolve them per the `sassy-setup` skill's `references/config.md` and run each in declared order, one `worker` each. The status is already persisted, so a blocked hook cannot rewrite it. Brief them with the goal path and slug, `goal_status` (`done`, or `active` when a gap went to a new slice), every slice's ID, status, and PR link, and the commit hash the persist step wrote, where it wrote one (per repo in a workspace, absent under `none`). A missing skill or a `blocked` result → report `stopped at <name>`, keep everything already persisted, never retry on your own, and do not claim the close-out succeeded; the user re-runs the hook and continues. A `needs-decision` result goes to the user, and the run stops there too.
23
- 7. **Report** the goal path, each Done-when item with its result, the gaps fixed, accepted, or sent to a new slice, and the hook outcome — `ran: <names>`, `none declared`, or `stopped at <name>`. If the goal stayed `active`, give `/sassy-goal <goal path> mode:write` to add the slice, then `mode:next` once this PR merges. Otherwise the goal is closed when this PR merges. Persisting ran with `babysit:off`, so end with `/sassy-babysit <PR url>` in the harness's syntax.
20
+ 4. **Ask the one strategy question.** Read the project's strategy at the resolved `artifacts.strategy`, with the `sassy-setup` skill's `references/anchors.md`. Ask it once, and only once: *did this change what the product is for?* A `draft` strategy is reported as unsettled and answered from the user, never enforced; a missing file is a presence note. A yes is not an edit and not a block: offer a revision through `sassy-strategy`, naming the section or sections it would open, and record the answer. A no, a yes, or a declined offer all leave this step where it is and the close-out continues — the strategy is never a veto.
21
+ 5. **Mark it `Done`** — only when no gap was sent to a new slice: set `status: done` in the frontmatter. If any was, the goal stays `active`.
22
+ 6. **Persist** per the SKILL.md Persisting section, on this branch, so `goal.md` and any fixes merge with the last slice. Skip step 7 if this step failed.
23
+ 7. **Run the `after_close` hooks.** No `hooks.goal.<slug>.after_close` entry resolves for this goal's slug → skip in one line. Otherwise resolve them per the `sassy-setup` skill's `references/config.md` and run each in declared order, one `worker` each. The status is already persisted, so a blocked hook cannot rewrite it. Brief them with the goal path and slug, `goal_status` (`done`, or `active` when a gap went to a new slice), every slice's ID, status, and PR link, and the commit hash the persist step wrote, where it wrote one (per repo in a workspace, absent under `none`). A missing skill or a `blocked` result → report `stopped at <name>`, keep everything already persisted, never retry on your own, and do not claim the close-out succeeded; the user re-runs the hook and continues. A `needs-decision` result goes to the user, and the run stops there too.
24
+ 8. **Report** the goal path, each Done-when item with its result, the gaps fixed, accepted, or sent to a new slice, and the hook outcome — `ran: <names>`, `none declared`, or `stopped at <name>`. If the goal stayed `active`, give `/sassy-goal <goal path> mode:write` to add the slice, then `mode:next` once this PR merges. Otherwise the goal is closed when this PR merges. Persisting ran with `babysit:off`, so end with `/sassy-babysit <PR url>` in the harness's syntax.
@@ -27,7 +27,15 @@ Slice plans keep `NN-<slice-slug>.md` (written via `out:`). `NN` is the slice's
27
27
  Required keys, in this order, and nothing else:
28
28
 
29
29
  - **`type`** — one of the list above, matching the folder prefix.
30
- - **`status`** — `active` | `done`.
30
+ - **`status`** — `draft` | `active` | `done`. Each transition has exactly one writer, and no mode sets a status it does not own:
31
+
32
+ | Status | Set by | Means | Read by |
33
+ |---|---|---|---|
34
+ | `draft` | `mode:write`, when the file is created | Being grilled. Nothing may slice it | `mode:next`, `mode:check`, `mode:close`, and `sassy-plan` in caller mode refuse it and send the user back to `mode:write` |
35
+ | `active` | `mode:write`, immediately after the confirmed read-back, or in the first edit that reopens a `done` goal | Settled. Slices may run | `mode:next` |
36
+ | `done` | `mode:close`, once the done-when is verified against the whole tree | Verified as a whole | `mode:write`, which sets it back to `active` when the goal is revised |
37
+
38
+ Revising an `active` goal never returns it to `draft`: `mode:write` updates it in place and leaves it `active`. `draft` means a goal that has never been finished, and nothing else.
31
39
  - **`created`** — `YYYY-MM-DD`, the day the goal was first written; never changes.
32
40
  - **`updated`** — `YYYY-MM-DD`; set to today on every material revision, in the same edit. `mode:write`, `mode:next`, `mode:check`, and `mode:close` all set it whenever they edit the file.
33
41
 
@@ -41,6 +49,9 @@ The H1 title stays: frontmatter does not render on GitHub, so the heading is wha
41
49
  - **Every slice ships something complete.** A slice that leaves a half-built layer — a schema nobody reads, an API nobody calls — is not a slice. Re-cut it until each one ships a working outcome on its own.
42
50
  - **Carry-forward is append-only.** One entry per checked slice, added by `mode:check`, never edited afterward. Later slices read it as settled ground; a correction is a new entry.
43
51
  - **Done slices are history.** A revision never re-cuts, renumbers, or rewrites a `Done` slice or its plan.
52
+ - **Written while it is grilled.** `mode:write` creates the folder and `goal.md` with `status: draft` and every section heading in place before the first question, then appends each section as its branch settles — the section order above is the interview order, so the file grows top to bottom. Creating it first and filling it as you go is what keeps the ledger in the file rather than only in the conversation, where a compaction erases it.
53
+ - **Append, never rewrite.** Once the file exists, the only permitted operations are: append a section or a row; replace a single superseded decision in the same turn the user reopens it; set `updated`; and flip `status`. A full-file rewrite is forbidden — it costs the run quadratically, and worse, it replaces the text the user actually confirmed with a fresh paraphrase. If a branch is reopened, the old bullet goes in the same edit, or the file keeps two answers and the later one is a guess.
54
+ - **`draft` is the first thing written and the last thing that leaves.** A goal exists with an unsettled status at no point, and it turns `active` only after the read-back is confirmed — never mid-grill, and never to unblock a slice.
44
55
 
45
56
  ## Slice statuses
46
57
 
@@ -59,7 +70,7 @@ Order: `Pending` > `Planned` > `Shipped` > `Done`. Only one slice is ever `Plann
59
70
  ```markdown
60
71
  ---
61
72
  type: feat
62
- status: active
73
+ status: draft
63
74
  created: YYYY-MM-DD
64
75
  updated: YYYY-MM-DD
65
76
  ---
@@ -2,7 +2,7 @@
2
2
 
3
3
  **One slice in flight.** This mode starts exactly one slice by planning it. It never implements, never plans a second slice, and never runs work or lfg itself.
4
4
 
5
- 1. **Load the goal.** Read `goal.md`. If its status is `done`, say so and stop. The run may still stand on the previous slice's branch here; step 6 settles the base.
5
+ 1. **Load the goal, and gate on its status first.** Read `goal.md`. `draft` → stop here, before the hooks, before the base check, and before the grill: the goal is still being written and nothing may slice it. Say so and give `/sassy-goal <goal path> mode:write` to finish it. `done` → say so and stop. The draft gate comes first on purpose — a half-written goal must never fire a project's `before_slice` hook or plan a slice against itself. The run may still stand on the previous slice's branch here; step 6 settles the base.
6
6
  2. **Nothing in flight.** If any slice is `Planned` or `Shipped`, stop and name what is due: a `Planned` slice needs `sassy-work` or `sassy-lfg` on its plan, a `Shipped` slice needs `mode:check`.
7
7
  3. **Earlier slices merged.** Every `Done` slice's PR must be merged before the next slice starts, or the new slice is built on code that may still change. Dispatch a `worker` to check each PR with `gh pr view <url> --json state` and return the states. Under `commit.branch: current`, `git.repo: workspace`, or `git.repo: none` — or when a slice has no PR link — ask the user to confirm instead. Anything unmerged → stop and say which PR must merge first.
8
8
  4. **Pick the slice.** The first `Pending` slice whose Depends are all `Done`. A `slice:<ID>` token overrides the pick, but its Depends must still be `Done`; a slice that is not `Pending` is a stop. No eligible slice → if every slice is `Done`, point at `mode:close`; otherwise report what blocks each `Pending` slice and stop.
@@ -15,7 +15,7 @@
15
15
  - **`out:<goal folder>/NN-<slice-slug>.md`**, with `NN` from the slice ID
16
16
  - **frontmatter** — `type:<the goal's type>`, `goal:<path to goal.md, relative to the slice plan>`, `slice:S<n>`; the slice plan's `type` is what names its branch prefix
17
17
 
18
- `sassy-plan` grills the slice in full — this is where its detail gets decided — writes the plan to that path, skips its picker, and returns the path.
18
+ `sassy-plan` grills the slice in full — this is where its detail gets decided — with the plan opened at that path as `draft`, appending each section as its branch settles and flipping it to `active` at the confirmed read-back; it skips its picker and returns the path.
19
19
 
20
20
  **Interrupted run.** If an `NN-*.md` for this slice already exists while the slice is still `Pending`, an earlier run stopped after writing it. Pass that file to `sassy-plan` as the `out:` path and the existing plan, so it updates it in place per its existing-plan rule instead of re-grilling from scratch. A resumed run re-fires the `before_slice` hooks, which is why they must be idempotent.
21
21
  8. **Mark it `Planned`.** In the slice table set the slice `Planned` and the Plan cell to the plan link. Commit nothing. The plan and `goal.md` ride onto the slice's branch when `sassy-work` or `sassy-lfg` cuts it. Their commits name the plan, not `goal.md`, so the `Planned` mark stays uncommitted on the slice branch until `sassy-ship`'s step 4 commit, which sets it `Shipped`.
@@ -2,9 +2,11 @@
2
2
 
3
3
  **Documents only.** This mode writes or revises `goal.md`. It never writes a slice plan, cuts a branch, edits code, or commits.
4
4
 
5
+ **Read the anchor first.** Before the first question, read the `sassy-setup` skill's `references/anchors.md` and the project's strategy at the resolved `artifacts.strategy`. It changes the questions this pass asks and nothing else: a missing file is a presence note, a `draft` is reported as unsettled and never enforced, and a quoted conflict is a question with the three outs, never a veto on the goal.
6
+
5
7
  ## New goal (the argument is an idea)
6
8
 
7
- 1. **Frame.** Restate the goal in one or two sentences — the outcome and why it needs more than one plan. Ask the user to confirm or correct it, and what they are already thinking.
9
+ 1. **Frame, then create the file.** Restate the goal in one or two sentences — the outcome and why it needs more than one plan. Ask the user to confirm or correct it, and what they are already thinking. On the confirmed frame, pick `<type>` and `<slug>` per `references/goal-format.md` and create `<artifacts.plans>/<type>-<slug>/goal.md`: frontmatter with `status: draft`, `created` and `updated` today, and every section heading from the template, empty — each slice row `Pending`, Carry-forward's one-line note in place. Create it before the first branch question. The file is the ledger; a ledger that lives only in the conversation is what a compaction erases, and this is the mode where that costs the most.
8
10
  2. **Ground once, broadly.** Use `sassy-scout` on every domain the goal touches, in one run. Its brief feeds Landscape — what changes per domain, where (with `file:line` citations), and the blast radius — and seeds Risks and Coexistence. Do not re-scout per slice here; each slice's grill grounds its own detail.
9
11
  3. **Grill, bounded to the goal.** Read the `sassy-plan` skill's `references/interview.md` and follow it — the ledger, one question per turn with your recommendation, pushback, the read-back — but walk only goal-level branches:
10
12
  - the domains in scope, and the non-goals
@@ -14,16 +16,18 @@
14
16
  - decisions that bind more than one slice
15
17
 
16
18
  Anything a single slice can settle alone — UI states, a table's columns, a helper's shape — goes to Deferred as *to S<n>'s grill*, with the user's agreement. Run the coverage sweep only against these goal-level rows; the rest are N/A until their slice starts.
19
+
20
+ **Append as you settle.** After each branch closes, write it into its section in the same turn the user confirms it: a decision to Decisions with its provenance, a non-goal to Constraints, a slice to both Slice tracking and Slices, a deferral to Deferred, an assumption to Assumptions. Never batch them for the end, and never restate a section that is already written — you are growing the file, not regenerating it.
17
21
  4. **Push back on incomplete slices.** Every slice must ship a working outcome on its own. A "schema first, API next, UI last" cut is the half-built layer this skill exists to prevent: challenge it with the evidence and offer a vertical re-cut (e.g. "one screen end to end on the new store"). Concede only to an argument or the user's explicit call, and record that call as `user-directed`.
18
- 5. **Read back.** The whole ledger — decisions, constraints, the slice list with Ships / Depends, deferred items, assumptions — with an empty Open bucket. A correction reopens that branch.
19
- 6. **Write.** Read `references/goal-format.md` and write `<artifacts.plans>/<type>-<slug>/goal.md` with `status: active`, every slice `Pending`, and an empty Carry-forward.
22
+ 5. **Read back from the file.** Show the whole ledger — decisions, constraints, the slice list with Ships / Depends, deferred items, assumptions — with an empty Open bucket, and take it from `goal.md` rather than from memory. That is what writing as you go buys: the text the user confirms is already the text the file holds. A correction reopens that branch, and it replaces that line in the same edit, never alongside it.
23
+ 6. **Settle — and only then flip.** Check the file against the confirmed read-back before touching its status: every decision present with its provenance, no Open item anywhere, a line for every coverage-sweep area that applies, every slice carrying Ships and Depends. Then set `status: active` and `updated` to today in the same edit. That flip is the only thing that makes the goal sliceable, so it comes after the check, never before it — and never mid-grill to unlock a slice.
20
24
 
21
25
  ## Existing goal (the argument is a goal folder or `goal.md`)
22
26
 
23
- 1. Read `goal.md`. If its status is `done`, say so and stop unless the user asks to reopen it.
27
+ 1. Read `goal.md`, and let its status decide the run. `draft` → an earlier run stopped mid-grill: resume at its first empty section, and re-ask nothing it already settled. `active` → an ordinary revision, and it stays `active`. `done` → say so and stop, unless the user asks to reopen it, in which case the first edit sets `status: active`.
24
28
  2. Ask what changed, then grill **only the delta** with the same protocol: re-cut, add, drop, or reorder slices, or change a goal-level decision, Done-when item, or constraint. Everything else already in `goal.md` is settled ground.
25
29
  3. Keep history intact. `Done` slices, their plans, and every Carry-forward entry stay exactly as written. A `Planned` or `Shipped` slice is in flight: changing it is a contradiction to raise with the user, never a silent edit. New slices take the next free ID, so existing plan filenames never move.
26
- 4. Apply the same pushback on incomplete slices, read back the delta, then update `goal.md` in place.
30
+ 4. Apply the same pushback on incomplete slices, read back the delta from the file, then update `goal.md` in place — appending and replacing single lines, never rewriting the file.
27
31
 
28
32
  ## End
29
33
 
@@ -22,7 +22,7 @@
22
22
  4. **Hand it to the user.** Report the absolute path, then one fenced, copyable command in the running harness's syntax (per `references/harness.md`):
23
23
 
24
24
  ```text
25
- /sassy-handoff mode:read <absolute path> # Claude Code
25
+ /sassy-handoff mode:read <absolute path> # Claude Code, Hermes Agent
26
26
  /skill:sassy-handoff mode:read <absolute path> # pi
27
27
  ```
28
28
 
@@ -9,7 +9,7 @@ argument-hint: "<plan path | brief> [branch:infer|current|new] [worktree:on|off]
9
9
 
10
10
  # Sassy LFG
11
11
 
12
- **Outcome:** every phase in the plan run through `sassy-cycle`, then one gate that carries the code approval and every phase's QA checklist (`Manual` rows from the user, `Auto` rows from a `sassy-dogfood` report), phases marked `Done` only when both pass, then `sassy-ship` closes it out (compound, handbook, commit, PR, babysit; under `commit.branch: current`, commit and push with no PR). A brief runs one cycle through the same gate, then ships.
12
+ **Outcome:** every phase in the plan run through `sassy-cycle`, then one gate that carries the code approval and every phase's QA checklist (`Manual` rows from the user, `Auto` rows from a `sassy-dogfood` report), phases marked `Done` only when both pass, then `sassy-ship` closes it out (compound, docs, commit, PR, babysit; under `commit.branch: current`, commit and push with no PR). A brief runs one cycle through the same gate, then ships.
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
 
@@ -21,7 +21,7 @@ argument-hint: "<plan path | brief> [branch:infer|current|new] [worktree:on|off]
21
21
 
22
22
  Detect the shape from the argument:
23
23
 
24
- - **Plan input** — a path to an existing `.md` file under `artifacts.plans`.
24
+ - **Plan input** — a path to an existing `.md` file under `artifacts.plans`. Read its frontmatter `status` first: `draft` → refuse and send the user back to `sassy-plan` to finish it; `done` → refuse, because the plan was closed out and running it again needs `sassy-plan` to reopen it; `active` → run; no `status` key at all → run, since it counts as `active` (a rule `sassy-plan`'s `references/plan-format.md` owns).
25
25
  - **Brief input** — anything else. Treat the whole argument as the settled brief from `sassy-plan`.
26
26
 
27
27
  If nothing is passed and no plan exists, run `sassy-plan` first and use what the user picks there.