@sassywares/skills 0.13.2 → 0.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/README.md +28 -14
  2. package/package.json +1 -2
  3. package/skills/sassy-compound/SKILL.md +1 -1
  4. package/skills/sassy-compound/references/concepts.md +2 -2
  5. package/skills/sassy-debug/SKILL.md +1 -1
  6. package/skills/sassy-docs/SKILL.md +56 -0
  7. package/skills/sassy-docs/references/handbook.md +17 -0
  8. package/skills/sassy-docs/references/review.md +57 -0
  9. package/skills/sassy-goal/SKILL.md +5 -0
  10. package/skills/sassy-goal/references/check.md +1 -1
  11. package/skills/sassy-goal/references/close.md +6 -5
  12. package/skills/sassy-goal/references/goal-format.md +13 -2
  13. package/skills/sassy-goal/references/next.md +2 -2
  14. package/skills/sassy-goal/references/write.md +9 -5
  15. package/skills/sassy-handoff/references/write.md +1 -1
  16. package/skills/sassy-lfg/SKILL.md +2 -2
  17. package/skills/sassy-plan/SKILL.md +24 -17
  18. package/skills/sassy-plan/references/interview.md +5 -3
  19. package/skills/sassy-plan/references/plan-format.md +22 -2
  20. package/skills/sassy-setup/SKILL.md +19 -11
  21. package/skills/sassy-setup/assets/agents-md.md +71 -0
  22. package/skills/sassy-setup/assets/roster +2 -1
  23. package/skills/sassy-setup/assets/sassywares-readme.md +6 -6
  24. package/skills/sassy-setup/references/anchors.md +122 -0
  25. package/skills/sassy-setup/references/check.md +14 -2
  26. package/skills/sassy-setup/references/config.md +13 -8
  27. package/skills/sassy-setup/references/harness.md +3 -2
  28. package/skills/sassy-setup/references/init.md +9 -4
  29. package/skills/sassy-setup/references/workspace.md +23 -0
  30. package/skills/sassy-setup/scripts/detect.sh +281 -30
  31. package/skills/sassy-ship/SKILL.md +26 -10
  32. package/skills/sassy-ship/references/brief.md +20 -0
  33. package/skills/sassy-ship/references/plan.md +20 -0
  34. package/skills/sassy-ship/references/slice.md +21 -0
  35. package/skills/sassy-strategy/SKILL.md +66 -0
  36. package/skills/sassy-strategy/references/check.md +81 -0
  37. package/skills/sassy-strategy/references/strategy-format.md +84 -0
  38. package/skills/sassy-strategy/references/write.md +180 -0
  39. package/skills/sassy-validate/SKILL.md +1 -1
  40. package/skills/sassy-work/SKILL.md +1 -1
  41. package/CONCEPTS.md +0 -173
  42. package/skills/sassy-handbook/SKILL.md +0 -52
  43. /package/skills/{sassy-handbook → sassy-docs}/references/handbook-format.md +0 -0
@@ -1,18 +1,18 @@
1
1
  ---
2
2
  name: sassy-ship
3
3
  description: >-
4
- Close out approved work: capture learnings, write a handover handbook when
5
- warranted, then commit, open a PR, and babysit it (under
4
+ Close out approved work: capture learnings, bring the docs in line with the
5
+ change, then commit, open a PR, and babysit it (under
6
6
  `commit.branch: current`, commit and push only). Every heavy step is
7
7
  delegated to subagents. Default `mode:manual` presents a shipping summary and
8
8
  waits before anything is written, committed, pushed, or opened. `mode:auto`
9
9
  runs the close-out with no review.
10
- argument-hint: "<plan path or topic> [steps:compound,handbook,commit,pr,babysit] [base:<branch>] [merge:on|off] [delete-branch:on|off] [mode:manual|auto]"
10
+ argument-hint: "<plan path or topic> [steps:compound,docs,commit,pr,babysit] [base:<branch>] [merge:on|off] [delete-branch:on|off] [mode:manual|auto]"
11
11
  ---
12
12
 
13
13
  # Sassy Ship
14
14
 
15
- **Outcome:** qualifying learnings captured, a handbook written when warranted, the change committed — or snapshotted, in a workspace — a PR opened or updated, and the PR babysat to looks-merge-ready or blocked. Under `commit.branch: current` there is no PR: the commit is pushed to the checked-out branch's upstream and the close-out ends there.
15
+ **Outcome:** qualifying learnings captured, the project's docs brought in line with the change, the change committed — or snapshotted, in a workspace — a PR opened or updated, and the PR babysat to looks-merge-ready or blocked. Under `commit.branch: current` there is no PR: the commit is pushed to the checked-out branch's upstream and the close-out ends there.
16
16
 
17
17
  **Modes.** `mode:manual` (default) reviews the whole close-out before any side effect; `mode:auto` is pre-authorized and skips that review. Never toggle it on your own.
18
18
 
@@ -26,15 +26,31 @@ argument-hint: "<plan path or topic> [steps:compound,handbook,commit,pr,babysit]
26
26
 
27
27
  **Harness.** Loading another skill, dispatching an agent, and any command you hand the user follow the `sassy-setup` skill's `references/harness.md`. Read it once per run, before the first of those.
28
28
 
29
+ ## Target — resolve it once
30
+
31
+ What is being closed out is decided once, at the start, and every later step takes the answer from here instead of re-deriving it: the gate's summary, the commit's file list, the babysit overrides, and the closing report all differ by target, and deciding them separately is how they drift apart.
32
+
33
+ | Target | Detected by | Read | Writes back |
34
+ |---|---|---|---|
35
+ | Brief or topic | the argument is not a `.md` file under `artifacts.plans` | `references/brief.md` | nothing |
36
+ | Plan | a plan file with no `slice`/`goal` frontmatter keys | `references/plan.md` | the plan's `status: done` |
37
+ | Slice | a plan whose frontmatter carries `slice` and `goal` | `references/slice.md` | `status: done`, and that slice → `Shipped` in the parent `goal.md` |
38
+
39
+ The frontmatter keys are the answer; the directory convention — a plan sitting next to a `goal.md` — is only the fallback for a plan written before those keys existed. The caller never has to declare the target, and a `kind:` token is not a thing this skill accepts. Read exactly one of those three references, and only that one.
40
+
41
+ **What a document target writes back.** The close-out sets the plan's `status: done` in the same edit that step 4 commits, so the status is part of that commit and lands in history beside the work it closes. It is written before the commit runs, so that commit carries it. A commit or snapshot that fails leaves the edit uncommitted on disk: report the failure, stop, and never report the plan as closed on a commit that did not land — the on-disk `done` is a leftover to be re-committed by the next run, not a state to trust. Ship is the sole writer of `done`, not of the key. It writes it only when every phase row in the plan's tracking table is `Done`: a mid-plan close-out — two phases shipped of five — leaves the plan `active`, which is the honest reading. The precondition comes from the table, never from the caller's say-so. A plan whose phases are all `Done` but which was never closed out therefore stays `active` until someone ships it, and the next `sassy-ship` closes it out.
42
+
43
+ **Never close out a draft.** `status: draft` means the plan is still being grilled. Refuse in one line and send the user back to `sassy-plan`. Ship never writes `active`, and never finishes a half-written plan. A plan with no `status` key predates the contract and counts as `active`, a rule `sassy-plan`'s `references/plan-format.md` owns. A plan already `status: done` is not closed out twice: report it as already closed and stop, naming the commit that closed it. The one exception is a slice whose plan is `done` but whose `goal.md` row has not reached `Shipped` — an interrupted close-out — where ship writes only that slice row and stops, since the plan half already landed.
44
+
29
45
  ## Steps (in order)
30
46
 
31
- 1. **Review gate.** In `mode:manual` only: present a compact shipping summary — the plan or topic, the changes from the cycle results, the docs the close-out expects to write, the branch/PR target, the babysit options, for a goal slice the `goal.md` change (slice → `Shipped`) and that babysit will not merge, and **the hooks resolved for this run's head — point, skill, and args — or that none are declared** — and wait. Under `commit.branch: current`, state instead "commit + push to `<head>`, no PR", that no PR, babysit, merge, or `hooks.pr.*` (`before_create`, `after_create`, `before_merge`, `after_merge`) will run, and **the `hooks.push.after_push` entries resolved for `<head>` — skill and args — or that none are declared**. In `mode:auto`, skip this gate.
47
+ 1. **Review gate.** In `mode:manual` only: present a compact shipping summary — the plan or topic, the changes from the cycle results, the docs the close-out expects to write, the branch/PR target, the babysit options, the target's own summary lines from its reference — for a slice, the `goal.md` change (slice → `Shipped`) and that babysit will not merge — and **the hooks resolved for this run's head — point, skill, and args — or that none are declared** — and wait. Under `commit.branch: current`, state instead "commit + push to `<head>`, no PR", that no PR, babysit, merge, or `hooks.pr.*` (`before_create`, `after_create`, `before_merge`, `after_merge`) will run, and **the `hooks.push.after_push` entries resolved for `<head>` — skill and args — or that none are declared**. In `mode:auto`, skip this gate.
32
48
  2. **Compound (conditional).** If the work produced a qualifying learning, dispatch a `worker` whose task is: *load the `sassy-compound` skill and follow it with `mode:auto`* — with a compact learnings brief (the solved problems, root causes, and solutions taken from the cycle results, not from re-reading the tree). It always gets `mode:auto` because ship's own gate already covered the approval. Skip cleanly when nothing qualifies, and skip entirely when `knowledge.write` is `false`.
33
- 3. **Handbook (conditional).** If the feature is self-contained and independent enough that a teammate would benefit from a handover, dispatch a `worker` whose task is: *load the `sassy-handbook` skill and follow it* — with the plan path and topic. The worker reads the tree itself. Skip for small or tightly-coupled changes.
49
+ 3. **Docs.** Dispatch a `worker` whose task is: *load the `sassy-docs` skill and follow it in `mode:review`* — with the target path or topic, the change summary taken from the cycle results rather than re-read from the tree, the document set from `artifacts.*`, and this run's scope. It reports every stale claim, fixes it, and writes a handbook when the change is independent enough that a teammate would need a handover. It always gets the change summary: an auditor re-deriving the change from the tree disagrees with the document for the wrong reason. Skip cleanly when the change is trivially small and touches no documented surface, and skip entirely when the caller's `steps:` omits `docs`.
34
50
  4. **Commit or snapshot.** After the review gate — never before it — the docs and any remaining code become durable.
35
51
 
36
52
  **Before anything is persisted, check the plan's `Auto` QA rows.** If the plan carries any and one is not `Done` from a passing `sassy-dogfood` report, stop here: report the outstanding rows, the report path, and what it would take to prove them. Ship never commits, pushes, or opens a PR behind an unproven automated row, and never runs the recipe itself — proving is `sassy-work`'s step, and re-running it here would let a red row reach a commit by being retried instead of fixed. A brief and a plan with only `Manual` rows skip this entirely.
37
- - **`git.repo` is a remote.** Dispatch a `worker`: *load the `sassy-commit` skill and follow it with `branch:current`*, naming that the commit must include the plan, any new solutions docs, the concepts file, `AGENTS.md`, and any handbook just written — resolved from `artifacts.*`, never hardcoded. The branch already exists: `sassy-work` or `sassy-lfg` cut it before the first change, so the docs belong on it with the phase commits. It returns the hash and subject.
53
+ - **`git.repo` is a remote.** Dispatch a `worker`: *load the `sassy-commit` skill and follow it with `branch:current`*, naming that the commit must include the plan and its `status` change, any new solutions docs, the concepts file, `AGENTS.md`, and any doc step 3 wrote — resolved from `artifacts.*`, never hardcoded. The branch already exists: `sassy-work` or `sassy-lfg` cut it before the first change, so the docs belong on it with the phase commits. It returns the hash and subject.
38
54
 
39
55
  **Ship never creates the branch.** Outside `commit.branch: current`, a head on a base branch with unpublished commits is a mis-run — `sassy-work` was supposed to cut before touching code. Ask the commit worker to return `state` and `unpublished` from the `sassy-setup` skill's `scripts/detect.sh --branch`, and stop and ask if they show a base with a non-zero count. Never relocate commits silently, never push to the base. Under `commit.branch: current` this check does not fire: unpublished commits on the head are simply pushed along with the close-out commit.
40
56
  - **`git.repo: workspace`.** Commit code inside each affected repo on the run's shared branch — cut once at the start of the run, `branch:current` from then on — then run `.sassywares/workspace/snapshot`. The snapshot is the workspace's commit and it runs every time, right after approval. A missing or outdated `.sassywares/workspace/snapshot` is a blocker: report it and say to run `sassy-setup`.
@@ -48,8 +64,6 @@ argument-hint: "<plan path or topic> [steps:compound,handbook,commit,pr,babysit]
48
64
 
49
65
  **One PR per run.** Babysitting a workspace fan-out means one `sassy-babysit` run per PR, and a fan-out is never auto-merged: `pr.merge` and `pr.merge:on` apply to a single-PR run only. A multi-repo merge needs an explicit per-PR say-so.
50
66
 
51
- **Goal slices.** A `sassy-goal` slice is a plan whose frontmatter `slice` key names the slice ID and whose `goal` key names the parent `goal.md`, with the directory convention (a plan sitting next to a `goal.md`) as the fallback when those keys are absent. The step 4 commit worker sets that slice `Shipped` in `goal.md`'s slice table and names `goal.md` in the commit, since `sassy-commit` stages named files only. Step 6 babysits the PR **without merging** — forward `merge:off` whatever `pr.merge` or the caller says — because `sassy-goal` `mode:check` must run on the open PR first. End the final report with the `sassy-goal <goal path> mode:check` command in the harness's syntax.
52
-
53
67
  ## Rules
54
68
 
55
69
  | Rule | Requirement |
@@ -59,7 +73,9 @@ argument-hint: "<plan path or topic> [steps:compound,handbook,commit,pr,babysit]
59
73
  | No review | `mode:auto` runs the close-out with no approval gate. Never toggled by the skill. |
60
74
  | All-or-nothing gate | In `mode:manual`, nothing is written until the gate is answered. |
61
75
  | Delegate everything | The orchestrator runs no git, gh, or file work itself. |
62
- | Conditional docs | Compound and handbook are skipped when they do not qualify. |
76
+ | Conditional docs | Compound is skipped when nothing qualifies. Docs always runs `sassy-docs` in `mode:review`, and is skipped only for a change that touches no documented surface. |
77
+ | One target | The target is resolved once, from the plan's frontmatter, and its reference is the only one read. Never re-decide it mid-run, and never ask the caller to declare it. |
78
+ | Never close out a draft | A `draft` plan is refused and sent back to `sassy-plan`. `done` is written only when every phase row is `Done`, in the step 4 edit so it is part of that commit. |
63
79
  | Docs in the commit | New docs and pointer lines ship in the same change. |
64
80
  | One branch | The branch is cut once, before the first change, by `sassy-work` or `sassy-lfg` (unless `commit.branch: current`). Ship and its docs commit land on it. |
65
81
  | Never create the branch | Ship never cuts a branch. Outside `commit.branch: current`, a head on a base branch with unpublished commits is a stop-and-ask, decided from the commit worker's `state` and `unpublished`. |
@@ -0,0 +1,20 @@
1
+ # Target: brief
2
+
3
+ The argument is a topic or a settled brief, not a plan file. Nothing is written back: there is no document to close out. Writing one now — after the work, from memory — is exactly the plan the run deliberately did without.
4
+
5
+ ## Gate summary lines
6
+
7
+ - The topic, and that no plan is being closed out, so no `status` moves.
8
+ - The change summary taken from the cycle results.
9
+
10
+ ## Step 4
11
+
12
+ Nothing to name for a target. The commit carries the code plus whatever the close-out wrote on its own — docs, learnings, concepts, `AGENTS.md` — and contains no plan path.
13
+
14
+ ## Babysit
15
+
16
+ Ordinary: the caller's `merge:on|off` and `delete-branch:on|off`, else `pr.merge` and `pr.delete_branch`. No downstream check waits on the PR, so an auto-merge needs no special casing.
17
+
18
+ ## Closing report
19
+
20
+ The topic, commit hash, the docs step 3 wrote, the PR URL or the pushed hash with "no PR — hooks.pr.* skipped", and the babysit status. Say **no plan — brief close-out** in one line, so the reader knows why no status moved rather than assuming one was forgotten.
@@ -0,0 +1,20 @@
1
+ # Target: plan
2
+
3
+ A standalone plan — a file under `artifacts.plans` with no `slice` or `goal` key. The shared write-back rule is in the body: `status: done` goes in the step 4 edit, and only when every phase row in the tracking table is `Done`.
4
+
5
+ ## Gate summary lines
6
+
7
+ - The plan path, and which it is: "every phase `Done`, so the close-out sets `status: done`" or "two of five phases `Done` — the plan stays `active` after this".
8
+ - That no goal is involved. A reader who has been shipping slices expects a `goal.md` write; say plainly that this plan has none.
9
+
10
+ ## Step 4
11
+
12
+ Name the plan file in the commit brief. The `status` change is a file edit and `sassy-commit` stages named files only, so a commit that stages the code without it leaves the plan `active` after the work is closed — which the next reader correctly reads as unfinished work.
13
+
14
+ ## Babysit
15
+
16
+ Ordinary: forward the caller's `merge:on|off` and `delete-branch:on|off`, else `pr.merge` and `pr.delete_branch`. A standalone plan has no downstream verification to protect, so an auto-merge needs no override here.
17
+
18
+ ## Closing report
19
+
20
+ One line each: plan path and its new status, commit hash, the docs step 3 wrote, the PR URL or the pushed hash with "no PR — hooks.pr.* skipped", and the babysit status.
@@ -0,0 +1,21 @@
1
+ # Target: slice
2
+
3
+ A plan whose frontmatter carries `slice` (the slice ID) and `goal` (the path to the parent `goal.md`) — one slice of a `sassy-goal` goal. The goal itself is never closed here: `goal.md`'s `status: done` belongs to `sassy-goal mode:close` alone, after every slice has been checked.
4
+
5
+ ## Gate summary lines
6
+
7
+ - The slice ID and the parent `goal.md` path.
8
+ - That the slice's row in `goal.md` becomes `Shipped` and `goal.md` joins the commit.
9
+ - That babysit will not merge, and why: `sassy-goal mode:check` has to run against the open PR first.
10
+
11
+ ## Step 4 — two writes, one commit
12
+
13
+ The commit worker sets that slice's row to `Shipped` in `goal.md`'s slice tracking table and names `goal.md` in the commit, because `sassy-commit` stages named files only. It lands in the same edit set as the plan's `status: done`: a slice marked `Shipped` whose plan still reads `active` is a contradiction the next reader has to resolve by hand, and a plan marked `done` whose slice still reads `In progress` sends `mode:check` looking for work that already shipped.
14
+
15
+ ## Babysit
16
+
17
+ Forward `merge:off` whatever `pr.merge` says or the caller asks for. Never merge: `mode:check` needs the PR open.
18
+
19
+ ## Closing report
20
+
21
+ End with the `sassy-goal <goal path> mode:check` command in the harness's syntax, and say in one line that the goal's own `status: done` is still `mode:close`'s to write once every slice is `Done`.
@@ -0,0 +1,66 @@
1
+ ---
2
+ name: sassy-strategy
3
+ description: >-
4
+ Write and revise a project's strategy — what the product is for, who it is for,
5
+ and what it refuses — and judge whether work fits it. mode:write (default)
6
+ grounds in the repo, shows a model to correct, interviews with pushback,
7
+ stress-tests three to five metrics, and writes the strategy file one section at
8
+ a time; mode:check gives a read-only fit verdict on a plan, goal, proposal, or
9
+ diff and never writes. Use when asked for direction, positioning, what this
10
+ product is for, to write or revise a strategy, or whether a piece of work is on
11
+ strategy.
12
+ argument-hint: "[mode:write|check] [doc path] [section]"
13
+ ---
14
+
15
+ # Sassy Strategy
16
+
17
+ **Outcome:** one settled strategy document at the configured path — Purpose, Positioning, Users, Boundaries, Key metrics, Tracks — that a reader can take in under five minutes; and, in `mode:check`, a read-only verdict on whether a plan, goal, proposal, or diff fits it.
18
+
19
+ **The strategy is a question, never a veto.** A boundary it states changes what a run asks before it starts, and nothing a run does. The answer is always the user's.
20
+
21
+ **Direction only.** No roadmap, no dates, no feature list, no backlog, no status. A strategy that lists what is next has stopped being a strategy and become a plan that nothing owns.
22
+
23
+ **Config.** Resolve `.sassywares/config.yaml` (nearest, walking up) per the `sassy-setup` skill's `references/config.md`. The file's path is `artifacts.strategy` — never assume `docs/strategy.md`, and never hardcode a path. The shared anchor rules — what counts as a conflict, the three outs, the override record, and the `draft` rule — live in the `sassy-setup` skill's `references/anchors.md`; read it before offering an out.
24
+
25
+ **Harness.** Loading another skill, dispatching an agent, and any command you hand the user follow the `sassy-setup` skill's `references/harness.md`. Read it once per run, before the first of those.
26
+
27
+ ## Modes
28
+
29
+ | Mode | Load | Runs | It ends with |
30
+ |---|---|---|---|
31
+ | `write` (default) | `references/write.md`, plus `references/strategy-format.md` for the format contract | no strategy on file, or a revision | the file written, or one section revised, `status: active` only after the read-back |
32
+ | `check` | `references/check.md`, plus `references/strategy-format.md` when it quotes the file | a plan, goal, proposal, or diff to test against the strategy | a verdict quoting the strategy line, and no file touched |
33
+
34
+ Resolve the mode: an explicit `mode:` token wins. With none, a question about whether something fits — "is this on strategy", "does this match the strategy" — is `check`; anything else is `write`. Read the one **mode** reference for that mode **and only that one** — `references/strategy-format.md` is the format contract, not a mode reference, and it comes with any run that writes, revises, or quotes the file.
35
+
36
+ `references/strategy-format.md` owns the six canonical section names, their locked order, the frontmatter, and the `draft`→`active` rule.
37
+
38
+ ## Routing a `write` run
39
+
40
+ | The argument | It is |
41
+ |---|---|
42
+ | no file at `artifacts.strategy` | a new strategy — `write.md`, from the top |
43
+ | a file, no section | a revision, entered at the bare-invocation step in `write.md` |
44
+ | a section, with or without a doc path | a section revision — the section-argument contract in `write.md` |
45
+ | anything else after the path | a usage error: name the six canonical sections and stop |
46
+
47
+ A section name matches **case-insensitively against the six canonical headings and nothing else**; any other word is a usage error.
48
+
49
+ ## Hard rules
50
+
51
+ | Rule | Requirement |
52
+ |------|-------------|
53
+ | Never a veto | A conflict is quoted from the file, then three outs are offered. No run blocks on the strategy, and no agent picks an out for the user. |
54
+ | Direction only | Nothing in the file schedules, lists, or tracks work. A date, a roadmap row, or a feature list is removed on sight. |
55
+ | One section at a time | A revision reopens exactly one canonical section and leaves every other byte of the file alone. |
56
+ | Grounded | Every user, metric, boundary, and product claim comes from the repo or from the user, with one exception: the model you show them before the interview, labelled as a guess. Never invent a command, a number, or a metric's source. |
57
+ | Draft is not settled | A `status: draft` strategy is reported as unsettled and never enforced — not by this skill, and not by a reader. |
58
+ | Five-minute read | If the file no longer reads inside five minutes, cut it. Detail belongs in the plan that the strategy guided. |
59
+ | Write boundary | `artifacts.strategy` (creating its directory when needed) and, only when no `README.md` exists at the project root, the seeded `README.md`. Nothing else: never `AGENTS.md`, plans, code, or an existing README. |
60
+
61
+ ## Workflow
62
+
63
+ 1. **Resolve the path.** `artifacts.strategy` from the config, or the doc path the user named. A path outside the project is a usage error — the strategy is the project's, not a machine's.
64
+ 2. **Resolve the mode and the entry point** from the routing table above, and read that one reference. `references/strategy-format.md` comes with any run that touches the file's bytes.
65
+ 3. **Do the run** the reference lays out.
66
+ 4. **Report** in the reference's shape: the path, what changed, `status`, and what is not settled — plus, after a `write`, the one command that revises a section.
@@ -0,0 +1,81 @@
1
+ # Mode: check — a read-only fit verdict
2
+
3
+ Read the shared sections in `SKILL.md` and `references/strategy-format.md` first.
4
+ This file is the judgement only: **check writes nothing** — no edit to the
5
+ strategy, no edit to the plan, goal, proposal, or diff it was handed, no commit.
6
+ A check that fixes "one stale line while it is there" has become a `write` run
7
+ nobody approved.
8
+
9
+ ## 1. Resolve and read
10
+
11
+ 1. The strategy file from `artifacts.strategy`, or one the user named. No file →
12
+ the verdict is **no strategy on file**: report the configured path and the
13
+ command that writes one, and stop. That is a valid answer, not an error, and
14
+ never a reason to invent a strategy from the repo.
15
+ 2. Read `status` before the body. `draft` (or a missing/unknown value) → the
16
+ verdict is **unsettled**: report the path and that the document is not
17
+ enforced, then stop. Do not quote a draft as binding and do not weigh the work
18
+ against it — a draft is context, and enforcing it is how a half-written
19
+ document starts blocking real work.
20
+ 3. Read the work: the plan, the goal, the proposal, or the diff. For a diff, read
21
+ what it changes, not its size. For a plan, its intent and its phases.
22
+
23
+ ## 2. What can conflict
24
+
25
+ Only **Boundaries**, **Positioning**, and **Tracks** can conflict. What counts as a conflict is the `sassy-setup` skill's `references/anchors.md`.
26
+
27
+ ## 3. The verdict, then the outs
28
+
29
+ The output is the quoted line and the question, never a ruling:
30
+
31
+ ```md
32
+ **Fit — fits | conflicts | unsettled**
33
+
34
+ - Strategy: "<verbatim line>" (Boundaries)
35
+ - The work: <one line — the request or diff hunk that meets it>
36
+ - Outs:
37
+ 1. Change the work — <what would no longer meet the line>
38
+ 2. Make it a track — a strategy revision that admits this direction
39
+ 3. Override — recorded in the plan with provenance, and the run continues
40
+ ```
41
+
42
+ - Quote the line **verbatim**, with the section it came from. A paraphrase is a
43
+ finding the user cannot check.
44
+ - Name the work concretely: the phase, the request, the file and hunk.
45
+ - Offer all three outs. Order them as above; never mark one as recommended
46
+ unless the user asks which you would pick.
47
+ - **Never a veto, and never a silent pass.** The run continues either way: the
48
+ obligation is to ask, the answer is the user's. Nothing about the strategy
49
+ makes a run stop or fail.
50
+
51
+ Then the shared rules take over: taking *change the work* is the caller's edit,
52
+ *make it a track* is a `write` run's section revision, and *override* is recorded
53
+ in the plan per the `sassy-setup` skill's `references/anchors.md` — check records
54
+ nothing itself.
55
+
56
+ ## 4. A second override on the same boundary
57
+
58
+ When the work's plan already records an override of **this same line**, the
59
+ verdict is not another argument. State that it is the second one, and make
60
+ **exactly one** offer to revise the strategy:
61
+
62
+ > This is the second override of "<line>". The strategy may be the thing that is
63
+ > stale — want to revise Boundaries?
64
+
65
+ The offer, and what a declined one means, follow the "A second override on the
66
+ same boundary" rule in the `sassy-setup` skill's `references/anchors.md`.
67
+
68
+ ## 5. Report shape
69
+
70
+ Report the verdict block, and under it:
71
+
72
+ - **fits** — the nearest line the work does honour, in one clause, so the user can
73
+ see what was checked.
74
+ - **conflicts** — the line, the three outs, and the one-sentence offer if it is a
75
+ repeat.
76
+ - **unsettled** — the path, `status`, and the command that finishes the write.
77
+ - **no strategy on file** — the configured path and the write command.
78
+
79
+ End by naming what you did **not** check: a section you read but could not judge,
80
+ a diff whose intent is unclear, a proposal with no line to test against. Then
81
+ stop. Nothing is written, and no verdict is a veto.
@@ -0,0 +1,84 @@
1
+ # Strategy format
2
+
3
+ The format is settled: six sections, one locked order, one frontmatter. A run
4
+ never invents a seventh section, renames a heading, or reorders the file. What
5
+ changes is the words inside a section, one revision at a time.
6
+
7
+ ## Frontmatter
8
+
9
+ ```yaml
10
+ ---
11
+ status: draft
12
+ created: YYYY-MM-DD
13
+ updated: YYYY-MM-DD
14
+ ---
15
+ ```
16
+
17
+ - `status` — `draft` while the document is being written or revised into shape,
18
+ `active` once it is settled. A missing or unknown value reads as `draft`: an
19
+ unsettled strategy is the safe assumption, never the reverse.
20
+ - `created` — the day the file was first opened. It never changes.
21
+ - `updated` — the day the content last changed. Every write, revision, or status
22
+ flip refreshes it in that same edit. A reader uses it to decide whether the
23
+ document is behind the repo; that is the only date the file is allowed to hold.
24
+
25
+ No `type`, no `owner`, no `version`, and no dates in prose. A sentence that
26
+ describes when something will happen is a roadmap line in disguise and does not
27
+ belong in the file.
28
+
29
+ ## The six sections, in this order
30
+
31
+ | # | Heading | What it answers | Shape |
32
+ |---|---|---|---|
33
+ | 1 | `## Purpose` | Why this product exists, and for whom, in the present tense | One paragraph |
34
+ | 2 | `## Positioning` | What it is, and the one thing it does that the alternatives do not | One paragraph, ideally one distinguishing sentence the reader could repeat |
35
+ | 3 | `## Users` | Who has the problem, and what they do today without this | Two to four named groups, one line each — never "everyone" |
36
+ | 4 | `## Boundaries` | What the product will not become, including a `_Resist a change when:_` line | A short list of refusals, each concrete enough to recognise in a request |
37
+ | 5 | `## Key metrics` | How we would know it is working, and where that is read | Three to five entries, one line each: definition, then where it is measured |
38
+ | 6 | `## Tracks` | The directions deliberately being pursued | Two to five named directions, one line each, no features under them |
39
+
40
+ The headings are exactly these words: no numbering, no punctuation, no
41
+ synonyms ("Goals", "Non-goals", "Metrics", "Roadmap"). Section matching is
42
+ literal, so a second heading — a track, a boundary group, a metrics table — would
43
+ break the one contract this file has. A track is a line under Tracks, never a
44
+ heading of its own.
45
+
46
+ ### Boundaries leads with the resist line
47
+
48
+ Boundaries carries the one line a reader will quote back at a request:
49
+
50
+ ```md
51
+ _Resist a change when:_ it would make the product a general-purpose tool.
52
+ ```
53
+
54
+ Then the refusals themselves, each a sentence the reader can check a request
55
+ against. A boundary that permits everything ("we stay flexible") is not a
56
+ boundary and is not written.
57
+
58
+ ### Key metrics is a measuring list
59
+
60
+ Three to five entries. Each is a one-line definition plus where it is read — a
61
+ dashboard, a table, a query, a report someone actually opens. A metric with no
62
+ place it is measured is a wish; it is either given a source or left out, and the
63
+ section may carry fewer than three only while it is unsettled.
64
+
65
+ ## Draft and active
66
+
67
+ - The file is opened as `status: draft` at its final path before the interview's
68
+ second settled section, and each section is appended as it settles. The file,
69
+ not the conversation, is the ledger — a run that compacts must not lose what
70
+ the user already confirmed.
71
+ - Only the confirmed read-back at the end of `write.md` flips it to `active`, in
72
+ the same edit that refreshes `updated`. Nothing else may.
73
+ - A section revision on an `active` file leaves it `active`; it refreshes
74
+ `updated`. A revision that pulls a section apart far enough that the document
75
+ no longer reads as settled is reported as such, and leaving it `active` or
76
+ returning it to `draft` is the user's call, not the run's.
77
+ - Readers treat `draft` as context only, per the `sassy-setup` skill's
78
+ `references/anchors.md`.
79
+
80
+ ## Length
81
+
82
+ The whole document reads in under five minutes — a page, not a chapter. When a
83
+ section needs more than its shape allows, the extra is an argument for a plan or
84
+ a decision record, not a paragraph here. Cut it and say where it went.
@@ -0,0 +1,180 @@
1
+ # Mode: write — author or revise the strategy
2
+
3
+ Read the shared sections in `SKILL.md` first, and `references/strategy-format.md`
4
+ before the first line is written. This file is the write path only.
5
+
6
+ Two ways in, and they share one rule: **the document is direction, so every
7
+ sentence in it must survive the question "would this still be true if we shipped
8
+ nothing this quarter?"**
9
+
10
+ | Entry | When | Runs |
11
+ |---|---|---|
12
+ | A — new | Nothing at `artifacts.strategy` | Ground, show a model, open as `draft`, interview, stress-test, one edit pass, read-back, offer a README seed |
13
+ | B — revise | A file, no section | Summarize in three to five lines, check it against the repo since `updated`, then ask which section to open |
14
+ | B — section | A file and a section argument | The section-argument contract, below |
15
+
16
+ ## A — a new strategy
17
+
18
+ ### 1. Ground in the repo first
19
+
20
+ Read before asking anything, bounded to the smallest set that answers the
21
+ questions: `README.md`, the package manifest, the top-level tree, the configured
22
+ `artifacts.plans` and `artifacts.solutions` folders, `.sassywares/config.yaml`,
23
+ and the last thirty commits' subjects. On a large repo, load `sassy-scout` for
24
+ this instead of reading wide.
25
+
26
+ What this buys: the users it already speaks to, the vocabulary it already uses,
27
+ what has actually changed lately, and what has been explicitly refused before.
28
+ Write down what the repo does **not** answer — those are the interview's real
29
+ questions, and asking them is the point of the run.
30
+
31
+ ### 2. Show a model to correct
32
+
33
+ Before the interview, put a filled-in draft of the six sections in chat, marked
34
+ at the top as *my guess from the repo — correct me*. Not a blank template: a
35
+ model is something to push against, and a user who sees a plausible wrong
36
+ Positioning will fix it in one sentence where a blank prompt gets a paragraph of
37
+ hedging.
38
+
39
+ Say plainly which lines are the repo's and which are the guess.
40
+
41
+ ### 3. Open the file as `draft`
42
+
43
+ Write `artifacts.strategy` (creating the directory if needed) with the
44
+ frontmatter and nothing else — no empty headings, no placeholders. It is opened
45
+ at its final path on purpose: the draft is what survives a compaction, and a
46
+ half-written file with six empty sections reads as finished to the next agent.
47
+
48
+ Then append each section **as it settles**, in the locked order, never batched to
49
+ the end. Refresh `updated` with each append.
50
+
51
+ ### 4. Interview
52
+
53
+ One question at a time, in the user's words, and never a list. Ask about what the
54
+ repo could not answer, and ask until the answer is specific enough to write a
55
+ line the user would defend.
56
+
57
+ Push back — that is the job, not a courtesy:
58
+
59
+ - **A user that is everyone is not a user.** "Developers", "teams", "anyone who…"
60
+ gets one question: who has this problem badly enough to change what they do,
61
+ and what do they do today instead? A group with no workaround is suspect.
62
+ - **A boundary that permits everything is not a boundary.** Ask for the change
63
+ they would refuse — ideally one somebody has already asked for. If they cannot
64
+ name one, the section stays unsettled and says so.
65
+ - **Positioning is a difference, not an adjective.** "Fast", "simple", "modern"
66
+ are claims every competitor makes. Ask: compared to what, and what does the
67
+ alternative force the user to do that this does not?
68
+ - **A metric with no home is a wish.** Ask where it is read before accepting it.
69
+ - **Purpose is present tense.** If the answer describes a future state, that is a
70
+ roadmap line: take it out of the strategy and note it for a plan.
71
+ - **An unverifiable claim is the user's assertion.** Market size, competitor
72
+ behavior, a claim about users nobody has spoken to — write it only as the
73
+ user's stated belief, or leave it out and say why.
74
+ - **A restatement is not a section.** If Users repeats Positioning, say so and ask
75
+ for the line that distinguishes them.
76
+ - **"TBD" is not settled.** Record the section as open, keep the file `draft`,
77
+ and say in the report what is open — never fill it with a plausible invention.
78
+
79
+ Never answer your own question. A section the user has not settled is reported
80
+ as unsettled, and the run stops short of writing it.
81
+
82
+ ### 5. The metric stress test
83
+
84
+ Propose **three to five** metrics yourself, derived from what the repo can
85
+ measure, then push back on the user's:
86
+
87
+ - **Vanity** — a number that only goes up (signups, downloads, total commits),
88
+ or that no decision would change. Ask what they would do differently if it
89
+ halved. If the answer is "nothing", it is not a metric.
90
+ - **Unmeasurable here** — no table, dashboard, report, or query produces it
91
+ today. Either name where it will be read, or drop it.
92
+ - **Proxy dressed as outcome** — a metric that measures activity rather than the
93
+ thing the user cares about. Say what it is a proxy for and ask whether the real
94
+ thing is readable.
95
+ - **Too many** — more than five means no one is watching any of them. Cut to the
96
+ ones a decision depends on.
97
+
98
+ Every surviving entry carries a one-line definition and where it is measured.
99
+ Fewer than three is allowed only while the section is unsettled, and the report
100
+ names it.
101
+
102
+ ### 6. One edit pass
103
+
104
+ When all six sections are on file, read the document back in chat and give the
105
+ user exactly **one** pass of edits. Collect every correction, apply them in one
106
+ go, and refresh `updated`. Further changes after that are a **section revision**
107
+ (the contract below), not another full pass: revision is usually one rotten
108
+ section, and full-pass friction is how a strategy document stops being revised at
109
+ all.
110
+
111
+ ### 7. Read-back, then `active`
112
+
113
+ Read the whole document back — the actual file's words, not a summary — and ask
114
+ for confirmation. Only the confirmed read-back flips `status` to `active`, in the
115
+ same edit that refreshes `updated`. A read-back that produces corrections returns
116
+ to step 6.
117
+
118
+ ### 8. Report, and offer a README seed
119
+
120
+ Report: the path, the sections written, `status`, what is unsettled, and the one
121
+ command that revises a section (`sassy-strategy <doc> <section>`, in the harness's
122
+ syntax per the `sassy-setup` skill's `references/harness.md`).
123
+
124
+ Then the seed offer, **only when the project root has no `README.md`**:
125
+
126
+ > There is no README. Want me to seed one from the strategy?
127
+
128
+ On yes, write a minimal `README.md`: the project's title, one paragraph of
129
+ what-this-is drawn from Purpose and Positioning (their words, not new claims), and
130
+ `## Install` and `## Run` headings whose bodies are a literal `TODO:` line — never
131
+ a guessed command, never a script name from the manifest, never a copied line
132
+ from another project. A TODO is the correct outcome; a wrong command is worse
133
+ than an empty section, because it is believed.
134
+
135
+ Never rewrite an existing `README.md`, and never offer this outside a `write` run
136
+ that just finished. The README is the project's, and its install steps are not
137
+ inferable from a strategy.
138
+
139
+ ## B — revise
140
+
141
+ Revision is **section-scoped** by design. The full pass exists once, in entry A;
142
+ afterwards every change reopens one section and leaves every other byte alone.
143
+
144
+ ### Bare invocation on an existing file
145
+
146
+ 1. **Summarize what is on file** in three to five lines — the six sections in one
147
+ clause each, and `status` with `updated`.
148
+ 2. **Check it against the repo since `updated`**: what the commits, the tree, and
149
+ the plans say changed. Name any line the repo now contradicts, any Track with
150
+ no commits behind it, and a `draft` status — these are prompts for the user,
151
+ never corrections you make on your own.
152
+ 3. **Ask which section to open**, listing the six canonical names.
153
+ 4. On an answer, run the section contract for that section. On no answer, stop —
154
+ a bare revision never edits on a guess.
155
+
156
+ ### The section-argument contract
157
+
158
+ `sassy-strategy <doc> <section>` (or `<section>` alone, when the config resolves
159
+ the file):
160
+
161
+ - **Matching is case-insensitive against the six canonical headings, and nothing
162
+ else.** `Users`, `users`, and `USERS` are the same section. There is no fuzzy
163
+ match, no partial word, no alias table, and no "did you mean" — nothing predates
164
+ this format, so every near miss is a typo and treating it as a guess is how a
165
+ tool writes into the wrong section.
166
+ - **An unrecognized word is a usage error.** Print the six canonical names, one
167
+ per line, and stop. Do not open the file, do not summarize, do not guess.
168
+ - **Reopen exactly one section.** Quote its current text, ask the questions that
169
+ section needs (the pushback rules above apply unchanged), and rewrite only
170
+ those lines. Every other byte in the file — other sections, their order, the
171
+ frontmatter's `created` — stays identical. `git diff` on a section revision
172
+ shows exactly two hunks — the section, and the frontmatter's `updated` line —
173
+ and nothing else.
174
+ - **No new sections, no renames, no reordering**, even when the new content would
175
+ read better elsewhere. Say the better home; the format is locked.
176
+ - Refresh `updated`, keep `status` as it was, and report the section, the change,
177
+ and `status` in one short block.
178
+ - A revision that reveals the strategy itself is wrong — not stale — is the
179
+ user's call: offer, in one line, to revise the neighbouring section or return
180
+ the whole document to the full pass. Do not do either unasked.
@@ -33,7 +33,7 @@ Use the mode the caller passed; never pick one yourself.
33
33
 
34
34
  ## Workflow
35
35
 
36
- 1. **Intent.** Resolve the reference: a plan path plus phase (preferred), a plan path with no phase — the whole plan — or an explicit intent the user states. If none exists, ask and stop.
36
+ 1. **Intent.** Resolve the reference: a plan path plus phase (preferred), a plan path with no phase — the whole plan — or an explicit intent the user states. If none exists, ask and stop. When the reference is a plan file, read its frontmatter `status` first: `draft` → refuse, because a plan still being written has nothing implemented to validate against, and send the user back to `sassy-plan`. `active` and `done` both validate normally — a closed-out plan is exactly what a conformance check is for — and a plan with no `status` key counts as `active` (`sassy-plan`'s `references/plan-format.md` owns that rule).
37
37
  2. **Validate.** Dispatch the `validator` with that intent reference. When the caller passed `range:<base>..<head>`, hand it to the validator as the commit range to validate; otherwise the validator scopes the work itself.
38
38
  3. **Return.** In `mode:return`, return the validator's grade, evidence, and gaps as-is and stop.
39
39
  4. **Conforms?** If the grade is `Conforms`, report it and stop. If `Blocked — insufficient grounding`, report what it needs and stop — do not guess.
@@ -24,7 +24,7 @@ argument-hint: "<plan path | brief> [phase:<n>] [branch:infer|current|new] [work
24
24
 
25
25
  Detect the shape from the argument:
26
26
 
27
- - **Plan input** — a path to an existing `.md` file under `artifacts.plans`. Take an optional `phase:<n>`. Default to the first phase whose status is not `Done`.
27
+ - **Plan input** — a path to an existing `.md` file under `artifacts.plans`. Read its frontmatter `status` first: `draft` → refuse and send the user back to `sassy-plan` to finish it; `done` → refuse, because the plan was closed out and a new phase needs `sassy-plan` to reopen it; `active` → run; no `status` key at all → run, since it counts as `active` (a rule `sassy-plan`'s `references/plan-format.md` owns). Take an optional `phase:<n>`, and default to the first phase whose status is not `Done`.
28
28
  - **Brief input** — anything else. Treat the whole argument as the settled brief from `sassy-plan`.
29
29
 
30
30
  If a plan path is given but the file does not exist, run `sassy-plan` first and stop.