@softure-ai/skills 0.9.0 → 0.11.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
@@ -492,7 +492,7 @@ runs in a checkout and reads the block itself.
492
492
  | branch | `<change-id>` in a worktree | the branch the harness assigns; the change-id lives in `context/changes/` and `change.md` → `branch:` |
493
493
  | Phase A | `wt-open.sh` + worktree | in the thread's own checkout, no `git worktree add` (`softure-worktree` → Cloud session) |
494
494
  | reports / heartbeat | `CronCreate` | a recurring routine; without a scheduling tool, a setup thread creates it from `softure-worktree-manager/references/report-routine.md` |
495
- | close | `claude stop` + worktree removal | resolve the thread after its pull request is merged |
495
+ | close | `claude stop` + worktree removal | the thread resolves itself after its pull request is merged; on the merge result the coordinator checks it and resolves it if still open |
496
496
 
497
497
  `worktree.cloudState` (§2) and `install.gitignore: false` (for containers that never run
498
498
  `npm install`) apply to the threads as to any cloud session. Forge access in a hosted session is often
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@softure-ai/skills",
3
- "version": "0.9.0",
3
+ "version": "0.11.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"
package/rules/AGENTS.md CHANGED
@@ -144,6 +144,11 @@ Only a "stop" or "pause" from the owner, recorded in memory, holds it back.
144
144
  or say what blocks it. A green PR that sits unmerged because nobody said "go" is the coordinator's
145
145
  failure.
146
146
  - Posts every thread's result in the main chat as it arrives (condensed, decision first).
147
+ - **Makes sure finished threads are closed.** On every merge result, and whenever a thread with a
148
+ one-off job hands its result over (a planning thread, the report routine setup thread once it sends
149
+ the routine id back, a report thread), check that the thread is resolved and resolve it yourself
150
+ (`set_thread_resolved` or the equivalent) if it is not. Never close a thread whose pull request is
151
+ still open.
147
152
  - Nudges stalled threads (waiting on CI, stopped by a usage limit) on every report.
148
153
  - A new question about the roadmap goes to a new thread; the old one is closed.
149
154
 
@@ -118,7 +118,7 @@ project's main-chat session: no shell over the workers, no `claude agents`, no
118
118
  | M4 watch | `wm-watch.sh` | thread messages and the report routine |
119
119
  | M4 status | `CronCreate` | a recurring routine; no scheduling tool → setup thread with `references/report-routine.md` |
120
120
  | READY, go | `SendMessage` | cross-session messages, both ways |
121
- | M5 cleanup | `claude stop` + worktree removal | the thread resolves itself after its pull request is merged |
121
+ | M5 cleanup | `claude stop` + worktree removal | the thread resolves itself after its pull request is merged; on its merge result check it and resolve it if still open |
122
122
 
123
123
  A fresh main-chat session starts the run by itself (`AGENTS.md` → Start of a
124
124
  run); it does not wait for this skill to be invoked.
@@ -407,7 +407,8 @@ never re-arm the next one. An explicit `--status-every` still wins.
407
407
  session): start one setup thread with the brief in
408
408
  `references/report-routine.md`; it creates the routine (bound to this session
409
409
  when the harness allows, else a fresh session per firing), sends back its id
410
- and is closed. Record the id in memory; at M7 or on "stop"/"pause" have a
410
+ and is closed (when it is still open after sending the id, resolve it
411
+ yourself). Record the id in memory; at M7 or on "stop"/"pause" have a
411
412
  thread delete the routine by that id. Never skip the reports, never chain
412
413
  one-off wake-ups instead.
413
414
 
@@ -22,6 +22,9 @@ Coordinator session: <coordinator session id>.
22
22
  thread. Write no code, open no pull request.
23
23
  ```
24
24
 
25
+ When the id arrives, the coordinator records it and checks that the setup thread is resolved;
26
+ if it is still open, the coordinator resolves it itself.
27
+
25
28
  ## Routine prompt
26
29
 
27
30
  Fill in `<roadmap name>`, `<coordinator session id>` and `<owner/repo>`.