@sassywares/skills 0.15.0 → 0.17.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.
- package/README.md +40 -30
- package/package.json +1 -1
- package/skills/sassy-babysit/SKILL.md +3 -0
- package/skills/sassy-commit/SKILL.md +4 -1
- package/skills/sassy-commit-push-pr/SKILL.md +4 -1
- package/skills/sassy-compound/SKILL.md +3 -0
- package/skills/sassy-compound/references/concepts.md +6 -0
- package/skills/sassy-compound/references/templates.md +6 -0
- package/skills/sassy-cycle/SKILL.md +4 -1
- package/skills/sassy-debug/SKILL.md +3 -0
- package/skills/sassy-docs/SKILL.md +3 -0
- package/skills/sassy-docs/references/handbook-format.md +6 -0
- package/skills/sassy-docs/references/handbook.md +6 -0
- package/skills/sassy-docs/references/review.md +6 -0
- package/skills/sassy-dogfood/SKILL.md +3 -0
- package/skills/sassy-dogfood/references/check.md +6 -0
- package/skills/sassy-dogfood/references/discover.md +6 -0
- package/skills/sassy-dogfood/references/run.md +6 -0
- package/skills/sassy-goal/SKILL.md +18 -12
- package/skills/sassy-goal/references/check.md +7 -1
- package/skills/sassy-goal/references/close.md +6 -0
- package/skills/sassy-goal/references/goal-format.md +17 -4
- package/skills/sassy-goal/references/next.md +15 -9
- package/skills/sassy-goal/references/revise.md +25 -0
- package/skills/sassy-goal/references/write.md +6 -0
- package/skills/sassy-handoff/SKILL.md +3 -0
- package/skills/sassy-handoff/references/read.md +6 -0
- package/skills/sassy-handoff/references/write.md +6 -0
- package/skills/sassy-overview/SKILL.md +3 -0
- package/skills/sassy-overview/references/identify.md +6 -0
- package/skills/sassy-overview/scripts/identify.sh +1 -0
- package/skills/sassy-overview/scripts/lib.sh +1 -0
- package/skills/sassy-plan/SKILL.md +29 -22
- package/skills/sassy-plan/references/interview.md +6 -0
- package/skills/sassy-plan/references/plan-format.md +40 -11
- package/skills/sassy-plan/references/revision-format.md +86 -0
- package/skills/sassy-plan/references/sketches.md +6 -0
- package/skills/sassy-review/SKILL.md +3 -0
- package/skills/sassy-scout/SKILL.md +3 -0
- package/skills/sassy-setup/SKILL.md +4 -1
- package/skills/sassy-setup/assets/agents-md.md +3 -3
- package/skills/sassy-setup/assets/roster +0 -1
- package/skills/sassy-setup/references/anchors.md +7 -1
- package/skills/sassy-setup/references/branching.md +19 -10
- package/skills/sassy-setup/references/check.md +6 -0
- package/skills/sassy-setup/references/config.md +11 -6
- package/skills/sassy-setup/references/dogfood.md +6 -0
- package/skills/sassy-setup/references/harness.md +6 -0
- package/skills/sassy-setup/references/init.md +6 -0
- package/skills/sassy-setup/references/plan-resolution.md +53 -0
- package/skills/sassy-setup/references/scaffold-header.md +6 -0
- package/skills/sassy-setup/references/workspace.md +6 -0
- package/skills/sassy-setup/references/worktree.md +6 -0
- package/skills/sassy-setup/scripts/detect.sh +3 -2
- package/skills/sassy-setup/scripts/hash-skill.mjs +1 -0
- package/skills/sassy-setup/scripts/lockcheck.mjs +1 -0
- package/skills/sassy-setup/scripts/worktree-check.mjs +1 -0
- package/skills/sassy-ship/SKILL.md +8 -5
- package/skills/sassy-ship/references/brief.md +6 -0
- package/skills/sassy-ship/references/plan.md +7 -1
- package/skills/sassy-ship/references/slice.md +6 -0
- package/skills/sassy-simplify/SKILL.md +3 -0
- package/skills/sassy-skill/SKILL.md +3 -0
- package/skills/sassy-skill/references/create.md +6 -0
- package/skills/sassy-skill/references/retune.md +6 -0
- package/skills/sassy-skill/references/verify.md +6 -0
- package/skills/sassy-strategy/SKILL.md +3 -0
- package/skills/sassy-strategy/references/check.md +6 -0
- package/skills/sassy-strategy/references/strategy-format.md +6 -0
- package/skills/sassy-strategy/references/write.md +6 -0
- package/skills/sassy-validate/SKILL.md +4 -1
- package/skills/sassy-work/SKILL.md +66 -68
- package/skills/sassy-worktree/SKILL.md +3 -0
- package/skills/sassy-worktree/references/create.md +6 -0
- package/skills/sassy-worktree/references/list.md +6 -0
- package/skills/sassy-worktree/references/remove.md +6 -0
- package/skills/sassy-lfg/SKILL.md +0 -92
package/README.md
CHANGED
|
@@ -32,7 +32,7 @@ It covers the whole path from a rough idea to a shipped PR, and from a bug repor
|
|
|
32
32
|
|
|
33
33
|
- **Lean.** Skills are indexes and workflows, not documentation dumps. Detail moves into `references/` only when it is conditionally needed.
|
|
34
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.
|
|
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
|
|
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
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.
|
|
37
37
|
- **Reliable.** Work runs through `sassy-cycle` with isolated subagents for implementation, review, simplification, validation, and fixes — at the depth the change tier needs.
|
|
38
38
|
- **Context-efficient.** Orchestrators coordinate; subagents do the heavy reading and return compact results.
|
|
@@ -52,30 +52,44 @@ That discussion settles the work, then offers a pick:
|
|
|
52
52
|
|
|
53
53
|
```text
|
|
54
54
|
Settled. Pick one:
|
|
55
|
-
1.
|
|
55
|
+
1. Done for now — docs/plans/<type>-<slug>/plan.md
|
|
56
56
|
2. Start working via /sassy-work
|
|
57
|
-
3. Implement and ship it via /sassy-lfg
|
|
58
57
|
```
|
|
59
58
|
|
|
60
|
-
The plan
|
|
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,
|
|
61
60
|
|
|
62
61
|
```text
|
|
63
|
-
/sassy-work docs/plans/feat-add-workspace-invitations.md
|
|
62
|
+
/sassy-work docs/plans/feat-add-workspace-invitations/plan.md
|
|
64
63
|
```
|
|
65
64
|
|
|
66
|
-
|
|
65
|
+
or one phase at a time,
|
|
67
66
|
|
|
68
67
|
```text
|
|
69
|
-
/sassy-
|
|
68
|
+
/sassy-work docs/plans/feat-add-workspace-invitations/plan.md mode:phase
|
|
70
69
|
```
|
|
71
70
|
|
|
72
|
-
|
|
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:
|
|
73
86
|
|
|
74
87
|
```text
|
|
75
88
|
/sassy-work "Add a copy-link button to the invite modal"
|
|
76
|
-
/sassy-lfg "Add a copy-link button to the invite modal"
|
|
77
89
|
```
|
|
78
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
|
+
|
|
79
93
|
Debugging:
|
|
80
94
|
|
|
81
95
|
```text
|
|
@@ -88,12 +102,11 @@ Debugging:
|
|
|
88
102
|
|
|
89
103
|
| Skill | What it does |
|
|
90
104
|
|---|---|
|
|
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
|
|
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. |
|
|
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. |
|
|
93
107
|
| **`sassy-scout`** | Grounds an area on demand and writes the shared grounding brief other agents read instead of re-exploring. |
|
|
94
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. |
|
|
95
|
-
| **`sassy-work`** |
|
|
96
|
-
| **`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. |
|
|
97
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. |
|
|
98
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. |
|
|
99
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`. |
|
|
@@ -108,7 +121,7 @@ Debugging:
|
|
|
108
121
|
| **`sassy-validate`** | Checks whether work matches a plan or stated intent, then closes the gaps you pick. |
|
|
109
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. |
|
|
110
123
|
|
|
111
|
-
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
|
|
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.
|
|
112
125
|
|
|
113
126
|
`sassy-dogfood` takes its own modes instead: `run` (default), `discover`, and `check`.
|
|
114
127
|
|
|
@@ -332,31 +345,28 @@ In a `workspace` the block goes at the workspace root always, and into a nested
|
|
|
332
345
|
flowchart LR
|
|
333
346
|
A[Idea] --> B[sassy-plan]
|
|
334
347
|
B --> C[Discussion]
|
|
335
|
-
C --> D{
|
|
336
|
-
D -->|1.
|
|
348
|
+
C --> D{2-option picker}
|
|
349
|
+
D -->|1. done for now| E["docs/plans/<type>-<slug>/plan.md"]
|
|
337
350
|
D -->|2. start working| F[sassy-work]
|
|
338
|
-
D -->|3. implement and ship| G[sassy-lfg]
|
|
339
351
|
E -->|then: start working| F
|
|
340
|
-
E -->|then: implement and ship| G
|
|
341
352
|
F --> H[sassy-cycle]
|
|
342
|
-
G --> H
|
|
343
353
|
H --> I{Code approval}
|
|
344
|
-
I -->|changes| H
|
|
354
|
+
I -->|changes: a plan revision| H
|
|
345
355
|
I --> Q{Manual QA}
|
|
346
356
|
Q -->|fails| H
|
|
347
|
-
Q -->|passes,
|
|
348
|
-
Q -->|passes,
|
|
357
|
+
Q -->|passes, mode:phase| J[Commit on the run branch and stop]
|
|
358
|
+
Q -->|passes, mode:ship| K[sassy-ship]
|
|
349
359
|
K --> L{Ship review}
|
|
350
360
|
L -->|approve or mode:auto| M[Commit, PR, babysit]
|
|
351
361
|
```
|
|
352
362
|
|
|
353
|
-
|
|
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.
|
|
354
364
|
|
|
355
|
-
`sassy-work`
|
|
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.
|
|
356
366
|
|
|
357
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.
|
|
358
368
|
|
|
359
|
-
The branch is cut once, before the first change, by `sassy-work`
|
|
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).
|
|
360
370
|
|
|
361
371
|
`sassy-ship` is the close-out. It summarizes what is about to ship and waits, unless the caller passed `mode:auto`.
|
|
362
372
|
|
|
@@ -370,7 +380,7 @@ flowchart LR
|
|
|
370
380
|
B --> C[goal.md + slice table]
|
|
371
381
|
C --> D[sassy-goal next]
|
|
372
382
|
D --> E[sassy-plan: slice plan]
|
|
373
|
-
E --> F[sassy-work
|
|
383
|
+
E --> F[sassy-work]
|
|
374
384
|
F --> G[sassy-ship]
|
|
375
385
|
G --> H[sassy-goal check]
|
|
376
386
|
H -->|more slices, after merge| D
|
|
@@ -378,7 +388,7 @@ flowchart LR
|
|
|
378
388
|
I --> J[Goal done, rides the last PR]
|
|
379
389
|
```
|
|
380
390
|
|
|
381
|
-
A goal is a folder under `artifacts.plans` — `<type>-<slug>/` — holding `goal.md` and one plan per started slice (`01-<slice
|
|
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.
|
|
382
392
|
|
|
383
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.
|
|
384
394
|
|
|
@@ -417,7 +427,7 @@ The fix gate offers four options:
|
|
|
417
427
|
|
|
418
428
|
| Control | When it applies |
|
|
419
429
|
|---|---|
|
|
420
|
-
| Code approval | Always on for `sassy-work
|
|
430
|
+
| Code approval | Always on for `sassy-work`. |
|
|
421
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. |
|
|
422
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. |
|
|
423
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. |
|
|
@@ -428,7 +438,7 @@ The artifact decides QA: a plan document carries QA tables that gate phase compl
|
|
|
428
438
|
|
|
429
439
|
## Branching
|
|
430
440
|
|
|
431
|
-
`sassy-work
|
|
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.
|
|
432
442
|
|
|
433
443
|
With `worktrees.enabled`, a run **offers** a worktree when it cuts a branch and
|
|
434
444
|
takes one only if you say yes: the branch and its checkout appear together, the
|
|
@@ -513,4 +523,4 @@ pi install npm:@sassywares/skills
|
|
|
513
523
|
|
|
514
524
|
## Repository maintenance
|
|
515
525
|
|
|
516
|
-
Work here lands on `main` through `sassy-ship` (`commit.branch: current`). After the approved push, the project's `hooks.push` `after_push` steps run in order: the release, which on `main`, when files consumers receive changed, bumps the patch version and tags it, and the tag publishes `@sassywares/skills` to npm; a self-check that syncs this repo's own config template; and a consumer sync that refreshes the projects listed in `.sassywares/consumers` — projects that vendor the suite themselves, committing and pushing to each one's recorded branch (the engine is `.agents/skills/sassy-skills-sync/scripts/sync`, with `scripts/lock.mjs` repinning the vendored skills). A consumer's setup is never rewritten: an out-of-date one is reported and nothing else. [`AGENTS.md`](AGENTS.md) is the full guide: layout, adding a skill, testing, and releasing.
|
|
526
|
+
Work here lands on `main` through `sassy-ship` (`commit.branch: current`). After the approved push, the project's `hooks.push` `after_push` steps run in order: the release, which on `main`, when files consumers receive changed, bumps the patch version and tags it, and the tag publishes `@sassywares/skills` to npm — and which stamps every skill file it ships with `generated_by: <skill>@<version>`, so an installed copy names the release it came from; a self-check that syncs this repo's own config template; and a consumer sync that refreshes the projects listed in `.sassywares/consumers` — projects that vendor the suite themselves, committing and pushing to each one's recorded branch (the engine is `.agents/skills/sassy-skills-sync/scripts/sync`, with `scripts/lock.mjs` repinning the vendored skills). A consumer's setup is never rewritten: an out-of-date one is reported and nothing else. [`AGENTS.md`](AGENTS.md) is the full guide: layout, adding a skill, testing, and releasing.
|
package/package.json
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
+
suite: sassy-skills
|
|
3
|
+
artifact: skill
|
|
4
|
+
generated_by: sassy-commit@0.17.0
|
|
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-
|
|
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@0.17.0
|
|
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`
|
|
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,3 +1,9 @@
|
|
|
1
|
+
---
|
|
2
|
+
suite: sassy-skills
|
|
3
|
+
artifact: reference
|
|
4
|
+
generated_by: sassy-compound@0.17.0
|
|
5
|
+
---
|
|
6
|
+
|
|
1
7
|
# Concepts file rules
|
|
2
8
|
|
|
3
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.
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
---
|
|
2
|
+
suite: sassy-skills
|
|
3
|
+
artifact: skill
|
|
4
|
+
generated_by: sassy-cycle@0.17.0
|
|
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,
|
|
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,3 +1,9 @@
|
|
|
1
|
+
---
|
|
2
|
+
suite: sassy-skills
|
|
3
|
+
artifact: reference
|
|
4
|
+
generated_by: sassy-docs@0.17.0
|
|
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@0.17.0
|
|
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.
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
---
|
|
2
|
+
suite: sassy-skills
|
|
3
|
+
artifact: reference
|
|
4
|
+
generated_by: sassy-dogfood@0.17.0
|
|
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@0.17.0
|
|
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@0.17.0
|
|
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@0.17.0
|
|
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
|
|
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`
|
|
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
|
|
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`,
|
|
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
|
|
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` |
|
|
40
|
-
| `
|
|
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
|
|
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
|
|
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@0.17.0
|
|
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
|
|
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.
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
---
|
|
2
|
+
suite: sassy-skills
|
|
3
|
+
artifact: reference
|
|
4
|
+
generated_by: sassy-goal@0.17.0
|
|
5
|
+
---
|
|
6
|
+
|
|
1
7
|
# Goal file format
|
|
2
8
|
|
|
3
9
|
Read this before writing or revising `goal.md`.
|
|
@@ -8,9 +14,14 @@ A goal is a folder under `artifacts.plans`:
|
|
|
8
14
|
|
|
9
15
|
```text
|
|
10
16
|
<artifacts.plans>/<type>-<slug>/
|
|
11
|
-
├── goal.md
|
|
12
|
-
├──
|
|
13
|
-
|
|
17
|
+
├── goal.md # this format
|
|
18
|
+
├── revisions/ # append-only: one file per turn of feedback
|
|
19
|
+
├── 01-<slice-slug>/ # S1's plan, written by sassy-plan when S1 starts
|
|
20
|
+
│ ├── plan.md
|
|
21
|
+
│ └── revisions/
|
|
22
|
+
└── 02-<slice-slug>/ # S2's plan, written when S2 starts
|
|
23
|
+
├── plan.md
|
|
24
|
+
└── revisions/
|
|
14
25
|
```
|
|
15
26
|
|
|
16
27
|
The folder name is `<type>-<slug>`, and that whole name is the key `hooks.goal` uses in the project config — prefix included: `hooks.goal.feat-powersync`. The `slug` alone is the part after the `<type>-`.
|
|
@@ -20,7 +31,9 @@ The folder name is `<type>-<slug>`, and that whole name is the key `hooks.goal`
|
|
|
20
31
|
- **Unique.** Two goals on the same object take a qualifier (`-phase-two`), never a timestamp, because the folder name is the `hooks.goal` key.
|
|
21
32
|
- **Undated.** A date in the folder name would land in every `hooks.goal` entry and break when the goal is renamed.
|
|
22
33
|
|
|
23
|
-
Slice plans keep `NN-<slice-slug
|
|
34
|
+
Slice plans keep `NN-<slice-slug>` as their folder name (written via `out:`). `NN` is the slice's order and matches its ID: `S1` → `01-`, `S2` → `02-`. A slice plan is an ordinary sassy plan — a directory holding `plan.md` and its own `revisions/`, the same format as any other — so `sassy-work`, `sassy-ship`, and `sassy-validate` run on it unchanged.
|
|
35
|
+
|
|
36
|
+
A goal is revised exactly like a plan: `mode:revise` opens one `revisions/R<nn>-<slug>.md` per turn, applies its items to `goal.md`, and seals it in the commit that persists the change. `goal.md` is never rewritten wholesale and no row is ever deleted — a slice that stops being wanted is `Withdrawn — R<nn>`, which is why the reasoning behind a dropped slice outlives the decision.
|
|
24
37
|
|
|
25
38
|
## Frontmatter
|
|
26
39
|
|
|
@@ -1,30 +1,36 @@
|
|
|
1
|
+
---
|
|
2
|
+
suite: sassy-skills
|
|
3
|
+
artifact: reference
|
|
4
|
+
generated_by: sassy-goal@0.17.0
|
|
5
|
+
---
|
|
6
|
+
|
|
1
7
|
# Mode: next — plan the next slice
|
|
2
8
|
|
|
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
|
|
9
|
+
**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 itself.
|
|
4
10
|
|
|
5
11
|
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
|
-
2. **Nothing in flight.** If any slice is `Planned` or `Shipped`, stop and name what is due: a `Planned` slice needs `sassy-work`
|
|
12
|
+
2. **Nothing in flight.** If any slice is `Planned` or `Shipped`, stop and name what is due: a `Planned` slice needs `sassy-work` on its plan, a `Shipped` slice needs `mode:check`.
|
|
7
13
|
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
14
|
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.
|
|
9
15
|
5. **Run the `before_slice` hooks.** No `hooks.goal.<slug>.before_slice` 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, briefed with the goal path and slug, the slice ID and title, the plan path that is about to be written, the base and head branches, and the previous slice's PR URL. They run **before** the base check on purpose: a hook may switch each repo to its base, pull, rebase, and migrate, so the base step verifies what the hooks left. A missing skill or a `blocked` result stops the run here, **before** the grill: report which entry stopped it and why, and the recovery — fix the hook, then re-run `mode:next`. No plan is written on an unprepared environment. A `needs-decision` result goes to the user, and the run stops there too.
|
|
10
|
-
6. **Verify a fresh base.** The slice's branch is cut later by `sassy-work
|
|
16
|
+
6. **Verify a fresh base.** The slice's branch is cut later by `sassy-work`, and a run standing on a non-base branch would reuse it. Dispatch a probe `worker` to `git fetch` the remote, run the `sassy-setup` skill's `scripts/detect.sh --branch` (no `--policy`), and return `state`, `head`, and whether local `<head>` equals `<remote>/<head>`. `state` must be `on-base` and the two must match. `on-branch` (usually the previous slice's merged branch), `detached`, or a base behind or ahead of its remote → stop: tell the user to switch to the base and pull, and when hooks ran in step 5, name them as having left it that way. If the head changed since step 1, re-read `goal.md` and confirm the pick still holds. Under `commit.branch: current` this step does not apply.
|
|
11
17
|
7. **Plan it.** Load the `sassy-plan` skill and follow it, with:
|
|
12
18
|
- **frame** = the slice's Ships, Scope, and Done when from `goal.md`
|
|
13
19
|
- **settled** = the goal's Decisions and Constraints, and every Carry-forward entry — enter them in the ledger as settled with their provenance; never re-ask them
|
|
14
20
|
- **context** = the goal path, the goal's Landscape and Coexistence rows for this slice's domains, and the Deferred items addressed to this slice
|
|
15
|
-
- **`out:<goal folder>/NN-<slice-slug
|
|
21
|
+
- **`out:<goal folder>/NN-<slice-slug>`** — the slice's own directory, whose plan lands at `NN-<slice-slug>/plan.md` — with `NN` from the slice ID
|
|
16
22
|
- **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
23
|
|
|
18
|
-
`sassy-plan` grills the slice in full — this is where its detail gets decided — with the plan opened at
|
|
24
|
+
`sassy-plan` grills the slice in full — this is where its detail gets decided — with the plan opened at `<out>/plan.md` 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
25
|
|
|
20
|
-
**Interrupted run.** If
|
|
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`
|
|
26
|
+
**Interrupted run.** If the slice's directory `NN-<slice-slug>/` already holds a plan while the slice is still `Pending`, an earlier run stopped after writing it. Pass that plan's path 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.
|
|
27
|
+
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` 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`.
|
|
22
28
|
9. **Hand over.** Report the plan path, name the hook outcome — `ran: <names>` or `none declared` — and print both commands in the harness's syntax, then stop:
|
|
23
29
|
|
|
24
30
|
```text
|
|
25
31
|
S<n> planned at <plan path>. Pick one:
|
|
26
|
-
/sassy-work <plan path>
|
|
27
|
-
/sassy-
|
|
32
|
+
/sassy-work <plan path> — every phase, then ship
|
|
33
|
+
/sassy-work <plan path> mode:phase — one phase per session
|
|
28
34
|
```
|
|
29
35
|
|
|
30
36
|
After `sassy-ship` closes the slice it prints the `mode:check` command.
|