@sassywares/skills 0.14.0 → 0.16.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 (73) hide show
  1. package/README.md +58 -34
  2. package/package.json +1 -2
  3. package/skills/sassy-babysit/SKILL.md +3 -0
  4. package/skills/sassy-commit/SKILL.md +4 -1
  5. package/skills/sassy-commit-push-pr/SKILL.md +4 -1
  6. package/skills/sassy-compound/SKILL.md +4 -1
  7. package/skills/sassy-compound/references/concepts.md +8 -2
  8. package/skills/sassy-compound/references/templates.md +6 -0
  9. package/skills/sassy-cycle/SKILL.md +4 -1
  10. package/skills/sassy-debug/SKILL.md +3 -0
  11. package/skills/sassy-docs/SKILL.md +3 -0
  12. package/skills/sassy-docs/references/handbook-format.md +6 -0
  13. package/skills/sassy-docs/references/handbook.md +6 -0
  14. package/skills/sassy-docs/references/review.md +11 -2
  15. package/skills/sassy-dogfood/SKILL.md +3 -0
  16. package/skills/sassy-dogfood/references/check.md +6 -0
  17. package/skills/sassy-dogfood/references/discover.md +6 -0
  18. package/skills/sassy-dogfood/references/run.md +6 -0
  19. package/skills/sassy-goal/SKILL.md +18 -12
  20. package/skills/sassy-goal/references/check.md +7 -1
  21. package/skills/sassy-goal/references/close.md +11 -4
  22. package/skills/sassy-goal/references/goal-format.md +17 -4
  23. package/skills/sassy-goal/references/next.md +15 -9
  24. package/skills/sassy-goal/references/revise.md +25 -0
  25. package/skills/sassy-goal/references/write.md +8 -0
  26. package/skills/sassy-handoff/SKILL.md +3 -0
  27. package/skills/sassy-handoff/references/read.md +6 -0
  28. package/skills/sassy-handoff/references/write.md +6 -0
  29. package/skills/sassy-overview/SKILL.md +3 -0
  30. package/skills/sassy-overview/references/identify.md +6 -0
  31. package/skills/sassy-plan/SKILL.md +30 -23
  32. package/skills/sassy-plan/references/interview.md +8 -2
  33. package/skills/sassy-plan/references/plan-format.md +40 -11
  34. package/skills/sassy-plan/references/revision-format.md +86 -0
  35. package/skills/sassy-plan/references/sketches.md +6 -0
  36. package/skills/sassy-review/SKILL.md +3 -0
  37. package/skills/sassy-scout/SKILL.md +3 -0
  38. package/skills/sassy-setup/SKILL.md +22 -11
  39. package/skills/sassy-setup/assets/agents-md.md +71 -0
  40. package/skills/sassy-setup/assets/roster +1 -1
  41. package/skills/sassy-setup/references/anchors.md +128 -0
  42. package/skills/sassy-setup/references/branching.md +19 -10
  43. package/skills/sassy-setup/references/check.md +20 -2
  44. package/skills/sassy-setup/references/config.md +22 -12
  45. package/skills/sassy-setup/references/dogfood.md +6 -0
  46. package/skills/sassy-setup/references/harness.md +6 -0
  47. package/skills/sassy-setup/references/init.md +10 -0
  48. package/skills/sassy-setup/references/plan-resolution.md +53 -0
  49. package/skills/sassy-setup/references/scaffold-header.md +6 -0
  50. package/skills/sassy-setup/references/workspace.md +29 -0
  51. package/skills/sassy-setup/references/worktree.md +6 -0
  52. package/skills/sassy-setup/scripts/detect.sh +282 -31
  53. package/skills/sassy-ship/SKILL.md +8 -5
  54. package/skills/sassy-ship/references/brief.md +6 -0
  55. package/skills/sassy-ship/references/plan.md +7 -1
  56. package/skills/sassy-ship/references/slice.md +6 -0
  57. package/skills/sassy-simplify/SKILL.md +3 -0
  58. package/skills/sassy-skill/SKILL.md +3 -0
  59. package/skills/sassy-skill/references/create.md +6 -0
  60. package/skills/sassy-skill/references/retune.md +6 -0
  61. package/skills/sassy-skill/references/verify.md +6 -0
  62. package/skills/sassy-strategy/SKILL.md +69 -0
  63. package/skills/sassy-strategy/references/check.md +87 -0
  64. package/skills/sassy-strategy/references/strategy-format.md +90 -0
  65. package/skills/sassy-strategy/references/write.md +186 -0
  66. package/skills/sassy-validate/SKILL.md +4 -1
  67. package/skills/sassy-work/SKILL.md +66 -68
  68. package/skills/sassy-worktree/SKILL.md +3 -0
  69. package/skills/sassy-worktree/references/create.md +6 -0
  70. package/skills/sassy-worktree/references/list.md +6 -0
  71. package/skills/sassy-worktree/references/remove.md +6 -0
  72. package/CONCEPTS.md +0 -178
  73. package/skills/sassy-lfg/SKILL.md +0 -92
@@ -1,10 +1,14 @@
1
1
  ---
2
+ suite: sassy-skills
3
+ artifact: skill
4
+ generated_by: sassy-setup
2
5
  name: sassy-setup
3
6
  description: >-
4
7
  Detect a project's topology and wire it for the Sassy Skills suite: write
5
- .sassywares/config.yaml, check for the suite's skills and the sassy-agents
6
- subagents and install whichever is missing in user or project scope, and
7
- install the snapshot tooling in a multi-repo workspace.
8
+ .sassywares/config.yaml, write the AGENTS.md routing block, check for the
9
+ suite's skills and the sassy-agents subagents and install whichever is missing
10
+ in user or project scope, and install the snapshot tooling in a multi-repo
11
+ workspace.
8
12
  Use when asked to set up or configure a project, or to check an existing
9
13
  setup (`mode:check`).
10
14
  argument-hint: "[path] [mode:init|check]"
@@ -12,7 +16,7 @@ argument-hint: "[path] [mode:init|check]"
12
16
 
13
17
  # Sassy Setup
14
18
 
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.
19
+ **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
20
 
17
21
  **Read `references/config.md` first.** It is the schema and the resolution rules; this skill only decides and writes.
18
22
 
@@ -20,7 +24,7 @@ argument-hint: "[path] [mode:init|check]"
20
24
 
21
25
  **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
26
 
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.
27
+ **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. `references/plan-resolution.md` is how a plan path resolves — a directory holding `plan.md`, or a legacy flat file — and every skill that reads or writes a plan resolves it there rather than reimplementing the test. 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
28
 
25
29
  ## Modes
26
30
 
@@ -42,6 +46,12 @@ lacks. Report it as a note, not drift, and name `--sync --write` as its fix: it
42
46
  merges the template onto the file and keeps every value the check accepts,
43
47
  comment and all. Drift blocks step 8.
44
48
 
49
+ A missing or stale routing block in `AGENTS.md` is a note of the same kind: the
50
+ suite's block is absent, or its marker version is behind the shipped one, and it
51
+ is reported as a note naming the file — never drift, never a gate, and never a
52
+ reason not to commit. `--sync --write` is what replaces it, leaving every byte
53
+ outside the markers identical.
54
+
45
55
  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
56
 
47
57
  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 +60,7 @@ comment and all. Drift blocks step 8.
50
60
 
51
61
  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
62
 
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.
63
+ `.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
64
 
55
65
  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
66
 
@@ -59,7 +69,7 @@ comment and all. Drift blocks step 8.
59
69
  - **`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
70
  - **`none`** — nothing to commit, deliberately.
61
71
 
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.
72
+ 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
73
 
64
74
  ## Hard rules — every mode
65
75
 
@@ -67,9 +77,10 @@ comment and all. Drift blocks step 8.
67
77
  |------|-------------|
68
78
  | 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
79
  | 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
- | 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), `.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/`. |
80
+ | 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. |
81
+ | 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. |
82
+ | 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. |
83
+ | 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
84
  | 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
85
  | Skills come from upstream | Install with `npx skills add`, `-g` for user scope; never hand-copy skill files or maintain the links yourself. |
75
86
  | 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 +88,7 @@ comment and all. Drift blocks step 8.
77
88
  | 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
89
  | 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
90
  | 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 is the one stated exception: the check names `--sync --write`, and only the operator runs it. |
91
+ | 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
92
 
82
93
  ## What setup is not
83
94
 
@@ -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 v2 -->
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` | Runs a plan: every phase, then the close-out — or one phase at a time with `mode: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 v2 -->
@@ -8,7 +8,6 @@ sassy-docs
8
8
  sassy-dogfood
9
9
  sassy-goal
10
10
  sassy-handoff
11
- sassy-lfg
12
11
  sassy-overview
13
12
  sassy-plan
14
13
  sassy-review
@@ -17,6 +16,7 @@ sassy-setup
17
16
  sassy-ship
18
17
  sassy-simplify
19
18
  sassy-skill
19
+ sassy-strategy
20
20
  sassy-validate
21
21
  sassy-work
22
22
  sassy-worktree
@@ -0,0 +1,128 @@
1
+ ---
2
+ suite: sassy-skills
3
+ artifact: reference
4
+ generated_by: sassy-setup
5
+ ---
6
+
7
+ # Strategy anchor
8
+
9
+ The project's strategy is the one document that says what the product is for,
10
+ who it is for, and what it refuses. It is read where **direction** is decided —
11
+ `sassy-plan`, `sassy-goal`, `sassy-docs mode:review`, and `sassy-setup
12
+ mode:check` — and never by an executor: `sassy-work`, `sassy-review`,
13
+ `sassy-ship`, `sassy-debug`, `sassy-commit`, `sassy-commit-push-pr`,
14
+ `sassy-babysit`, `sassy-worktree`, and `sassy-handoff` do not load it, because by
15
+ the time work is running the direction is settled and re-litigating it mid-run is
16
+ how a boundary becomes a veto.
17
+
18
+ It is written and revised only by `sassy-strategy`. A reader quotes it, asks
19
+ about it, and reports on it; it never edits it.
20
+
21
+ ## Where it lives
22
+
23
+ `artifacts.strategy`, resolved per [`config.md`](config.md) — default
24
+ `docs/strategy.md`. **Never a literal path.** A project that moved the file is
25
+ still correct, and a reader that opens `docs/strategy.md` without asking the
26
+ config is reading a file that may no longer be the anchor.
27
+
28
+ The format — six sections, their locked order, `status: draft|active` — is the
29
+ `sassy-strategy` skill's `references/strategy-format.md`. A reader needs its
30
+ section names, not its rules: **Purpose, Positioning, Users, Boundaries, Key
31
+ metrics, Tracks**, and of those only Boundaries, Positioning, and Tracks can
32
+ conflict.
33
+
34
+ **A missing file is not a failure.** Report it as a presence note with the command
35
+ that writes one (`sassy-strategy`), and carry on. A project that has not written
36
+ a strategy has not broken anything, and no check, plan, or goal turns red for
37
+ being unwired.
38
+
39
+ ## What counts as a conflict
40
+
41
+ Only a **quoted line** in one of these three:
42
+
43
+ | Section | Conflicts when |
44
+ |---|---|
45
+ | Boundaries | the work is one of the changes the document says to resist, or meets the `_Resist a change when:_` line |
46
+ | Positioning | the work would make the product the thing the positioning says it is not |
47
+ | Tracks | the work contradicts a direction the project says it is deliberately pursuing |
48
+
49
+ Purpose and Users never conflict on their own: they are why the product exists and
50
+ who for, so they change the question rather than forbidding an answer. Reading
51
+ them as boundaries turns a direction into a cage, and a strategy that forbids
52
+ everything is one nobody revises.
53
+
54
+ If you cannot quote the strategy line, there is no conflict. "This feels
55
+ off-strategy" is not a finding, a stale impression is not a finding, and a
56
+ boundary the plan already overrode once is not a conflict again unless the
57
+ strategy has changed since.
58
+
59
+ ## The three outs
60
+
61
+ A conflict is a **question, never a veto**: the run continues, and the user
62
+ answers. Present all three every time, in this order.
63
+
64
+ 1. **Change the work** — the request, phase, or slice is reshaped or dropped so it
65
+ no longer meets the line. The caller's edit; the run's own work continues in
66
+ the same run.
67
+ 2. **Make it a track** — the strategy is the thing that is out of date, and the
68
+ direction is admitted as a revision. Only `sassy-strategy` writes it, through
69
+ its section contract, in its own run: cite `sassy-strategy`, never draft the
70
+ section yourself.
71
+ 3. **Override** — the user decides the work proceeds against the line, and the
72
+ decision is recorded. See below.
73
+
74
+ Never pick one for the user, never mark one as the answer unless asked, and never
75
+ soften the question into a note that carries no decision: a boundary the run
76
+ mentions and then steps over silently is worse than one it never read.
77
+
78
+ ## Override and its record
79
+
80
+ An override is the user's decision, recorded **in the artifact the work lives in**
81
+ — the plan's Decisions or Constraints (or `goal.md`'s cross-slice decisions, or
82
+ the brief's settled decisions) — with provenance, so a later reader can tell it
83
+ apart from a decision that was made freely:
84
+
85
+ - the strategy line, quoted;
86
+ - the section it came from;
87
+ - the date;
88
+ - the user's reason, or `no reason given`.
89
+
90
+ Nothing is written to the strategy file. An override never edits the anchor; it
91
+ records that this run knowingly went around it. An agent never overrides on its
92
+ own, and never records one as if the user had agreed when they only declined to
93
+ choose.
94
+
95
+ **A second override on the same boundary earns exactly one offer to revise.** When
96
+ the same line has been overridden before — in this plan, or in a plan since the
97
+ strategy's `updated` — say that it is the second one and offer, once, to revise
98
+ that section through `sassy-strategy`. A declined offer is final: further
99
+ overrides are recorded and reported without comment. The repetition is evidence
100
+ the document may be stale, not evidence the work is wrong, and the only way to
101
+ settle that is the user's answer.
102
+
103
+ ## `draft` is not settled
104
+
105
+ `status: draft` — or a missing or unrecognized value, which reads as `draft` —
106
+ means the document is still being written. Readers:
107
+
108
+ - report it as **unsettled**, naming the path and the command that finishes it;
109
+ - treat its content as context, never as a rule: no conflict is raised from a
110
+ draft, no non-goal is pre-filled from it, no override is offered against it;
111
+ - never enforce it, and never block on it — a draft that stops a plan is a draft
112
+ that will not get finished.
113
+
114
+ Only the confirmed read-back at the end of a `write` run flips it to `active`,
115
+ and only then does it start changing the questions a run asks.
116
+
117
+ ## Who reads it, and what each reports
118
+
119
+ | Reader | Reads it | Reports |
120
+ |---|---|---|
121
+ | `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 |
122
+ | `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 |
123
+ | `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 |
124
+ | `sassy-setup mode:check` | presence, and the frontmatter `status` when the file exists | a note, never drift; a missing file is not a failure |
125
+
126
+ Every reader here is read-only toward the strategy. The document moves only when
127
+ the user runs `sassy-strategy`, which is the one thing that keeps the anchor worth
128
+ quoting.
@@ -1,8 +1,14 @@
1
+ ---
2
+ suite: sassy-skills
3
+ artifact: reference
4
+ generated_by: sassy-setup
5
+ ---
6
+
1
7
  # Branching
2
8
 
3
- One branch decision per run, made **before** the first change. `sassy-work`,
4
- `sassy-lfg`, and `sassy-debug` all resolve it here, through one detector, so the
5
- three cannot drift apart the way three hand-copied paragraphs would.
9
+ One branch decision per run, made **before** the first change. `sassy-work` and
10
+ `sassy-debug` both resolve it here, through one detector, so the two cannot
11
+ drift apart the way two hand-copied paragraphs would.
6
12
 
7
13
  ## Resolve
8
14
 
@@ -69,12 +75,15 @@ ask at step 6, never a token of its own. There is no `worktree:ask`.
69
75
  exactly that. Name the count, the branch, and the choice.
70
76
  3. Name it `<type>/<slug>` from the plan path or the topic, deterministically,
71
77
  so a retried run converges on the same name instead of forking `-2`. The slug
72
- is the plan's path relative to `artifacts.plans`, without `.md`, and without a
73
- standalone plan's `<type>-` filename prefix: `feat-worktree-cut.md` names
74
- `feat/worktree-cut`. A goal slice nests as `<type>/<goal>/<NN-slice>`, where
75
- `<goal>` is the goal's folder minus its `<type>-` prefix (`feat-powersync/`
76
- names `feat/powersync/02-offline-reads`), and `<type>` comes from the slice
77
- plan's frontmatter because its `NN-<slice-slug>.md` filename carries none. A
78
+ is the plan's name relative to `artifacts.plans` — the directory for a v2
79
+ plan, the filename without `.md` for a legacy flat one — with a standalone
80
+ plan's `<type>-` prefix dropped: `feat-worktree-cut/plan.md` and
81
+ `feat-worktree-cut.md` both name `feat/worktree-cut`. A goal slice nests as
82
+ `<type>/<goal>/<NN-slice>`, where `<goal>` is the goal's folder minus its
83
+ `<type>-` prefix and `<NN-slice>` is the slice's own folder:
84
+ `feat-powersync/02-offline-reads/plan.md` names
85
+ `feat/powersync/02-offline-reads`. `<type>` comes from the slice plan's
86
+ frontmatter because its `NN-` prefix carries none. A
78
87
  `feat/*`-style `base_map` or
79
88
  `hooks.pr` family still matches the nested name by prefix.
80
89
  4. Re-run with `--name <name>` and take `pr-base` from that answer: a name like
@@ -131,7 +140,7 @@ ask at step 6, never a token of its own. There is no `worktree:ask`.
131
140
 
132
141
  Report `head` and the checkout you are in, and carry on. Do **not** re-cut because
133
142
  `commit.branch` is `new`:
134
- a second phase, a resumed run, or `sassy-lfg` after `sassy-work` is already standing on
143
+ a second phase, a resumed run, or another `sassy-work` is already standing on
135
144
  the branch the first one cut. That is the whole reason this is inferred rather
136
145
  than forced. It is also what keeps a run inside its own worktree: it finds itself
137
146
  on a non-base branch and reuses it rather than nesting another checkout. Both
@@ -1,8 +1,14 @@
1
+ ---
2
+ suite: sassy-skills
3
+ artifact: reference
4
+ generated_by: sassy-setup
5
+ ---
6
+
1
7
  # Mode: check — verify an existing setup, write nothing
2
8
 
3
9
  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
10
 
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).
11
+ 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
12
  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
13
  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
14
  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 +18,7 @@ A check run never edits the config, never installs a skill or an agent, never re
12
18
  | Rule | Requirement |
13
19
  |------|-------------|
14
20
  | 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. |
21
+ | 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
22
  | 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
23
 
17
24
  ## What the template note means
@@ -24,7 +31,9 @@ worktrees, dogfood and refresh the comments (values the check accepts stay)` —
24
31
  and still exits 0. It is never drift: every value the file declares is valid.
25
32
 
26
33
  The fix is `bash scripts/detect.sh --root <path> --sync --write`, which merges
27
- the template onto the file. It keeps the line of every leaf the check accepts —
34
+ the template onto the file; a project that declined the block takes the same
35
+ merge with `--no-agents` (config only, `AGENTS.md` untouched), and `--agents`
36
+ syncs only the block. It keeps the line of every leaf the check accepts —
28
37
  value and same-line trailing comment, byte for byte — so a project's
29
38
  `"*": main # confirmed: …` stays exactly as written, and takes every block,
30
39
  key, comment, and example the file lacks from the proposal. A malformed value is
@@ -35,6 +44,15 @@ second run reports `already current` and touches nothing.
35
44
  Report the note and the command; run the sync only when the user asks, the same
36
45
  as every other repair.
37
46
 
47
+ ## What the strategy note means
48
+
49
+ Check reads presence, and the frontmatter `status` when the file exists; it
50
+ never reads the content for a verdict and never edits it. `active` reports the
51
+ path and nothing else, `draft` is unsettled and `absent` unwritten with
52
+ `sassy-strategy` named for both: the outcomes and their "never drift, never
53
+ non-zero" weight are the hard-rules row's, the rules are [`anchors.md`](anchors.md),
54
+ and the report line is step 9's.
55
+
38
56
  ## What a worktree finding means
39
57
 
40
58
  `worktrees.create` and `worktrees.remove` are the project's own files, so a check
@@ -1,3 +1,9 @@
1
+ ---
2
+ suite: sassy-skills
3
+ artifact: reference
4
+ generated_by: sassy-setup
5
+ ---
6
+
1
7
  # Project config
2
8
 
3
9
  One file: `.sassywares/config.yaml` at the project root. Every config-reading
@@ -51,9 +57,10 @@ artifacts:
51
57
  plans: docs/plans
52
58
  solutions: docs/solutions
53
59
  handbooks: docs/handbooks
54
- concepts: CONCEPTS.md
60
+ concepts: docs/concepts.md
61
+ strategy: docs/strategy.md
55
62
  knowledge:
56
- read: [docs/solutions, CONCEPTS.md]
63
+ read: [docs/solutions, docs/concepts.md]
57
64
  write: true
58
65
  git:
59
66
  repo: origin # <remote name> | workspace | none
@@ -102,15 +109,16 @@ dogfood:
102
109
  | `artifacts.plans` | `docs/plans` | Where `sassy-plan` writes plans, and where `sassy-goal` keeps goal folders (`<type>-<slug>/goal.md` plus slice plans) |
103
110
  | `artifacts.solutions` | `docs/solutions` | Where `sassy-compound` writes learnings |
104
111
  | `artifacts.handbooks` | `docs/handbooks` | Where `sassy-docs` writes handbooks, and one of the document sets its review walks |
105
- | `artifacts.concepts` | `CONCEPTS.md` | The glossary file compound maintains |
106
- | `knowledge.read` | `[docs/solutions, CONCEPTS.md]` | Paths scouted for prior learnings |
112
+ | `artifacts.concepts` | `docs/concepts.md` | The glossary file compound maintains. When the config is silent and a root `CONCEPTS.md` exists, that root file is the glossary |
113
+ | `artifacts.strategy` | `docs/strategy.md` | The strategy file `sassy-strategy` writes and revises — where direction is decided. Absent is not drift: the file appears on the first write |
114
+ | `knowledge.read` | `[docs/solutions, docs/concepts.md]` | Paths scouted for prior learnings |
107
115
  | `knowledge.write` | `true` | `false` = this project takes no learnings |
108
116
  | `git.repo` | `origin` | Remote name, or a reserved value (below) |
109
117
  | `git.base_map` | probed `"*"` | Head branch → the base it targets. `"*"` is required |
110
118
  | `git.remote` | mirror of `git.repo` | Workspace only: mirror remote (URL or `owner/name`) |
111
119
  | `git.mirror_branch` | `main` | Workspace only: the branch the mirror pushes to |
112
120
  | `repos` | `{}` | Workspace only: repo dir name → the base its PRs target |
113
- | `commit.branch` | `new` | Resolved once per run, before the first change. `new` never commits on a base branch: `sassy-work`, `sassy-lfg`, and `sassy-debug` cut a branch first. `current` commits where you stand, base branch included, and the close-out pushes it to its upstream with no PR |
121
+ | `commit.branch` | `new` | Resolved once per run, before the first change. `new` never commits on a base branch: `sassy-work` and `sassy-debug` cut a branch first. `current` commits where you stand, base branch included, and the close-out pushes it to its upstream with no PR |
114
122
  | `pr.babysit` | `true` | Whether close-out babysits the PR it opened |
115
123
  | `pr.merge` | `false` | `true` authorizes merging a single babysat PR |
116
124
  | `pr.delete_branch` | `false` | Delete the head branch once merged |
@@ -190,9 +198,8 @@ dropped; the refusal names why and what to run instead.
190
198
 
191
199
  ## `commit.branch` — decide once, before code
192
200
 
193
- Resolved once per run, by the entry skill (`sassy-work`, `sassy-lfg`,
194
- `sassy-debug`), **before the first change**, through
195
- `sassy-setup/references/branching.md`. Not at commit time: committing first and
201
+ Resolved once per run, by the entry skill (`sassy-work`, `sassy-debug`),
202
+ **before the first change**, through `sassy-setup/references/branching.md`. Not at commit time: committing first and
196
203
  re-branching later leaves the commits on a base branch, and cutting the new
197
204
  branch from `origin/<base>` then leaves them behind entirely.
198
205
 
@@ -202,8 +209,8 @@ branch from `origin/<base>` then leaves them behind entirely.
202
209
  | `new` (default) | Never commit on a base branch. Cut one first, then stay on it for the rest of the run |
203
210
 
204
211
  A branch that is already checked out and is **not** a base is reused, whatever
205
- the config says. That is what makes a second phase, a resumed run, or
206
- `sassy-lfg` after `sassy-work` converge on the branch the first one cut instead of cutting
212
+ the config says. That is what makes a second phase, a resumed run, or a later
213
+ `sassy-work` converge on the branch the first one cut instead of cutting
207
214
  another.
208
215
 
209
216
  A base is **any `base_map` value**, plus the remote default — not the remote
@@ -571,7 +578,8 @@ report layout, the verdict classes, and the lint are in
571
578
  ## Validation rules
572
579
 
573
580
  - `artifacts.*` values are repo-relative directories (or one file for
574
- `concepts`), must resolve inside the project, and must not be the root itself.
581
+ `concepts` and `strategy`), must resolve inside the project, and must not be
582
+ the root itself.
575
583
  - `git.repo` is `workspace`, `none`, or one existing remote name.
576
584
  - `git.remote` is required when `git.repo: workspace`; forbidden otherwise.
577
585
  `git.mirror_branch` and `repos` are workspace-only too.
@@ -626,4 +634,6 @@ note, never as drift; [`check.md`](check.md) has the outcomes. The merge that
626
634
  closes it is `detect.sh --root <path> --sync --write`: it keeps every leaf the
627
635
  check accepts, value and same-line trailing comment byte for byte, and takes the
628
636
  rest from the template, so a comment carries the project's confirmation forward
629
- and a malformed value is replaced.
637
+ and a malformed value is replaced. The same command also creates, appends, or
638
+ replaces the `AGENTS.md` routing block; `--no-agents` scopes it to this config,
639
+ and `--agents` to the block alone.
@@ -1,3 +1,9 @@
1
+ ---
2
+ suite: sassy-skills
3
+ artifact: reference
4
+ generated_by: sassy-setup
5
+ ---
6
+
1
7
  # Dogfood
2
8
 
3
9
  Agent QA: a stored procedure that proves a change actually works in the running
@@ -1,3 +1,9 @@
1
+ ---
2
+ suite: sassy-skills
3
+ artifact: reference
4
+ generated_by: sassy-setup
5
+ ---
6
+
1
7
  # Harness conventions
2
8
 
3
9
  The suite runs in any harness that loads Agent Skills — pi, Claude Code, and others. No skill assumes one. When a skill says to load a skill, dispatch an agent, or hand the user a command, this file is how.
@@ -1,3 +1,9 @@
1
+ ---
2
+ suite: sassy-skills
3
+ artifact: reference
4
+ generated_by: sassy-setup
5
+ ---
6
+
1
7
  # Mode: init — detect, ask, write, wire
2
8
 
3
9
  Read the shared sections in `SKILL.md` first (config-first, never-a-repo, harness, the modes, and steps 7–9). This file is steps 1–6. When step 6 is done, return to `SKILL.md` for steps 7–9: verify, commit, report.
@@ -19,6 +25,7 @@ Never re-ask what the tree already said.
19
25
  - **`workspace`** — the snapshot mirror: create a **private** GitHub repo, or connect an existing one? Creating it needs explicit approval and a named slug first.
20
26
  - **`none`** — confirm the intent: this folder is deliberately outside git, so commit, PR, and babysit refuse here.
21
27
  - **Artifacts** — offer the detected paths as the default; take overrides.
28
+ - **Strategy** — offer to run the strategy interview in this same run, the way the dogfood bullet offers `mode:discover`. Say what the file is for: the one document that says what the product is for, who it is for, and what it refuses, read where direction is decided and written only by `sassy-strategy`. Yes means dispatch `sassy-strategy` now, in its own run; no means hand over `/sassy-strategy` and say the project is wired either way. **Never author a word of the interview yourself** — the model, the questions, the six sections, and the `draft`→`active` read-back are `sassy-strategy`'s alone. See the `sassy-setup` skill's [`anchors.md`](anchors.md) for where the file lives and why an absent one is not a failure.
22
29
  - **Knowledge** — `knowledge.read` defaults to the solutions dir plus the concepts file. Ask whether there are extra folders to read (a hand-written `notes/learnings/`, a `docs/adr/`).
23
30
  - **Base map** — detection proposes `"*"` from the probed remote default. Ask where ordinary work branches from, and whether the default branch itself releases to another branch (a `staging: main` rung). Never write `main` as a guess. In `workspace` mode, show the `repos` map and get a yes on every row — a probed base is only the remote's default.
24
31
  - **`commit.branch`** — default `new`: the run cuts a branch before the first change and never commits on a base branch. Offer `current` for a repo that genuinely wants work committed where it stands, and say plainly that `current` lets a run commit onto its base branch and push it, with no PR (`pr.*` and `hooks.pr` are ignored; `hooks.push` runs), and that a later `sassy-ship` run in `mode:auto` will then push to that base with no gate.
@@ -50,6 +57,7 @@ Both install the same way: report the scope if the pieces are present, otherwise
50
57
  **Do not wire updates.** How and when the suite is refreshed is the user's or the project's decision, not setup's: no `skills:*` scripts, no `postinstall` edit. Mention the update command for the chosen scope and stop there. Note for yourself that `npx skills check` is an alias of `update` — it is not a validator, and running it here would silently move the pin.
51
58
 
52
59
  - **Write `.sassywares/README.md`** from `assets/sassywares-readme.md` when absent. Never overwrite it — it may carry project notes.
60
+ - **Write the routing block into `AGENTS.md`.** It is the shipped `assets/agents-md.md`, written through `detect.sh --sync --write`, which renders the block's five `{{artifacts.*}}` placeholders — `strategy`, `concepts`, `plans`, `solutions`, `handbooks` — from the config step 4 wrote, never from the defaults the asset happens to carry. The file's own state picks the shape: no `AGENTS.md` means the whole template, and an `AGENTS.md` that already exists means the marked block alone — `<!-- sassywares:skills v1 -->` … — appended after its last line. The anchors are named whether or not they exist yet: the strategy route always appears, with `sassy-strategy` named as the command that writes one, because a route to a file that is not there yet is better than an agent that never learns the file exists. It is idempotent: an identical block is left alone and reported as already current. **Any difference is a diff and a question** — an older marker version, a hand-edited row, a block that no longer matches the config — run the sync without `--write` to see the action, show the diff, and write only on a yes; a no leaves every byte as it was, and any config fix then goes through `detect.sh --sync --write --no-agents`, which leaves the block untouched until the user asks for it. Only the bytes between the markers are ever written: the file's own lines are never rewritten, and `CLAUDE.md` and any per-harness agent file are never touched. In `workspace` topology the block goes to the root always and to a nested repo only where one already exists — read `references/workspace.md`; in `none` it lands at the root and is committed by nothing, by design.
53
61
  - **Agents.** The skills dispatch five subagents by name — `scout`, `worker`, `reviewer`, `simplifier`, `validator` — from [`sassy-agents`](https://github.com/sassywares/sassy-agents), which keeps one folder per harness. Use the row for the harness you are running in:
54
62
 
55
63
  | Harness | sassy-agents folder | User scope | Project scope |
@@ -99,7 +107,9 @@ Then return to `SKILL.md` for steps 7–9.
99
107
  | Approval to create a remote | Creating the mirror repo needs an explicit yes and a named slug first. |
100
108
  | Comments are part of the file | Every key keeps its description and allowed values. A stripped config is an incomplete config. |
101
109
  | Hooks are named, not written | Setup records hook skill names. Creating those skills is the project's work. |
110
+ | The block is never a rewrite | `AGENTS.md` gets the marked block and nothing else. An existing file's own lines are never touched, a differing block is shown as a diff and asked about, and `CLAUDE.md` is never written. |
102
111
  | Dogfood is a pointer | The block names a recipe, a reports path, a timeout, and whether Auto rows are allowed — four keys. Never a command and never a tool: a copied command duplicates the manifest and cannot express step order. |
112
+ | The strategy is offered, never authored | Setup names `sassy-strategy` and offers the interview. Every question, section, and status flip belongs to that skill's own run: a setup run that drafts a line has written an anchor nobody grilled. |
103
113
  | The recipe is the project's | Setup scaffolds the skeleton and stops. Authoring or "fixing" a procedure is `sassy-dogfood mode:discover`'s job, and a run may never edit the recipe to make its own failure pass. |
104
114
  | Worktrees need `new` | `worktrees.enabled: true` with `commit.branch: current` is refused, not written: nothing cuts a branch there, so the switch could never fire. |
105
115
  | Stubs are inert | The interview writes labelled comments in the scaffolding slots, never executable code: an untouched pair behaves exactly like the git-only baseline. |
@@ -0,0 +1,53 @@
1
+ ---
2
+ suite: sassy-skills
3
+ artifact: reference
4
+ generated_by: sassy-setup
5
+ ---
6
+
7
+ # Resolving a plan
8
+
9
+ Every skill that takes a plan as input resolves it here. There is one rule, and it has two shapes.
10
+
11
+ Read this once per run, before the first time you touch a plan path.
12
+
13
+ ## The two shapes
14
+
15
+ | Shape | Path | Revisions |
16
+ |---|---|---|
17
+ | v2 (current) | `<artifacts.plans>/<type>-<slug>/plan.md` | `<type>-<slug>/revisions/` |
18
+ | v1 (legacy) | `<artifacts.plans>/<type>-<slug>.md` | none |
19
+
20
+ **Both are legal, permanently.** v1 plans written before the directory shape existed are finished history that will never be written again, so `plan-resolution` is a permanent reader contract and not a migration shim.
21
+
22
+ A goal slice is a plan like any other: `<artifacts.plans>/<type>-<goal-slug>/NN-<slice-slug>/plan.md` with its own `revisions/` beside it.
23
+
24
+ ## Resolving a path
25
+
26
+ Given whatever the user or a caller passed:
27
+
28
+ 1. **A directory** — the plan file is `<dir>/plan.md` and the revision log is `<dir>/revisions/`. If `<dir>/plan.md` is missing, this is not a plan: report the path and stop rather than creating anything.
29
+ 2. **A `.md` file** — that file is the plan, and it has no revision log (v1).
30
+ 3. **A bare `<type>-<slug>` with no extension** — resolve under `artifacts.plans` by trying the directory first, then the flat file. The directory wins when both exist, because a flat file beside a directory of the same name is a half-finished migration, not a choice.
31
+ 4. **Nothing passed** — list the plans under `artifacts.plans`, both shapes, and ask which one. Never pick the newest, the most recently modified, or the only one you found without saying so.
32
+
33
+ ## What a resolution yields
34
+
35
+ - **`plan`** — the plan file to read, and to edit on a write path.
36
+ - **`revisions`** — the revision log directory, or `absent` for a v1 plan.
37
+
38
+ ## What a reader never does
39
+
40
+ - **Never migrates.** A reader reports the shape it found and continues. Creating a directory, moving a file, or rewriting a plan in order to make it resolvable is a write, and only a write path does it.
41
+ - **Never refuses a plan for being v1.** A missing `status` key reads as `active`; a missing provenance header means legacy, not invalid.
42
+ - **Never reimplements detection.** A `[[ -d ... ]]`, a `-f` test, or a `*/*.md` glob written to answer "is this a file or a folder" is a second copy of this file. If a case is missing, it belongs here, not in the caller.
43
+
44
+ ## What a write path does
45
+
46
+ A write path that resolves to a v1 plan migrates it before writing, in the same commit as the write itself:
47
+
48
+ ```bash
49
+ git mv <type>-<slug>.md <type>-<slug>/plan.md
50
+ mkdir <type>-<slug>/revisions
51
+ ```
52
+
53
+ Change nothing else — not a line, not a key, not the title. The migration is a rename that git records as one; a reader's next run sees v2 and its history starts from there. A migration that also "tidies" the plan is a rewrite, and it destroys the text the user confirmed.