@softure-ai/skills 0.0.0-stage → 0.1.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/LICENSE +21 -0
- package/README.md +71 -2
- package/WORKFLOW.md +308 -0
- package/package.json +31 -4
- package/rules/AGENTS.md +78 -0
- package/scripts/install.mjs +151 -0
- package/scripts/uninstall.mjs +49 -0
- package/skills/softure-archive/SKILL.md +100 -0
- package/skills/softure-code-review/SKILL.md +124 -0
- package/skills/softure-frame/SKILL.md +113 -0
- package/skills/softure-impl-review/SKILL.md +150 -0
- package/skills/softure-implement/SKILL.md +141 -0
- package/skills/softure-init/SKILL.md +131 -0
- package/skills/softure-lesson/SKILL.md +99 -0
- package/skills/softure-new/SKILL.md +127 -0
- package/skills/softure-plan/SKILL.md +157 -0
- package/skills/softure-plan/references/progress-format.md +79 -0
- package/skills/softure-plan-review/SKILL.md +152 -0
- package/skills/softure-prd/SKILL.md +132 -0
- package/skills/softure-research/SKILL.md +165 -0
- package/skills/softure-roadmap/SKILL.md +128 -0
- package/skills/softure-rule-review/SKILL.md +121 -0
- package/skills/softure-shape/SKILL.md +128 -0
- package/skills/softure-worktree/SKILL.md +888 -0
- package/skills/softure-worktree/scripts/wt-integration.sh +59 -0
- package/skills/softure-worktree/scripts/wt-open.sh +57 -0
- package/skills/softure-worktree/scripts/wt-roadmap.py +301 -0
- package/skills/softure-worktree/scripts/wt-status.sh +70 -0
- package/skills/softure-worktree/scripts/wt_config.py +109 -0
- package/skills/softure-worktree-manager/SKILL.md +553 -0
- package/skills/softure-worktree-manager/scripts/wm-launch.sh +52 -0
- package/skills/softure-worktree-manager/scripts/wm-report.sh +45 -0
- package/skills/softure-worktree-manager/scripts/wm-resume.sh +132 -0
- package/skills/softure-worktree-manager/scripts/wm-watch.sh +49 -0
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: softure-rule-review
|
|
3
|
+
description: >
|
|
4
|
+
Audit the instructions agents follow in this repo (AGENTS.md, CLAUDE.md, nested rule
|
|
5
|
+
files, project skills under .claude/skills, context/foundation/lessons.md) for
|
|
6
|
+
contradictions, stale paths and commands, duplication, vague or untestable rules and bloat.
|
|
7
|
+
Produces a report with concrete edits and applies them on approval. Use when the user says
|
|
8
|
+
"audit the rules", "review AGENTS.md", "are our instructions consistent", "clean up the
|
|
9
|
+
rules", "audit AGENTS.md".
|
|
10
|
+
argument-hint: "[<path>...] [--apply] [--auto]"
|
|
11
|
+
allowed-tools:
|
|
12
|
+
- Read
|
|
13
|
+
- Glob
|
|
14
|
+
- Grep
|
|
15
|
+
- Edit
|
|
16
|
+
- Write
|
|
17
|
+
- Bash
|
|
18
|
+
- AskUserQuestion
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
# softure-rule-review: instructions that agree with each other and with the repo
|
|
22
|
+
|
|
23
|
+
Agents follow written rules literally. A stale command wastes a session, and two rules that
|
|
24
|
+
contradict each other make behaviour random. This skill keeps the rule set small, true and
|
|
25
|
+
consistent.
|
|
26
|
+
|
|
27
|
+
## Inputs
|
|
28
|
+
|
|
29
|
+
Default set, when no paths are given:
|
|
30
|
+
- `AGENTS.md`, `CLAUDE.md` (root and nested), `.cursor/rules/**`, `.github/copilot-instructions.md`;
|
|
31
|
+
- `.claude/skills/*/SKILL.md` **owned by the project**. Skills installed by a package (listed in
|
|
32
|
+
`.claude/softure-skills.json` or another manifest) are not edited here. Report issues with them
|
|
33
|
+
upstream instead.
|
|
34
|
+
- `context/foundation/lessons.md` and `context/workflow.json`.
|
|
35
|
+
|
|
36
|
+
The SOFTURE managed block (`<!-- softure-skills:begin … -->`) is read for contradictions but
|
|
37
|
+
never edited. A conflict with it is resolved in the project's own text, or reported upstream.
|
|
38
|
+
|
|
39
|
+
## Procedure
|
|
40
|
+
|
|
41
|
+
1. **Inventory.** Build a table of every rule: id (file:line), the rule in five words, its
|
|
42
|
+
scope (paths and activities) and its strength (must / should / prefer).
|
|
43
|
+
2. **Verify facts against the repo.** Every path, script, command, env var and skill name
|
|
44
|
+
mentioned must exist:
|
|
45
|
+
- `ls` paths;
|
|
46
|
+
- check that `npm run <x>` exists in package.json;
|
|
47
|
+
- grep for symbols;
|
|
48
|
+
- check that referenced skills are installed;
|
|
49
|
+
- check that workflow.json commands exist.
|
|
50
|
+
|
|
51
|
+
A missing target is a **Stale** finding.
|
|
52
|
+
3. **Find contradictions.** Look for pairs of rules with the same scope that demand different
|
|
53
|
+
things. Typical cases:
|
|
54
|
+
- "always X" vs. "never X when Y" with Y unstated;
|
|
55
|
+
- a lesson that reverses an AGENTS.md rule;
|
|
56
|
+
- a skill that tells the agent to commit while AGENTS.md forbids it.
|
|
57
|
+
|
|
58
|
+
Name the winner by the priority: project > managed block > skill defaults, and newer lesson >
|
|
59
|
+
older rule with the same scope.
|
|
60
|
+
4. **Find duplication.** The same rule stated in several places with drifting wording. Keep one
|
|
61
|
+
canonical place and replace the rest with a pointer.
|
|
62
|
+
5. **Find vague rules.** A rule an agent cannot check ("write clean code", "be careful with X")
|
|
63
|
+
is either sharpened into something testable or deleted.
|
|
64
|
+
6. **Find bloat.** Incident narratives, history, outdated rationale, and rules about code that
|
|
65
|
+
no longer exists. Prefer moving the history to an archive file over deleting it, so the rule
|
|
66
|
+
itself stays one or two lines.
|
|
67
|
+
7. **Find enforcement candidates.** Rules that a test, lint rule or database constraint could
|
|
68
|
+
enforce. List them with the proposed mechanism.
|
|
69
|
+
8. **Report** (template below). Interactive: ask which groups to apply. With `--apply`, apply all
|
|
70
|
+
non-controversial ones (see --auto).
|
|
71
|
+
|
|
72
|
+
## Output
|
|
73
|
+
|
|
74
|
+
```markdown
|
|
75
|
+
# Rule review: <date>
|
|
76
|
+
|
|
77
|
+
Files: N · Rules: M · Stale: a · Contradictions: b · Duplicates: c · Vague: d · Bloat: e
|
|
78
|
+
|
|
79
|
+
## Contradictions (fix first)
|
|
80
|
+
1. AGENTS.md:40 "…" vs lessons.md L-017 "…". Same scope: <scope>. Winner: L-017 (newer, specific).
|
|
81
|
+
Edit: replace AGENTS.md:40 with "…".
|
|
82
|
+
|
|
83
|
+
## Stale references
|
|
84
|
+
1. AGENTS.md:88 `npm run db:fresh`: script does not exist. Edit: `npm run db:reset`.
|
|
85
|
+
|
|
86
|
+
## Duplicates
|
|
87
|
+
## Vague → sharpened or removed
|
|
88
|
+
## Bloat
|
|
89
|
+
## Could be enforced by tooling
|
|
90
|
+
## Proposed edits (unified diff per file)
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
## --auto
|
|
94
|
+
|
|
95
|
+
Apply only edits that cannot change behaviour:
|
|
96
|
+
- fixing stale paths to their verified current location;
|
|
97
|
+
- removing exact duplicates and leaving a pointer;
|
|
98
|
+
- trimming narrative history into an archive file.
|
|
99
|
+
|
|
100
|
+
Contradictions and vague rules are reported, not applied, because they need the owner's
|
|
101
|
+
intent. Commit applied edits as `docs(rules): rule review <date>` only when inside a change or
|
|
102
|
+
when asked.
|
|
103
|
+
|
|
104
|
+
## Checklist
|
|
105
|
+
|
|
106
|
+
- [ ] Every referenced path, script and skill verified against the repo.
|
|
107
|
+
- [ ] Every contradiction has a named winner and a concrete edit.
|
|
108
|
+
- [ ] Package-managed blocks and skills untouched.
|
|
109
|
+
- [ ] Proposed edits shown as diffs before applying (interactive).
|
|
110
|
+
|
|
111
|
+
## Anti-patterns
|
|
112
|
+
|
|
113
|
+
- Adding new rules during an audit. This skill subtracts and sharpens.
|
|
114
|
+
- Rewording everything into a new style. Only change what is wrong.
|
|
115
|
+
- Deleting a lesson's history without keeping its rule and number.
|
|
116
|
+
- Editing installed skills locally. The next install overwrites the edit.
|
|
117
|
+
|
|
118
|
+
## Handoff
|
|
119
|
+
|
|
120
|
+
New rules that emerged from the audit go through `softure-lesson`. Upstream issues with
|
|
121
|
+
SOFTURE skills or the managed block are filed at https://github.com/SOFTURE/SKILLS.
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: softure-shape
|
|
3
|
+
description: >
|
|
4
|
+
Turn a raw idea, feedback dump or business goal into `context/foundation/shape-notes.md`:
|
|
5
|
+
the problem, who has it, what they do today, the appetite, a rough solution sketch,
|
|
6
|
+
rabbit holes, no-gos and open questions. Interviews one question at a time and pushes
|
|
7
|
+
back on solution-first thinking. Use before writing a PRD, at the start of a product or
|
|
8
|
+
of a new theme. Triggers: "shape this idea", "let's think this through", "I have an idea",
|
|
9
|
+
"let's think it through before we start".
|
|
10
|
+
argument-hint: "[idea in one sentence | path to notes] [--auto]"
|
|
11
|
+
allowed-tools:
|
|
12
|
+
- Read
|
|
13
|
+
- Glob
|
|
14
|
+
- Grep
|
|
15
|
+
- Write
|
|
16
|
+
- Edit
|
|
17
|
+
- AskUserQuestion
|
|
18
|
+
- WebSearch
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
# softure-shape: from a raw idea to a shaped problem
|
|
22
|
+
|
|
23
|
+
## Purpose
|
|
24
|
+
|
|
25
|
+
Most wasted work starts with a solution nobody checked against a problem. This skill
|
|
26
|
+
produces a short, opinionated document that a PRD can be written from. It records the
|
|
27
|
+
problem worth solving and the boundaries of the solution. It does **not** produce a spec.
|
|
28
|
+
|
|
29
|
+
## Inputs
|
|
30
|
+
|
|
31
|
+
- `context/workflow.json`. If missing, stop and point to `softure-init`.
|
|
32
|
+
- The idea: the argument, a file path, pasted notes or screenshots. With no idea at all, ask
|
|
33
|
+
for one sentence and nothing else.
|
|
34
|
+
- Brownfield: if the repo has code, skim the README, the entry points and the existing
|
|
35
|
+
`context/foundation/*.md`, so you know the current system before discussing changes.
|
|
36
|
+
Summarise it in 5 to 10 lines; do not audit it.
|
|
37
|
+
- If `shape-notes.md` already exists, this is a **new session**. Keep the old content under
|
|
38
|
+
`## Previous sessions` (collapsed to the key decisions), then shape the new theme above it.
|
|
39
|
+
|
|
40
|
+
## Interview technique
|
|
41
|
+
|
|
42
|
+
- **One question per message.** Each question comes with your recommended answer and why,
|
|
43
|
+
so the user can just say "yes".
|
|
44
|
+
- Ask about the **problem before the solution**. If the user opens with a solution
|
|
45
|
+
("add a chat"), ask what happens today without it, how often it happens and what it costs.
|
|
46
|
+
Do not drop the solution: park it under *Solution sketch* and come back to it.
|
|
47
|
+
- Use concrete examples: "last time this happened, what exactly did you do?"
|
|
48
|
+
- Stop when every section below can be written in your own words and the user agrees with
|
|
49
|
+
the summary. In practice that is 6 to 12 questions; more means the idea is too big
|
|
50
|
+
(propose splitting it).
|
|
51
|
+
- Write the user's own words verbatim in quotes where they are the evidence.
|
|
52
|
+
|
|
53
|
+
## Procedure
|
|
54
|
+
|
|
55
|
+
1. Read the inputs. State in two lines what you understood, and the single biggest unknown.
|
|
56
|
+
2. Interview, in this order, skipping anything already answered by the inputs:
|
|
57
|
+
1. **Problem**: what hurts, for whom, how often, and what evidence exists.
|
|
58
|
+
2. **Who**: the primary person (role, context, skill level) and who is explicitly *not* targeted.
|
|
59
|
+
3. **Today**: current alternatives and workarounds, including "do nothing".
|
|
60
|
+
4. **Why now**: what changed, and what it costs to wait.
|
|
61
|
+
5. **Appetite**: how much time this is worth (days/weeks), not how long it will take.
|
|
62
|
+
6. **Solution sketch**: the smallest shape that solves the core problem, as bullet points
|
|
63
|
+
or a fat-marker description, not screens.
|
|
64
|
+
7. **Rabbit holes**: the parts that could explode in effort, with a decision for each.
|
|
65
|
+
8. **No-gos**: what we deliberately will not do in this round.
|
|
66
|
+
9. **Success**: how we will know it worked (an observable signal and a threshold).
|
|
67
|
+
3. Check for overlap with the SOFTURE module catalog (WORKFLOW §10). If part of the sketch
|
|
68
|
+
is a generic capability (auth, mail, waitlist, billing…), note it under *Solution sketch*
|
|
69
|
+
as "use `@softure-ai/<module>`".
|
|
70
|
+
4. Draft `shape-notes.md` using the template, then show a 10-line summary and ask:
|
|
71
|
+
"Anything wrong or missing? (Recommended: accept)".
|
|
72
|
+
5. Apply corrections and write the file. Set `updated` in the frontmatter.
|
|
73
|
+
|
|
74
|
+
## Output: `context/foundation/shape-notes.md`
|
|
75
|
+
|
|
76
|
+
```markdown
|
|
77
|
+
---
|
|
78
|
+
project: "<name>"
|
|
79
|
+
session: 1
|
|
80
|
+
created: <YYYY-MM-DD>
|
|
81
|
+
updated: <YYYY-MM-DD>
|
|
82
|
+
status: draft | accepted
|
|
83
|
+
---
|
|
84
|
+
|
|
85
|
+
# Shape notes: <theme in one line>
|
|
86
|
+
|
|
87
|
+
## Current system (brownfield only; 5–10 lines)
|
|
88
|
+
## Problem (who hurts, how often, evidence; quotes verbatim)
|
|
89
|
+
## Who it is for (primary; secondary; explicitly not for)
|
|
90
|
+
## Today (alternatives and workarounds)
|
|
91
|
+
## Why now
|
|
92
|
+
## Appetite (time budget, fixed; scope flexes, time does not)
|
|
93
|
+
## Solution sketch (smallest shape; elements, not screens)
|
|
94
|
+
## Rabbit holes (risk → decision)
|
|
95
|
+
## No-gos
|
|
96
|
+
## Success signals (signal → threshold → how measured)
|
|
97
|
+
## Open questions (owner → by when)
|
|
98
|
+
## Previous sessions (only when re-shaping)
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
Write in `workflow.json` → `language`.
|
|
102
|
+
|
|
103
|
+
## `--auto`
|
|
104
|
+
|
|
105
|
+
Without a user to ask, shape only from the inputs. Every section the inputs do not support
|
|
106
|
+
gets `UNKNOWN: <what would answer it>` instead of an invented answer. Leave `status: draft`
|
|
107
|
+
and list the assumptions under `## Decisions (auto)`.
|
|
108
|
+
|
|
109
|
+
## Quality bar
|
|
110
|
+
|
|
111
|
+
- [ ] The problem is stated without naming the solution.
|
|
112
|
+
- [ ] There is at least one piece of evidence (a quote, a number or an incident), or an
|
|
113
|
+
explicit note that none exists.
|
|
114
|
+
- [ ] The appetite is a time budget, not an estimate.
|
|
115
|
+
- [ ] Every rabbit hole has a decision.
|
|
116
|
+
- [ ] The success signals are observable by someone other than the author.
|
|
117
|
+
- [ ] Fits on about two screens. Longer usually means two themes.
|
|
118
|
+
|
|
119
|
+
## Do not
|
|
120
|
+
|
|
121
|
+
- Do not write requirements, user stories or tasks. That is `softure-prd`.
|
|
122
|
+
- Do not accept "users want X" without asking how we know.
|
|
123
|
+
- Do not run more than one question per message, and do not dump a questionnaire.
|
|
124
|
+
|
|
125
|
+
## Handoff
|
|
126
|
+
|
|
127
|
+
Accepted shape → `softure-prd`. If the user doubts whether this is the right thing at all →
|
|
128
|
+
`softure-frame`.
|