@softure-ai/skills 0.10.0 → 0.12.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/ONBOARD.md
ADDED
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
# Onboard a session to SOFTURE SKILLS
|
|
2
|
+
|
|
3
|
+
Two prompts for the **first message of a fresh Claude Code session** in a code project. The session
|
|
4
|
+
has no context and no memory of the project; the prompt tells it where everything lives and makes it
|
|
5
|
+
prove it understood the process. Each prompt covers both cases:
|
|
6
|
+
|
|
7
|
+
- **already set up** (the usual case): the skills are installed, `context/` is full, work may be in
|
|
8
|
+
flight. The session changes nothing; it orients itself, adopts what is in flight and continues.
|
|
9
|
+
- **not set up yet**: the session installs the skills and runs `softure-init` first.
|
|
10
|
+
|
|
11
|
+
| Prompt | Use it when |
|
|
12
|
+
|---|---|
|
|
13
|
+
| [AUTO](#auto-autonomous-project) | the owner sets the goal and is away: the agent decides, merges green work, runs threads and reports (WORKFLOW §8.4) |
|
|
14
|
+
| [MANUAL](#manual-manual-project) | the owner checks every step: one skill per request, nothing leaves the working tree without the owner's word (WORKFLOW §8.3) |
|
|
15
|
+
|
|
16
|
+
The rules themselves stay in the repository: the managed block in `AGENTS.md` is the source of truth,
|
|
17
|
+
and the prompt only points the session at it. Replace `<chat language>` with the language the owner
|
|
18
|
+
writes in (for example `pl`) before pasting.
|
|
19
|
+
|
|
20
|
+
## Where things live
|
|
21
|
+
|
|
22
|
+
The map both prompts give the session:
|
|
23
|
+
|
|
24
|
+
| What | Where |
|
|
25
|
+
|---|---|
|
|
26
|
+
| process rules for this project | managed SOFTURE block in `AGENTS.md` (or `CLAUDE.md`), only the active mode's section; project-specific rules outside the block win, except the language rule |
|
|
27
|
+
| full contract (artifacts, statuses, formats) | `node_modules/@softure-ai/skills/WORKFLOW.md` |
|
|
28
|
+
| skills | `.claude/skills/softure-*/SKILL.md` (+ `references/`); installed version in `.claude/softure-skills.json` |
|
|
29
|
+
| project config | `context/workflow.json`: `mode`, `chatLanguage`, `mainBranch`, gates, `autonomy`, `release` |
|
|
30
|
+
| product | `context/foundation/`: `shape-notes.md`, `prd.md`, `roadmap.md` (the one active roadmap), `roadmaps/` (queued), `lessons.md`, `archive/` |
|
|
31
|
+
| work in flight | `context/changes/<change-id>/`: `change.md` (status), `research.md`, `plan.md` (`## Progress` is the only execution state), `reviews/` |
|
|
32
|
+
| finished work | `context/archive/<date>-<change-id>/` |
|
|
33
|
+
| deferred work | `context/backlog/` |
|
|
34
|
+
| what the forge knows | open pull requests, issues, session branches; in a hosted project also the open threads |
|
|
35
|
+
|
|
36
|
+
## AUTO: autonomous project
|
|
37
|
+
|
|
38
|
+
```text
|
|
39
|
+
You are starting a fresh session in a project that runs the SOFTURE workflow in AUTONOMOUS mode.
|
|
40
|
+
You have no context and no memory of it yet. Do not ask me anything: decide by the recommended
|
|
41
|
+
option, record each decision, and escalate only what AGENTS.md → "Operating mode: autonomous" lets
|
|
42
|
+
you escalate. Talk to me in <chat language>; everything you write to the repository is English.
|
|
43
|
+
|
|
44
|
+
1. Detect the state, changing nothing: are `.claude/skills/softure-*`, the SOFTURE managed block in
|
|
45
|
+
AGENTS.md (or CLAUDE.md) and context/workflow.json present?
|
|
46
|
+
- All present: the project is set up. Do NOT run softure-init or the installer and do not
|
|
47
|
+
rewrite anything; go to step 2.
|
|
48
|
+
- Something missing: install the package with the repo's package manager
|
|
49
|
+
(`npm i -D @softure-ai/skills`, or `npx @softure-ai/skills` without a package.json), run
|
|
50
|
+
`softure-init --mode autonomous --auto` with chatLanguage `<chat language>`, re-run the
|
|
51
|
+
installer, make sure CLAUDE.md imports AGENTS.md (`@AGENTS.md`), and land it as one commit
|
|
52
|
+
`chore: set up SOFTURE workflow` through `autonomy.merge`. Then continue with step 2.
|
|
53
|
+
2. Learn the rules, in this order:
|
|
54
|
+
- the whole managed block in AGENTS.md, plus the project's own rules outside it and CLAUDE.md;
|
|
55
|
+
- node_modules/@softure-ai/skills/WORKFLOW.md (from SOFTURE/SKILLS on GitHub if node_modules is
|
|
56
|
+
missing);
|
|
57
|
+
- the frontmatter of every .claude/skills/softure-*/SKILL.md, so you know which skill owns which
|
|
58
|
+
step and which artifact it leaves. Open a skill's body and references/ when you run it.
|
|
59
|
+
3. Read the project:
|
|
60
|
+
- context/workflow.json: mode, chatLanguage, mainBranch, gates, autonomy, release. If `mode` is
|
|
61
|
+
not "autonomous", say so in one line and follow the committed mode; never switch it yourself;
|
|
62
|
+
- context/foundation/: prd.md, roadmap.md (items, stages, the `X of N` counter), roadmaps/ in
|
|
63
|
+
the queue, lessons.md (rules learned the hard way: follow them);
|
|
64
|
+
- context/changes/*/: each change's status in change.md and its `## Progress` in plan.md;
|
|
65
|
+
- context/backlog/ and the latest entries of context/archive/;
|
|
66
|
+
- on the forge: open pull requests, open issues, session branches, and the open threads when
|
|
67
|
+
this is a hosted project.
|
|
68
|
+
4. Memory: save only project state (main branch, work source, roadmap name and counter, threads in
|
|
69
|
+
flight, my standing orders). The process rules are not memory material; they live in AGENTS.md.
|
|
70
|
+
5. Report to me, condensed, decision first:
|
|
71
|
+
- one line on the setup: present, or what you installed and merged (PR, merge SHA);
|
|
72
|
+
- where the work stands: `X of N on <main>`, items in flight with their stage, open PRs, anything
|
|
73
|
+
blocked or waiting for me;
|
|
74
|
+
- the rules you will work by, in your own words, one line each, at least: every change goes
|
|
75
|
+
through the chain however small; one change = one thread = one branch and one PR; the
|
|
76
|
+
coordinator writes no code and gives the go on green PRs itself; decide, don't ask, and record
|
|
77
|
+
decisions under `## Decisions (auto)`; a thread is closed only after its PR is merged, and the
|
|
78
|
+
coordinator closes finished threads it finds open; every result lands in the main chat,
|
|
79
|
+
condensed, decision first; reports on the clock with the `X of N` table; bugs and gaps in
|
|
80
|
+
SOFTURE packages become issues right away; when I have to correct the process, that is a gap
|
|
81
|
+
filed in SOFTURE/SKILLS; only a release or a production deploy waits for my word;
|
|
82
|
+
- for a hosted project (claude.ai project) whose instructions lack it, the pointer from
|
|
83
|
+
WORKFLOW §8.5 with <owner>/<repo> filled in, ready to paste.
|
|
84
|
+
6. Then follow "Start of a run" from AGENTS.md: adopt what is in flight first (give the go to READY
|
|
85
|
+
threads, nudge stalled ones), then start threads for ready, parallel-safe items, then the report
|
|
86
|
+
routine. With no roadmap and no issue queue, say so in one line and name what I give next (a
|
|
87
|
+
goal for `softure-shape`, or an issue queue); do not invent work.
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
## MANUAL: manual project
|
|
91
|
+
|
|
92
|
+
```text
|
|
93
|
+
You are starting a fresh session in a project that runs the SOFTURE workflow in MANUAL mode. You
|
|
94
|
+
have no context and no memory of it yet. I check every step: one step at a time, show me the
|
|
95
|
+
result, and wait for my word before anything leaves the working tree. Talk to me in
|
|
96
|
+
<chat language>; everything you write to the repository is English.
|
|
97
|
+
|
|
98
|
+
1. Detect the state, changing nothing: are `.claude/skills/softure-*`, the SOFTURE managed block in
|
|
99
|
+
AGENTS.md (or CLAUDE.md) and context/workflow.json present?
|
|
100
|
+
- All present: the project is set up. Do NOT run softure-init or the installer and do not
|
|
101
|
+
rewrite anything; go to step 2.
|
|
102
|
+
- Something missing: tell me what is missing and propose the setup (install command for the
|
|
103
|
+
repo's package manager, `softure-init --mode manual` with chatLanguage `<chat language>`, a
|
|
104
|
+
CLAUDE.md that imports AGENTS.md). Do it only after my word, show me the diff and the commit
|
|
105
|
+
message `chore: set up SOFTURE workflow`, and commit only when I approve. Then step 2.
|
|
106
|
+
2. Learn the rules, in this order:
|
|
107
|
+
- the whole managed block in AGENTS.md, plus the project's own rules outside it and CLAUDE.md;
|
|
108
|
+
- node_modules/@softure-ai/skills/WORKFLOW.md (from SOFTURE/SKILLS on GitHub if node_modules is
|
|
109
|
+
missing);
|
|
110
|
+
- the frontmatter of every .claude/skills/softure-*/SKILL.md, so you know which skill owns which
|
|
111
|
+
step and which artifact it leaves. Open a skill's body and references/ when you run it.
|
|
112
|
+
3. Read the project:
|
|
113
|
+
- context/workflow.json: mode, chatLanguage, mainBranch, gates, release. If `mode` is not
|
|
114
|
+
"manual", tell me and ask which one applies; never switch it yourself;
|
|
115
|
+
- context/foundation/: prd.md, roadmap.md (items and stages), roadmaps/ in the queue,
|
|
116
|
+
lessons.md (rules learned the hard way: follow them);
|
|
117
|
+
- context/changes/*/: each change's status in change.md and its `## Progress` in plan.md, so you
|
|
118
|
+
know exactly where each one stopped;
|
|
119
|
+
- context/backlog/ and the latest entries of context/archive/;
|
|
120
|
+
- on the forge: open pull requests and issues (read only).
|
|
121
|
+
4. Memory: save only project state (main branch, my decisions and orders). The process rules are
|
|
122
|
+
not memory material; they live in AGENTS.md.
|
|
123
|
+
5. Report to me:
|
|
124
|
+
- one line on the setup: present, or what is missing;
|
|
125
|
+
- where the work stands: roadmap progress, each change in flight with its last step and the next
|
|
126
|
+
skill it needs, open PRs;
|
|
127
|
+
- the rules you will work by, in your own words, one line each, at least: every change goes
|
|
128
|
+
through the chain however small; one change = one thread = one branch; one skill per request,
|
|
129
|
+
then name the next one and stop; one implementation phase at a time, committed only on my
|
|
130
|
+
approval; an approval covers one action and never carries over; nothing leaves the working
|
|
131
|
+
tree (push, PR, merge, issue close, tag, release, deploy) without my word; no background
|
|
132
|
+
threads, routines or parallel worktrees unless I start them; questions are welcome, always
|
|
133
|
+
with a recommendation; rules of autonomous projects do not apply here;
|
|
134
|
+
- your recommended next step: continue a change in flight with its next skill, or
|
|
135
|
+
`softure-new` / `softure-roadmap` / `softure-shape` when nothing is in flight.
|
|
136
|
+
Then stop. Do not start the next skill.
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
## After the first message
|
|
140
|
+
|
|
141
|
+
- Every later session in a checkout reads the rules from `AGENTS.md` itself; the prompt only helps a
|
|
142
|
+
session that has to find its bearings.
|
|
143
|
+
- Switching mode is the owner's explicit word: change `mode` in `context/workflow.json`, re-run the
|
|
144
|
+
installer, commit both as `docs(rules): switch to <mode> mode` (WORKFLOW §8).
|
|
145
|
+
- A hosted project's main chat (for example a claude.ai project) needs the one-paragraph pointer from
|
|
146
|
+
WORKFLOW §8.5 in its project instructions; the AUTO prompt prints it when it is missing.
|
package/README.md
CHANGED
|
@@ -58,6 +58,13 @@ of every message to the owner, `language` only the prose of `context/` artifacts
|
|
|
58
58
|
overwritten on every install. Uninstall:
|
|
59
59
|
`node node_modules/@softure-ai/skills/scripts/uninstall.mjs`.
|
|
60
60
|
|
|
61
|
+
## First message of a session
|
|
62
|
+
|
|
63
|
+
[ONBOARD.md](ONBOARD.md) holds two prompts to paste as the first message of a fresh Claude Code
|
|
64
|
+
session, **AUTO** and **MANUAL**. In a project that is already set up the session changes nothing: it
|
|
65
|
+
reads the rules, the config, `context/` and the forge, reports where the work stands and restates the
|
|
66
|
+
rules it will work by. In a project that is not, it installs the skills and runs `softure-init` first.
|
|
67
|
+
|
|
61
68
|
## The chain
|
|
62
69
|
|
|
63
70
|
See [WORKFLOW.md](WORKFLOW.md) for the full contract: artifacts, statuses, formats and
|
package/WORKFLOW.md
CHANGED
|
@@ -98,6 +98,10 @@ or languages.
|
|
|
98
98
|
}
|
|
99
99
|
```
|
|
100
100
|
|
|
101
|
+
Green gates do not cover a release's post-deploy verify (routes, statuses, headers and redirects a
|
|
102
|
+
deploy config checks after the deploy). A change that adds or changes a route updates that check in the
|
|
103
|
+
same change: `softure-research` lists the matches, `softure-plan-review` flags a plan that misses them.
|
|
104
|
+
|
|
101
105
|
Every key beyond `language`, `mainBranch` and `gates` is optional (`mode` included: absent means `"manual"`), and a missing key means the default
|
|
102
106
|
behaviour described where the key is used. A project adopts a convention by setting its key; nothing here
|
|
103
107
|
forces one on a project that already has its own.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@softure-ai/skills",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0",
|
|
4
4
|
"description": "SOFTURE agent skills: a spec-driven delivery workflow (shape → prd → roadmap → plan → implement → review) plus parallel worktree orchestration",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
"skills/",
|
|
13
13
|
"rules/",
|
|
14
14
|
"WORKFLOW.md",
|
|
15
|
+
"ONBOARD.md",
|
|
15
16
|
"scripts/install.mjs",
|
|
16
17
|
"scripts/uninstall.mjs",
|
|
17
18
|
"README.md"
|
|
@@ -73,6 +73,11 @@ work?"
|
|
|
73
73
|
event, a public route, a file format), is it flagged as breaking, with a migration path?
|
|
74
74
|
Flag every place where the implementer would have to guess (which endpoint, which table,
|
|
75
75
|
which time zone).
|
|
76
|
+
- **Release checks:** when the plan adds, removes or changes a route that the release's
|
|
77
|
+
verify configuration names (`deploy*.json`, the deploy workflows; research lists the
|
|
78
|
+
matches), a step must update that check and its test in the same change. Missing: a
|
|
79
|
+
WARNING at least, CRITICAL when the check would fail the first release after the merge.
|
|
80
|
+
Every gate stays green; only the release's verify notices, after the deploy.
|
|
76
81
|
- **Progress mechanics:** one `## Progress`, last; titles identical to the phases; one item
|
|
77
82
|
per Done-when bullet; no checkboxes elsewhere; gates item last in each phase
|
|
78
83
|
(`softure-plan/references/progress-format.md`). A defect is CRITICAL: softure-implement
|
|
@@ -19,6 +19,8 @@ CRITICAL.
|
|
|
19
19
|
## Slicing
|
|
20
20
|
|
|
21
21
|
- After each phase, do the gates pass and could it be deployed alone?
|
|
22
|
+
- Would the release's post-deploy verify still pass? A route the plan adds or changes may be
|
|
23
|
+
named there with a fixed answer (status, header, redirect); the gates never run that check.
|
|
22
24
|
- Do phases follow layers (all schema, then all logic, then all UI)?
|
|
23
25
|
- Does a later phase quietly fix something an earlier phase leaves broken?
|
|
24
26
|
|
|
@@ -76,7 +76,12 @@ command output), so a planner can trust it without re-reading the code.
|
|
|
76
76
|
path exists (a dev DB, fixtures). Never write to a database during research.
|
|
77
77
|
|
|
78
78
|
6. **Map the tests.** Find which tests cover the affected code (unit, integration, e2e), how to
|
|
79
|
-
run them, and where coverage is missing. Note flaky or slow suites.
|
|
79
|
+
run them, and where coverage is missing. Note flaky or slow suites. **Post-deploy checks
|
|
80
|
+
too:** when the change adds, removes or changes a route (a page, an endpoint, a redirect, a
|
|
81
|
+
header it answers with), search the release's verify configuration (`deploy*.json`, the
|
|
82
|
+
release and deploy workflows, smoke-check scripts) for the path and each of its prefixes, and
|
|
83
|
+
list every match under `## Affected surface` with the answer it expects. The gates never run
|
|
84
|
+
these checks; a miss shows up only after the deploy.
|
|
80
85
|
|
|
81
86
|
7. **Check SOFTURE modules first** (WORKFLOW.md §10). If the change needs a generic capability,
|
|
82
87
|
check the `@softure-ai/*` catalog. Generic capabilities include auth, sessions, roles, feature
|
|
@@ -185,6 +190,7 @@ unsure how much detail a section needs.
|
|
|
185
190
|
- [ ] Every factual claim has `path:line` or another concrete evidence pointer.
|
|
186
191
|
- [ ] Every roadmap Unknown is answered, decided or escalated.
|
|
187
192
|
- [ ] Tests that will prove the change are identified, with the command to run them.
|
|
193
|
+
- [ ] A change to routes lists every release verify check that names the path or a prefix (or "none").
|
|
188
194
|
- [ ] The SOFTURE module verdict is explicit.
|
|
189
195
|
- [ ] Prior work was searched (`context/changes/`, `context/archive/`, git log), even if nothing was found.
|
|
190
196
|
- [ ] Collisions with other in-flight changes have been checked.
|