continuous-improvement 3.1.0 → 3.9.1
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/.claude-plugin/marketplace.json +66 -0
- package/CHANGELOG.md +216 -0
- package/QUICKSTART.md +79 -12
- package/README.md +229 -349
- package/SKILL.md +87 -9
- package/action.yml +1 -1
- package/bin/analyze.sh +9 -1
- package/bin/backfill.mjs +172 -0
- package/bin/check-doc-runtime-claims.mjs +120 -0
- package/bin/check-docs-substrings.mjs +333 -0
- package/bin/check-everything-mirror.mjs +145 -0
- package/bin/check-routing-targets.mjs +151 -0
- package/bin/check-skill-law-tag.mjs +128 -0
- package/bin/check-skill-mirror.mjs +119 -0
- package/bin/check-skill-tiers.mjs +116 -0
- package/bin/check-third-party-shape.mjs +202 -0
- package/bin/generate-plugin-manifests.mjs +171 -0
- package/bin/harvest-friction.mjs +279 -0
- package/bin/hook-stats.mjs +258 -0
- package/bin/install.mjs +407 -499
- package/bin/lint-transcript.mjs +182 -210
- package/bin/mcp-server.mjs +834 -608
- package/bin/observe.mjs +148 -0
- package/bin/pre-commit-block-strays.sh +49 -0
- package/bin/refresh-third-party.mjs +416 -0
- package/bin/unified-cli.mjs +533 -0
- package/commands/continuous-improvement.md +43 -2
- package/commands/discipline.md +14 -0
- package/commands/harvest.md +76 -0
- package/commands/learn-eval.md +117 -0
- package/commands/planning-with-files.md +66 -0
- package/commands/proceed-with-the-recommendation.md +62 -0
- package/commands/ralph.md +103 -0
- package/commands/release-train.md +81 -0
- package/commands/seven-laws.md +16 -0
- package/commands/superpowers.md +180 -0
- package/commands/swarm.md +101 -0
- package/commands/workspace-surface-audit.md +77 -0
- package/hooks/gateguard.mjs +172 -0
- package/hooks/observe.sh +42 -4
- package/hooks/session.sh +3 -3
- package/hooks/three-section-close.mjs +181 -0
- package/instinct-packs/meta.json +16 -0
- package/lib/cli-anything.mjs +401 -0
- package/lib/compound-engineering.mjs +831 -0
- package/lib/gateguard-state.mjs +85 -0
- package/lib/observe-event.mjs +128 -0
- package/lib/plugin-metadata.mjs +435 -0
- package/lib/pm-marketplace.mjs +61 -0
- package/lib/pm-skills.mjs +1274 -0
- package/lib/resolve-home-dir.mjs +43 -0
- package/lib/skill-tiers.mjs +137 -0
- package/lib/unified-plugin.mjs +924 -0
- package/llms.txt +32 -7
- package/package.json +29 -19
- package/plugins/beginner.json +17 -6
- package/plugins/continuous-improvement/.claude-plugin/marketplace.json +20 -0
- package/plugins/continuous-improvement/.claude-plugin/plugin.json +26 -0
- package/plugins/continuous-improvement/LICENSE +21 -0
- package/plugins/continuous-improvement/README.md +57 -0
- package/plugins/continuous-improvement/agents/README.md +120 -0
- package/plugins/continuous-improvement/agents/code-reviewer.md +97 -0
- package/plugins/continuous-improvement/agents/security-auditor.md +101 -0
- package/plugins/continuous-improvement/agents/test-engineer.md +95 -0
- package/plugins/continuous-improvement/bin/backfill.mjs +172 -0
- package/plugins/continuous-improvement/bin/mcp-server.mjs +889 -0
- package/plugins/continuous-improvement/bin/observe.mjs +148 -0
- package/plugins/continuous-improvement/commands/continuous-improvement.md +115 -0
- package/plugins/continuous-improvement/commands/dashboard.md +56 -0
- package/plugins/continuous-improvement/commands/discipline.md +51 -0
- package/plugins/continuous-improvement/commands/harvest.md +76 -0
- package/plugins/continuous-improvement/commands/learn-eval.md +117 -0
- package/plugins/continuous-improvement/commands/planning-with-files.md +66 -0
- package/plugins/continuous-improvement/commands/proceed-with-the-recommendation.md +62 -0
- package/plugins/continuous-improvement/commands/ralph.md +103 -0
- package/plugins/continuous-improvement/commands/release-train.md +81 -0
- package/plugins/continuous-improvement/commands/seven-laws.md +16 -0
- package/plugins/continuous-improvement/commands/superpowers.md +180 -0
- package/plugins/continuous-improvement/commands/swarm.md +101 -0
- package/plugins/continuous-improvement/commands/workspace-surface-audit.md +77 -0
- package/plugins/continuous-improvement/hooks/gateguard.mjs +172 -0
- package/plugins/continuous-improvement/hooks/hooks.json +65 -0
- package/plugins/continuous-improvement/hooks/observe.sh +172 -0
- package/plugins/continuous-improvement/hooks/session.sh +106 -0
- package/plugins/continuous-improvement/hooks/three-section-close.mjs +181 -0
- package/plugins/continuous-improvement/instinct-packs/go.json +58 -0
- package/plugins/continuous-improvement/instinct-packs/meta.json +16 -0
- package/plugins/continuous-improvement/instinct-packs/python.json +58 -0
- package/plugins/continuous-improvement/instinct-packs/react.json +58 -0
- package/plugins/continuous-improvement/lib/observe-event.mjs +128 -0
- package/plugins/continuous-improvement/lib/plugin-metadata.mjs +435 -0
- package/plugins/continuous-improvement/lib/resolve-home-dir.mjs +43 -0
- package/plugins/continuous-improvement/skills/README.md +37 -0
- package/plugins/continuous-improvement/skills/continuous-improvement/SKILL.md +249 -0
- package/plugins/continuous-improvement/skills/deploy-receipt/SKILL.md +178 -0
- package/plugins/continuous-improvement/skills/gateguard/SKILL.md +163 -0
- package/plugins/continuous-improvement/skills/para-memory-files/SKILL.md +108 -0
- package/plugins/continuous-improvement/skills/proceed-with-the-recommendation/SKILL.md +447 -0
- package/plugins/continuous-improvement/skills/ralph/SKILL.md +221 -0
- package/plugins/continuous-improvement/skills/recovery-classification/SKILL.md +73 -0
- package/plugins/continuous-improvement/skills/safety-guard/SKILL.md +76 -0
- package/plugins/continuous-improvement/skills/state-reconciliation/SKILL.md +63 -0
- package/plugins/continuous-improvement/skills/strategic-compact/SKILL.md +104 -0
- package/plugins/continuous-improvement/skills/superpowers/SKILL.md +219 -0
- package/plugins/continuous-improvement/skills/tdd-workflow/SKILL.md +411 -0
- package/plugins/continuous-improvement/skills/token-budget-advisor/SKILL.md +136 -0
- package/plugins/continuous-improvement/skills/verification-loop/SKILL.md +224 -0
- package/plugins/continuous-improvement/skills/wild-risa-balance/SKILL.md +191 -0
- package/plugins/continuous-improvement/skills/workspace-surface-audit/SKILL.md +147 -0
- package/plugins/continuous-improvement/skills/worktree-safety/SKILL.md +66 -0
- package/plugins/continuous-improvement/templates/planning-with-files/findings.md +8 -0
- package/plugins/continuous-improvement/templates/planning-with-files/progress.md +7 -0
- package/plugins/continuous-improvement/templates/planning-with-files/task_plan.md +23 -0
- package/plugins/expert.json +26 -5
- package/skills/README.md +79 -0
- package/skills/deploy-receipt.md +178 -0
- package/skills/gateguard.md +163 -0
- package/skills/para-memory-files.md +108 -0
- package/skills/proceed-with-the-recommendation.md +447 -0
- package/skills/ralph.md +221 -0
- package/skills/recovery-classification.md +73 -0
- package/skills/safety-guard.md +76 -0
- package/skills/state-reconciliation.md +63 -0
- package/skills/strategic-compact.md +104 -0
- package/skills/superpowers.md +219 -0
- package/skills/tdd-workflow.md +411 -0
- package/skills/token-budget-advisor.md +136 -0
- package/skills/verification-loop.md +224 -0
- package/skills/wild-risa-balance.md +191 -0
- package/skills/workspace-surface-audit.md +147 -0
- package/skills/worktree-safety.md +66 -0
- package/templates/insights-claude-md.md +91 -0
- package/templates/planning-with-files/findings.md +8 -0
- package/templates/planning-with-files/progress.md +7 -0
- package/templates/planning-with-files/task_plan.md +23 -0
- package/templates/verify-ladder.example.json +60 -0
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: harvest
|
|
3
|
+
description: Harvest friction events from observation logs into typed instincts (env_issue, permission_block, wrong_approach, buggy_code) with confidence scoring.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# /harvest — Friction Harvest
|
|
7
|
+
|
|
8
|
+
Run the friction-harvest classifier against this project's observation log and append new typed instincts to `instincts.jsonl`. Idempotent on re-run.
|
|
9
|
+
|
|
10
|
+
## What it does
|
|
11
|
+
|
|
12
|
+
Reads `~/.claude/instincts/<project-hash>/observations.jsonl` produced by the Mulahazah hook, classifies failure rows into four typed friction patterns, scores confidence with a recency-weighted decay, and appends new instincts to `<project-hash>/instincts.jsonl` alongside.
|
|
13
|
+
|
|
14
|
+
| Type | What it catches |
|
|
15
|
+
|---|---|
|
|
16
|
+
| `env_issue` | jq missing, command not found, not recognized as cmdlet |
|
|
17
|
+
| `permission_block` | sandbox / harness blocked, Permission denied |
|
|
18
|
+
| `wrong_approach` | file changed since last read (parallel-actor stale) |
|
|
19
|
+
| `buggy_code` | file not read first, old_string ambiguous, file too large |
|
|
20
|
+
|
|
21
|
+
## How to invoke
|
|
22
|
+
|
|
23
|
+
```
|
|
24
|
+
node bin/harvest-friction.mjs
|
|
25
|
+
node bin/harvest-friction.mjs <project-hash>
|
|
26
|
+
node bin/harvest-friction.mjs --list
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
`--list` shows new classifications without writing to `instincts.jsonl` — useful for dry-run before committing the harvest output.
|
|
30
|
+
|
|
31
|
+
## Idempotency
|
|
32
|
+
|
|
33
|
+
Each instinct carries a `dedup_key = sha1(type + tool + summary[:120])`. Re-running on the same observations does not duplicate previously-written instincts; `loadExistingDedupKeys()` reads the destination file once at start.
|
|
34
|
+
|
|
35
|
+
## Confidence model
|
|
36
|
+
|
|
37
|
+
```
|
|
38
|
+
confidence = log10(occurrence_count + 1) * recency_factor
|
|
39
|
+
recency_factor = 0.5 + 0.5 * exp(-days_since_last_seen / 14)
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
One occurrence today → 0.30. Ten occurrences today → clamped to 1.0. One occurrence 30 days ago → 0.17.
|
|
43
|
+
|
|
44
|
+
## Output shape
|
|
45
|
+
|
|
46
|
+
```
|
|
47
|
+
harvest-friction project=0af156594b39
|
|
48
|
+
observations rows: 9346
|
|
49
|
+
tool_complete rows: 2104
|
|
50
|
+
classified failures: 47
|
|
51
|
+
thin-schema rows: 0
|
|
52
|
+
new instincts: 12
|
|
53
|
+
skipped (existing): 35
|
|
54
|
+
|
|
55
|
+
New instincts:
|
|
56
|
+
[0.92] env_issue on Bash (×8): bash: jq: command not found
|
|
57
|
+
[0.74] permission_block on Bash (×4): harness blocked direct push to main
|
|
58
|
+
...
|
|
59
|
+
|
|
60
|
+
Appended 12 instinct(s) to /Users/.../instincts/0af156594b39/instincts.jsonl
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
## When the classifier emits zero instincts
|
|
64
|
+
|
|
65
|
+
If `tool_complete rows: 0`, the bash-fallback hook is active (no jq AND the Node observer is not on PATH) and only emits `tool_start` events. Two remediation paths:
|
|
66
|
+
|
|
67
|
+
- **Install jq** — `winget install jqlang.jq` (Windows), `brew install jq` (macOS), `apt install jq` (Linux).
|
|
68
|
+
- **Wire the Node observer** — ensure `hooks/bin/observe.mjs` is reachable from the active hook script.
|
|
69
|
+
|
|
70
|
+
Both are documented in the WARNING the classifier prints on a thin-schema host.
|
|
71
|
+
|
|
72
|
+
## Pairs with
|
|
73
|
+
|
|
74
|
+
- **`continuous-improvement`** (core SKILL.md, Law 7 — Learn From Every Session) — the harvest pipeline is the concrete mechanism behind Law 7's "capture patterns as instincts" contract.
|
|
75
|
+
- **`workspace-surface-audit`** — Phase 1 Environment Grain confirms whether jq + Node observer are available; if not, the harvest will run inert until that gap closes.
|
|
76
|
+
- **`gateguard`** — observation rows include the Parallel-Actor Gate's HEAD/upstream baselines when divergence-halts fire; the classifier surfaces those as `wrong_approach` instincts.
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: learn-eval
|
|
3
|
+
description: "Extract reusable patterns from the session, self-evaluate quality before saving, and determine the right save location (Global vs Project)."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# /learn-eval - Extract, Evaluate, then Save
|
|
7
|
+
|
|
8
|
+
Extends `/learn` with a quality gate, save-location decision, and knowledge-placement awareness before writing any skill file.
|
|
9
|
+
|
|
10
|
+
## What to Extract
|
|
11
|
+
|
|
12
|
+
Look for:
|
|
13
|
+
|
|
14
|
+
1. **Error Resolution Patterns** — root cause + fix + reusability
|
|
15
|
+
2. **Debugging Techniques** — non-obvious steps, tool combinations
|
|
16
|
+
3. **Workarounds** — library quirks, API limitations, version-specific fixes
|
|
17
|
+
4. **Project-Specific Patterns** — conventions, architecture decisions, integration patterns
|
|
18
|
+
|
|
19
|
+
## Process
|
|
20
|
+
|
|
21
|
+
1. Review the session for extractable patterns
|
|
22
|
+
2. Identify the most valuable/reusable insight
|
|
23
|
+
|
|
24
|
+
3. **Determine save location:**
|
|
25
|
+
- Ask: "Would this pattern be useful in a different project?"
|
|
26
|
+
- **Global** (`~/.claude/skills/learned/`): Generic patterns usable across 2+ projects (bash compatibility, LLM API behavior, debugging techniques, etc.)
|
|
27
|
+
- **Project** (`.claude/skills/learned/` in current project): Project-specific knowledge (quirks of a particular config file, project-specific architecture decisions, etc.)
|
|
28
|
+
- When in doubt, choose Global (moving Global → Project is easier than the reverse)
|
|
29
|
+
|
|
30
|
+
4. Draft the skill file using this format:
|
|
31
|
+
|
|
32
|
+
```markdown
|
|
33
|
+
---
|
|
34
|
+
name: pattern-name
|
|
35
|
+
description: "Under 130 characters"
|
|
36
|
+
user-invocable: false
|
|
37
|
+
origin: auto-extracted
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
# [Descriptive Pattern Name]
|
|
41
|
+
|
|
42
|
+
**Extracted:** [Date]
|
|
43
|
+
**Context:** [Brief description of when this applies]
|
|
44
|
+
|
|
45
|
+
## Problem
|
|
46
|
+
[What problem this solves - be specific]
|
|
47
|
+
|
|
48
|
+
## Solution
|
|
49
|
+
[The pattern/technique/workaround - with code examples]
|
|
50
|
+
|
|
51
|
+
## When to Use
|
|
52
|
+
[Trigger conditions]
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
5. **Quality gate — Checklist + Holistic verdict**
|
|
56
|
+
|
|
57
|
+
### 5a. Required checklist (verify by actually reading files)
|
|
58
|
+
|
|
59
|
+
Execute **all** of the following before evaluating the draft:
|
|
60
|
+
|
|
61
|
+
- [ ] Grep `~/.claude/skills/` and relevant project `.claude/skills/` files by keyword to check for content overlap
|
|
62
|
+
- [ ] Check MEMORY.md (both project and global) for overlap
|
|
63
|
+
- [ ] Consider whether appending to an existing skill would suffice
|
|
64
|
+
- [ ] Confirm this is a reusable pattern, not a one-off fix
|
|
65
|
+
|
|
66
|
+
### 5b. Holistic verdict
|
|
67
|
+
|
|
68
|
+
Synthesize the checklist results and draft quality, then choose **one** of the following:
|
|
69
|
+
|
|
70
|
+
| Verdict | Meaning | Next Action |
|
|
71
|
+
|---------|---------|-------------|
|
|
72
|
+
| **Save** | Unique, specific, well-scoped | Proceed to Step 6 |
|
|
73
|
+
| **Improve then Save** | Valuable but needs refinement | List improvements → revise → re-evaluate (once) |
|
|
74
|
+
| **Absorb into [X]** | Should be appended to an existing skill | Show target skill and additions → Step 6 |
|
|
75
|
+
| **Drop** | Trivial, redundant, or too abstract | Explain reasoning and stop |
|
|
76
|
+
|
|
77
|
+
**Guideline dimensions** (informing the verdict, not scored):
|
|
78
|
+
|
|
79
|
+
- **Specificity & Actionability**: Contains code examples or commands that are immediately usable
|
|
80
|
+
- **Scope Fit**: Name, trigger conditions, and content are aligned and focused on a single pattern
|
|
81
|
+
- **Uniqueness**: Provides value not covered by existing skills (informed by checklist results)
|
|
82
|
+
- **Reusability**: Realistic trigger scenarios exist in future sessions
|
|
83
|
+
|
|
84
|
+
6. **Verdict-specific confirmation flow**
|
|
85
|
+
|
|
86
|
+
- **Improve then Save**: Present the required improvements + revised draft + updated checklist/verdict after one re-evaluation; if the revised verdict is **Save**, save after user confirmation, otherwise follow the new verdict
|
|
87
|
+
- **Save**: Present save path + checklist results + 1-line verdict rationale + full draft → save after user confirmation
|
|
88
|
+
- **Absorb into [X]**: Present target path + additions (diff format) + checklist results + verdict rationale → append after user confirmation
|
|
89
|
+
- **Drop**: Show checklist results + reasoning only (no confirmation needed)
|
|
90
|
+
|
|
91
|
+
7. Save / Absorb to the determined location
|
|
92
|
+
|
|
93
|
+
## Output Format for Step 5
|
|
94
|
+
|
|
95
|
+
```
|
|
96
|
+
### Checklist
|
|
97
|
+
- [x] skills/ grep: no overlap (or: overlap found → details)
|
|
98
|
+
- [x] MEMORY.md: no overlap (or: overlap found → details)
|
|
99
|
+
- [x] Existing skill append: new file appropriate (or: should append to [X])
|
|
100
|
+
- [x] Reusability: confirmed (or: one-off → Drop)
|
|
101
|
+
|
|
102
|
+
### Verdict: Save / Improve then Save / Absorb into [X] / Drop
|
|
103
|
+
|
|
104
|
+
**Rationale:** (1-2 sentences explaining the verdict)
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
## Design Rationale
|
|
108
|
+
|
|
109
|
+
This version replaces the previous 5-dimension numeric scoring rubric (Specificity, Actionability, Scope Fit, Non-redundancy, Coverage scored 1-5) with a checklist-based holistic verdict system. Modern frontier models (Opus 4.6+) have strong contextual judgment — forcing rich qualitative signals into numeric scores loses nuance and can produce misleading totals. The holistic approach lets the model weigh all factors naturally, producing more accurate save/drop decisions while the explicit checklist ensures no critical check is skipped.
|
|
110
|
+
|
|
111
|
+
## Notes
|
|
112
|
+
|
|
113
|
+
- Don't extract trivial fixes (typos, simple syntax errors)
|
|
114
|
+
- Don't extract one-time issues (specific API outages, etc.)
|
|
115
|
+
- Focus on patterns that will save time in future sessions
|
|
116
|
+
- Keep skills focused — one pattern per skill
|
|
117
|
+
- When the verdict is Absorb, append to the existing skill rather than creating a new file
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: planning-with-files
|
|
3
|
+
description: Create and maintain task_plan.md, findings.md, and progress.md for persistent file-based planning
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# /planning-with-files
|
|
7
|
+
|
|
8
|
+
Use this workflow only when the user explicitly wants persistent, file-based planning. It is opt-in.
|
|
9
|
+
|
|
10
|
+
## Project Root
|
|
11
|
+
|
|
12
|
+
1. Run `git rev-parse --show-toplevel 2>/dev/null`
|
|
13
|
+
2. If that fails, use the current working directory
|
|
14
|
+
3. Create and read planning files in that root only
|
|
15
|
+
|
|
16
|
+
The planning files are:
|
|
17
|
+
- `task_plan.md`
|
|
18
|
+
- `findings.md`
|
|
19
|
+
- `progress.md`
|
|
20
|
+
|
|
21
|
+
## `init`
|
|
22
|
+
|
|
23
|
+
If the files do not exist, create them in the project root.
|
|
24
|
+
|
|
25
|
+
`task_plan.md` must include:
|
|
26
|
+
- `## Goal`
|
|
27
|
+
- `## Status`
|
|
28
|
+
- `## Phases`
|
|
29
|
+
- `## Key Questions`
|
|
30
|
+
- `## Decisions Made`
|
|
31
|
+
- `## Errors Encountered`
|
|
32
|
+
|
|
33
|
+
Default phases:
|
|
34
|
+
- `Research`
|
|
35
|
+
- `Plan`
|
|
36
|
+
- `Execute`
|
|
37
|
+
- `Verify`
|
|
38
|
+
- `Reflect`
|
|
39
|
+
|
|
40
|
+
Never overwrite existing planning files unless the user explicitly asks you to reset or replace them.
|
|
41
|
+
|
|
42
|
+
## `status`
|
|
43
|
+
|
|
44
|
+
Read all three files and summarize:
|
|
45
|
+
- Current status from `task_plan.md`
|
|
46
|
+
- Checked vs unchecked phases
|
|
47
|
+
- Whether `findings.md` has real notes yet
|
|
48
|
+
- Whether `progress.md` has real session or verification entries yet
|
|
49
|
+
|
|
50
|
+
If the files do not exist, say so and offer to initialize them.
|
|
51
|
+
|
|
52
|
+
## `checkpoint`
|
|
53
|
+
|
|
54
|
+
After a meaningful work chunk:
|
|
55
|
+
- Update `progress.md` with what happened, commands run, and verification notes
|
|
56
|
+
- Add new discoveries or sources to `findings.md`
|
|
57
|
+
- Update `task_plan.md` progress, decisions, and errors
|
|
58
|
+
|
|
59
|
+
Do not hide failures. Log them in `## Errors Encountered`.
|
|
60
|
+
|
|
61
|
+
## `recover`
|
|
62
|
+
|
|
63
|
+
When resuming after context loss or a new session:
|
|
64
|
+
- Re-read `task_plan.md`, `findings.md`, and `progress.md` before making major decisions
|
|
65
|
+
- Restate the current goal, phase, open questions, and latest verification state
|
|
66
|
+
- Continue from the recorded plan instead of rebuilding context from memory
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: proceed-with-the-recommendation
|
|
3
|
+
description: "Execute the agent's prior recommendation list under the 7 Laws — walk in order, route per item, verify, reflect. Standalone companion skill with inline fallbacks when other skills are not installed."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# /proceed-with-the-recommendation
|
|
7
|
+
|
|
8
|
+
Walk an agent-generated recommendation list top-to-bottom under the continuous-improvement 7 Laws. Each item is routed to the best specialist skill when available, falls back to concrete inline behavior when it is not.
|
|
9
|
+
|
|
10
|
+
Invoke immediately after the agent has offered a numbered list of recommendations, next steps, or suggested actions.
|
|
11
|
+
|
|
12
|
+
## Trigger phrases
|
|
13
|
+
|
|
14
|
+
- `/proceed-with-the-recommendation`
|
|
15
|
+
- "proceed with your recommendation"
|
|
16
|
+
- "do all of it"
|
|
17
|
+
- "go ahead with the plan"
|
|
18
|
+
- "execute the recommendations"
|
|
19
|
+
- "yes do it" / "all of them"
|
|
20
|
+
|
|
21
|
+
## What happens
|
|
22
|
+
|
|
23
|
+
1. **Pre-flight (Law 1)** — restate the recommendation list in original order, tag each `safe` / `caution` / `needs-approval`
|
|
24
|
+
2. **Plan (Law 2)** — inline restatement if ≤3 items, call `superpowers:writing-plans` if larger
|
|
25
|
+
3. **Execute (Law 3)** — route each item to the preferred skill; apply inline fallback if the skill is not installed
|
|
26
|
+
4. **Verify (Law 4)** — smallest check per item, non-transitive (no later item retroactively verifies an earlier one)
|
|
27
|
+
5. **Iterate (Law 6)** — one change → verify → next; never carry a failure forward
|
|
28
|
+
6. **Reflect (Laws 5 + 7)** — end-of-run Reflection block appended to `observations.jsonl`
|
|
29
|
+
7. **Close** — three-section user-facing block: **What has been done → What is next → Recommendation** (tiered tables + one decisive "My recommendation" paragraph + a binary "Want me to: A or B?" closer)
|
|
30
|
+
|
|
31
|
+
## Hard halts (never silently proceed)
|
|
32
|
+
|
|
33
|
+
- Any `needs-approval` item: deploy, force-push, DB drop, secret change, shared-state mutation
|
|
34
|
+
- Verification failure with non-obvious fix
|
|
35
|
+
- Drive-by temptation outside the original list
|
|
36
|
+
- Context budget above 80%
|
|
37
|
+
|
|
38
|
+
## Pairs best with
|
|
39
|
+
|
|
40
|
+
| Preferred skill | Used for |
|
|
41
|
+
|---|---|
|
|
42
|
+
| `workspace-surface-audit` | Law 1 pre-flight when the list touches unknown surface area |
|
|
43
|
+
| `superpowers:writing-plans` | Plan breakdown when the list >3 items or >150 LOC |
|
|
44
|
+
| `superpowers:*` | Per-item specialist routing (TDD, debugging, review, verification, parallel) |
|
|
45
|
+
| `ralph` | Long-running PRD-style autonomous execution |
|
|
46
|
+
| `simplify`, `security-review`, `documentation-lookup`, `schedule`, `loop`, `update-config`, `commit-commands:*` | continuous-improvement helpers |
|
|
47
|
+
|
|
48
|
+
If none of those are installed, the skill still works — every routing row has an inline fallback and every item still gets a verification step.
|
|
49
|
+
|
|
50
|
+
## Skill file
|
|
51
|
+
|
|
52
|
+
Full behavior is defined in [`skills/proceed-with-the-recommendation.md`](../skills/proceed-with-the-recommendation.md).
|
|
53
|
+
|
|
54
|
+
## Install standalone
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
mkdir -p ~/.claude/skills/proceed-with-the-recommendation
|
|
58
|
+
curl -L https://raw.githubusercontent.com/naimkatiman/continuous-improvement/main/skills/proceed-with-the-recommendation.md \
|
|
59
|
+
-o ~/.claude/skills/proceed-with-the-recommendation/SKILL.md
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
Restart the Claude Code session so the registry picks it up.
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ralph
|
|
3
|
+
description: "Convert PRD to executable JSON and run autonomous agent loop until all stories complete"
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# /ralph
|
|
7
|
+
|
|
8
|
+
Ralph is an autonomous AI agent loop that runs repeatedly until all PRD items are complete.
|
|
9
|
+
|
|
10
|
+
## Subcommands
|
|
11
|
+
|
|
12
|
+
### `/ralph init`
|
|
13
|
+
|
|
14
|
+
Initialize Ralph in your project:
|
|
15
|
+
|
|
16
|
+
1. Create `scripts/ralph/` directory
|
|
17
|
+
2. Add `ralph.sh` loop script
|
|
18
|
+
3. Add prompt templates for Amp and Claude Code
|
|
19
|
+
4. Create example `prd.json`
|
|
20
|
+
|
|
21
|
+
### `/ralph convert <prd-file>`
|
|
22
|
+
|
|
23
|
+
Convert a markdown PRD to Ralph's executable JSON format:
|
|
24
|
+
|
|
25
|
+
```
|
|
26
|
+
/ralph convert tasks/prd-auth-feature.md
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Output: `prd.json` with structured user stories
|
|
30
|
+
|
|
31
|
+
### `/ralph run [iterations]`
|
|
32
|
+
|
|
33
|
+
Run the autonomous loop:
|
|
34
|
+
|
|
35
|
+
```
|
|
36
|
+
/ralph run 10
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
Default: 10 iterations. Stops early if all stories complete.
|
|
40
|
+
|
|
41
|
+
## Ralph Loop Behavior
|
|
42
|
+
|
|
43
|
+
1. **Create branch** from PRD `branchName`
|
|
44
|
+
2. **Pick highest priority** story where `passes: false`
|
|
45
|
+
3. **Implement story** — fresh context, no pollution
|
|
46
|
+
4. **Run quality checks** — typecheck, tests, lint
|
|
47
|
+
5. **Commit if passing** — atomic commits per story
|
|
48
|
+
6. **Update prd.json** — mark `passes: true`
|
|
49
|
+
7. **Log learnings** — append to `progress.txt`
|
|
50
|
+
8. **Repeat** until done or max iterations
|
|
51
|
+
|
|
52
|
+
## Key Files
|
|
53
|
+
|
|
54
|
+
| File | Purpose |
|
|
55
|
+
|------|---------|
|
|
56
|
+
| `prd.json` | Executable PRD with user stories |
|
|
57
|
+
| `progress.txt` | Accumulated learnings |
|
|
58
|
+
| `ralph.sh` | The loop script |
|
|
59
|
+
| `AGENTS.md` | Iteration memory (auto-updated) |
|
|
60
|
+
|
|
61
|
+
## Workflow Integration
|
|
62
|
+
|
|
63
|
+
Ralph works best with:
|
|
64
|
+
- **Superpowers** — for structured development stages
|
|
65
|
+
- **continuous-improvement** — for reflection and learning between iterations
|
|
66
|
+
- **workspace-surface-audit** — to verify capabilities before starting
|
|
67
|
+
|
|
68
|
+
## Critical Concepts
|
|
69
|
+
|
|
70
|
+
### Fresh Context Per Iteration
|
|
71
|
+
Each story runs in isolation. Previous work is visible only via git history and `prd.json`.
|
|
72
|
+
|
|
73
|
+
### AGENTS.md Updates
|
|
74
|
+
Ralph updates `AGENTS.md` after each story so subsequent iterations know what's already done.
|
|
75
|
+
|
|
76
|
+
### Browser Verification
|
|
77
|
+
For UI stories, Ralph starts a dev server and uses Playwright to verify rendering.
|
|
78
|
+
|
|
79
|
+
### Stop Conditions
|
|
80
|
+
- All stories pass
|
|
81
|
+
- Max iterations reached
|
|
82
|
+
- Critical failure (requires human intervention)
|
|
83
|
+
|
|
84
|
+
## Troubleshooting
|
|
85
|
+
|
|
86
|
+
| Issue | Solution |
|
|
87
|
+
|-------|----------|
|
|
88
|
+
| Ralph stuck | Check `prd.json` for malformed stories |
|
|
89
|
+
| Tests failing | Run `npm test` independently to isolate |
|
|
90
|
+
| Uncommitted changes | Check git status, commit or stash |
|
|
91
|
+
| Wrong tool | Use `--tool amp` or `--tool claude` flag |
|
|
92
|
+
|
|
93
|
+
## Example Session
|
|
94
|
+
|
|
95
|
+
```
|
|
96
|
+
User: /ralph convert tasks/prd-checkout.md
|
|
97
|
+
[Creates prd.json with 8 stories]
|
|
98
|
+
|
|
99
|
+
User: /ralph run 15
|
|
100
|
+
[Ralph creates branch, implements stories 1-8 over 12 iterations]
|
|
101
|
+
|
|
102
|
+
[All tests pass, branch ready for PR]
|
|
103
|
+
```
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: release-train
|
|
3
|
+
description: "Autonomous multi-PR release train — plan stacked single-concern PRs, open each on its own branch, monitor CI, rebase on conflicts, and ship in dependency order while you sleep. Driven by report.html horizon item 'Autonomous Multi-PR Release Trains'."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# /release-train
|
|
7
|
+
|
|
8
|
+
Long-running autonomous orchestrator for stacked-PR rollouts. Driven by the user's session report (1,218 messages, 178 sessions): the audit-then-execute pattern landed at `fully_achieved` when sessions opened with a stacked-PR plan; sessions that started as big-bang multi-file edits landed at `partially_achieved`.
|
|
9
|
+
|
|
10
|
+
This command formalizes the pattern. It does NOT bypass branch protection, force-push, or merge unreviewed PRs.
|
|
11
|
+
|
|
12
|
+
## Preconditions
|
|
13
|
+
|
|
14
|
+
Before invoking this command:
|
|
15
|
+
|
|
16
|
+
1. A `RELEASE_PLAN.md` (or `docs/plans/YYYY-MM-DD-<slug>.md`) exists in the repo with a per-PR table, dependency graph, worktree-per-PR, and out-of-scope list. Per the Stacked-PR Plan Precondition in the unified `/superpowers` dispatcher.
|
|
17
|
+
2. The plan was reviewed and explicitly approved by the operator.
|
|
18
|
+
3. The base branch (`main`) is clean and up to date with `origin/main`.
|
|
19
|
+
4. CI is green on `origin/main`.
|
|
20
|
+
|
|
21
|
+
If any precondition fails, this command halts and reports what is missing rather than improvising.
|
|
22
|
+
|
|
23
|
+
## Behavior
|
|
24
|
+
|
|
25
|
+
For each PR in the plan, in dependency order:
|
|
26
|
+
|
|
27
|
+
1. **Worktree** — `git worktree add -b <branch> ../<branch> origin/main` (or off the previous PR's branch when the dependency requires it).
|
|
28
|
+
2. **Implement** — TDD-first per `superpowers:test-driven-development`: failing test, watch it fail, write minimal code, watch it pass, commit.
|
|
29
|
+
3. **Verify** — `superpowers:verification-before-completion` before claiming done. Smallest check that proves correctness.
|
|
30
|
+
4. **Review** — dispatch a fresh subagent for spec-compliance + code-quality two-stage review per `superpowers:subagent-driven-development`. Critical findings block progress.
|
|
31
|
+
5. **Open PR** — `gh pr create --base <base-of-this-PR> --head <branch>` with single-concern description that cites the plan doc.
|
|
32
|
+
6. **Wait for CI** — poll until green. Auto-rebase on conflicts (max 2 attempts; halt on third).
|
|
33
|
+
7. **Address review** — `superpowers:receiving-code-review` to walk reviewer comments. Critical findings produce a fix commit; non-critical are logged on the PR.
|
|
34
|
+
8. **Merge when green and approved** — never bypass branch protection. If branch protection blocks, post a status comment and continue with the next independent PR.
|
|
35
|
+
9. **Deploy receipt** — when the merged branch is on an auto-deploy target, run `deploy-receipt` to verify deployed SHA matches merge SHA + healthcheck 200 before reporting the PR as done.
|
|
36
|
+
|
|
37
|
+
Logs every state transition to `release-train.log` in the repo root.
|
|
38
|
+
|
|
39
|
+
## Stop conditions
|
|
40
|
+
|
|
41
|
+
Halt and surface to the operator if any of these occur:
|
|
42
|
+
|
|
43
|
+
- A `CRITICAL` reviewer finding cannot be auto-resolved.
|
|
44
|
+
- Two consecutive auto-rebase attempts fail on the same PR.
|
|
45
|
+
- A PR has been waiting on CI for more than 30 minutes.
|
|
46
|
+
- A required check (branch protection, status check, required reviewer) blocks merge.
|
|
47
|
+
- A deploy-receipt times out or returns non-200.
|
|
48
|
+
- The plan's dependency graph becomes unsatisfiable (e.g. a dependency PR was closed unmerged).
|
|
49
|
+
|
|
50
|
+
When halted, write a state file to `release-train.halt.md` describing exactly which PR halted, why, and what the operator needs to decide before resuming.
|
|
51
|
+
|
|
52
|
+
## Resuming
|
|
53
|
+
|
|
54
|
+
Re-invoke `/release-train` after the halt is resolved. The orchestrator reads `release-train.log` and `release-train.halt.md` to skip already-merged PRs and resume from the halt point.
|
|
55
|
+
|
|
56
|
+
## Composition
|
|
57
|
+
|
|
58
|
+
This command activates the unified `/superpowers` dispatcher and routes through:
|
|
59
|
+
|
|
60
|
+
- `superpowers:writing-plans` (or its inline fallback) to validate the plan
|
|
61
|
+
- `superpowers:using-git-worktrees` for isolation per PR
|
|
62
|
+
- `superpowers:test-driven-development` for implementation
|
|
63
|
+
- `superpowers:subagent-driven-development` for two-stage review
|
|
64
|
+
- `superpowers:finishing-a-development-branch` for merge decisions
|
|
65
|
+
- `deploy-receipt` (CI-bundled) for production verification
|
|
66
|
+
- `proceed-with-the-recommendation` orchestrator to walk the plan's PR list
|
|
67
|
+
|
|
68
|
+
## Anti-patterns this command refuses
|
|
69
|
+
|
|
70
|
+
- **Big-bang merge.** Will not merge a PR that touches more than 15 non-generated files.
|
|
71
|
+
- **Bypass.** Will not use `--admin`, `--force`, or `--no-verify`.
|
|
72
|
+
- **Speculative fix during CI wait.** Will not push speculative fixes during the first-time-contributor workflow-approval gate.
|
|
73
|
+
- **Drive-by scope.** Will not add a fix outside the plan's scope; logs as deferred follow-up instead.
|
|
74
|
+
|
|
75
|
+
## Example
|
|
76
|
+
|
|
77
|
+
```
|
|
78
|
+
/release-train docs/plans/2026-05-07-unified-five-plugin-dispatcher.md
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
Reads the plan, opens worktrees in dependency order, ships each PR through the full discipline, halts only at policy gates.
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: seven-laws
|
|
3
|
+
description: "Brand-aligned alias for /continuous-improvement. Reflect on the current session, analyze observations for patterns, and show instinct status under the 7 Laws of AI Agent Discipline."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# /seven-laws
|
|
7
|
+
|
|
8
|
+
Brand-aligned alias for [`/continuous-improvement`](continuous-improvement.md). Both commands run the exact same three-step workflow under the 7 Laws of AI Agent Discipline:
|
|
9
|
+
|
|
10
|
+
1. **Reflect** (Law 5) — generate a reflection block for this session.
|
|
11
|
+
2. **Analyze** (Law 7) — process pending observations into instincts.
|
|
12
|
+
3. **Status** — show all instincts for the project + global with confidence and current level.
|
|
13
|
+
|
|
14
|
+
Run the workflow defined in [`continuous-improvement.md`](continuous-improvement.md). Subcommands `weekly` and `always-on` work identically.
|
|
15
|
+
|
|
16
|
+
`/continuous-improvement` remains supported indefinitely for backward compatibility. Prefer `/seven-laws` going forward — it matches the brand and the SKILL.md spec.
|