@softure-ai/skills 0.2.1 → 0.4.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 +4 -0
- package/WORKFLOW.md +30 -3
- package/package.json +1 -1
- package/skills/softure-archive/SKILL.md +76 -24
- package/skills/softure-archive/references/example-archive.md +106 -0
- package/skills/softure-code-review/SKILL.md +68 -18
- package/skills/softure-code-review/references/example-review.md +108 -0
- package/skills/softure-frame/SKILL.md +129 -40
- package/skills/softure-frame/references/diagnostic-lens.md +85 -0
- package/skills/softure-frame/references/examples.md +111 -0
- package/skills/softure-frame/references/pushback.md +38 -0
- package/skills/softure-impl-review/SKILL.md +138 -76
- package/skills/softure-impl-review/references/example-review.md +127 -0
- package/skills/softure-impl-review/references/rubric.md +120 -0
- package/skills/softure-impl-review/references/triage.md +124 -0
- package/skills/softure-implement/SKILL.md +116 -49
- package/skills/softure-implement/references/phase-commit.md +214 -0
- package/skills/softure-implement/references/worked-example.md +201 -0
- package/skills/softure-init/SKILL.md +59 -41
- package/skills/softure-init/references/example.md +96 -0
- package/skills/softure-init/references/templates.md +73 -0
- package/skills/softure-lesson/SKILL.md +47 -19
- package/skills/softure-lesson/references/examples.md +65 -0
- package/skills/softure-new/SKILL.md +100 -43
- package/skills/softure-new/references/example-change.md +149 -0
- package/skills/softure-new/references/placement.md +60 -0
- package/skills/softure-plan/SKILL.md +182 -50
- package/skills/softure-plan/references/plan-example.md +206 -0
- package/skills/softure-plan/references/progress-format.md +56 -2
- package/skills/softure-plan/references/questioning.md +162 -0
- package/skills/softure-plan-review/SKILL.md +211 -83
- package/skills/softure-plan-review/references/lenses.md +121 -0
- package/skills/softure-plan-review/references/review-example.md +184 -0
- package/skills/softure-prd/SKILL.md +130 -71
- package/skills/softure-prd/references/example-prd.md +233 -0
- package/skills/softure-prd/references/leak-lint.md +43 -0
- package/skills/softure-prd/references/prd-template.md +219 -0
- package/skills/softure-research/SKILL.md +73 -33
- package/skills/softure-research/references/example-research.md +106 -0
- package/skills/softure-research/references/fan-out.md +61 -0
- package/skills/softure-roadmap/SKILL.md +215 -65
- package/skills/softure-roadmap/references/example-roadmap.md +203 -0
- package/skills/softure-roadmap/references/interview.md +132 -0
- package/skills/softure-roadmap/references/slicing.md +118 -0
- package/skills/softure-rule-review/SKILL.md +83 -19
- package/skills/softure-rule-review/references/example-report.md +73 -0
- package/skills/softure-rule-review/references/scorecard.md +129 -0
- package/skills/softure-shape/SKILL.md +163 -53
- package/skills/softure-shape/references/example-shape-notes.md +192 -0
- package/skills/softure-shape/references/question-bank.md +248 -0
- package/skills/softure-worktree/SKILL.md +11 -3
- package/skills/softure-worktree/scripts/wt-integration.sh +27 -3
- package/skills/softure-worktree-manager/SKILL.md +24 -4
|
@@ -3,9 +3,10 @@ name: softure-lesson
|
|
|
3
3
|
description: >
|
|
4
4
|
Turn a mistake that happened (or keeps happening) into a numbered, durable rule in
|
|
5
5
|
context/foundation/lessons.md, with the incident that justifies it and how to apply it.
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
Interviews briefly, drafts the entry, shows it for approval, deduplicates against existing
|
|
7
|
+
lessons and numbers safely across parallel worktrees. Use when the user says "record a
|
|
8
|
+
lesson", "remember this rule", "add to lessons", "make sure this never happens again",
|
|
9
|
+
"add a rule", or when a review finding is marked "record as lesson".
|
|
9
10
|
argument-hint: "[\"<one-line rule draft>\"] [--from <change-id>#<finding>] [--auto]"
|
|
10
11
|
allowed-tools:
|
|
11
12
|
- Read
|
|
@@ -20,32 +21,41 @@ allowed-tools:
|
|
|
20
21
|
# softure-lesson: one incident, one rule, one number
|
|
21
22
|
|
|
22
23
|
Contract: `WORKFLOW.md` §7. The file is `context/foundation/lessons.md`. If it does not exist,
|
|
23
|
-
create it with the `# Lessons` header and one sentence saying what it is for
|
|
24
|
+
create it with the `# Lessons` header and one sentence saying what it is for; do not send the
|
|
25
|
+
user to `softure-init` for it. Research, frame, plan and the reviews read lessons as priors, so a
|
|
26
|
+
lesson earns its place only if it changes what one of them does next time.
|
|
24
27
|
|
|
25
28
|
## What qualifies
|
|
26
29
|
|
|
27
|
-
A lesson is a rule that would have prevented a **concrete** mistake in this repo,
|
|
28
|
-
future agent would plausibly repeat.
|
|
30
|
+
A lesson is a rule that would have prevented a **concrete** mistake in this repo, or would have
|
|
31
|
+
changed how earlier work was framed or fixed, and that a future agent would plausibly repeat.
|
|
32
|
+
It is not:
|
|
29
33
|
- general programming advice already in the conventions;
|
|
30
34
|
- a task or a TODO (those go to the roadmap or backlog);
|
|
31
|
-
- a fact about one file that the code itself makes obvious
|
|
35
|
+
- a fact about one file that the code itself makes obvious;
|
|
36
|
+
- a write-up of a one-off incident with no rule a reviewer could check.
|
|
32
37
|
|
|
33
38
|
If the input fails this test, say why and stop. Writing nothing is a valid outcome.
|
|
34
39
|
|
|
35
40
|
## Procedure
|
|
36
41
|
|
|
37
|
-
1. **Collect the incident.** Interactive: ask at most three
|
|
42
|
+
1. **Collect the incident.** Interactive: ask **one question at a time**, at most three, each
|
|
43
|
+
with your draft answer when you have one (from the conversation, the diff or the review), so
|
|
44
|
+
the user confirms or corrects instead of writing from scratch:
|
|
38
45
|
- What happened, concretely (file, command, symptom)?
|
|
39
46
|
- What did it cost (time, data, a wrong release)?
|
|
40
|
-
- When should the rule fire next time (paths, areas, kinds of work)?
|
|
47
|
+
- When should the rule fire next time (paths, areas, kinds of work, which skills)?
|
|
41
48
|
|
|
42
|
-
With `--from <change-id>#F<n>`, read the finding in `reviews/impl-review.md`
|
|
43
|
-
questions it already answers.
|
|
49
|
+
With `--from <change-id>#F<n>`, read the finding in `reviews/impl-review.md` (or the review it
|
|
50
|
+
names) and skip the questions it already answers.
|
|
44
51
|
2. **Deduplicate.** Search existing lessons for the same mechanism, not the same words: grep
|
|
45
52
|
key terms, then read candidates. If one already covers it:
|
|
46
53
|
- same rule: add the new incident as a second line under **Why:** (`Also: <date>, <change-id>: …`).
|
|
47
54
|
Do not create a new number.
|
|
48
55
|
- broader rule: generalize the existing lesson's title, keep its number, and note the widening.
|
|
56
|
+
|
|
57
|
+
These are the only edits this skill makes to an old lesson; reversing or deleting one is an
|
|
58
|
+
owner edit or a `softure-rule-review` finding.
|
|
49
59
|
3. **Pick the number.** Next number = max(`L-NNN` on the main branch, in the working tree, and in
|
|
50
60
|
every worktree) + 1:
|
|
51
61
|
```bash
|
|
@@ -56,34 +66,51 @@ If the input fails this test, say why and stop. Writing nothing is a valid outco
|
|
|
56
66
|
| grep -oE '^#+ *L-[0-9]+' | grep -oE '[0-9]+' | sort -n | tail -1
|
|
57
67
|
```
|
|
58
68
|
Zero-pad to three digits. Numbers are never reused, even if a lesson is deleted.
|
|
59
|
-
4. **
|
|
69
|
+
4. **Draft the entry:**
|
|
60
70
|
```markdown
|
|
61
71
|
## L-042: <imperative rule in one line>
|
|
62
72
|
**Why:** <the incident: what happened, where, what it cost>.
|
|
63
73
|
**How to apply:** <the trigger and the concrete behaviour; include the check or command if there is one>.
|
|
64
74
|
**Applies to:** <paths, areas, skills>.
|
|
65
75
|
```
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
76
|
+
- **Title:** imperative and testable: a reviewer can paste it into a finding and point at a
|
|
77
|
+
violating line. "Be careful with dates" is not a rule; "Compute day boundaries in the
|
|
78
|
+
configured time zone, never in UTC" is.
|
|
79
|
+
- **Why:** mechanism, not blame, with the change id or commit so it can be found.
|
|
80
|
+
- **Applies to:** globs (`drizzle/*.sql`), activities ("any phase that adds a migration") and
|
|
81
|
+
the skills that should weigh it (`plan`, `implement`, `impl-review`, `all`). Never "everywhere".
|
|
82
|
+
5. **Confirm** (interactive). Show the rendered entry and ask once: *Append* (recommended) /
|
|
83
|
+
*Edit a field* / *Cancel*. On *Edit*, change only the named field and show it again.
|
|
84
|
+
`--auto`: no confirmation.
|
|
85
|
+
6. **Write it** at the end of the file (or apply the dedupe edit from step 2). Then re-read the
|
|
86
|
+
file and check: the new heading is the last `## L-` section, its number appears exactly once,
|
|
87
|
+
and nothing above it changed.
|
|
88
|
+
7. **Enforce when possible.** If the rule can be a test, lint rule, database constraint or
|
|
69
89
|
architecture check, propose it, and add it inside a change when you have one. Mention the
|
|
70
90
|
enforcement in **How to apply**.
|
|
71
|
-
|
|
72
|
-
|
|
91
|
+
8. **Commit** only inside a change or when asked: `docs(lessons): L-042 <short title>`. Report
|
|
92
|
+
the number and title, and stop. One invocation records one lesson; several candidates usually
|
|
93
|
+
share one mechanism, so merge them, or run the skill once per rule.
|
|
94
|
+
|
|
95
|
+
Complete examples (a new lesson, a merged incident, a widened rule) and bad entries with what is
|
|
96
|
+
wrong: read `references/examples.md` **when drafting, if you are unsure the title is testable or
|
|
97
|
+
the Applies to is specific enough**.
|
|
73
98
|
|
|
74
99
|
## --auto
|
|
75
100
|
|
|
76
|
-
- No questions: take the facts from the review finding or the caller's draft.
|
|
101
|
+
- No questions and no confirmation: take the facts from the review finding or the caller's draft.
|
|
77
102
|
- Skip writing when step "What qualifies" fails, and report the skip in one line.
|
|
78
103
|
- On a number collision found later (merge with another worktree), renumber the newer lesson,
|
|
79
104
|
then `grep -rn "L-<old>"` and fix every reference in the same commit.
|
|
80
105
|
|
|
81
106
|
## Checklist
|
|
82
107
|
|
|
83
|
-
- [ ] Concrete incident in **Why
|
|
108
|
+
- [ ] Concrete incident in **Why**, with a findable reference (change id, commit, date).
|
|
84
109
|
- [ ] Testable, imperative title.
|
|
110
|
+
- [ ] **Applies to** names paths or activities and the skills that should weigh it.
|
|
85
111
|
- [ ] No duplicate of an existing lesson.
|
|
86
112
|
- [ ] Number = max across main and worktrees + 1.
|
|
113
|
+
- [ ] Re-read after writing; only the intended section changed.
|
|
87
114
|
- [ ] Enforcement proposed where possible.
|
|
88
115
|
|
|
89
116
|
## Anti-patterns
|
|
@@ -92,6 +119,7 @@ If the input fails this test, say why and stop. Writing nothing is a valid outco
|
|
|
92
119
|
- Recording blame instead of mechanism.
|
|
93
120
|
- Ten lessons from one change. Merge them into the one rule that matters.
|
|
94
121
|
- Editing an old lesson's number or meaning silently.
|
|
122
|
+
- Writing the user's wording for them without showing it (interactive): the team owns its rules.
|
|
95
123
|
|
|
96
124
|
## Handoff
|
|
97
125
|
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# Example lessons
|
|
2
|
+
|
|
3
|
+
Fictional projects. Use them for the bar a lesson must clear, not for content.
|
|
4
|
+
|
|
5
|
+
## A new lesson (booking app)
|
|
6
|
+
|
|
7
|
+
The incident: change `prevent-double-bookings` added a unique index on
|
|
8
|
+
`(therapist_id, starts_at)`. The migration passed on the dev database and in CI (both empty of
|
|
9
|
+
conflicts) and failed on production, where 11 duplicate rows existed. The release was rolled
|
|
10
|
+
back and the deploy window lost.
|
|
11
|
+
|
|
12
|
+
```markdown
|
|
13
|
+
## L-019: Before adding a unique constraint, count the rows that violate it on production-like data
|
|
14
|
+
**Why:** 2026-09-18, prevent-double-bookings: the unique index on bookings(therapist_id, starts_at) passed on dev and CI, which had no conflicts, and failed on production with 11 duplicates; release rolled back, deploy window lost.
|
|
15
|
+
**How to apply:** in research or plan for any change that adds UNIQUE, NOT NULL, CHECK or a foreign key, run the violating-rows query against the freshest copy available and put the count in research.md; when it is not zero, the plan's first phase resolves those rows. Plan-review flags a constraint migration without that count.
|
|
16
|
+
**Applies to:** `drizzle/*.sql`, `src/db/schema.ts`; skills: research, plan, plan-review.
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Why it is good: the title can be checked against a plan ("where is the count?"); the incident
|
|
20
|
+
is findable by change id and date; the trigger lists the kinds of migration, not "migrations
|
|
21
|
+
in general"; it names who enforces it.
|
|
22
|
+
|
|
23
|
+
## The same mechanism again: add an incident, no new number
|
|
24
|
+
|
|
25
|
+
Two months later, change `invoice-number-unique` hit the same failure with a different table.
|
|
26
|
+
Dedupe finds L-019. The rule is unchanged, so only **Why** grows:
|
|
27
|
+
|
|
28
|
+
```markdown
|
|
29
|
+
**Why:** 2026-09-18, prevent-double-bookings: … release rolled back, deploy window lost.
|
|
30
|
+
Also: 2026-11-04, invoice-number-unique: UNIQUE on invoices(number) failed on staging with 3 duplicates created by a 2025 import script.
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## A broader rule: widen the title, keep the number
|
|
34
|
+
|
|
35
|
+
The team lead points out that the same trap applies to `NOT NULL` backfills, which L-019's
|
|
36
|
+
title does not mention. The title is widened in place, keeping `L-019`, and the widening is noted:
|
|
37
|
+
|
|
38
|
+
```markdown
|
|
39
|
+
## L-019: Before adding any constraint, count the rows that violate it on production-like data
|
|
40
|
+
**Why:** … (widened 2026-11-10 from "unique constraint" after a NOT NULL backfill on customers.vat_id failed the same way)
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## Bad entries, and why
|
|
44
|
+
|
|
45
|
+
```markdown
|
|
46
|
+
## L-020: Be careful with migrations
|
|
47
|
+
**Why:** Migrations can break things.
|
|
48
|
+
**How to apply:** Always test migrations carefully.
|
|
49
|
+
**Applies to:** everywhere.
|
|
50
|
+
```
|
|
51
|
+
Not testable (what does "careful" look like in a diff?), no incident, and "everywhere" matches
|
|
52
|
+
nothing. Either find the concrete mechanism (as in L-019) or record nothing.
|
|
53
|
+
|
|
54
|
+
```markdown
|
|
55
|
+
## L-021: Anna forgot to run the seed script before the demo
|
|
56
|
+
```
|
|
57
|
+
Blame and a one-off. The mechanism, if there is one, is "the demo checklist has no seed step",
|
|
58
|
+
and that is a task for the checklist, not a lesson.
|
|
59
|
+
|
|
60
|
+
```markdown
|
|
61
|
+
## L-022: Use parameterized SQL
|
|
62
|
+
```
|
|
63
|
+
Already in the conventions block. A lesson repeats a convention only when a real incident shows
|
|
64
|
+
the convention was not enough, and then the lesson names what specifically was missed (for
|
|
65
|
+
example, a raw query builder that bypassed parameters in `src/reports/`).
|
|
@@ -2,11 +2,12 @@
|
|
|
2
2
|
name: softure-new
|
|
3
3
|
description: >
|
|
4
4
|
Open a new change: create context/changes/<change-id>/change.md with a clear intent,
|
|
5
|
-
context and constraints,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
context and constraints, placed in a roadmap (the main one for work now, a queued thematic
|
|
6
|
+
one for later) or explicitly left unlinked. Accepts a change id, a path, a roadmap item ID or
|
|
7
|
+
a free-form description; takes over a prepared backlog entry when one exists. Use at the
|
|
8
|
+
start of every unit of delivery work, before research. Triggers: "new change",
|
|
9
|
+
"open a change", "start change <id>", "/softure-new", "start the next roadmap item".
|
|
10
|
+
argument-hint: "<change-id | path | roadmap-item-id> [free-form intent] [--title \"...\"] [--backlog <slug>] [--auto]"
|
|
10
11
|
allowed-tools:
|
|
11
12
|
- Read
|
|
12
13
|
- Glob
|
|
@@ -21,69 +22,118 @@ allowed-tools:
|
|
|
21
22
|
|
|
22
23
|
A change is the unit of delivery: one outcome, one folder, one branch. This skill creates its
|
|
23
24
|
identity file, `change.md`. Every later step (research, plan, implement, review, archive) reads it
|
|
24
|
-
and moves its `status`. The contract lives in `WORKFLOW.md` §3–§
|
|
25
|
+
and moves its `status`. The contract lives in `WORKFLOW.md` §3–§5.1 of the SOFTURE skills package.
|
|
25
26
|
|
|
26
27
|
## Required inputs
|
|
27
28
|
|
|
28
29
|
- `context/workflow.json`: if it is missing, say "run `softure-init` first" and stop.
|
|
29
|
-
- A change id,
|
|
30
|
-
|
|
30
|
+
- A change id, a path to a change folder, a roadmap item ID (`[A-Z]+-\d+`), or enough
|
|
31
|
+
description to derive an id.
|
|
32
|
+
|
|
33
|
+
With no argument at all: interactive, ask for one, showing two or three forms
|
|
34
|
+
(`softure-new invoice-pdf-download`, `softure-new IN-3`, `softure-new search-titles people cannot
|
|
35
|
+
find pages by title`) and, when the conversation already describes the work, a proposed id as the
|
|
36
|
+
recommended answer. `--auto`: escalate, there is nothing to derive from.
|
|
31
37
|
|
|
32
38
|
## Procedure
|
|
33
39
|
|
|
34
40
|
1. **Read the configuration.** Load `context/workflow.json` and take `language`. Everything you
|
|
35
41
|
write into `change.md` uses that language. Skill instructions stay in English.
|
|
36
42
|
|
|
37
|
-
2. **
|
|
38
|
-
-
|
|
39
|
-
|
|
43
|
+
2. **Parse the argument.** The first token is the reference, the rest is free-form intent.
|
|
44
|
+
- Strip a leading `@` and a trailing `/`; if the token is a path, take its last segment.
|
|
45
|
+
- A token matching `[A-Z]+-\d+` is a roadmap item ID.
|
|
46
|
+
- The free-form intent is guidance for the title and the intent, never pasted in as the title.
|
|
47
|
+
Keep the user's own words: quote them under `## Context` (or `## Notes` when short).
|
|
48
|
+
|
|
49
|
+
| Input | Reference | Intent |
|
|
50
|
+
|---|---|---|
|
|
51
|
+
| `invoice-pdf-download` | id `invoice-pdf-download` | none |
|
|
52
|
+
| `@context/changes/invoice-pdf-download/` | id `invoice-pdf-download` | none |
|
|
53
|
+
| `IN-3` | roadmap item `IN-3` | from its block |
|
|
54
|
+
| `search-titles people cannot find pages by title` | id `search-titles` | "people cannot find pages by title" |
|
|
55
|
+
| `Search Titles fix it` | `Search` fails the id check | propose `search-titles` |
|
|
56
|
+
|
|
57
|
+
3. **Resolve the change id.**
|
|
58
|
+
- The id matches `^[a-z][a-z0-9]*(-[a-z0-9]+)*$`, is at most 40 characters, and names the
|
|
59
|
+
*outcome* (`pending-states`, not `fix-button`). An id that fails gets a proposed fix, not a
|
|
60
|
+
silent rewrite.
|
|
40
61
|
- If the user gave a roadmap item, read its block in `roadmap.md`. Use its `Change ID` when one
|
|
41
62
|
is set. Otherwise propose one and write it back into the item block and the table row.
|
|
42
63
|
- **Uniqueness:** the id must not exist as `context/changes/<id>/`, as
|
|
43
64
|
`context/archive/*-<id>/`, nor as `context/backlog/roadmap-*/<id>/`. Check all three with Glob.
|
|
44
65
|
On a clash, propose the first free numeric suffix (`-2`, `-3`, …) or a more precise noun. Never
|
|
45
|
-
reuse an archived id
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
66
|
+
reuse an archived id; to revisit archived work, open a new change and link the archive folder
|
|
67
|
+
under `## Context`.
|
|
68
|
+
- **Existing state** is not a clash when it is this change's own:
|
|
69
|
+
|
|
70
|
+
| Found | Do |
|
|
71
|
+
|---|---|
|
|
72
|
+
| `context/changes/<id>/change.md` | do not overwrite; report its `status` and the next step (WORKFLOW §4 table) |
|
|
73
|
+
| `context/changes/<id>/` without `change.md` (queued by an orchestrator, or a `backlog-input.md`) | write `change.md` from what is there |
|
|
74
|
+
| `context/backlog/roadmap-<slug>/<id>/change.md` | **take** the entry (WORKFLOW §5.1): `git mv` it to `context/changes/<id>/backlog-input.md`, remove the empty folder, fix relative links (they lose one `../`), then write the real `change.md` from it |
|
|
75
|
+
| `context/archive/*-<id>/` | clash: a new id is needed |
|
|
76
|
+
|
|
77
|
+
4. **Place the change** when no roadmap item was given. A change outside every roadmap is
|
|
78
|
+
invisible to the orchestrators and to whoever reads the roadmap as the board. Decide **now or
|
|
79
|
+
later** from the material (genuinely split → later: leaving the backlog is one `git mv`,
|
|
80
|
+
undoing a half-started folder is not), then offer, recommended option first:
|
|
51
81
|
- **work now** → a new row and item block in the main `roadmap.md` (next free ID of the
|
|
52
|
-
closest prefix, status `ready
|
|
53
|
-
- **later** → an entry in a queued thematic roadmap
|
|
82
|
+
closest prefix, status `ready`, `- **Input:**` to the folder);
|
|
83
|
+
- **later** → an entry in a queued thematic roadmap (`--backlog <slug>`):
|
|
54
84
|
`context/backlog/roadmap-<slug>/<id>/change.md` with `status: backlog`, plus its row in the
|
|
55
85
|
thematic roadmap and in the backlog README (WORKFLOW §5.1), and nothing in `changes/`;
|
|
56
86
|
- **new theme** → only when no queued roadmap fits: `softure-roadmap --queue <slug>` first;
|
|
57
87
|
- **unlinked** → a one-off with `roadmap_item: null`.
|
|
58
88
|
|
|
89
|
+
Pick the queued roadmap by its *reason for existing*, not by a shared file or keyword. Record
|
|
90
|
+
the placement and its one-line reason under `## Notes`. Signals, the three backlog writes, how
|
|
91
|
+
to choose the roadmap and find a free ID: [references/placement.md](references/placement.md)
|
|
92
|
+
(read whenever the change arrives without a roadmap item).
|
|
93
|
+
|
|
59
94
|
The project's rules may make one of these mandatory (for example "every change belongs to a
|
|
60
95
|
roadmap"); follow them. In `--auto`, take the project's rule, else "work now" when the request
|
|
61
96
|
is for work now, else "later", and record the choice under `## Notes`.
|
|
62
97
|
|
|
63
|
-
|
|
98
|
+
5. **Gather the content.** Fill these four sections. Ask only for what you cannot infer.
|
|
64
99
|
- **Intent:** what must be true when this change is done, and for whom. One short paragraph.
|
|
65
|
-
Phrase it as an observable outcome.
|
|
66
|
-
- **Context:** where the change comes from. Include the roadmap item (link,
|
|
67
|
-
|
|
68
|
-
|
|
100
|
+
Phrase it as an observable outcome a reviewer could check.
|
|
101
|
+
- **Context:** where the change comes from. Include the roadmap item (link, and its block
|
|
102
|
+
quoted, not retold), any feedback quoted **verbatim** in a blockquote with author and date,
|
|
103
|
+
and what is already known about the current state, with file paths when obvious.
|
|
69
104
|
Do not research here; that is the next skill's job.
|
|
70
|
-
- **Constraints:** files or areas this change owns exclusively, what it must not touch
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
105
|
+
- **Constraints:** files or areas this change owns exclusively, what it must not touch
|
|
106
|
+
(name the neighbour that owns it when items run in parallel), deadlines, and decisions
|
|
107
|
+
already made by the owner.
|
|
108
|
+
- **Notes:** dependencies on other items, the placement decision, the user's original words
|
|
109
|
+
when they did not fit in Context. Leave it empty when there is nothing.
|
|
110
|
+
|
|
111
|
+
6. **Ask at most three questions** (interactive mode), one at a time, recommended answer first
|
|
112
|
+
with a one-line reason. Ask only when two readings would lead to different work:
|
|
113
|
+
- the outcome and for whom ("title match first, or a wider overhaul?");
|
|
114
|
+
- the scope boundary ("does this include the mobile layout?");
|
|
115
|
+
- the placement, when step 4 left it open.
|
|
116
|
+
|
|
117
|
+
Push back when the request is a solution ("add a spinner"): offer the outcome it serves as the
|
|
118
|
+
recommended intent. `--auto`: take the reading the source supports best and record it.
|
|
119
|
+
|
|
120
|
+
7. **Write `context/changes/<id>/change.md`** (or the backlog path from step 4) using the template
|
|
121
|
+
below. Create the `context/changes/` folder if it does not exist yet. Title: one sentence,
|
|
122
|
+
at most 80 characters, no trailing period; with nothing else to go on, humanize the id.
|
|
123
|
+
|
|
124
|
+
8. **Update the roadmap** when the change is linked to an item:
|
|
125
|
+
- The item block gets `- **Change ID:** \`<id>\`` and `- **Input:**` pointing at the file.
|
|
83
126
|
- The table row's second cell is `` `<id>` ``.
|
|
84
127
|
- Leave the item status unchanged. The orchestrator or the owner sets `in_progress`.
|
|
85
128
|
|
|
86
|
-
|
|
129
|
+
9. **Report.** Give the path, the placement, a one-line intent, and the next step:
|
|
130
|
+
`softure-research <id>`. When the intent is bug-shaped ("broken", "regression", "why does")
|
|
131
|
+
or carries a self-diagnosed fix, or when its scope is in doubt ("should we even…"), add that
|
|
132
|
+
`softure-frame <id>` should follow research.
|
|
133
|
+
|
|
134
|
+
Complete good and bad examples (from a roadmap item, from raw feedback, a bad one, a backlog
|
|
135
|
+
placement): [references/example-change.md](references/example-change.md) (read before the first
|
|
136
|
+
change in a project or when the input is raw feedback).
|
|
87
137
|
|
|
88
138
|
## Output template
|
|
89
139
|
|
|
@@ -103,7 +153,7 @@ archived_at: null
|
|
|
103
153
|
<what must be true when done, and for whom>
|
|
104
154
|
|
|
105
155
|
## Context
|
|
106
|
-
<roadmap item link and its
|
|
156
|
+
<roadmap item link and its block quoted; feedback quoted verbatim; known current state>
|
|
107
157
|
|
|
108
158
|
## Constraints
|
|
109
159
|
<exclusively owned files/areas; must-not-touch; deadlines; owner decisions>
|
|
@@ -111,15 +161,20 @@ archived_at: null
|
|
|
111
161
|
## Notes
|
|
112
162
|
```
|
|
113
163
|
|
|
164
|
+
Dates come from `date +%Y-%m-%d` (in `workflow.json` → `timezone` when set). In the backlog,
|
|
165
|
+
`status: backlog`.
|
|
166
|
+
|
|
114
167
|
## Status transitions
|
|
115
168
|
|
|
116
|
-
- Creates the change with `status: new
|
|
169
|
+
- Creates the change with `status: new` (or `backlog` for a later entry). Sets `created` and
|
|
170
|
+
`updated` to today.
|
|
117
171
|
|
|
118
172
|
## `--auto`
|
|
119
173
|
|
|
120
174
|
- Never ask. Derive the id from the roadmap item or the description.
|
|
121
175
|
- If the id clashes, append the first free numeric suffix (`-2`, `-3`, …) and record the choice
|
|
122
176
|
under `## Notes` as `- Decision (auto): id <x> taken → <y>`.
|
|
177
|
+
- Placement and readings as in steps 4 and 6, each recorded under `## Notes`.
|
|
123
178
|
- If the intent cannot be derived at all (no roadmap item and no description), escalate. Do not
|
|
124
179
|
invent scope.
|
|
125
180
|
|
|
@@ -128,9 +183,9 @@ archived_at: null
|
|
|
128
183
|
- [ ] The id is unique across `changes/`, `archive/` and `backlog/`, kebab-case and ≤ 40 characters.
|
|
129
184
|
- [ ] The change is placed: a roadmap row (main or thematic) or a recorded decision to leave it unlinked.
|
|
130
185
|
- [ ] The title states an outcome a reviewer can verify.
|
|
131
|
-
- [ ] Feedback is quoted verbatim and attributed.
|
|
186
|
+
- [ ] Feedback is quoted verbatim and attributed; the user's own words are kept.
|
|
132
187
|
- [ ] Constraints name concrete paths when ownership matters for parallel work.
|
|
133
|
-
- [ ] The roadmap row and item block point to the same id.
|
|
188
|
+
- [ ] The roadmap row and item block point to the same id and the same folder.
|
|
134
189
|
- [ ] Nothing in the file is a plan or a solution. Those belong to later steps.
|
|
135
190
|
|
|
136
191
|
## Anti-patterns
|
|
@@ -139,7 +194,9 @@ archived_at: null
|
|
|
139
194
|
("every operation longer than 300 ms shows it is working").
|
|
140
195
|
- Paraphrasing feedback. The original words carry information that a paraphrase loses.
|
|
141
196
|
- Opening two changes for one outcome, or one change for two unrelated outcomes.
|
|
142
|
-
-
|
|
197
|
+
- Copying a backlog entry into `changes/` instead of moving it: one topic, one place.
|
|
198
|
+
- Overwriting an existing `change.md`, or writing anything inside `context/archive/`.
|
|
199
|
+
- Starting research, writing `research.md` or `plan.md`, or editing code from this skill.
|
|
143
200
|
|
|
144
201
|
## Handoff
|
|
145
202
|
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
# Worked examples: change.md
|
|
2
|
+
|
|
3
|
+
Read this before writing a change.md when unsure how much goes into each section, or when the
|
|
4
|
+
input is raw feedback rather than a roadmap item. Domains are invented.
|
|
5
|
+
|
|
6
|
+
## 1. From a roadmap item (invoicing tool)
|
|
7
|
+
|
|
8
|
+
Input: `softure-new IN-3`. The roadmap block reads:
|
|
9
|
+
|
|
10
|
+
```markdown
|
|
11
|
+
### IN-3: Overdue reminders
|
|
12
|
+
- **Change ID:** `overdue-invoice-reminders`
|
|
13
|
+
- **Status:** ready
|
|
14
|
+
- **Outcome:** a client whose invoice is 7 days overdue gets one reminder email; the freelancer
|
|
15
|
+
sees on the invoice that it was sent.
|
|
16
|
+
- **Prerequisites:** IN-2 (invoices are sent by email)
|
|
17
|
+
- **Touches (estimate):** `jobs/reminders/**`, `mail/templates/reminder.*`, invoice detail page
|
|
18
|
+
- **Unknowns:**
|
|
19
|
+
- Is "overdue" counted from the due date in the client's time zone or ours? (owner: research; blocks: no)
|
|
20
|
+
- **Risk:** a job that sends mail; a bug spams real clients.
|
|
21
|
+
- **Baseline:** reminders sent by hand; after: a test advances the clock and finds one email.
|
|
22
|
+
- **PRD refs:** FR-9, NFR-3
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Result, `context/changes/overdue-invoice-reminders/change.md`:
|
|
26
|
+
|
|
27
|
+
```markdown
|
|
28
|
+
---
|
|
29
|
+
change_id: overdue-invoice-reminders
|
|
30
|
+
title: "A client with an invoice 7 days overdue gets exactly one reminder"
|
|
31
|
+
status: new
|
|
32
|
+
roadmap_item: IN-3
|
|
33
|
+
branch: null
|
|
34
|
+
created: 2026-10-02
|
|
35
|
+
updated: 2026-10-02
|
|
36
|
+
archived_at: null
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
## Intent
|
|
40
|
+
When an invoice is 7 days past its due date and still unpaid, its client receives one reminder
|
|
41
|
+
email, never more than one per invoice, and the freelancer sees on the invoice when it went out.
|
|
42
|
+
|
|
43
|
+
## Context
|
|
44
|
+
Roadmap item IN-3 (`context/foundation/roadmap.md`):
|
|
45
|
+
|
|
46
|
+
> - **Outcome:** a client whose invoice is 7 days overdue gets one reminder email; the freelancer
|
|
47
|
+
> sees on the invoice that it was sent.
|
|
48
|
+
> - **Prerequisites:** IN-2 (invoices are sent by email)
|
|
49
|
+
> - **Unknowns:** Is "overdue" counted from the due date in the client's time zone or ours?
|
|
50
|
+
> (owner: research; blocks: no)
|
|
51
|
+
> - **Risk:** a job that sends mail; a bug spams real clients.
|
|
52
|
+
> - **PRD refs:** FR-9, NFR-3
|
|
53
|
+
|
|
54
|
+
Known today: invoices carry `dueDate` and `paidAt` (`db/schema/invoices.ts`); mail goes through
|
|
55
|
+
`@softure-ai/mail` since IN-2.
|
|
56
|
+
|
|
57
|
+
## Constraints
|
|
58
|
+
- Owns exclusively: `jobs/reminders/**`, `mail/templates/reminder.*`.
|
|
59
|
+
- Must not touch the invoice numbering (`lib/numbering.ts`), owned by IN-4 running in parallel.
|
|
60
|
+
- Owner decision (PRD v3): one reminder only; no escalation series in this change.
|
|
61
|
+
|
|
62
|
+
## Notes
|
|
63
|
+
- Depends on IN-2 being merged (it is: `done` since 2026-09-28).
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
Why it works: the intent is observable ("exactly one", "sees when"), the item block is quoted, not
|
|
67
|
+
retold, the constraint names the parallel neighbour and its file, and nothing says *how* (no job
|
|
68
|
+
scheduler, no table design).
|
|
69
|
+
|
|
70
|
+
## 2. From raw feedback, not on the roadmap (team wiki)
|
|
71
|
+
|
|
72
|
+
Input: `softure-new "search ignores page titles, people complain"` plus a pasted message.
|
|
73
|
+
|
|
74
|
+
Questions asked (interactive), one at a time, recommendation first:
|
|
75
|
+
|
|
76
|
+
1. "Is the outcome 'a search for a page title finds that page first', or a wider search
|
|
77
|
+
overhaul? (Recommended: title match first; the complaint is only about titles.)" → accepted.
|
|
78
|
+
2. "Work now (a row in the main roadmap, next ID WK-8) or later (roadmap-search, queued)?
|
|
79
|
+
(Recommended: now; two teams are blocked by it.)" → accepted.
|
|
80
|
+
|
|
81
|
+
Result:
|
|
82
|
+
|
|
83
|
+
```markdown
|
|
84
|
+
---
|
|
85
|
+
change_id: search-matches-page-titles
|
|
86
|
+
title: "Searching for a page's title returns that page as the first result"
|
|
87
|
+
status: new
|
|
88
|
+
roadmap_item: WK-8
|
|
89
|
+
branch: null
|
|
90
|
+
created: 2026-10-02
|
|
91
|
+
updated: 2026-10-02
|
|
92
|
+
archived_at: null
|
|
93
|
+
---
|
|
94
|
+
|
|
95
|
+
## Intent
|
|
96
|
+
A member who types the exact or partial title of a page sees that page as the first search
|
|
97
|
+
result, in every space they can read.
|
|
98
|
+
|
|
99
|
+
## Context
|
|
100
|
+
> "I searched for 'Onboarding checklist' and got twelve pages that mention onboarding, but not the
|
|
101
|
+
> checklist itself. Had to find it through the sidebar again."
|
|
102
|
+
> (Dana, support lead, team chat, 2026-09-30)
|
|
103
|
+
|
|
104
|
+
Two more reports of the same kind in the feedback channel this week. Today search ranks by body
|
|
105
|
+
text only (`lib/search/query.ts`); titles are stored but not weighted.
|
|
106
|
+
|
|
107
|
+
## Constraints
|
|
108
|
+
- Must not change permissions filtering in search (`lib/search/acl.ts`).
|
|
109
|
+
- No new search service; this stays inside the current database (owner, 2026-10-01).
|
|
110
|
+
|
|
111
|
+
## Notes
|
|
112
|
+
- Placement: main roadmap, WK-8. Two teams are blocked now; the queued search roadmap is about
|
|
113
|
+
a full-text overhaul, which this is not.
|
|
114
|
+
- Original request: "search ignores page titles, people complain".
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
## 3. A bad change.md for the same request
|
|
118
|
+
|
|
119
|
+
```markdown
|
|
120
|
+
---
|
|
121
|
+
change_id: fix-search
|
|
122
|
+
title: "Improve search"
|
|
123
|
+
status: new
|
|
124
|
+
roadmap_item: null
|
|
125
|
+
---
|
|
126
|
+
|
|
127
|
+
## Intent
|
|
128
|
+
Add a title boost of 3.0 to the search query and rebuild the index.
|
|
129
|
+
|
|
130
|
+
## Context
|
|
131
|
+
Users say search is bad.
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
What is wrong:
|
|
135
|
+
|
|
136
|
+
- `fix-search` names an activity, not the outcome; `improve` is not verifiable.
|
|
137
|
+
- The intent is a solution (a boost factor) and closes the door on research.
|
|
138
|
+
- The feedback is paraphrased; "search is bad" lost the actual case (titles) and the author.
|
|
139
|
+
- Missing `branch`, `created`, `updated`, `archived_at`, `## Constraints` and `## Notes`.
|
|
140
|
+
- Not placed: no roadmap row and no recorded decision to leave it unlinked, so orchestrators
|
|
141
|
+
never see it.
|
|
142
|
+
|
|
143
|
+
## 4. Placed in the backlog instead
|
|
144
|
+
|
|
145
|
+
Input: `softure-new export-space-as-pdf --backlog docs-export`. The result lives at
|
|
146
|
+
`context/backlog/roadmap-docs-export/export-space-as-pdf/change.md` with `status: backlog`, the same
|
|
147
|
+
four sections, and one row each in `context/foundation/roadmaps/roadmap-docs-export.md` (status
|
|
148
|
+
`proposed`, its item block with `- **Input:** ../../backlog/roadmap-docs-export/export-space-as-pdf/change.md`)
|
|
149
|
+
and in `context/backlog/roadmap-docs-export/README.md`. Nothing is created under `context/changes/`.
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# Placing a change in a roadmap
|
|
2
|
+
|
|
3
|
+
Read this when a change arrives without a roadmap item (step 4 of the procedure). A change outside
|
|
4
|
+
every roadmap is invisible to the orchestrators and to whoever reads the roadmap as the board.
|
|
5
|
+
|
|
6
|
+
## Now or later
|
|
7
|
+
|
|
8
|
+
Decide from the material before offering options:
|
|
9
|
+
|
|
10
|
+
| Destination | Signals | Folder | Registered in |
|
|
11
|
+
|---|---|---|---|
|
|
12
|
+
| **now** | the request is for work in this session; it fits the main roadmap's theme; the invoker runs it now (`softure-worktree`, `softure-worktree-manager`) | `context/changes/<id>/` | `context/foundation/roadmap.md` |
|
|
13
|
+
| **later** | `--backlog <slug>`; "later", "park it", "not now", "some day", "when we have users"; a theme outside the main roadmap's | `context/backlog/roadmap-<slug>/<id>/` | `context/foundation/roadmaps/roadmap-<slug>.md` |
|
|
14
|
+
|
|
15
|
+
When the request is genuinely split, choose **later**. Taking an entry out of the backlog is one
|
|
16
|
+
`git mv`; undoing a half-started folder in `changes/` means deciding what to do with its research.
|
|
17
|
+
|
|
18
|
+
## The options, recommended first
|
|
19
|
+
|
|
20
|
+
- **work now** → a new row and item block in the main `roadmap.md`: next free number of the
|
|
21
|
+
closest prefix, status `ready`, `- **Input:** context/changes/<id>/change.md` in the block. If
|
|
22
|
+
the invoker already wrote the row (an orchestrator queues items before calling this skill),
|
|
23
|
+
only check that it points at this folder.
|
|
24
|
+
- **later** → three writes, nothing in `changes/`:
|
|
25
|
+
1. `context/backlog/roadmap-<slug>/<id>/change.md` with `status: backlog`;
|
|
26
|
+
2. a row in the queued roadmap's table (`proposed`, `ready` or `blocked (…)`) and an item block
|
|
27
|
+
with `- **Input:** ../../backlog/roadmap-<slug>/<id>/change.md`;
|
|
28
|
+
3. a row in `context/backlog/roadmap-<slug>/README.md`
|
|
29
|
+
(`| ID | Entry | Title | Condition | Kind |`).
|
|
30
|
+
- **new theme** → only when no queued roadmap fits: run `softure-roadmap --queue <slug>` first,
|
|
31
|
+
then place the change there.
|
|
32
|
+
- **unlinked** → a one-off with `roadmap_item: null`. Allowed unless the project's rules say every
|
|
33
|
+
change belongs to a roadmap.
|
|
34
|
+
|
|
35
|
+
## Choosing the queued roadmap
|
|
36
|
+
|
|
37
|
+
1. List `context/foundation/roadmaps/roadmap-*.md` (and an index such as
|
|
38
|
+
`context/foundation/roadmaps/README.md` when the project keeps one). For each, read the title,
|
|
39
|
+
the `trigger` and the `## Order` section.
|
|
40
|
+
2. Pick the one whose **reason for existing** covers the change: why its items wait (traffic, a
|
|
41
|
+
provider account, a legal decision). A shared file or keyword is not a fit; the same reason is,
|
|
42
|
+
even when the topic looks different.
|
|
43
|
+
3. Prefer an existing roadmap. A weak fit on the reason beats a new roadmap with one item.
|
|
44
|
+
4. A new theme gets an English slug named after the reason (`roadmap-payments`,
|
|
45
|
+
`roadmap-compliance`), never after a page (`roadmap-landing` becomes a bin for every later edit
|
|
46
|
+
of that page).
|
|
47
|
+
|
|
48
|
+
## Free IDs
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
grep -ho '\*\*[A-Z]\+-[0-9]\+' context/foundation/roadmap.md context/foundation/roadmaps/*.md | sort -u
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
A new row takes the next number of its roadmap's prefix. A new roadmap takes a prefix no other
|
|
55
|
+
roadmap uses.
|
|
56
|
+
|
|
57
|
+
## Record the decision
|
|
58
|
+
|
|
59
|
+
Under `## Notes`: `- Placement: <roadmap and ID, or unlinked>. <one-line reason>.` In `--auto`, the
|
|
60
|
+
same line, prefixed `Decision (auto):`.
|