@sassywares/skills 0.14.0 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -6
- package/package.json +1 -2
- package/skills/sassy-compound/SKILL.md +1 -1
- package/skills/sassy-compound/references/concepts.md +2 -2
- package/skills/sassy-docs/references/review.md +5 -2
- package/skills/sassy-goal/references/close.md +5 -4
- package/skills/sassy-goal/references/write.md +2 -0
- package/skills/sassy-plan/SKILL.md +1 -1
- package/skills/sassy-plan/references/interview.md +2 -2
- package/skills/sassy-setup/SKILL.md +19 -11
- package/skills/sassy-setup/assets/agents-md.md +71 -0
- package/skills/sassy-setup/assets/roster +1 -0
- package/skills/sassy-setup/references/anchors.md +122 -0
- package/skills/sassy-setup/references/check.md +14 -2
- package/skills/sassy-setup/references/config.md +11 -6
- package/skills/sassy-setup/references/init.md +4 -0
- package/skills/sassy-setup/references/workspace.md +23 -0
- package/skills/sassy-setup/scripts/detect.sh +280 -29
- package/skills/sassy-strategy/SKILL.md +66 -0
- package/skills/sassy-strategy/references/check.md +81 -0
- package/skills/sassy-strategy/references/strategy-format.md +84 -0
- package/skills/sassy-strategy/references/write.md +180 -0
- package/CONCEPTS.md +0 -178
package/README.md
CHANGED
|
@@ -13,6 +13,7 @@ It covers the whole path from a rough idea to a shipped PR, and from a bug repor
|
|
|
13
13
|
- [Skills](#skills)
|
|
14
14
|
- [Project config](#project-config)
|
|
15
15
|
- [Dogfooding a project](#dogfooding-a-project)
|
|
16
|
+
- [The routing block](#the-routing-block)
|
|
16
17
|
- [Working in parallel](#working-in-parallel)
|
|
17
18
|
- [Extending the pipeline](#extending-the-pipeline)
|
|
18
19
|
- [Workflows](#workflows)
|
|
@@ -31,7 +32,8 @@ It covers the whole path from a rough idea to a shipped PR, and from a bug repor
|
|
|
31
32
|
|
|
32
33
|
- **Lean.** Skills are indexes and workflows, not documentation dumps. Detail moves into `references/` only when it is conditionally needed.
|
|
33
34
|
- **Explicit.** Every skill but `sassy-ship` runs only when you invoke it; ship may be started by the agent once you approve the work, and its review gate still waits. No silent background behavior.
|
|
34
|
-
- **Controlled.** Code approval, QA — manual and proved — and ship review are visible gates that all run in sequence. Mode tokens are opt-in per skill: `mode:manual` (default) and `mode:auto` on `sassy-ship` and `sassy-compound`, `mode:return` on `sassy-review`, `sassy-simplify`, and `sassy-validate`,
|
|
35
|
+
- **Controlled.** Code approval, QA — manual and proved — and ship review are visible gates that all run in sequence. Mode tokens are opt-in per skill: `mode:manual` (default) and `mode:auto` on `sassy-ship` and `sassy-compound`, `mode:return` on `sassy-review`, `sassy-simplify`, and `sassy-validate`, `mode:review`/`mode:handbook` on `sassy-docs`, and `mode:write`/`mode:check` on `sassy-strategy`; work, lfg, and debug take no mode; `sassy-goal` takes one mode per step of a goal (`write`, `next`, `check`, `close`).
|
|
36
|
+
- **Anchored, never vetoed.** Direction is written down once, in a strategy at `artifacts.strategy` (default `docs/strategy.md`), and read only where direction is decided — a plan, a goal, docs review, and setup's check. It changes the question a run asks and never blocks one: a missing or `draft` strategy is a note, not a gate, and no executor reads it.
|
|
35
37
|
- **Reliable.** Work runs through `sassy-cycle` with isolated subagents for implementation, review, simplification, validation, and fixes — at the depth the change tier needs.
|
|
36
38
|
- **Context-efficient.** Orchestrators coordinate; subagents do the heavy reading and return compact results.
|
|
37
39
|
- **Never surprising.** Nothing is committed just because a step finished. Shipping is its own phase.
|
|
@@ -123,6 +125,7 @@ Each does one job and takes `mode:manual` (default: ask which to fix), `mode:aut
|
|
|
123
125
|
|
|
124
126
|
| Skill | What it does |
|
|
125
127
|
|---|---|
|
|
128
|
+
| **`sassy-strategy`** | `mode:write` (default) grounds in the repo, shows a model to correct, interviews with pushback, stress-tests three to five metrics, and writes the project's strategy — Purpose, Positioning, Users, Boundaries, Key metrics, Tracks — one section at a time. `mode:check` gives a read-only fit verdict on a plan, goal, proposal, or diff: it quotes the strategy line and offers three outs, never a veto. |
|
|
126
129
|
| **`sassy-compound`** | Records a solved problem as a durable repo learning. Takes `mode:manual` or `mode:auto`; ship passes `mode:auto` after its own gate. |
|
|
127
130
|
| **`sassy-docs`** | `mode:review` (default) audits every document against a change — README, concepts, `AGENTS.md`, plans, handbooks — and fixes or names each stale claim. `mode:handbook` writes a plain-English team handbook with mermaid diagrams. |
|
|
128
131
|
|
|
@@ -131,20 +134,21 @@ Each does one job and takes `mode:manual` (default: ask which to fix), `mode:aut
|
|
|
131
134
|
| Skill | What it does |
|
|
132
135
|
|---|---|
|
|
133
136
|
| **`sassy-skill`** | Creates, retunes, or restructures Agent Skills. |
|
|
134
|
-
| **`sassy-setup`** | Detects the project topology and writes `.sassywares/config.yaml`; installs the suite and the sassy-agents subagents, globally or per project, when missing; installs the snapshot tooling for a multi-repo workspace; commits the files it wrote. `mode:check` verifies an existing setup, including a project install's pin, and reports a config that has fallen behind the shipped template with the `--sync --write` merge that closes it. |
|
|
137
|
+
| **`sassy-setup`** | Detects the project topology and writes `.sassywares/config.yaml`; installs the suite and the sassy-agents subagents, globally or per project, when missing; writes the routing block into `AGENTS.md`; installs the snapshot tooling for a multi-repo workspace; commits the files it wrote. `mode:check` verifies an existing setup, including a project install's pin, and reports a config that has fallen behind the shipped template with the `--sync --write` merge that closes it. |
|
|
135
138
|
|
|
136
139
|
## Project config
|
|
137
140
|
|
|
138
141
|
Every skill resolves one file, `.sassywares/config.yaml`, found by walking up from where you are. It is optional — no file means the documented defaults.
|
|
139
142
|
|
|
140
143
|
```yaml
|
|
141
|
-
artifacts: # where plans, learnings, handbooks, and the
|
|
144
|
+
artifacts: # where plans, learnings, handbooks, and the anchors live
|
|
142
145
|
plans: docs/plans
|
|
143
146
|
solutions: docs/solutions
|
|
144
147
|
handbooks: docs/handbooks
|
|
145
|
-
concepts:
|
|
148
|
+
concepts: docs/concepts.md
|
|
149
|
+
strategy: docs/strategy.md
|
|
146
150
|
knowledge:
|
|
147
|
-
read: [docs/solutions,
|
|
151
|
+
read: [docs/solutions, docs/concepts.md] # searched for prior learnings
|
|
148
152
|
write: true # false = this project takes no learnings
|
|
149
153
|
git:
|
|
150
154
|
repo: origin # a remote name | workspace (repos below, none here) | none (no git)
|
|
@@ -312,6 +316,14 @@ In a `workspace` there is exactly one ignore file, and it is not at the root:
|
|
|
312
316
|
└── mirror/ the side clone, excluded by the script itself
|
|
313
317
|
```
|
|
314
318
|
|
|
319
|
+
### The routing block
|
|
320
|
+
|
|
321
|
+
Setup also writes `AGENTS.md` — the file an agent reads before anyone tells it a suite exists — with a routing block between `<!-- sassywares:skills v1 -->` markers: what the suite is, where each anchor lives, and which gates a run keeps. A project with no `AGENTS.md` gets the whole file from the shipped template; a project that already has one gets the block appended, and no other line of that file changes. Every path in it comes from the resolved `artifacts.*` values, so a project that moved its plans, its glossary, or its strategy is described correctly, and the strategy route is named whether or not the file has been written yet, with `/sassy-strategy` beside it. It is `AGENTS.md` only: no per-harness copy, and a `CLAUDE.md` is never touched.
|
|
322
|
+
|
|
323
|
+
The write is idempotent — a second run that finds the same block leaves the file alone — and any difference, a hand-edited row or an older marker version, is shown as a diff and asked about, never replaced blind. The version in the marker is what makes a stale block reportable: `mode:check` notes a missing or out-of-date block and calls it a note, never drift, and `--sync --write` is what replaces it in place, byte for byte outside the markers. `--no-agents` scopes that run to the config and `--agents` to the block alone, so a project that declines one half can still fix the other.
|
|
324
|
+
|
|
325
|
+
In a `workspace` the block goes at the workspace root always, and into a nested repo only when that repo already keeps an `AGENTS.md`: setup writes both lists into the report, and never invents an `AGENTS.md` in a repo that never had one. Nothing commits it — the root isn't a repo, so the block rides the next snapshot.
|
|
326
|
+
|
|
315
327
|
## Workflows
|
|
316
328
|
|
|
317
329
|
### From idea to ship
|
|
@@ -348,6 +360,8 @@ The branch is cut once, before the first change, by `sassy-work` or `sassy-lfg`
|
|
|
348
360
|
|
|
349
361
|
`sassy-ship` is the close-out. It summarizes what is about to ship and waits, unless the caller passed `mode:auto`.
|
|
350
362
|
|
|
363
|
+
The project's direction enters before the first question. `sassy-plan` reads the strategy — `artifacts.strategy`, default `docs/strategy.md` — before the grill and again at its non-goals sweep; `sassy-goal` reads it when it writes a goal, `sassy-docs mode:review` reports on it, and `sassy-setup` notes whether it exists and offers the interview when you set a project up. A quoted strategy line the work would meet becomes a question with three outs — change the work, make it a track through `sassy-strategy`, or override it, recorded in the plan with the line, its section, the date, and your reason. It is never a veto: no quote, no conflict, and no run fails for a strategy that is absent or `draft` — a draft is reported as unsettled and read as context only. The rules live in the `sassy-setup` skill's [`references/anchors.md`](skills/sassy-setup/references/anchors.md).
|
|
364
|
+
|
|
351
365
|
### From goal to done
|
|
352
366
|
|
|
353
367
|
```mermaid
|
|
@@ -366,7 +380,7 @@ flowchart LR
|
|
|
366
380
|
|
|
367
381
|
A goal is a folder under `artifacts.plans` — `<type>-<slug>/` — holding `goal.md` and one plan per started slice (`01-<slice>.md`, `02-…`). `mode:write` grounds every affected domain once, grills only goal-level branches — slice boundaries and order, coexistence, the goal's done-when, non-goals — and pushes back on any slice that would leave a half-built layer. Each slice's plan is grilled only when `mode:next` starts it, with the goal's decisions and every carry-forward entry already settled; before that grill, and once the previous slice's merge is confirmed, `mode:next` runs the project's `before_slice` steps. The slice then runs the usual work or lfg → ship path on its own branch (`feat/<goal>/<NN-slice>`, with `<goal>` the goal folder minus its `<type>-` prefix — `feat-offline-reads/` → `feat/offline-reads/02-cached-list`); ship marks the slice plan `done` and the slice `Shipped`, and babysits the PR without merging, so the check can still land in it. Ship never closes the goal itself — `goal.md`'s `status: done` is `mode:close`'s to write, after every slice has been checked.
|
|
368
382
|
|
|
369
|
-
`mode:check` runs on the slice branch before the PR merges: it validates the whole slice plan against the branch's commits, and every gap is fixed now, deferred to a named later slice, or accepted with a reason. It appends the slice's carry-forward entry, marks it `Done` with its PR link, and pushes `goal.md` into the same PR. After the last slice, `mode:close` checks the goal's done-when against the whole tree and marks the goal `done` in the last PR, then runs the project's `after_close` steps once the status is persisted. One slice is in flight at a time, and nothing chains on its own.
|
|
383
|
+
`mode:check` runs on the slice branch before the PR merges: it validates the whole slice plan against the branch's commits, and every gap is fixed now, deferred to a named later slice, or accepted with a reason. It appends the slice's carry-forward entry, marks it `Done` with its PR link, and pushes `goal.md` into the same PR. After the last slice, `mode:close` checks the goal's done-when against the whole tree and marks the goal `done` in the last PR, then runs the project's `after_close` steps once the status is persisted. One slice is in flight at a time, and nothing chains on its own. `mode:write` reads the strategy at the start, and `mode:close` asks once whether the goal changed what the product is for — a yes is an offer to revise a section through `sassy-strategy`, never an edit by the goal run.
|
|
370
384
|
|
|
371
385
|
### From bug to ship
|
|
372
386
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sassywares/skills",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.0",
|
|
4
4
|
"description": "Lean, explicit-invocation Agent Skills for shipping fast: plan, work, review, validate, ship.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -25,7 +25,6 @@
|
|
|
25
25
|
"files": [
|
|
26
26
|
"skills",
|
|
27
27
|
"README.md",
|
|
28
|
-
"CONCEPTS.md",
|
|
29
28
|
"LICENSE"
|
|
30
29
|
],
|
|
31
30
|
"publishConfig": {
|
|
@@ -41,7 +41,7 @@ If several problems were solved, run once per learning. Never batch them into on
|
|
|
41
41
|
1. **Identify the learning.** Extract the problem and the verified solution from the conversation. Ground every behavior claim against the code (read the defining line) or soften/attribute it. Redact secrets.
|
|
42
42
|
2. **Classify.** Bug track (a defect fixed) or knowledge track (a durable insight or pattern). Pick a `category` and a descriptive `slug`. If the exact path exists and covers the same problem, update it (refresh `updated:`); otherwise create it.
|
|
43
43
|
3. **Write the doc.** Read `references/templates.md` now and use the matching template.
|
|
44
|
-
4. **Concepts.** If the learning surfaced a term a new engineer would need defined, read `references/concepts.md` now and follow its rules to add or refine it in the configured concepts file. Create the file if absent. Skip cleanly when nothing qualifies.
|
|
44
|
+
4. **Concepts.** If the learning surfaced a term a new engineer would need defined, read `references/concepts.md` now and follow its rules to add or refine it in the configured concepts file. Default `docs/concepts.md`; if the config is silent and a root `CONCEPTS.md` exists, that root file is the glossary. Create the file if absent. Skip cleanly when nothing qualifies.
|
|
45
45
|
5. **AGENTS.md pointer.** If a project instruction file exists (`AGENTS.md` or `CLAUDE.md`) and does not already mention the configured solutions path or concepts file, add one short line pointing at them. Edit only; never create the file. With `mode:auto`, do it silently; with `mode:manual` (default), ask.
|
|
46
46
|
6. **Report.** Path, create vs update, concepts touched, and whether an AGENTS.md pointer was added.
|
|
47
47
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Concepts file rules
|
|
2
2
|
|
|
3
|
-
Read this before touching `CONCEPTS.md
|
|
3
|
+
Read this before touching the glossary — the file `artifacts.concepts` names in the config. Default `docs/concepts.md`; if the config is silent and a root `CONCEPTS.md` exists, that root file is the glossary. Never assume a filename.
|
|
4
4
|
|
|
5
5
|
- A term qualifies when a new engineer would need it defined to follow conversations, tickets, or code, and it is a concept in its own right (not a property of one already defined).
|
|
6
6
|
- One-sentence definition: what it means here, and what makes it distinct from its neighbors.
|
|
@@ -6,7 +6,7 @@ Read this before auditing anything. It runs on a scope the caller named — a br
|
|
|
6
6
|
|
|
7
7
|
The documents to check are the project's declared ones plus everything the change invalidated:
|
|
8
8
|
|
|
9
|
-
- `artifacts.plans`, `artifacts.solutions`, `artifacts.handbooks`, `artifacts.concepts`, from the config.
|
|
9
|
+
- `artifacts.plans`, `artifacts.solutions`, `artifacts.handbooks`, `artifacts.concepts`, from the config, plus `artifacts.strategy` — reported on, never edited (see the strategy row below).
|
|
10
10
|
- `README.md` and `AGENTS.md` at the repo root, when they describe behavior rather than intent.
|
|
11
11
|
- The plan, goal, or handbook that drove the work, when the caller named one or a scope points at it.
|
|
12
12
|
|
|
@@ -29,9 +29,12 @@ One question per claim: **is this still true, and does it still describe everyth
|
|
|
29
29
|
| Examples | A worked example that would now fail if a reader ran it |
|
|
30
30
|
| Skill and capability tables | A skill added, renamed, or removed and a table that still lists the old set |
|
|
31
31
|
| Workflow narrative | Prose describing the old order of steps, or a diagram that contradicts the body |
|
|
32
|
+
| Strategy anchor | A `draft` strategy, one whose `updated` is far behind the work, or a Track with no commits behind it — report-only |
|
|
32
33
|
|
|
33
34
|
A document silent about a user-visible change fails this audit exactly like a wrong sentence does. Silence is the commoner bug and the harder one to see, because nothing looks broken.
|
|
34
35
|
|
|
36
|
+
**The strategy row is report-only.** `artifacts.strategy` is authored and revised only by `sassy-strategy`, so this mode never edits it and never raises a finding from its content. Report by name, with `/sassy-strategy` as the fix: a `draft` (unsettled, not enforced), an `updated` far behind the work the scope covers, or a Track with no commits behind it. A missing file is not a finding — a project without a strategy has not broken anything. The rules are the `sassy-setup` skill's `references/anchors.md`.
|
|
37
|
+
|
|
35
38
|
## 4. Fix or name
|
|
36
39
|
|
|
37
40
|
- **Fix in place**, with the smallest edit that makes the claim true. Never rewrite a document to make it easier to review: provenance in a decision, a learning, or a carry-forward entry is the reason the file exists.
|
|
@@ -47,7 +50,7 @@ Return a table and one line, and nothing else:
|
|
|
47
50
|
| Document | Claim | Stale | Outcome |
|
|
48
51
|
|---|---|---|---|
|
|
49
52
|
| README.md:141 | a config key described against its old owner | yes | fixed |
|
|
50
|
-
|
|
|
53
|
+
| docs/concepts.md | Goal statuses omit `draft` | yes | fixed |
|
|
51
54
|
| docs/handbooks/sync-handbook.md:22 | cites a removed helper | yes | reported — owned by another repo |
|
|
52
55
|
```
|
|
53
56
|
|
|
@@ -17,7 +17,8 @@ Runs on the last slice's branch after its `mode:check`, before its PR merges, so
|
|
|
17
17
|
- **Accept** — record it as a Decision with provenance: `D<n>: <gap> accepted unmet — <reason> (user-directed, over fixing)`. Never as an Assumption or a Carry-forward entry.
|
|
18
18
|
|
|
19
19
|
Nothing is left unchosen. With mixed choices, run the chosen fixes first.
|
|
20
|
-
4. **
|
|
21
|
-
5. **
|
|
22
|
-
6. **
|
|
23
|
-
7. **
|
|
20
|
+
4. **Ask the one strategy question.** Read the project's strategy at the resolved `artifacts.strategy`, with the `sassy-setup` skill's `references/anchors.md`. Ask it once, and only once: *did this change what the product is for?* A `draft` strategy is reported as unsettled and answered from the user, never enforced; a missing file is a presence note. A yes is not an edit and not a block: offer a revision through `sassy-strategy`, naming the section or sections it would open, and record the answer. A no, a yes, or a declined offer all leave this step where it is and the close-out continues — the strategy is never a veto.
|
|
21
|
+
5. **Mark it `Done`** — only when no gap was sent to a new slice: set `status: done` in the frontmatter. If any was, the goal stays `active`.
|
|
22
|
+
6. **Persist** per the SKILL.md Persisting section, on this branch, so `goal.md` and any fixes merge with the last slice. Skip step 7 if this step failed.
|
|
23
|
+
7. **Run the `after_close` hooks.** No `hooks.goal.<slug>.after_close` entry resolves for this goal's slug → skip in one line. Otherwise resolve them per the `sassy-setup` skill's `references/config.md` and run each in declared order, one `worker` each. The status is already persisted, so a blocked hook cannot rewrite it. Brief them with the goal path and slug, `goal_status` (`done`, or `active` when a gap went to a new slice), every slice's ID, status, and PR link, and the commit hash the persist step wrote, where it wrote one (per repo in a workspace, absent under `none`). A missing skill or a `blocked` result → report `stopped at <name>`, keep everything already persisted, never retry on your own, and do not claim the close-out succeeded; the user re-runs the hook and continues. A `needs-decision` result goes to the user, and the run stops there too.
|
|
24
|
+
8. **Report** the goal path, each Done-when item with its result, the gaps fixed, accepted, or sent to a new slice, and the hook outcome — `ran: <names>`, `none declared`, or `stopped at <name>`. If the goal stayed `active`, give `/sassy-goal <goal path> mode:write` to add the slice, then `mode:next` once this PR merges. Otherwise the goal is closed when this PR merges. Persisting ran with `babysit:off`, so end with `/sassy-babysit <PR url>` in the harness's syntax.
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
**Documents only.** This mode writes or revises `goal.md`. It never writes a slice plan, cuts a branch, edits code, or commits.
|
|
4
4
|
|
|
5
|
+
**Read the anchor first.** Before the first question, read the `sassy-setup` skill's `references/anchors.md` and the project's strategy at the resolved `artifacts.strategy`. It changes the questions this pass asks and nothing else: a missing file is a presence note, a `draft` is reported as unsettled and never enforced, and a quoted conflict is a question with the three outs, never a veto on the goal.
|
|
6
|
+
|
|
5
7
|
## New goal (the argument is an idea)
|
|
6
8
|
|
|
7
9
|
1. **Frame, then create the file.** Restate the goal in one or two sentences — the outcome and why it needs more than one plan. Ask the user to confirm or correct it, and what they are already thinking. On the confirmed frame, pick `<type>` and `<slug>` per `references/goal-format.md` and create `<artifacts.plans>/<type>-<slug>/goal.md`: frontmatter with `status: draft`, `created` and `updated` today, and every section heading from the template, empty — each slice row `Pending`, Carry-forward's one-line note in place. Create it before the first branch question. The file is the ledger; a ledger that lives only in the conversation is what a compaction erases, and this is the mode where that costs the most.
|
|
@@ -36,7 +36,7 @@ argument-hint: "[feature description, requirements, or idea to scope] [out:<plan
|
|
|
36
36
|
**Read `references/interview.md` first.** It owns the ledger, how to ask, the pushback lenses, the coverage sweep, and the read-back; this is only the order.
|
|
37
37
|
|
|
38
38
|
1. **Frame, then open the draft.** Restate the goal in one or two sentences; ask the user to confirm or correct it, and what they are already thinking. On the confirmed frame, pick `<type>` and `<slug>` per `references/plan-format.md` and create the plan file at its final path — under a caller's `out:<path>`, exactly that path — with the frontmatter (`status: draft`, `created` and `updated` today) and every section heading from the template, empty. Opening it before the grill is the point: the ledger lives in the file from here on.
|
|
39
|
-
2. **Ground.** Use `sassy-scout` on the area; it returns a gist and a brief path. A relevant prior learning becomes a decision the plan cites, or a pushback if it contradicts the user's direction.
|
|
39
|
+
2. **Ground.** Use `sassy-scout` on the area; it returns a gist and a brief path. A relevant prior learning becomes a decision the plan cites, or a pushback if it contradicts the user's direction. Then read the `sassy-setup` skill's `references/anchors.md` and the project's strategy at the resolved `artifacts.strategy`. A missing file is a presence note and a `draft` is reported as unsettled, never enforced. The strategy changes the questions this grill asks and never blocks the plan: it is not a veto, it decides no branch, and the run continues either way.
|
|
40
40
|
3. **Map.** Show the decision tree as the open ledger, in dependency order. The user can add, cut, or reorder.
|
|
41
41
|
4. **Walk.** Resolve branches parents first, adding new ones as answers open them. Where a branch has several plausible directions, present 2–3 approaches — one non-obvious — before recommending.
|
|
42
42
|
5. **Sweep, then read back from the file.** Run the coverage sweep and integration check against what the file holds, then read back by rendering the file rather than your memory: decisions with provenance, constraints, deferred items, assumptions, and an empty Open bucket. A correction replaces its line in the same edit. Only a read-back confirmed from that file flips `status` to `active`, with `updated` set to today in the same edit — the check comes before the flip, never after it.
|
|
@@ -53,7 +53,7 @@ You are a thinking partner, not a form. Raise each lens as its gap appears, one
|
|
|
53
53
|
- **Specificity.** The user is "users". Ask for a specific person or narrow segment and what changes for them when this ships.
|
|
54
54
|
- **Counterfactual.** Ask what people do today when this comes up, and what it costs them if nothing ships.
|
|
55
55
|
- **Attachment.** The request names a solution shape, not the value it delivers. Ask for the smallest version that still delivers that value, and offer one.
|
|
56
|
-
- **Contradiction.** Two answers conflict, or an answer conflicts with the code, a convention, or a
|
|
56
|
+
- **Contradiction.** Two answers conflict, or an answer conflicts with the code, a convention, a prior learning, or a line of the project's strategy — a conflict is a quoted line, its section, and the three outs, per the `sassy-setup` skill's `references/anchors.md`; a `draft` strategy raises none. Quote both sides and ask which wins.
|
|
57
57
|
- **Directive.** A bare "do it with X" that nobody examined gets exactly one challenge, backed by evidence: what X costs here and the strongest alternative. Whatever the user then chooses is settled — do not re-litigate it.
|
|
58
58
|
- **Scope creep.** A "while we're at it" addition gets the same scrutiny as the core: does it need to ship with this, or is it a deferred item?
|
|
59
59
|
- **Higher-upside option.** When an adjacent reframing would make the work clearly more valuable without much carrying cost, put it on the table as a challenger, not a default.
|
|
@@ -76,7 +76,7 @@ Before the read-back, walk this list against the settled tree. Every applicable
|
|
|
76
76
|
| Non-functional | Performance, security, privacy, accessibility, i18n — only where they bear on this work. |
|
|
77
77
|
| Rollout | Flag or not, order of release, rollback, who is told. |
|
|
78
78
|
| Verification | Done-when for the whole and per slice; what the user will check by hand. |
|
|
79
|
-
| Non-goals | What this deliberately does not do, so the work cannot drift into it. |
|
|
79
|
+
| Non-goals | What this deliberately does not do, so the work cannot drift into it. Pre-filled from an `active` strategy's **Boundaries** per the `sassy-setup` skill's `references/anchors.md`: offer each quoted line as a candidate non-goal and let the user confirm or cut it. A `draft` pre-fills nothing. |
|
|
80
80
|
|
|
81
81
|
**Integration check.** Then combine what was decided and look for consequences no single answer showed: "invites expire in 7 days (D1) and revoking deletes the record (D4), so a revoked link and an expired link show the same error — intended?" One probe per real combined effect.
|
|
82
82
|
|
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
name: sassy-setup
|
|
3
3
|
description: >-
|
|
4
4
|
Detect a project's topology and wire it for the Sassy Skills suite: write
|
|
5
|
-
.sassywares/config.yaml,
|
|
6
|
-
subagents and install whichever is missing
|
|
7
|
-
install the snapshot tooling in a multi-repo
|
|
5
|
+
.sassywares/config.yaml, write the AGENTS.md routing block, check for the
|
|
6
|
+
suite's skills and the sassy-agents subagents and install whichever is missing
|
|
7
|
+
in user or project scope, and install the snapshot tooling in a multi-repo
|
|
8
|
+
workspace.
|
|
8
9
|
Use when asked to set up or configure a project, or to check an existing
|
|
9
10
|
setup (`mode:check`).
|
|
10
11
|
argument-hint: "[path] [mode:init|check]"
|
|
@@ -12,7 +13,7 @@ argument-hint: "[path] [mode:init|check]"
|
|
|
12
13
|
|
|
13
14
|
# Sassy Setup
|
|
14
15
|
|
|
15
|
-
**Outcome:** `.sassywares/config.yaml` at the project root matching the tree it describes, the dogfood scaffold when agent QA was asked for, the skills installed in user or project scope and visible to the harness, the sassy-agents roster installed for the running harness, the snapshot tooling installed in `workspace` mode, and every file setup wrote committed — so the project is wired and the user is good to go in one run. A `check` run produces the same knowledge as a report, and changes nothing except committing setup-owned files that were already dirty.
|
|
16
|
+
**Outcome:** `.sassywares/config.yaml` at the project root matching the tree it describes, the dogfood scaffold when agent QA was asked for, the skills installed in user or project scope and visible to the harness, the sassy-agents roster installed for the running harness, the routing block in the project's `AGENTS.md`, the snapshot tooling installed in `workspace` mode, and every file setup wrote committed — so the project is wired and the user is good to go in one run. A `check` run produces the same knowledge as a report, and changes nothing except committing setup-owned files that were already dirty.
|
|
16
17
|
|
|
17
18
|
**Read `references/config.md` first.** It is the schema and the resolution rules; this skill only decides and writes.
|
|
18
19
|
|
|
@@ -20,7 +21,7 @@ argument-hint: "[path] [mode:init|check]"
|
|
|
20
21
|
|
|
21
22
|
**Harness.** Loading another skill, dispatching an agent, and any command you hand the user follow `references/harness.md`; the agent wiring in step 5 of the init path uses its tables.
|
|
22
23
|
|
|
23
|
-
**The rest of the suite's shared references.** `references/branching.md` is how a run picks a branch and a base — setup records it here, every run reads it there. On the init path, `references/init.md` points at `references/worktree.md`, `references/dogfood.md`, and `references/workspace.md` when an answer or a topology needs them; a check run needs none of the three.
|
|
24
|
+
**The rest of the suite's shared references.** `references/branching.md` is how a run picks a branch and a base — setup records it here, every run reads it there. `references/anchors.md` is the strategy anchor — where it lives, what counts as a conflict, the three outs, the override record, and the `draft` rule; every run that offers an out reads it there. On the init path, `references/init.md` points at `references/worktree.md`, `references/dogfood.md`, and `references/workspace.md` when an answer or a topology needs them; a check run needs none of the three.
|
|
24
25
|
|
|
25
26
|
## Modes
|
|
26
27
|
|
|
@@ -42,6 +43,12 @@ lacks. Report it as a note, not drift, and name `--sync --write` as its fix: it
|
|
|
42
43
|
merges the template onto the file and keeps every value the check accepts,
|
|
43
44
|
comment and all. Drift blocks step 8.
|
|
44
45
|
|
|
46
|
+
A missing or stale routing block in `AGENTS.md` is a note of the same kind: the
|
|
47
|
+
suite's block is absent, or its marker version is behind the shipped one, and it
|
|
48
|
+
is reported as a note naming the file — never drift, never a gate, and never a
|
|
49
|
+
reason not to commit. `--sync --write` is what replaces it, leaving every byte
|
|
50
|
+
outside the markers identical.
|
|
51
|
+
|
|
45
52
|
The `worktrees` half checks what a run would read: the switch, that the tooling is installed with the shipped bytes, that no checkout sits inside the working tree, and that none holds a branch `base_map` names as a base.
|
|
46
53
|
|
|
47
54
|
The `dogfood` half is structural and never runs the product: `enabled` and `timeout` are in range, the two paths are relative and stay inside the project, `reports` and `.sassywares/session` are gitignored in a `repo` topology, and the recipe has a `**Prove it:**` line per section with an `**Expect**` per step and no secret-shaped string. A recipe that does not exist yet is a note, not drift — unless `enabled` is `true`, which is the one combination that would let a planner write Auto rows against a check nobody has.
|
|
@@ -50,7 +57,7 @@ comment and all. Drift blocks step 8.
|
|
|
50
57
|
|
|
51
58
|
8. **Commit what setup owns.** `repo` topology only, and only when step 7 is clean. The file list is exactly what setup wrote or found unwritten:
|
|
52
59
|
|
|
53
|
-
`.sassywares/config.yaml`, `.sassywares/README.md`, `.sassywares/dogfood/recipe.md` and `.sassywares/.gitignore` when step 4 created them, the two project scripts step 6 scaffolded at `<home>/worktrees/create` and `<home>/worktrees/remove` (only those two named files — never their directory), `.sassywares/worktree/*` when step 6 installed the tooling, the runner file when the user accepted aliases in it, `.agents/skills/sassy-*` and `skills-lock.json` when the suite is in project scope, the project-scope agent files when step 5 copied them, and a root `.gitignore` when step 5 created one. Named files only — never `git add -A`, never `git add .`. The reports directory is never in this list: it is gitignored, and nothing setup writes lives there.
|
|
60
|
+
`.sassywares/config.yaml`, `.sassywares/README.md`, `.sassywares/dogfood/recipe.md` and `.sassywares/.gitignore` when step 4 created them, `AGENTS.md` when step 5 created it or wrote a block into it, the two project scripts step 6 scaffolded at `<home>/worktrees/create` and `<home>/worktrees/remove` (only those two named files — never their directory), `.sassywares/worktree/*` when step 6 installed the tooling, the runner file when the user accepted aliases in it, `.agents/skills/sassy-*` and `skills-lock.json` when the suite is in project scope, the project-scope agent files when step 5 copied them, and a root `.gitignore` when step 5 created one. Named files only — never `git add -A`, never `git add .`. Staging `AGENTS.md` stages the file, never a claim on its other lines: a line already there is not setup's work, and a declined block diff leaves nothing to stage. The reports directory is never in this list: it is gitignored, and nothing setup writes lives there.
|
|
54
61
|
|
|
55
62
|
Dispatch `sassy-commit` with that list and `branch:current`. The token is explicit, not this skill's default: wiring is a one-time bootstrap commit, and cutting a branch would leave the project configured but uncommitted until someone ships it. Name the branch it landed on, base branch included.
|
|
56
63
|
|
|
@@ -59,7 +66,7 @@ comment and all. Drift blocks step 8.
|
|
|
59
66
|
- **`workspace`** — nothing to commit: the root is not a repo, and `references/workspace.md` forbids running the snapshot here. Say the root config and the pin land with the project's next snapshot.
|
|
60
67
|
- **`none`** — nothing to commit, deliberately.
|
|
61
68
|
|
|
62
|
-
9. **Report.** The config path, the topology, the resolved artifact and knowledge paths, the lifecycle — the two paths `worktrees.create` and `worktrees.remove` name, or one line saying the built-in is used because the keys are absent, with no suggestion attached — whether agent QA is **off** — one line saying every QA row stays a human's, with no suggestion attached — or on, and then whether the recipe is ready or still a skeleton until `sassy-dogfood mode:discover` runs, where the skills are installed (scope) and where the agents are (scope and harness), or why either is not, the commit (hash and branch) or why there is none, and in `workspace` mode what was installed, with versions (`snapshot vN`, `workspace-git vN`), and where the `worktree:*` / `workspace:*` aliases went, or that none were wired because the project has no command-building file to put them in — naming the scripts' path instead, since that is how they are run either way. Remind the harness's reload step (`/reload` in pi; a new session elsewhere) so it rescans. Close with what is left over — at most dirt setup deliberately did not commit — and nothing else: a clean setup leaves the user good to go.
|
|
69
|
+
9. **Report.** The config path, the topology, the resolved artifact and knowledge paths, then what became of the routing block — created, appended, refreshed, already current, or left alone after a declined diff, and in `workspace` mode the nested repos skipped for having no `AGENTS.md` — and for `artifacts.strategy` a presence-and-`status` note: the path when the file is `active`, that it is `draft` and unsettled with `sassy-strategy` named as the command that finishes it, or that it is unwritten with `sassy-strategy` named as the command that writes one; never drift, never a blocking finding, and never a reason not to run; then the lifecycle — the two paths `worktrees.create` and `worktrees.remove` name, or one line saying the built-in is used because the keys are absent, with no suggestion attached — whether agent QA is **off** — one line saying every QA row stays a human's, with no suggestion attached — or on, and then whether the recipe is ready or still a skeleton until `sassy-dogfood mode:discover` runs, where the skills are installed (scope) and where the agents are (scope and harness), or why either is not, the commit (hash and branch) or why there is none, and in `workspace` mode what was installed, with versions (`snapshot vN`, `workspace-git vN`), and where the `worktree:*` / `workspace:*` aliases went, or that none were wired because the project has no command-building file to put them in — naming the scripts' path instead, since that is how they are run either way. Remind the harness's reload step (`/reload` in pi; a new session elsewhere) so it rescans. Close with what is left over — at most dirt setup deliberately did not commit — and nothing else: a clean setup leaves the user good to go.
|
|
63
70
|
|
|
64
71
|
## Hard rules — every mode
|
|
65
72
|
|
|
@@ -67,9 +74,10 @@ comment and all. Drift blocks step 8.
|
|
|
67
74
|
|------|-------------|
|
|
68
75
|
| No `git init` | Setup never turns a folder into a repo, and never does remote or ref surgery. The step 8 commit is its only git write. |
|
|
69
76
|
| Verify before commit | A config that fails `--check` is reported, never committed. |
|
|
70
|
-
| Commit only what setup owns | The config, the setup README, the two project scripts step 6 scaffolded, the vendored `sassy-*` folders and `skills-lock.json` (project scope), the project-scope agent files, and a `.gitignore` setup created. Never a file the user wrote or the repo already had, unless they name it. |
|
|
71
|
-
| No silent overwrite | An existing config or an existing `.sassywares/workspace/snapshot` is shown and asked about, never replaced blind. |
|
|
72
|
-
|
|
|
77
|
+
| Commit only what setup owns | The config, the setup README, `AGENTS.md` when setup created it or wrote its block into it, the two project scripts step 6 scaffolded, the vendored `sassy-*` folders and `skills-lock.json` (project scope), the project-scope agent files, and a `.gitignore` setup created. Never a file the user wrote or the repo already had, unless they name it. |
|
|
78
|
+
| No silent overwrite | An existing config or an existing `.sassywares/workspace/snapshot` is shown and asked about, never replaced blind. A differing `AGENTS.md` routing block is a diff and a question, never a clobber. |
|
|
79
|
+
| Never a rewrite of `AGENTS.md` | Only the bytes between the `<!-- sassywares:skills vN -->` markers are written, replaced, or staged; every other line of the file stays exactly as it was. Include the block only in the file setup created or appended to it, and never touch `CLAUDE.md` or a per-harness agent file. |
|
|
80
|
+
| Write boundary | Only `.sassywares/` (the config, the setup README, the dogfood scaffold, and the worktree tooling), the two project scripts step 6 scaffolded at `<home>/worktrees/create` and `<home>/worktrees/remove` (new files only — never the whole `worktrees/` folder), the skills and agent files step 5 installed in the scope the user chose, `skills-lock.json` (project scope), `AGENTS.md` (the file step 5 created, or its marked block appended — every other line of it untouched), `.sassywares/.gitignore` with its two lines, and at most one root `.gitignore` line that step 5 created. Never `package.json` outside step 6's `worktree:*` and `workspace:*` aliases, never a root `.gitignore` in a workspace. Workspace git helpers land in `.sassywares/workspace/`, never in a project's `bin/`. |
|
|
73
81
|
| Install the tooling, never use it | Setup copies `.sassywares/worktree/` and offers the aliases. It never creates a checkout, never runs a script, and never starts or stops the project's stack — that is the project's own `create`/`remove` script's job. |
|
|
74
82
|
| Skills come from upstream | Install with `npx skills add`, `-g` for user scope; never hand-copy skill files or maintain the links yourself. |
|
|
75
83
|
| Agents come from sassy-agents | Only the running harness's folder, as-is: linked by `install.sh` (user scope) or copied verbatim (project scope). Never edit, merge, or overwrite a differing agent file without asking. |
|
|
@@ -77,7 +85,7 @@ comment and all. Drift blocks step 8.
|
|
|
77
85
|
| Run output and sessions never ship | `.sassywares/.gitignore` holds `/session/` and `/dogfood/reports/`. Never remove a line, never add anything from either path to the commit, and never write a credential anywhere else. |
|
|
78
86
|
| No secrets in setup's writes | Env var names only, in the config and in the skeleton. A credential never lands in a file setup commits. |
|
|
79
87
|
| Version is reported | Setup names the snapshot and `workspace-git` versions it installed; `--check` flags an installed copy older than the skill's. |
|
|
80
|
-
| Repair is `init` | `check` reports drift and never rewrites; closing it is `mode:init`, where every change is shown and approved first. Template drift
|
|
88
|
+
| Repair is `init` | `check` reports drift and never rewrites; closing it is `mode:init`, where every change is shown and approved first. Template drift and the `AGENTS.md` routing block are the stated exceptions: the check names `--sync --write`, and only the operator runs it. |
|
|
81
89
|
|
|
82
90
|
## What setup is not
|
|
83
91
|
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
agents-md.md — the routing block sassy-setup writes into a project's AGENTS.md.
|
|
3
|
+
|
|
4
|
+
One file, two uses:
|
|
5
|
+
* a project with no AGENTS.md gets this block as the whole file;
|
|
6
|
+
* a project that already has one gets the block appended, and every later run
|
|
7
|
+
replaces only the lines between the markers.
|
|
8
|
+
The version lives in the markers, so a later shipped version can find and
|
|
9
|
+
replace an older block. `detect.sh --check` reports a missing or stale block as
|
|
10
|
+
a note (never drift); `detect.sh --sync --write` creates, appends, or replaces
|
|
11
|
+
it and leaves every byte outside the markers alone.
|
|
12
|
+
`{{artifacts.*}}` placeholders are rendered by detect.sh from the resolved
|
|
13
|
+
config, so nothing in the block may hardcode a configured path.
|
|
14
|
+
-->
|
|
15
|
+
<!-- sassywares:skills v1 -->
|
|
16
|
+
# Sassy Skills — how this project works
|
|
17
|
+
|
|
18
|
+
This project is wired for the Sassy Skills suite. Load a skill when a request
|
|
19
|
+
matches its trigger below; each one is invoked as `/sassy-<name>`. The suite's
|
|
20
|
+
settings live in `.sassywares/config.yaml` — every path named here is resolved
|
|
21
|
+
from it.
|
|
22
|
+
|
|
23
|
+
## Anchors
|
|
24
|
+
|
|
25
|
+
The documents that say what this project is. Read them before deciding what to
|
|
26
|
+
build, not while writing the build:
|
|
27
|
+
|
|
28
|
+
- **Strategy** — `{{artifacts.strategy}}`: what the product is for, who it is
|
|
29
|
+
for, and what it refuses. Written and revised by `/sassy-strategy`; it may not
|
|
30
|
+
exist yet, and that absence is not a blocker.
|
|
31
|
+
- **Glossary** — `{{artifacts.concepts}}`: the shared vocabulary, maintained by
|
|
32
|
+
`/sassy-compound`.
|
|
33
|
+
- **Plans** — `{{artifacts.plans}}`: one file per planned piece of work.
|
|
34
|
+
- **Learnings** — `{{artifacts.solutions}}`: durable notes from solved problems.
|
|
35
|
+
- **Handbooks** — `{{artifacts.handbooks}}`: team-facing references written by
|
|
36
|
+
`/sassy-docs`.
|
|
37
|
+
|
|
38
|
+
## Skills
|
|
39
|
+
|
|
40
|
+
| Skill | What it does | When it runs |
|
|
41
|
+
| --- | --- | --- |
|
|
42
|
+
| `sassy-plan` | Grills the request into a phased plan, writing the plan file as it goes. | Asked to brainstorm, scope, or plan. |
|
|
43
|
+
| `sassy-work`, `sassy-lfg` | Execute one plan phase, or a whole plan phase by phase. | A settled plan or brief is ready to build. |
|
|
44
|
+
| `sassy-goal` | Splits work too large for one plan into slices that plan, ship, and check on their own. | A migration, epic, milestone, or multi-PR effort. |
|
|
45
|
+
| `sassy-cycle`, `sassy-scout` | The quality loop for one unit of work; the grounding brief other agents read. | Called by plan, fix, and review runs; before work needs verified project evidence. |
|
|
46
|
+
| `sassy-debug` | Diagnoses to root cause, gets the fix approved, then fixes and ships it. | A bug, failing test, or unexplained failure. |
|
|
47
|
+
| `sassy-review`, `sassy-simplify`, `sassy-validate` | Review a diff, find behavior-preserving simplifications, check work against a plan's intent. | Asked to review, tidy, or verify; or after a feature lands. |
|
|
48
|
+
| `sassy-ship`, `sassy-commit`, `sassy-commit-push-pr` | Close out approved work: learnings, docs, commit, push, PR. | Work is approved and ready to land. |
|
|
49
|
+
| `sassy-babysit` | Watches an open PR until it looks merge-ready. | A PR needs watching over time, not a one-shot fix. |
|
|
50
|
+
| `sassy-docs` | Keeps README, glossary, plans, and handbooks true; writes team handbooks. | A feature lands, docs may be stale, or a handover is due. |
|
|
51
|
+
| `sassy-compound` | Writes a durable learning and maintains the glossary. | A bug is fixed or a fresh finding is worth keeping. |
|
|
52
|
+
| `sassy-strategy` | Writes and revises `{{artifacts.strategy}}`; gives a read-only fit verdict on work. | Direction is set or changed, or a plan needs a fit check. |
|
|
53
|
+
| `sassy-setup` | Detects topology and wires the project: config, skills, tooling. | A new project, or setup may be out of date. |
|
|
54
|
+
| `sassy-overview` | Reads the project's stack, install, run, test, and env facts, with a source for each. | Facts are needed before acting — never guessed. |
|
|
55
|
+
| `sassy-skill` | Creates, retunes, or restructures an Agent Skill. | Asked to create or fix a skill. |
|
|
56
|
+
| `sassy-worktree` | Runs a second line of work in its own checkout with its own namespace. | More than one agent or branch is active. |
|
|
57
|
+
| `sassy-dogfood` | Uses the product the way a user does and writes a verdict. | A change must be proven at runtime, or QA needs setting up. |
|
|
58
|
+
| `sassy-handoff` | Writes or reads a self-contained handoff between sessions. | Asked to hand off or pick up a handoff. |
|
|
59
|
+
|
|
60
|
+
## Gates and controls
|
|
61
|
+
|
|
62
|
+
- Reads are free; writes, commits, pushes, and PRs have their own gates.
|
|
63
|
+
`sassy-ship` stops for approval before it writes anything unless given
|
|
64
|
+
`mode:auto`; the commit and PR skills act when you invoke them.
|
|
65
|
+
- Configuration is permission, not automation: a switch such as
|
|
66
|
+
`worktrees.enabled` lets a run offer a checkout, never take one unasked.
|
|
67
|
+
- `commit.branch`, `git.base_map`, and `hooks` in `.sassywares/config.yaml`
|
|
68
|
+
decide where work lands and what runs around it. Read them before branching.
|
|
69
|
+
- This block is the only part of this file the suite maintains. Every other
|
|
70
|
+
line is the project's and is never rewritten.
|
|
71
|
+
<!-- /sassywares:skills v1 -->
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
# Strategy anchor
|
|
2
|
+
|
|
3
|
+
The project's strategy is the one document that says what the product is for,
|
|
4
|
+
who it is for, and what it refuses. It is read where **direction** is decided —
|
|
5
|
+
`sassy-plan`, `sassy-goal`, `sassy-docs mode:review`, and `sassy-setup
|
|
6
|
+
mode:check` — and never by an executor: `sassy-work`, `sassy-lfg`, `sassy-review`,
|
|
7
|
+
`sassy-ship`, `sassy-debug`, `sassy-commit`, `sassy-commit-push-pr`,
|
|
8
|
+
`sassy-babysit`, `sassy-worktree`, and `sassy-handoff` do not load it, because by
|
|
9
|
+
the time work is running the direction is settled and re-litigating it mid-run is
|
|
10
|
+
how a boundary becomes a veto.
|
|
11
|
+
|
|
12
|
+
It is written and revised only by `sassy-strategy`. A reader quotes it, asks
|
|
13
|
+
about it, and reports on it; it never edits it.
|
|
14
|
+
|
|
15
|
+
## Where it lives
|
|
16
|
+
|
|
17
|
+
`artifacts.strategy`, resolved per [`config.md`](config.md) — default
|
|
18
|
+
`docs/strategy.md`. **Never a literal path.** A project that moved the file is
|
|
19
|
+
still correct, and a reader that opens `docs/strategy.md` without asking the
|
|
20
|
+
config is reading a file that may no longer be the anchor.
|
|
21
|
+
|
|
22
|
+
The format — six sections, their locked order, `status: draft|active` — is the
|
|
23
|
+
`sassy-strategy` skill's `references/strategy-format.md`. A reader needs its
|
|
24
|
+
section names, not its rules: **Purpose, Positioning, Users, Boundaries, Key
|
|
25
|
+
metrics, Tracks**, and of those only Boundaries, Positioning, and Tracks can
|
|
26
|
+
conflict.
|
|
27
|
+
|
|
28
|
+
**A missing file is not a failure.** Report it as a presence note with the command
|
|
29
|
+
that writes one (`sassy-strategy`), and carry on. A project that has not written
|
|
30
|
+
a strategy has not broken anything, and no check, plan, or goal turns red for
|
|
31
|
+
being unwired.
|
|
32
|
+
|
|
33
|
+
## What counts as a conflict
|
|
34
|
+
|
|
35
|
+
Only a **quoted line** in one of these three:
|
|
36
|
+
|
|
37
|
+
| Section | Conflicts when |
|
|
38
|
+
|---|---|
|
|
39
|
+
| Boundaries | the work is one of the changes the document says to resist, or meets the `_Resist a change when:_` line |
|
|
40
|
+
| Positioning | the work would make the product the thing the positioning says it is not |
|
|
41
|
+
| Tracks | the work contradicts a direction the project says it is deliberately pursuing |
|
|
42
|
+
|
|
43
|
+
Purpose and Users never conflict on their own: they are why the product exists and
|
|
44
|
+
who for, so they change the question rather than forbidding an answer. Reading
|
|
45
|
+
them as boundaries turns a direction into a cage, and a strategy that forbids
|
|
46
|
+
everything is one nobody revises.
|
|
47
|
+
|
|
48
|
+
If you cannot quote the strategy line, there is no conflict. "This feels
|
|
49
|
+
off-strategy" is not a finding, a stale impression is not a finding, and a
|
|
50
|
+
boundary the plan already overrode once is not a conflict again unless the
|
|
51
|
+
strategy has changed since.
|
|
52
|
+
|
|
53
|
+
## The three outs
|
|
54
|
+
|
|
55
|
+
A conflict is a **question, never a veto**: the run continues, and the user
|
|
56
|
+
answers. Present all three every time, in this order.
|
|
57
|
+
|
|
58
|
+
1. **Change the work** — the request, phase, or slice is reshaped or dropped so it
|
|
59
|
+
no longer meets the line. The caller's edit; the run's own work continues in
|
|
60
|
+
the same run.
|
|
61
|
+
2. **Make it a track** — the strategy is the thing that is out of date, and the
|
|
62
|
+
direction is admitted as a revision. Only `sassy-strategy` writes it, through
|
|
63
|
+
its section contract, in its own run: cite `sassy-strategy`, never draft the
|
|
64
|
+
section yourself.
|
|
65
|
+
3. **Override** — the user decides the work proceeds against the line, and the
|
|
66
|
+
decision is recorded. See below.
|
|
67
|
+
|
|
68
|
+
Never pick one for the user, never mark one as the answer unless asked, and never
|
|
69
|
+
soften the question into a note that carries no decision: a boundary the run
|
|
70
|
+
mentions and then steps over silently is worse than one it never read.
|
|
71
|
+
|
|
72
|
+
## Override and its record
|
|
73
|
+
|
|
74
|
+
An override is the user's decision, recorded **in the artifact the work lives in**
|
|
75
|
+
— the plan's Decisions or Constraints (or `goal.md`'s cross-slice decisions, or
|
|
76
|
+
the brief's settled decisions) — with provenance, so a later reader can tell it
|
|
77
|
+
apart from a decision that was made freely:
|
|
78
|
+
|
|
79
|
+
- the strategy line, quoted;
|
|
80
|
+
- the section it came from;
|
|
81
|
+
- the date;
|
|
82
|
+
- the user's reason, or `no reason given`.
|
|
83
|
+
|
|
84
|
+
Nothing is written to the strategy file. An override never edits the anchor; it
|
|
85
|
+
records that this run knowingly went around it. An agent never overrides on its
|
|
86
|
+
own, and never records one as if the user had agreed when they only declined to
|
|
87
|
+
choose.
|
|
88
|
+
|
|
89
|
+
**A second override on the same boundary earns exactly one offer to revise.** When
|
|
90
|
+
the same line has been overridden before — in this plan, or in a plan since the
|
|
91
|
+
strategy's `updated` — say that it is the second one and offer, once, to revise
|
|
92
|
+
that section through `sassy-strategy`. A declined offer is final: further
|
|
93
|
+
overrides are recorded and reported without comment. The repetition is evidence
|
|
94
|
+
the document may be stale, not evidence the work is wrong, and the only way to
|
|
95
|
+
settle that is the user's answer.
|
|
96
|
+
|
|
97
|
+
## `draft` is not settled
|
|
98
|
+
|
|
99
|
+
`status: draft` — or a missing or unrecognized value, which reads as `draft` —
|
|
100
|
+
means the document is still being written. Readers:
|
|
101
|
+
|
|
102
|
+
- report it as **unsettled**, naming the path and the command that finishes it;
|
|
103
|
+
- treat its content as context, never as a rule: no conflict is raised from a
|
|
104
|
+
draft, no non-goal is pre-filled from it, no override is offered against it;
|
|
105
|
+
- never enforce it, and never block on it — a draft that stops a plan is a draft
|
|
106
|
+
that will not get finished.
|
|
107
|
+
|
|
108
|
+
Only the confirmed read-back at the end of a `write` run flips it to `active`,
|
|
109
|
+
and only then does it start changing the questions a run asks.
|
|
110
|
+
|
|
111
|
+
## Who reads it, and what each reports
|
|
112
|
+
|
|
113
|
+
| Reader | Reads it | Reports |
|
|
114
|
+
|---|---|---|
|
|
115
|
+
| `sassy-plan` | before the grill, and again at its non-goals sweep | a quoted conflict with the three outs; Boundaries pre-fills the non-goals row |
|
|
116
|
+
| `sassy-goal` | `mode:write` at the start, and one question at `mode:close` ("did this change what the product is for?") | the revision offer for a yes — close's question is yes/no, not a conflict |
|
|
117
|
+
| `sassy-docs mode:review` | whether the strategy is stale against the change | a report-only row, naming `sassy-strategy`: a `draft`, an `updated` far behind the work, or a Track with no commits behind it |
|
|
118
|
+
| `sassy-setup mode:check` | presence, and the frontmatter `status` when the file exists | a note, never drift; a missing file is not a failure |
|
|
119
|
+
|
|
120
|
+
Every reader here is read-only toward the strategy. The document moves only when
|
|
121
|
+
the user runs `sassy-strategy`, which is the one thing that keeps the anchor worth
|
|
122
|
+
quoting.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Read the shared sections in `SKILL.md` first, including steps 7–9. This file is only what a check run does differently: it enters at step 7 and never runs steps 1–6.
|
|
4
4
|
|
|
5
|
-
1. **Enter at step 7.** No detection, no questions, no config write: a folder that is already wired is verified, never rebuilt from detection. Run `scripts/detect.sh --root <path> --check` exactly as step 7 says, and report every `drift:` line verbatim, or that the config matches the tree — plus any `template:` note, which is not drift (see below).
|
|
5
|
+
1. **Enter at step 7.** No detection, no questions, no config write: a folder that is already wired is verified, never rebuilt from detection. Run `scripts/detect.sh --root <path> --check` exactly as step 7 says, and report every `drift:` line verbatim, or that the config matches the tree — plus any `template:` note, which is not drift (see below), any `agents-md:` note about a missing or stale routing block (step 7 owns the outcomes), and the strategy's presence note (see below).
|
|
6
6
|
2. **Report the scope you found.** Check the skills and the agents exactly as step 5's **Installed** rules say, and report the scope each was found in or what is missing. **Check installs nothing** — a missing suite or roster is reported with the fix, and it does not block step 8.
|
|
7
7
|
3. **Commit only dirty setup-owned files.** Step 8 applies only when something setup already owns is uncommitted — an edited config, a scaffold nobody committed, a pin that drifted — and only when step 7 is clean. Nothing dirty, nothing to commit.
|
|
8
8
|
4. **Report as step 9 says,** then name what closes each finding: the drift line, the missing scope, and the mode that fixes it.
|
|
@@ -12,6 +12,7 @@ A check run never edits the config, never installs a skill or an agent, never re
|
|
|
12
12
|
| Rule | Requirement |
|
|
13
13
|
|------|-------------|
|
|
14
14
|
| Check reports, init repairs | Every finding is reported with `mode:init` as its fix, except the template note, whose fix is the explicit `--sync --write` merge. Nothing is corrected in place, approved or not. |
|
|
15
|
+
| The strategy is a note, never drift | Presence, and the frontmatter `status` when the file exists: absent, or present and `draft`, is reported with `sassy-strategy` named as the fix and changes neither the verdict nor the exit code. A project that has not written a strategy has not failed a check. |
|
|
15
16
|
| No detection | A check compares the file to the tree; it never re-derives the config from the tree and calls the difference drift. |
|
|
16
17
|
|
|
17
18
|
## What the template note means
|
|
@@ -24,7 +25,9 @@ worktrees, dogfood and refresh the comments (values the check accepts stay)` —
|
|
|
24
25
|
and still exits 0. It is never drift: every value the file declares is valid.
|
|
25
26
|
|
|
26
27
|
The fix is `bash scripts/detect.sh --root <path> --sync --write`, which merges
|
|
27
|
-
the template onto the file
|
|
28
|
+
the template onto the file; a project that declined the block takes the same
|
|
29
|
+
merge with `--no-agents` (config only, `AGENTS.md` untouched), and `--agents`
|
|
30
|
+
syncs only the block. It keeps the line of every leaf the check accepts —
|
|
28
31
|
value and same-line trailing comment, byte for byte — so a project's
|
|
29
32
|
`"*": main # confirmed: …` stays exactly as written, and takes every block,
|
|
30
33
|
key, comment, and example the file lacks from the proposal. A malformed value is
|
|
@@ -35,6 +38,15 @@ second run reports `already current` and touches nothing.
|
|
|
35
38
|
Report the note and the command; run the sync only when the user asks, the same
|
|
36
39
|
as every other repair.
|
|
37
40
|
|
|
41
|
+
## What the strategy note means
|
|
42
|
+
|
|
43
|
+
Check reads presence, and the frontmatter `status` when the file exists; it
|
|
44
|
+
never reads the content for a verdict and never edits it. `active` reports the
|
|
45
|
+
path and nothing else, `draft` is unsettled and `absent` unwritten with
|
|
46
|
+
`sassy-strategy` named for both: the outcomes and their "never drift, never
|
|
47
|
+
non-zero" weight are the hard-rules row's, the rules are [`anchors.md`](anchors.md),
|
|
48
|
+
and the report line is step 9's.
|
|
49
|
+
|
|
38
50
|
## What a worktree finding means
|
|
39
51
|
|
|
40
52
|
`worktrees.create` and `worktrees.remove` are the project's own files, so a check
|