@sassywares/skills 0.11.22 → 0.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CONCEPTS.md +36 -22
- package/README.md +42 -33
- package/package.json +1 -1
- package/skills/sassy-goal/SKILL.md +5 -5
- package/skills/sassy-goal/references/close.md +4 -4
- package/skills/sassy-goal/references/goal-format.md +27 -4
- package/skills/sassy-goal/references/next.md +2 -1
- package/skills/sassy-goal/references/write.md +2 -2
- package/skills/sassy-lfg/SKILL.md +2 -2
- package/skills/sassy-overview/SKILL.md +52 -0
- package/skills/sassy-overview/references/identify.md +82 -0
- package/skills/sassy-overview/scripts/identify.sh +83 -0
- package/skills/sassy-overview/scripts/lib.sh +334 -0
- package/skills/sassy-plan/SKILL.md +5 -5
- package/skills/sassy-plan/references/plan-format.md +34 -6
- package/skills/sassy-setup/SKILL.md +8 -8
- package/skills/sassy-setup/assets/dogfood-recipe.md +1 -1
- package/skills/sassy-setup/assets/lifecycle/down +29 -0
- package/skills/sassy-setup/assets/lifecycle/up +34 -0
- package/skills/sassy-setup/assets/roster +1 -0
- package/skills/sassy-setup/assets/sassywares-readme.md +5 -4
- package/skills/sassy-setup/assets/worktree/_lib.sh +52 -213
- package/skills/sassy-setup/assets/worktree/create +18 -33
- package/skills/sassy-setup/assets/worktree/list +20 -54
- package/skills/sassy-setup/assets/worktree/prune +13 -9
- package/skills/sassy-setup/assets/worktree/remove +83 -26
- package/skills/sassy-setup/references/branching.md +7 -3
- package/skills/sassy-setup/references/config.md +105 -24
- package/skills/sassy-setup/references/dogfood.md +11 -17
- package/skills/sassy-setup/references/init.md +18 -4
- package/skills/sassy-setup/references/workspace.md +27 -34
- package/skills/sassy-setup/references/worktree.md +66 -75
- package/skills/sassy-setup/scripts/detect.sh +112 -103
- package/skills/sassy-setup/scripts/hash-skill.mjs +31 -18
- package/skills/sassy-setup/scripts/worktree-check.mjs +89 -0
- package/skills/sassy-ship/SKILL.md +1 -1
- package/skills/sassy-work/SKILL.md +2 -2
- package/skills/sassy-worktree/SKILL.md +17 -21
- package/skills/sassy-worktree/references/create.md +3 -3
- package/skills/sassy-worktree/references/list.md +2 -2
- package/skills/sassy-worktree/references/prune.md +4 -4
- package/skills/sassy-worktree/references/remove.md +8 -6
- package/skills/sassy-setup/assets/worktree/stop +0 -65
- package/skills/sassy-worktree/references/preview.md +0 -17
package/CONCEPTS.md
CHANGED
|
@@ -53,7 +53,7 @@ A gate is a deliberate stop or pass/fail condition.
|
|
|
53
53
|
## Worktree
|
|
54
54
|
|
|
55
55
|
One checkout per branch, so two runs never share a working tree. `sassy-worktree`
|
|
56
|
-
owns the
|
|
56
|
+
owns the workflow; the scripts in `.sassywares/worktree/` own the git.
|
|
57
57
|
|
|
58
58
|
- **Worktree** — a second checkout of the same repository, at
|
|
59
59
|
`~/.sassywares/worktrees/<repo>/<slug>`. It shares one object store and one
|
|
@@ -67,31 +67,45 @@ owns the lifecycle; the scripts in `.sassywares/worktree/` own the git.
|
|
|
67
67
|
and a managed checkout that already exists for the branch is reused rather than
|
|
68
68
|
a second one cut.
|
|
69
69
|
- **Slug** — the branch with `/` flattened (`feat/catalog` → `feat-catalog`). It
|
|
70
|
-
names the directory
|
|
70
|
+
names the directory the checkout lives in, and the handle `list --path` and
|
|
71
|
+
`remove` take — `remove` also accepts the branch.
|
|
71
72
|
- **Namespace** — the slug prefixed with the repo (`shop-feat-catalog`), and the
|
|
72
73
|
only name a hook should use for a database, a compose project, or a simulator.
|
|
73
74
|
Derived once by `create`; never rebuilt by hand.
|
|
74
|
-
- **
|
|
75
|
-
`
|
|
76
|
-
`
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
work; proving is dogfood's job. **How to see it** is the recipe's `**Preview:**`
|
|
82
|
-
line with `WT_*` substituted — a URL, a simulator, a window, never the command
|
|
83
|
-
that started it — so the suite never assumes a browser.
|
|
75
|
+
- **Lifecycle** — the project's own pair of top-level config keys, `up:` and
|
|
76
|
+
`down:`, each a script or a skill and its args. The suite supplies the shape
|
|
77
|
+
and the `WT_*` environment, never the commands: `up` starts the stack in a
|
|
78
|
+
checkout and `down` stops it, and `remove` runs `down` before deleting. Absent
|
|
79
|
+
means no lifecycle, and nothing is invented. Addressing a checkout — a URL, a
|
|
80
|
+
simulator, a window — is the project's business too; two checkouts running the
|
|
81
|
+
same app collide unless the project's own `up:` keeps them apart.
|
|
84
82
|
- **Managed checkout** — one under `worktrees.dir` that also carries
|
|
85
|
-
`.sassywares/config.yaml`. The tooling lists, prunes,
|
|
86
|
-
|
|
83
|
+
`.sassywares/config.yaml`. The tooling lists, prunes, and removes only those;
|
|
84
|
+
anything else belongs to another tool or predates the wiring.
|
|
87
85
|
|
|
88
|
-
`create` and `remove` need an agent because their hooks
|
|
89
|
-
|
|
90
|
-
script.
|
|
86
|
+
`create` and `remove` need an agent because their hooks — and a `down:` that names
|
|
87
|
+
a skill — are project skills, and a script cannot dispatch one. So the
|
|
88
|
+
orchestration is a skill and the git is a script.
|
|
89
|
+
|
|
90
|
+
## Overview
|
|
91
|
+
|
|
92
|
+
What a project is and how it runs, answered from its files. `sassy-overview`
|
|
93
|
+
owns it; its `identify.sh` is the query.
|
|
94
|
+
|
|
95
|
+
- **Identify** — the default `mode:identify`: one `key<TAB>value<TAB>source` line
|
|
96
|
+
per fact, read-only and never executing the project's tooling. The keys are
|
|
97
|
+
`stack`, `runner`, `install`, `up`, `down`, `test`, `compose`, `env`, `wired`.
|
|
98
|
+
- **Source** — the file a value came from, or `-` when there is none. A value
|
|
99
|
+
without a source is not a fact, which is why `unknown` carries `-`.
|
|
100
|
+
- **Unknown** — a first-class answer: the project has not declared this fact.
|
|
101
|
+
It is never a gap to fill with a default or a manifest written to hold one.
|
|
102
|
+
- **Answered vs. asked** — the default run is an inventory and exits `0`; naming
|
|
103
|
+
keys makes it a question, and any requested `unknown` exits `3` so the caller
|
|
104
|
+
branches instead of guessing. Usage errors exit `2`.
|
|
91
105
|
|
|
92
106
|
## Modes
|
|
93
107
|
|
|
94
|
-
Three shared mode tokens: `mode:manual` (default) asks at the skill's gate; `mode:auto` means pre-authorized, no review; `mode:return` reports and changes nothing. Some skills take their own modes instead: `sassy-goal`, `sassy-handoff` (`write`, `read`), `sassy-setup` (`init`, `check`), and `sassy-skill` (`create`, `retune`, `verify`).
|
|
108
|
+
Three shared mode tokens: `mode:manual` (default) asks at the skill's gate; `mode:auto` means pre-authorized, no review; `mode:return` reports and changes nothing. Some skills take their own modes instead: `sassy-goal`, `sassy-handoff` (`write`, `read`), `sassy-setup` (`init`, `check`), `sassy-overview` (`identify`), and `sassy-skill` (`create`, `retune`, `verify`).
|
|
95
109
|
|
|
96
110
|
- `sassy-ship` and `sassy-compound` accept `manual` and `auto`. Ship reviews the whole close-out in `mode:manual` and forwards `mode:auto` to compound once its own gate is answered.
|
|
97
111
|
- `sassy-review`, `sassy-simplify`, and `sassy-validate` accept all three: `manual` asks which findings to fix, `auto` fixes them without asking, `return` hands the findings back to the caller.
|
|
@@ -101,16 +115,16 @@ Three shared mode tokens: `mode:manual` (default) asks at the skill's gate; `mod
|
|
|
101
115
|
|
|
102
116
|
Everything else is decided by the artifact, not a mode:
|
|
103
117
|
|
|
104
|
-
- A plan document under `docs/plans/` drives phased execution and carries QA tables whose rows are `Auto` or `Manual`.
|
|
118
|
+
- A plan document under `docs/plans/` — `<type>-<slug>.md`, with YAML frontmatter for `type`, `created`, `updated` (plus `qa: off` when the user asks for no QA gates) — drives phased execution and carries QA tables whose rows are `Auto` or `Manual`.
|
|
105
119
|
- An in-context brief drives one cycle and has no plan file and no QA tables.
|
|
106
120
|
|
|
107
121
|
## Plan
|
|
108
122
|
|
|
109
|
-
A durable document under `docs/plans
|
|
123
|
+
A durable document under `docs/plans/<type>-<slug>.md` with frontmatter, intent, decisions, constraints, phase tracking, and per-phase QA tables.
|
|
110
124
|
|
|
111
125
|
## Goal
|
|
112
126
|
|
|
113
|
-
Work too big for one plan — a migration, an epic — run by `sassy-goal` as a folder under `artifacts.plans
|
|
127
|
+
Work too big for one plan — a migration, an epic — run by `sassy-goal` as a folder under `artifacts.plans`, `<type>-<slug>/`: `goal.md` (intent, cross-slice decisions, landscape, coexistence, a slice table, carry-forward) plus one plan per started slice. It turns `done` when `mode:close` verifies its done-when against the whole tree.
|
|
114
128
|
|
|
115
129
|
## Slice
|
|
116
130
|
|
|
@@ -122,7 +136,7 @@ The append-only section of `goal.md` that `mode:check` adds to once per slice: w
|
|
|
122
136
|
|
|
123
137
|
## Goal hook
|
|
124
138
|
|
|
125
|
-
A project skill run at a goal's boundaries, declared under `hooks.goal` and keyed by the goal
|
|
139
|
+
A project skill run at a goal's boundaries, declared under `hooks.goal` and keyed by the goal's folder name under `artifacts.plans`, `<type>-<slug>` (prefix included). `before_slice` runs in `mode:next` after the previous slice's merge is confirmed and before the next slice is grilled; `after_close` runs in `mode:close` after the status is persisted, on `done` and on a goal left `active`. Neither may touch the goal itself (`goal.md`, the slice plan, the status); anything else — switching to the bases, pulling, rebasing, committing, pushing, migrating — is the project's call, provided every base ends level with its remote. `before_slice` fires before `mode:next` checks the base, so it can be what freshens it. Entries are idempotent, and both fail closed. They are not PR-keyed, so `commit.branch: current` does not suppress them, and since `sassy-goal` has no approval gate the mode's report names what ran, that none are declared, or where it stopped.
|
|
126
140
|
|
|
127
141
|
## Brief
|
|
128
142
|
|
package/README.md
CHANGED
|
@@ -50,21 +50,21 @@ That discussion settles the work, then offers a pick:
|
|
|
50
50
|
|
|
51
51
|
```text
|
|
52
52
|
Settled. Pick one:
|
|
53
|
-
1. Write the plan — docs/plans/<slug>.md
|
|
53
|
+
1. Write the plan — docs/plans/<type>-<slug>.md
|
|
54
54
|
2. Start working via /sassy-work
|
|
55
55
|
3. Implement and ship it via /sassy-lfg
|
|
56
56
|
```
|
|
57
57
|
|
|
58
|
-
Pick 1 to get a plan file. 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:
|
|
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:
|
|
59
59
|
|
|
60
60
|
```text
|
|
61
|
-
/sassy-work docs/plans/add-workspace-invitations.md
|
|
61
|
+
/sassy-work docs/plans/feat-add-workspace-invitations.md
|
|
62
62
|
```
|
|
63
63
|
|
|
64
64
|
Or the whole plan through one session:
|
|
65
65
|
|
|
66
66
|
```text
|
|
67
|
-
/sassy-lfg docs/plans/add-workspace-invitations.md
|
|
67
|
+
/sassy-lfg docs/plans/feat-add-workspace-invitations.md
|
|
68
68
|
```
|
|
69
69
|
|
|
70
70
|
For small work that does not need a plan document, choose 2 or 3 at the picker, or invoke the executor directly with the brief:
|
|
@@ -89,9 +89,10 @@ Debugging:
|
|
|
89
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
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
91
|
| **`sassy-scout`** | Grounds an area on demand and writes the shared grounding brief other agents read instead of re-exploring. |
|
|
92
|
+
| **`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. |
|
|
92
93
|
| **`sassy-work`** | Executes exactly one plan phase, or one in-context brief, commits after code approval, then stops — the next phase is a run you start. A brief stops before ship. |
|
|
93
94
|
| **`sassy-lfg`** | Executes every phase of a plan, or one in-context brief, then closes out via `sassy-ship` after code approval. |
|
|
94
|
-
| **`sassy-worktree`** | One checkout per branch, each with its own derived namespace
|
|
95
|
+
| **`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`, `prune`: cut a checkout, see what exists, delete one, or clear the leftovers. |
|
|
95
96
|
| **`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. |
|
|
96
97
|
| **`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`. |
|
|
97
98
|
| **`sassy-handoff`** | `mode:write` (default) writes a self-contained handoff file to `/tmp/sassywares/handoffs/` and gives you a `sassy-handoff mode:read <path>` command for a fresh session; `mode:read` explains what the handoff did, why, and where things stand now, then asks what to do next. Works in any harness. |
|
|
@@ -183,7 +184,9 @@ hooks:
|
|
|
183
184
|
worktrees: # parallel checkouts of this repo
|
|
184
185
|
enabled: false # true = a run may offer its own checkout
|
|
185
186
|
dir: ~/.sassywares/worktrees # parent of the per-repo folder
|
|
186
|
-
|
|
187
|
+
# up:/down: are top level — not under worktrees: — each `<script> <args…>` or `<skill> <args…>`
|
|
188
|
+
# up: ./bin/up
|
|
189
|
+
# down: ./bin/down # absent = no lifecycle
|
|
187
190
|
dogfood: # agent QA: a stored procedure that proves a change runs
|
|
188
191
|
enabled: false # true lets a plan write Mode: Auto QA rows
|
|
189
192
|
recipe: .sassywares/dogfood/recipe.md # the procedure; never commands here
|
|
@@ -194,12 +197,11 @@ dogfood: # agent QA: a stored procedure that proves a ch
|
|
|
194
197
|
### Working in parallel
|
|
195
198
|
|
|
196
199
|
Two agents in one repo need two checkouts, and a checkout needs a name — a
|
|
197
|
-
directory, a
|
|
200
|
+
directory, a namespace, a database. `worktrees:` turns that on:
|
|
198
201
|
|
|
199
202
|
```text
|
|
200
203
|
~/.sassywares/worktrees/shop/
|
|
201
204
|
├── .repo which checkout owns this folder
|
|
202
|
-
├── ports/ one claim directory per port
|
|
203
205
|
└── feat-catalog-search/
|
|
204
206
|
```
|
|
205
207
|
|
|
@@ -213,9 +215,16 @@ takes one and otherwise works in the main checkout, because two runs only collid
|
|
|
213
215
|
when they are actually parallel. `sassy-worktree create` takes one whenever you
|
|
214
216
|
ask for it, and a run carrying `worktree:on` has already been told yes.
|
|
215
217
|
|
|
218
|
+
Setup installs the tooling as four scripts in `.sassywares/worktree/` — `create`,
|
|
219
|
+
`list`, `remove`, `prune` — run by path, `.sassywares/worktree/create
|
|
220
|
+
feat/catalog`. No command runner is required: if the project already has one that
|
|
221
|
+
carries named commands, setup offers to wire `worktree:<script>` aliases into it,
|
|
222
|
+
and never creates a manifest to hold them, so a Go, Python, or Dart project keeps
|
|
223
|
+
its own tooling file and nothing else.
|
|
224
|
+
|
|
216
225
|
`create` derives the identity from the branch and prints it — `WT_PATH`,
|
|
217
|
-
`WT_SLUG`, `WT_NAMESPACE` — so a project's hook derives `.env`, a
|
|
218
|
-
or a simulator from one source instead of inventing its own.
|
|
226
|
+
`WT_BRANCH`, `WT_SLUG`, `WT_NAMESPACE` — so a project's hook derives `.env`, a
|
|
227
|
+
database name, or a simulator from one source instead of inventing its own.
|
|
219
228
|
|
|
220
229
|
A checkout's branch is cut **untracked**, and `create` prints the upstream it
|
|
221
230
|
found — `none` on a fresh branch, and a plain-English warning when an existing
|
|
@@ -223,28 +232,28 @@ branch tracks something other than its own name. Cut from `origin/staging`, git'
|
|
|
223
232
|
DWIM would have made `staging` that branch's upstream, so the branch's own `git
|
|
224
233
|
push` would aim at the base: a run that looks healthy until it ships.
|
|
225
234
|
|
|
226
|
-
A
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
235
|
+
**A checkout's address and its stack are the project's own business.** The suite
|
|
236
|
+
derives no address and runs no app: how a checkout is looked at, and what command
|
|
237
|
+
brings it up, are the top-level `up:` and `down:` keys — each one line, a script
|
|
238
|
+
or a skill and its args. Two checkouts running the same app collide on the same
|
|
239
|
+
fixed port unless the project's `up:` keeps them apart, so a project that needs a
|
|
240
|
+
per-checkout value derives it there from `$WT_SLUG`. Nothing here claims or tracks
|
|
241
|
+
one, and a collision surfaces in the project's own command.
|
|
233
242
|
|
|
234
243
|
It needs `commit.branch: new`: under `current` a run commits where it stands and
|
|
235
244
|
never cuts a branch, so nothing would create a checkout. `--check` says so rather
|
|
236
245
|
than leaving a switch that cannot fire.
|
|
237
246
|
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
most providers register one callback URL, so the
|
|
242
|
-
the main checkout's session in the `after_create`
|
|
243
|
-
|
|
244
|
-
to be injected per origin.
|
|
247
|
+
`up:` runs in the foreground and is stopped with SIGTERM, so it must reap its
|
|
248
|
+
children; `down:` terminates what `up:` started and exits. `remove` runs `down:`
|
|
249
|
+
when the project declares one, then deletes the checkout. A worktree gets a fresh,
|
|
250
|
+
empty `.sassywares/session/`, and most providers register one callback URL, so the
|
|
251
|
+
usual answer is to copy or link the main checkout's session in the `after_create`
|
|
252
|
+
hook: a cookie is host-scoped, while a `localStorage` session is origin-scoped and
|
|
253
|
+
has to be injected per origin.
|
|
245
254
|
|
|
246
|
-
Nothing here keeps state:
|
|
247
|
-
refuses a dirty tree, unpushed commits,
|
|
255
|
+
Nothing here keeps state: `list` reports branch, path, dirty, and upstream, and
|
|
256
|
+
`remove` refuses a dirty tree, unpushed commits, or the main checkout.
|
|
248
257
|
|
|
249
258
|
### Extending the pipeline
|
|
250
259
|
|
|
@@ -257,10 +266,10 @@ A project adds its own steps by naming a skill that lives in its own `.agents/sk
|
|
|
257
266
|
| `before_merge` | this run is about to merge | a final approval gate |
|
|
258
267
|
| `after_merge` | this run observed the merge | sync a back-merge branch, tag, notify |
|
|
259
268
|
| `hooks.push` `after_push` | `commit.branch: current` only: after ship's push | notify, trigger a follow-up step |
|
|
260
|
-
| `hooks.worktree` `after_create` | just after a checkout exists | derive `.env
|
|
269
|
+
| `hooks.worktree` `after_create` | just after a checkout exists | derive `.env`, seed the database, copy the session in |
|
|
261
270
|
| `hooks.worktree` `before_remove` | before the checkout is deleted | drop the derived database, shut the simulator |
|
|
262
271
|
| `hooks.goal` `before_slice` | `sassy-goal mode:next`: after the previous slice's merge is confirmed, before the slice is grilled | switch to the bases, pull, migrate, seed |
|
|
263
|
-
| `hooks.goal` `after_close` | `sassy-goal mode:close`: after the goal's status is persisted | post the goal summary, notify, tear down per-slice
|
|
272
|
+
| `hooks.goal` `after_close` | `sassy-goal mode:close`: after the goal's status is persisted | post the goal summary, notify, tear down per-slice environments |
|
|
264
273
|
|
|
265
274
|
Hooks run in declared order, one subagent each, and fail closed: a declared skill that is missing or returns `blocked` stops the run. Which points may write, and how, is stated once in `sassy-setup`'s `references/config.md` (the hook contract). `before_merge` and `after_merge` never fire unless this run merges. Goal hooks may do anything except touch the goal itself, as long as every base ends level with its remote; `before_slice` fires before `mode:next` checks the base, and neither is suppressed by `commit.branch: current`.
|
|
266
275
|
|
|
@@ -305,7 +314,7 @@ flowchart LR
|
|
|
305
314
|
A[Idea] --> B[sassy-plan]
|
|
306
315
|
B --> C[Discussion]
|
|
307
316
|
C --> D{3-option picker}
|
|
308
|
-
D -->|1. plan document| E[docs/plans
|
|
317
|
+
D -->|1. plan document| E["docs/plans/<type>-<slug>.md"]
|
|
309
318
|
D -->|2. start working| F[sassy-work]
|
|
310
319
|
D -->|3. implement and ship| G[sassy-lfg]
|
|
311
320
|
E -->|then: start working| F
|
|
@@ -345,12 +354,12 @@ flowchart LR
|
|
|
345
354
|
G --> H[sassy-goal check]
|
|
346
355
|
H -->|more slices, after merge| D
|
|
347
356
|
H -->|last slice| I[sassy-goal close]
|
|
348
|
-
I --> J[Goal
|
|
357
|
+
I --> J[Goal done, rides the last PR]
|
|
349
358
|
```
|
|
350
359
|
|
|
351
|
-
A goal is a folder under `artifacts.plans` 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>`); ship marks it `Shipped` and babysits the PR without merging, so the check can still land in it.
|
|
360
|
+
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.
|
|
352
361
|
|
|
353
|
-
`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 `
|
|
362
|
+
`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.
|
|
354
363
|
|
|
355
364
|
### From bug to ship
|
|
356
365
|
|
|
@@ -394,7 +403,7 @@ The fix gate offers four options:
|
|
|
394
403
|
| Dogfood | `Auto` rows only exist when `dogfood.enabled` is on and the row's recipe section has a `Prove it:` step. `sassy-ship` persists nothing behind an unproven row. |
|
|
395
404
|
| Ship review | On in `mode:manual` (default), skipped by `mode:auto`. |
|
|
396
405
|
|
|
397
|
-
The artifact decides QA: a plan document carries QA tables that gate phase completion
|
|
406
|
+
The artifact decides QA: a plan document carries QA tables that gate phase completion unless its frontmatter sets `qa: off`; an in-context brief has no QA tables at all. Gates are deliberate stops; the only way past one is the user's approval. `mode:auto` is accepted only by `sassy-ship` and `sassy-compound`.
|
|
398
407
|
|
|
399
408
|
## Branching
|
|
400
409
|
|
package/package.json
CHANGED
|
@@ -14,7 +14,7 @@ argument-hint: "<idea | goal path> [mode:write|next|check|close] [slice:<ID>]"
|
|
|
14
14
|
|
|
15
15
|
# Sassy Goal
|
|
16
16
|
|
|
17
|
-
**Outcome:** a goal folder whose `goal.md` holds the intent, the cross-slice decisions, and a slice table — then, one slice at a time, a slice plan written when that slice starts, shipped through the usual `sassy-work` / `sassy-lfg` → `sassy-ship` path, checked against its plan, and carried forward; finally the whole goal verified and marked `
|
|
17
|
+
**Outcome:** a goal folder whose `goal.md` holds the intent, the cross-slice decisions, and a slice table — then, one slice at a time, a slice plan written when that slice starts, shipped through the usual `sassy-work` / `sassy-lfg` → `sassy-ship` path, checked against its plan, and carried forward; finally the whole goal verified and marked `done`.
|
|
18
18
|
|
|
19
19
|
**One slice ships at a time, and every slice ships something complete.** A slice is its own plan → work or lfg → ship. It never leaves a half-built layer behind for a later slice to finish.
|
|
20
20
|
|
|
@@ -26,7 +26,7 @@ argument-hint: "<idea | goal path> [mode:write|next|check|close] [slice:<ID>]"
|
|
|
26
26
|
|
|
27
27
|
## The goal
|
|
28
28
|
|
|
29
|
-
A goal is the folder `<artifacts.plans>/<
|
|
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
31
|
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
32
|
|
|
@@ -37,7 +37,7 @@ Slice statuses run `Pending` > `Planned` > `Shipped` > `Done`, plus `Blocked`. `
|
|
|
37
37
|
| `write` (default) | `references/write.md` | anytime | a new or revised `goal.md`, and the `mode:next` command |
|
|
38
38
|
| `next` | `references/next.md` | previous slice merged; on the base once `before_slice` has run | the `before_slice` hooks run, the slice's plan written, the slice `Planned`, and the work / lfg commands |
|
|
39
39
|
| `check` | `references/check.md` | on the slice branch after ship, before merge | the slice `Done`, carry-forward appended, pushed with the slice |
|
|
40
|
-
| `close` | `references/close.md` | on the last slice's branch after its check, before merge |
|
|
40
|
+
| `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 |
|
|
41
41
|
|
|
42
42
|
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
43
|
|
|
@@ -47,7 +47,7 @@ write → next → work/lfg → ship → check → next → … → ship → che
|
|
|
47
47
|
|
|
48
48
|
## Persisting
|
|
49
49
|
|
|
50
|
-
`check` and `close` commit on the slice branch so `goal.md` merges with the slice. Persist exactly like `sassy-ship` steps 4–5, per `git.repo`:
|
|
50
|
+
`check` and `close` commit on the slice branch so `goal.md` merges with the slice. Every mode that edits `goal.md` — `write`, `next`, `check`, `close` — sets its frontmatter `updated` to today in that same edit. Persist exactly like `sassy-ship` steps 4–5, per `git.repo`:
|
|
51
51
|
|
|
52
52
|
- **A remote** — dispatch a `worker`: *load the `sassy-commit-push-pr` skill and follow it with `branch:current` and `babysit:off`*, which commits, pushes, and updates the slice's open PR. Under `commit.branch: current` there is no PR: the worker loads `sassy-commit` with `branch:current`, then pushes the head to its upstream — never forced; a non-fast-forward rejection is a stop-and-report.
|
|
53
53
|
- **`workspace`** — commit each affected repo on the run's shared branch, run `.sassywares/workspace/snapshot` for `goal.md` and the docs at the root, then push each repo. A missing or outdated snapshot script is a blocker: say to run `sassy-setup`.
|
|
@@ -60,7 +60,7 @@ write → next → work/lfg → ship → check → next → … → ship → che
|
|
|
60
60
|
| Point | Owner | Fires |
|
|
61
61
|
|---|---|---|
|
|
62
62
|
| `before_slice` | `mode:next` | after the slice is picked, before the base check and the grill |
|
|
63
|
-
| `after_close` | `mode:close` | after the status is persisted, before the report — on `
|
|
63
|
+
| `after_close` | `mode:close` | after the status is persisted, before the report — on `done` and on a goal left `active` |
|
|
64
64
|
|
|
65
65
|
- **The goal is off-limits; bases end level.** A goal hook never edits `goal.md` or the slice plan, or changes the goal status, `mode`, or `branch`. Anything else is the project's call — switch to the bases, pull, rebase, commit, push, migrate a dev database, seed, notify — provided every base it touches ends level with its remote, which `mode:next` verifies right after `before_slice`. Entries are idempotent.
|
|
66
66
|
- **Not PR-keyed.** `commit.branch: current` does not suppress them; they fire in `remote`, `workspace` (once, at the workspace root), and `none`.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Mode: close — verify the whole goal
|
|
2
2
|
|
|
3
|
-
Runs on the last slice's branch after its `mode:check`, before its PR merges, so
|
|
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
5
|
1. **Precondition.** Read `goal.md`. 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`;
|
|
@@ -17,7 +17,7 @@ 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
|
|
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
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` (`
|
|
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 `
|
|
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.
|
|
@@ -7,13 +7,31 @@ Read this before writing or revising `goal.md`.
|
|
|
7
7
|
A goal is a folder under `artifacts.plans`:
|
|
8
8
|
|
|
9
9
|
```text
|
|
10
|
-
<artifacts.plans>/<
|
|
10
|
+
<artifacts.plans>/<type>-<slug>/
|
|
11
11
|
├── goal.md # this format
|
|
12
12
|
├── 01-<slice-slug>.md # S1's plan, written by sassy-plan when S1 starts
|
|
13
13
|
└── 02-<slice-slug>.md # S2's plan, written when S2 starts
|
|
14
14
|
```
|
|
15
15
|
|
|
16
|
-
The
|
|
16
|
+
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>-`.
|
|
17
|
+
|
|
18
|
+
- **`type`** is one of `feat fix chore refactor docs test perf ci build` — the Conventional Commit type the goal will ship as. `mode:next` passes it into each slice plan's frontmatter, and `branching.md` reads it there to name the slice branch, so the chain runs goal → slice plan → branch.
|
|
19
|
+
- **`slug`** is lowercase ASCII kebab, 2–3 words (ceiling 5), naming the thing that changes, never the activity. It is the folder name minus its `<type>-` prefix.
|
|
20
|
+
- **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
|
+
- **Undated.** A date in the folder name would land in every `hooks.goal` entry and break when the goal is renamed.
|
|
22
|
+
|
|
23
|
+
Slice plans keep `NN-<slice-slug>.md` (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, so `sassy-work`, `sassy-lfg`, `sassy-ship`, and `sassy-validate` run on it unchanged.
|
|
24
|
+
|
|
25
|
+
## Frontmatter
|
|
26
|
+
|
|
27
|
+
Required keys, in this order, and nothing else:
|
|
28
|
+
|
|
29
|
+
- **`type`** — one of the list above, matching the folder prefix.
|
|
30
|
+
- **`status`** — `active` | `done`.
|
|
31
|
+
- **`created`** — `YYYY-MM-DD`, the day the goal was first written; never changes.
|
|
32
|
+
- **`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
|
+
|
|
34
|
+
The H1 title stays: frontmatter does not render on GitHub, so the heading is what a reader sees.
|
|
17
35
|
|
|
18
36
|
## Rules
|
|
19
37
|
|
|
@@ -39,9 +57,14 @@ Order: `Pending` > `Planned` > `Shipped` > `Done`. Only one slice is ever `Plann
|
|
|
39
57
|
## Template
|
|
40
58
|
|
|
41
59
|
```markdown
|
|
42
|
-
|
|
60
|
+
---
|
|
61
|
+
type: feat
|
|
62
|
+
status: active
|
|
63
|
+
created: YYYY-MM-DD
|
|
64
|
+
updated: YYYY-MM-DD
|
|
65
|
+
---
|
|
43
66
|
|
|
44
|
-
|
|
67
|
+
# <Goal title>
|
|
45
68
|
|
|
46
69
|
## Intent
|
|
47
70
|
One paragraph: the outcome when the whole goal lands, and why it is worth a multi-slice effort.
|
|
@@ -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 `
|
|
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.
|
|
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.
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
- **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
14
|
- **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
15
|
- **`out:<goal folder>/NN-<slice-slug>.md`**, with `NN` from the slice ID
|
|
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
|
|
16
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
19
|
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
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.
|
|
17
17
|
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
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>/<
|
|
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.
|
|
20
20
|
|
|
21
21
|
## Existing goal (the argument is a goal folder or `goal.md`)
|
|
22
22
|
|
|
23
|
-
1. Read `goal.md`. If its status is `
|
|
23
|
+
1. Read `goal.md`. If its status is `done`, say so and stop unless the user asks to reopen it.
|
|
24
24
|
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
25
|
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
26
|
4. Apply the same pushback on incomplete slices, read back the delta, then update `goal.md` in place.
|
|
@@ -32,7 +32,7 @@ A phase's `**Review:**` line names its change tier — `logic`, `surface`, or `n
|
|
|
32
32
|
|
|
33
33
|
## QA gate
|
|
34
34
|
|
|
35
|
-
Read the plan's
|
|
35
|
+
Read the plan's frontmatter `qa` key and its per-phase QA tables: `qa: off` means no QA gate for that plan, and no `qa` key means every phase's QA table is part of the gate. QA is part of the completion gate: LFG builds every phase first, then presents one gate carrying code approval plus every phase's QA checklist. No phase turns `Done`, and nothing is committed or shipped, until both pass. When you mark a phase or write a QA row result, a plan edited in place gets `updated` set to today.
|
|
36
36
|
|
|
37
37
|
Rows split by `Mode`:
|
|
38
38
|
|
|
@@ -48,7 +48,7 @@ A brief has no QA table, so its gate is code approval alone. Never invent, enabl
|
|
|
48
48
|
1. **Load the plan.** Read the plan and its Phase tracking table. If phases are already `In progress` from an interrupted run, ask once whether to resume at the gate or rerun those cycles, then continue from the answer. A change the user brings instead of a resume follows the gate-change path: a new cycle with the change as its work brief.
|
|
49
49
|
2. **Resolve the branch, before touching code.** Follow the `sassy-setup` skill's `references/branching.md` with this run's `branch:` and `worktree:` tokens, if any. LFG runs every phase in one session, so the branch is cut once here and every phase commits onto it. Report the branch and its start point in the gate. A `stop-and-ask` here stops the run before any phase starts.
|
|
50
50
|
|
|
51
|
-
When the decision took a checkout, every phase brief and every `sassy-dogfood` run uses the checkout's own address — `WT_PATH`, and `WT_NAMESPACE
|
|
51
|
+
When the decision took a checkout, every phase brief and every `sassy-dogfood` run uses the checkout's own address — `WT_PATH`, and `WT_NAMESPACE` — since proof run against the main checkout's instance proves the wrong app.
|
|
52
52
|
3. **Run every phase, in order.** For each phase not `Done`:
|
|
53
53
|
- Set the phase `In progress`, then load the `sassy-cycle` skill and follow it, with work brief = the phase's goal/work/"Done when", intent reference = the plan path and phase, and review tier = this run's `review:` token when present, else the phase's `**Review:**` line.
|
|
54
54
|
- On `Status: done`, leave the phase `In progress` — its QA rows are still owed, and only the gate closes them.
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: sassy-overview
|
|
3
|
+
description: >-
|
|
4
|
+
Answers what a project is and how it runs — its stack, install, up, down,
|
|
5
|
+
test, compose, env, and whether the suite is wired — from its files, read-only,
|
|
6
|
+
with the source file for every value and `unknown` when nothing is declared.
|
|
7
|
+
Use when a skill or a user needs project facts before acting: setting up a
|
|
8
|
+
repo, deciding how to start or stop it, or checking a stack instead of
|
|
9
|
+
guessing one. Never installs, runs, or changes anything.
|
|
10
|
+
argument-hint: "[mode:identify] [key...]"
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Sassy Overview
|
|
14
|
+
|
|
15
|
+
**Outcome:** one definitive, sourced answer to "what is this project and how does it run" — or `unknown` where the project has not said — so no skill has to guess a stack or invent a command.
|
|
16
|
+
|
|
17
|
+
**The script answers; the skill reads it.** `scripts/identify.sh` (with `scripts/lib.sh`) does the work by inspecting files. It is invoked by path from this skill's directory, is never installed into a project's `.sassywares/`, and needs no config, no pin, and no reconciliation: it is a query.
|
|
18
|
+
|
|
19
|
+
**Read-only, always.** It reads file bytes. It never touches the network, never executes the project's tooling — not even `make -n` — and writes no file. Anything it cannot see in a file is `unknown`, which is a real answer and never a prompt to guess.
|
|
20
|
+
|
|
21
|
+
## Modes
|
|
22
|
+
|
|
23
|
+
| Mode | Load | It ends with |
|
|
24
|
+
|---|---|---|
|
|
25
|
+
| `identify` (default) | `references/identify.md` | the key/value/source lines, and the facts they prove |
|
|
26
|
+
|
|
27
|
+
`identify` is the only path today. A later overview (a dependency audit, an environment check) lands as its own script plus its own reference and gets a row here — never as a section appended to `identify`. Read the one reference for the mode you were dispatched to, and only that one.
|
|
28
|
+
|
|
29
|
+
## Workflow
|
|
30
|
+
|
|
31
|
+
1. Run `bash <this skill's directory>/scripts/identify.sh --root <project>` — every key, or name the ones you need (`identify.sh --root <project> test up`).
|
|
32
|
+
2. Read the three columns: `key`, `value`, `source`. A value with a source is a fact; `unknown` is the project declining to say.
|
|
33
|
+
3. Branch on the exit code, never on a guess: `0` answered, `3` a key you requested is unknown, `2` usage. A caller that needs `up` and gets `3` says so and stops; it never substitutes a command it made up.
|
|
34
|
+
4. Quote the source file when you pass a value on. "test: `go test ./...` (go.mod)" is auditable; "test: `go test`" is not.
|
|
35
|
+
|
|
36
|
+
## Hard rules
|
|
37
|
+
|
|
38
|
+
| Rule | Requirement |
|
|
39
|
+
|---|---|
|
|
40
|
+
| Files only | No network, no running project tooling, no `make -n`. A command is reported only when a manifest declares it. |
|
|
41
|
+
| Every value is sourced | `key<TAB>value<TAB>source`; `-` when there is no file behind it. Never print a value without one. |
|
|
42
|
+
| `unknown` is final | Report it. Never fill a gap with a plausible default, and never write a manifest so an answer exists. |
|
|
43
|
+
| Exit code is the answer | `3` means the requested fact is unknown; a caller branches on it instead of guessing. |
|
|
44
|
+
| Writes nothing | Not the project's tree, not the suite's, not a temp file. |
|
|
45
|
+
| Never this skill's job | It does not wire, start, migrate, install, or fix a project. It reports, and `sassy-setup` or the user acts. |
|
|
46
|
+
|
|
47
|
+
## Consuming it
|
|
48
|
+
|
|
49
|
+
Any skill that needs project facts names it and runs the script; nothing copies its table.
|
|
50
|
+
|
|
51
|
+
- `sassy-setup` is the intended consumer: it probes with this script before offering a project's `up:`/`down:` keys, so a project that already declares a command is pointed at it instead of being handed a stub. Once `.sassywares/config.yaml` names `up`/`down`, the config is the authority for those two facts and the worktree mechanics read it; this script keeps reporting what a manifest declares, never the suite's config.
|
|
52
|
+
- Nobody else reads it yet. `sassy-worktree` must not: its `up`/`down` pointers already carry the stack, so an overview there would re-create the seam this replaced.
|