@sassywares/skills 0.14.0 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -6
- package/package.json +1 -2
- package/skills/sassy-compound/SKILL.md +1 -1
- package/skills/sassy-compound/references/concepts.md +2 -2
- package/skills/sassy-docs/references/review.md +5 -2
- package/skills/sassy-goal/references/close.md +5 -4
- package/skills/sassy-goal/references/write.md +2 -0
- package/skills/sassy-plan/SKILL.md +1 -1
- package/skills/sassy-plan/references/interview.md +2 -2
- package/skills/sassy-setup/SKILL.md +19 -11
- package/skills/sassy-setup/assets/agents-md.md +71 -0
- package/skills/sassy-setup/assets/roster +1 -0
- package/skills/sassy-setup/references/anchors.md +122 -0
- package/skills/sassy-setup/references/check.md +14 -2
- package/skills/sassy-setup/references/config.md +11 -6
- package/skills/sassy-setup/references/init.md +4 -0
- package/skills/sassy-setup/references/workspace.md +23 -0
- package/skills/sassy-setup/scripts/detect.sh +280 -29
- package/skills/sassy-strategy/SKILL.md +66 -0
- package/skills/sassy-strategy/references/check.md +81 -0
- package/skills/sassy-strategy/references/strategy-format.md +84 -0
- package/skills/sassy-strategy/references/write.md +180 -0
- package/CONCEPTS.md +0 -178
|
@@ -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.
|
package/CONCEPTS.md
DELETED
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
# Sassy Skills — Concepts
|
|
2
|
-
|
|
3
|
-
## Source of truth
|
|
4
|
-
|
|
5
|
-
The repo's `skills/` directory is the only copy of the skills. Consumers install from it with `npx skills add sassywares/sassy-skills` — per project, which vendors the files and pins content hashes in `skills-lock.json`, or globally with `-g`, into `~/.agents/skills/`. See README.md's Installation section.
|
|
6
|
-
|
|
7
|
-
## Consumer project
|
|
8
|
-
|
|
9
|
-
A project that installs the suite per project, so it vendors its own copy in `.agents/skills/` and pins it in `skills-lock.json`. It does not get the maintainer's `~/.agents/skills` link, so a push to this repo reaches it only through the `sassy-skills-sync` hook, which mirrors exactly the suite's roster, repins those skills, commits, and pushes to the branch recorded in `.sassywares/consumers`. Its setup is never auto-updated: the sync reports that it is out of date, and which project.
|
|
10
|
-
|
|
11
|
-
## Skill
|
|
12
|
-
|
|
13
|
-
A directory containing `SKILL.md`, discovered by a harness from a project skills directory, a user skills directory, or an installed package. Skills are explicit workflows, not always-on instructions. The model may invoke any of them, and the user can invoke one directly through their harness (the `sassy-setup` skill's `references/harness.md` lists each harness's command).
|
|
14
|
-
|
|
15
|
-
## Write boundary
|
|
16
|
-
|
|
17
|
-
The exact set of paths a skill's run may create or edit, and so the exact set its commit step may stage — stated as a hard rule in the skill's `SKILL.md` and repeated as its commit file list. It names every surface the skill owns by name, which is why deleting a config key has to reach it: a body still naming a removed file is a boundary that commits or reports something no longer real.
|
|
18
|
-
|
|
19
|
-
## Agent
|
|
20
|
-
|
|
21
|
-
A specialized subagent from [sassy-agents](https://github.com/sassywares/sassy-agents), installed per harness (`~/.pi/agent/agents/`, `~/.claude/agents/`, `~/.hermes/agents/`, or a project `.pi/agents/` / `.claude/agents/`) by `sassy-setup`. Skills delegate bounded work to agents such as `scout`, `worker`, `reviewer`, `simplifier`, and `validator`.
|
|
22
|
-
|
|
23
|
-
## Orchestrator
|
|
24
|
-
|
|
25
|
-
A skill that mostly coordinates. It reads compact results, writes briefs, and avoids reading source or diffs in the main context. `sassy-work`, `sassy-lfg`, `sassy-ship`, `sassy-debug`, and `sassy-goal` are orchestrators.
|
|
26
|
-
|
|
27
|
-
## Cycle
|
|
28
|
-
|
|
29
|
-
`sassy-cycle` runs one unit of work through a tiered loop: implement → quality by change tier → one fix pass → return. A `logic` unit runs the simplifier, reviewer, and validator in parallel; a `surface` unit runs the reviewer; a `none` unit runs neither. The fix pass applies every finding once, and the cycle never re-reviews it — findings the worker leaves open are reported, and simplifications never block. Reviewer suggestions go to the gate. Given findings instead of a brief — failed QA rows, picked review findings — it applies them in one work pass. A change the user asks for at a gate is not a finding: it runs as a new cycle with that change as the work brief, so tier detection and review apply. It never commits. Work and LFG run it; debug fixes through work.
|
|
30
|
-
|
|
31
|
-
## Change tier
|
|
32
|
-
|
|
33
|
-
The depth of quality work a unit needs: declared per plan phase with `**Review:**`, passed as a `review:` token, or detected by `sassy-cycle` from the work. `logic` is core code and anything that can change runtime behavior; `surface` is everything that is not core code — docs, Markdown, comments, copy/i18n, tests, fixtures, formatting; `none` is machine-generated or mechanical churn. A declared `surface` or `none` is promoted to `logic` when the changed files include core code; never the reverse, and a worker's `Runtime behavior: yes` does not promote on its own, because tests and tooling can exercise behavior without changing it.
|
|
34
|
-
|
|
35
|
-
## Dogfood
|
|
36
|
-
|
|
37
|
-
Agent QA: the project's own stored procedure for proving a change works in the running product, not merely in the diff. `sassy-dogfood` executes it, and the report's verdict is the only thing that settles an `Auto` QA row.
|
|
38
|
-
|
|
39
|
-
- **Recipe** — `.sassywares/dogfood/recipe.md`, committed and reviewed like code. Append-only sections of ordered steps, each with a `Do` and an `Expect`, ending in one `Prove it:` step whose exit code is the verdict. It names no tool: whatever the harness has connected at run time is what satisfies a step. The config points at it and never restates it — commands in the config would duplicate the manifest and could not express order.
|
|
40
|
-
- **Report** — `.sassywares/dogfood/reports/<run-id>/`, never committed and pruned to ten: `summary.md` (status, class, the per-step table, artifact paths), one log per executed step, and the artifacts. The durable record is the QA row's note — verdict and run id — never a path that will vanish.
|
|
41
|
-
- **Verdict classes** — `code` is a finding for the cycle, `env` means the toolchain is broken (report and park, never loop), `recipe` means the procedure itself is stale (propose a diff, never improvise around it).
|
|
42
|
-
- **Two gates** — an `Auto` row needs `dogfood.enabled: true` **and** a section with a `Prove it:` step. One without the other keeps the row `Manual`, which is how an unfinished recipe degrades safely instead of making a gate lie.
|
|
43
|
-
- **Frozen against the run** — a red run never edits the recipe or its expectations to pass. The cheapest way past a check must not be to weaken it.
|
|
44
|
-
|
|
45
|
-
## Gates
|
|
46
|
-
|
|
47
|
-
A gate is a deliberate stop or pass/fail condition.
|
|
48
|
-
|
|
49
|
-
- **Fix gate** — `sassy-debug` presents the causal chain, fix, and risks before changing code.
|
|
50
|
-
- **Code approval gate** — the user approves the code before committing or shipping. Always on for `sassy-work` and `sassy-lfg`.
|
|
51
|
-
- **Gate change** — a change the user asks for while the code approval or QA gate is open is new work: a new `sassy-cycle` with that change as its work brief, at its detected tier, then the gate again. Failing QA rows alone are a one-pass rework.
|
|
52
|
-
- **Ship review gate** — `sassy-ship` summarizes the close-out and waits in `mode:manual` (default); skipped only when the caller passed `mode:auto`.
|
|
53
|
-
- **QA gate** — QA tables, part of phase completion rather than a separate track: a phase turns `Done` only when the code is approved and every QA row passed. A `Manual` row belongs to the user, and no agent ticks its own. An `Auto` row is settled by a passing dogfood report, never by an opinion, and ship will not persist behind one that is unproven. It exists only when the plan document has QA tables; an in-context brief has none.
|
|
54
|
-
|
|
55
|
-
## Branch and base
|
|
56
|
-
|
|
57
|
-
- **Base branch** — any branch the config names as a base: every `base_map` value, the `repos` rung in a workspace, and the remote default. In a repo whose `base_map` routes `"*"` to `staging`, `staging` **is** a base even though `origin/HEAD` is `main`. Comparing against `origin/HEAD` alone is the mistake that let phase work land on a shared integration branch.
|
|
58
|
-
- **Run branch** — the branch a run cuts before its first change when `commit.branch` is `new`. Cut once, at the start: every phase, every doc, and ship's commit land on it. A later phase, a resumed run, or `sassy-lfg` after `sassy-work` reuses it rather than cutting another.
|
|
59
|
-
- **Token authorship** — a token is explicit only when the caller supplied it or the run's own gate recorded it. A skill that passes its own default as a token outranks the project's config, which is the bug class `commit.branch` was lost to.
|
|
60
|
-
|
|
61
|
-
## Worktree
|
|
62
|
-
|
|
63
|
-
One checkout per branch, so two runs never share a working tree. `sassy-worktree`
|
|
64
|
-
owns the workflow; the scripts in `.sassywares/worktree/` own the git.
|
|
65
|
-
|
|
66
|
-
- **Worktree** — a second checkout of the same repository, at
|
|
67
|
-
`~/.sassywares/worktrees/<repo>/<slug>`. It shares one object store and one
|
|
68
|
-
branch lock with the main checkout, so the same branch can never be held twice
|
|
69
|
-
— the property that makes it safe where a `git clone` per agent is not.
|
|
70
|
-
- **Permission, not a default** — `worktrees.enabled: true` means a checkout may
|
|
71
|
-
be offered. A run asks before taking one and otherwise works in the main
|
|
72
|
-
checkout: two runs only collide when they are actually parallel, and an unasked
|
|
73
|
-
checkout relocates the work and leaves the uncommitted tree behind. A
|
|
74
|
-
`worktree:on` token is the other way to say yes — the ask answered up front —
|
|
75
|
-
and a managed checkout that already exists for the branch is reused rather than
|
|
76
|
-
a second one cut.
|
|
77
|
-
- **Slug** — the branch with `/` flattened (`feat/catalog` → `feat-catalog`). It
|
|
78
|
-
names the directory the checkout lives in, and the handle `list --path` and
|
|
79
|
-
`remove` take — `remove` also accepts the branch.
|
|
80
|
-
- **Namespace** — the slug prefixed with the repo (`shop-feat-catalog`), and the
|
|
81
|
-
only name a project script should use for a database, a compose project, or a
|
|
82
|
-
simulator. Derived once by `create`; never rebuilt by hand.
|
|
83
|
-
- **Identity block** — the four `WT_*` lines `create` mints and `list --env` hands
|
|
84
|
-
back: `WT_PATH`, `WT_BRANCH`, `WT_SLUG`, `WT_NAMESPACE`. The stream rule and the
|
|
85
|
-
unprepared case are the `sassy-setup` skill's `references/worktree.md`'s.
|
|
86
|
-
- **Project scripts** — the pair `<home>/worktrees/create` and
|
|
87
|
-
`<home>/worktrees/remove`, named by `worktrees.create` and `worktrees.remove`.
|
|
88
|
-
They are the lifecycle; the `sassy-setup` skill's `references/worktree.md` owns
|
|
89
|
-
their order, slots, and degrade rule, and `.sassywares/worktree/` ships only the
|
|
90
|
-
git mechanics. Addressing a checkout — a URL, a simulator, a window — is the
|
|
91
|
-
project's business too, and lives in those scripts.
|
|
92
|
-
- **Scaffold header** — the first line of a project-owned file setup plants,
|
|
93
|
-
`# sassywares:scaffold v1 skill=<name> version=<version> date=<YYYY-MM-DD>`.
|
|
94
|
-
The `sassy-setup` skill's `references/scaffold-header.md` owns its bytes and the
|
|
95
|
-
offer-only upgrade rule.
|
|
96
|
-
- **Toolbox** — the installed `.sassywares/worktree/` set of git-mechanics
|
|
97
|
-
scripts, versioned by an integer *contract* header that the project's own
|
|
98
|
-
wrappers are written against. That number is not the suite release a scaffold
|
|
99
|
-
header records, so the two are not comparable; a toolbox older than the shipped
|
|
100
|
-
one is drift, not an upgrade, because the wrappers call flags it never had.
|
|
101
|
-
- **Managed checkout** — one under `worktrees.dir` that also carries
|
|
102
|
-
`.sassywares/config.yaml`. The tooling lists and removes only those; anything
|
|
103
|
-
else belongs to another tool or predates the wiring.
|
|
104
|
-
- **State** — each managed checkout's `merged`, `gone`, or `unmerged`
|
|
105
|
-
classification, from the branch's upstream. The `sassy-setup` skill's
|
|
106
|
-
`references/worktree.md` owns the definitions; `list` is where it prints.
|
|
107
|
-
|
|
108
|
-
`create` and `remove` need an agent because the run has to ask permission before
|
|
109
|
-
taking a checkout, report each refusal verbatim, and confirm a set before removing
|
|
110
|
-
several. The orchestration is the skill's; the git is the toolbox's.
|
|
111
|
-
|
|
112
|
-
## Overview
|
|
113
|
-
|
|
114
|
-
What a project is and how it runs, answered from its files. `sassy-overview`
|
|
115
|
-
owns it; its `identify.sh` is the query.
|
|
116
|
-
|
|
117
|
-
- **Identify** — the default `mode:identify`: one `key<TAB>value<TAB>source` line
|
|
118
|
-
per fact, read-only and never executing the project's tooling. The keys are
|
|
119
|
-
`stack`, `runner`, `install`, `up`, `down`, `test`, `compose`, `env`, `wired`.
|
|
120
|
-
- **Source** — the file a value came from, or `-` when there is none. A value
|
|
121
|
-
without a source is not a fact, which is why `unknown` carries `-`.
|
|
122
|
-
- **Unknown** — a first-class answer: the project has not declared this fact.
|
|
123
|
-
It is never a gap to fill with a default or a manifest written to hold one.
|
|
124
|
-
- **Answered vs. asked** — the default run is an inventory and exits `0`; naming
|
|
125
|
-
keys makes it a question, and any requested `unknown` exits `3` so the caller
|
|
126
|
-
branches instead of guessing. Usage errors exit `2`.
|
|
127
|
-
|
|
128
|
-
## Modes
|
|
129
|
-
|
|
130
|
-
Three shared mode tokens: `mode:manual` (default) asks at the skill's gate; `mode:auto` means pre-authorized, no review; `mode:return` reports and changes nothing. Some skills take their own modes instead: `sassy-goal`, `sassy-docs` (`review`, `handbook`), `sassy-handoff` (`write`, `read`), `sassy-setup` (`init`, `check`), `sassy-overview` (`identify`), `sassy-worktree` (`list`, `create`, `remove`), and `sassy-skill` (`create`, `retune`, `verify`).
|
|
131
|
-
|
|
132
|
-
- `sassy-ship` and `sassy-compound` accept `manual` and `auto`. Ship reviews the whole close-out in `mode:manual` and forwards `mode:auto` to compound once its own gate is answered.
|
|
133
|
-
- `sassy-review`, `sassy-simplify`, and `sassy-validate` accept all three: `manual` asks which findings to fix, `auto` fixes them without asking, `return` hands the findings back to the caller.
|
|
134
|
-
- `sassy-debug` accepts no mode. It always leaves ship's review gate in place.
|
|
135
|
-
- `sassy-work` and `sassy-lfg` accept no mode.
|
|
136
|
-
- `sassy-goal` takes its own modes, one per step of a goal: `mode:write` (default), `mode:next`, `mode:check`, and `mode:close`.
|
|
137
|
-
- `sassy-docs` takes `mode:review` (default), which audits the docs against a change, or `mode:handbook`, which writes one handover.
|
|
138
|
-
|
|
139
|
-
Everything else is decided by the artifact, not a mode:
|
|
140
|
-
|
|
141
|
-
- A plan document under `docs/plans/` — `<type>-<slug>.md`, with YAML frontmatter for `type`, `status`, `created`, `updated` (plus `qa: off` when the user asks for no QA gates) — drives phased execution and carries QA tables whose rows are `Auto` or `Manual`.
|
|
142
|
-
- An in-context brief drives one cycle and has no plan file and no QA tables.
|
|
143
|
-
|
|
144
|
-
## Plan
|
|
145
|
-
|
|
146
|
-
A durable document under `docs/plans/<type>-<slug>.md` with frontmatter, intent, decisions, constraints, phase tracking, and per-phase QA tables. Its `status` is `draft` while `sassy-plan` is still grilling — the file is opened at that final path at the framing step and appended to as branches settle — `active` once the read-back is confirmed against the file, and `done` once `sassy-ship` closes it out, ship being the only writer of `done` and only when every phase row is `Done`. A plan whose phases are all `Done` but which was never shipped stays `active`: finished, not closed out, which is a real and visible state. Every executor — `sassy-work`, `sassy-lfg`, `sassy-validate`, `sassy-ship` — refuses a `draft`, and `sassy-work` and `sassy-lfg` refuse a `done` one too, since running a closed plan means reopening it through `sassy-plan`.
|
|
147
|
-
|
|
148
|
-
## Goal
|
|
149
|
-
|
|
150
|
-
Work too big for one plan — a migration, an epic — run by `sassy-goal` as a folder under `artifacts.plans`, `<type>-<slug>/`: `goal.md` (intent, cross-slice decisions, landscape, coexistence, a slice table, carry-forward) plus one plan per started slice. It turns `done` when `mode:close` verifies its done-when against the whole tree. Like a plan, it is written while it is grilled: `draft` from the framing step, `active` only after a confirmed read-back, `done` only from `mode:close` — and revising a `done` goal reopens it to `active`. `next`, `check`, and `close` all refuse a `draft`, so `before_slice` never fires for a goal that is still being written.
|
|
151
|
-
|
|
152
|
-
## Slice
|
|
153
|
-
|
|
154
|
-
One step of a goal: its own plan (`NN-<slug>.md`, written only when `mode:next` starts it), branch, and PR, and it must ship something complete on its own — never a half-built layer. One slice is in flight at a time: `Pending` > `Planned` > `Shipped` > `Done`.
|
|
155
|
-
|
|
156
|
-
## Carry-forward
|
|
157
|
-
|
|
158
|
-
The append-only section of `goal.md` that `mode:check` adds to once per slice: what changed versus the plan, new decisions, impact on later slices, and gaps deferred or accepted. Every later slice's grill reads it as settled.
|
|
159
|
-
|
|
160
|
-
## Goal hook
|
|
161
|
-
|
|
162
|
-
A project skill run at a goal's boundaries, declared under `hooks.goal` and keyed by the goal's folder name under `artifacts.plans`, `<type>-<slug>` (prefix included). `before_slice` runs in `mode:next` after the previous slice's merge is confirmed and before the next slice is grilled; `after_close` runs in `mode:close` after the status is persisted, on `done` and on a goal left `active`. Neither may touch the goal itself (`goal.md`, the slice plan, the status); anything else — switching to the bases, pulling, rebasing, committing, pushing, migrating — is the project's call, provided every base ends level with its remote. `before_slice` fires before `mode:next` checks the base, so it can be what freshens it. Entries are idempotent, and both fail closed. They are not PR-keyed, so `commit.branch: current` does not suppress them, and since `sassy-goal` has no approval gate the mode's report names what ran, that none are declared, or where it stopped.
|
|
163
|
-
|
|
164
|
-
## Docs
|
|
165
|
-
|
|
166
|
-
`sassy-docs` in `mode:review` (default) takes a scope — a branch, a plan, a PR, a file list, or the close-out's own work — and holds every document that change invalidated against what the change actually does: it fixes each stale claim in place, names what it could not verify or does not own, and writes a handbook when a teammate would need one. `mode:handbook` is that handbook on its own: one plain-English, toolchain-free document under `artifacts.handbooks`. It never changes behavior — a code mismatch it finds is reported, not fixed, because documents are not code. `sassy-ship` dispatches `mode:review` as its docs step.
|
|
167
|
-
|
|
168
|
-
## Brief
|
|
169
|
-
|
|
170
|
-
A settled in-context brief produced by `sassy-plan` when the user picks "start working" (`sassy-work`) or "implement and ship" (`sassy-lfg`). It carries the goal, decisions, constraints, work, and done-when, but no plan file and no QA tables: the plan opened during the grill is deleted when the run ends in a brief — already complete and `active` by then — because the user chose the brief over the document.
|
|
171
|
-
|
|
172
|
-
## Handoff
|
|
173
|
-
|
|
174
|
-
`sassy-handoff` in `mode:write` writes a self-contained handoff file under `/tmp/sassywares/handoffs/` and gives the user a `sassy-handoff mode:read <path>` command; `mode:read` in the fresh session summarizes what was done, why, and the current state against the tree, then asks what to do next. A skill cannot start a session, so the user opens the fresh one; the file is the only bridge, in any harness. Reaching for it is the user's call alone: no skill in the plan → work → ship pipeline writes, offers, or suggests one, and a run ends at its own report.
|
|
175
|
-
|
|
176
|
-
## Release
|
|
177
|
-
|
|
178
|
-
There is no background watcher. Releases go through `sassy-ship` under `commit.branch: current`: after the approved push, the `hooks.push` `after_push` hook runs the `sassy-skills-release` project skill, which runs the vendored `bin/release` script. It bumps the patch version and tags when consumer-facing files changed, and the tag publishes to npm. It installs nothing: `npx skills add` reads this repo directly. AGENTS.md has the details.
|