continuous-improvement 3.23.0 → 3.25.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/.claude-plugin/marketplace.json +2 -2
- package/CHANGELOG.md +37 -0
- package/QUICKSTART.md +19 -20
- package/README.md +71 -18
- package/SKILL.md +4 -0
- package/bin/check-invariant-count.mjs +144 -0
- package/bin/check-routing-targets.mjs +74 -4
- package/bin/check-test-count.mjs +135 -0
- package/bin/companion-preference-status.mjs +2 -5
- package/bin/generate-plugin-manifests.mjs +21 -2
- package/bin/harvest-friction.mjs +10 -8
- package/bin/install.mjs +4 -14
- package/bin/mcp-server.mjs +4 -9
- package/bin/observe.mjs +3 -3
- package/bin/reconcile-instinct-hashes.mjs +226 -0
- package/bin/refresh-third-party.mjs +180 -10
- package/commands/discipline.md +5 -2
- package/commands/reconcile.md +1 -1
- package/commands/superpowers.md +2 -2
- package/commands/verify-install.md +8 -3
- package/hooks/companion-preference.mjs +3 -10
- package/hooks/config-guard.mjs +94 -0
- package/hooks/gateguard.mjs +39 -39
- package/hooks/goal-drift-stop.mjs +2 -2
- package/hooks/query-cost-nudge.mjs +2 -2
- package/hooks/recall-briefing.mjs +2 -2
- package/hooks/route-prompt.mjs +2 -5
- package/hooks/session.mjs +2 -2
- package/hooks/workflow-distill.mjs +2 -2
- package/lib/config-guard-gate.mjs +243 -0
- package/lib/destructive-bash.mjs +216 -0
- package/lib/gateguard-state.mjs +5 -1
- package/lib/plugin-metadata.mjs +12 -1
- package/lib/skill-catalog.mjs +169 -0
- package/llms.txt +12 -1
- package/package.json +5 -3
- package/plugins/beginner.json +1 -1
- package/plugins/continuous-improvement/.claude-plugin/marketplace.json +2 -2
- package/plugins/continuous-improvement/.claude-plugin/plugin.json +2 -2
- package/plugins/continuous-improvement/README.md +1 -2
- package/plugins/continuous-improvement/bin/mcp-server.mjs +4 -9
- package/plugins/continuous-improvement/bin/observe.mjs +3 -3
- package/plugins/continuous-improvement/commands/discipline.md +5 -2
- package/plugins/continuous-improvement/commands/reconcile.md +1 -1
- package/plugins/continuous-improvement/commands/superpowers.md +2 -2
- package/plugins/continuous-improvement/commands/verify-install.md +8 -3
- package/plugins/continuous-improvement/hooks/companion-preference.mjs +3 -10
- package/plugins/continuous-improvement/hooks/config-guard.mjs +94 -0
- package/plugins/continuous-improvement/hooks/gateguard.mjs +39 -39
- package/plugins/continuous-improvement/hooks/goal-drift-stop.mjs +2 -2
- package/plugins/continuous-improvement/hooks/hooks.json +10 -0
- package/plugins/continuous-improvement/hooks/query-cost-nudge.mjs +2 -2
- package/plugins/continuous-improvement/hooks/recall-briefing.mjs +2 -2
- package/plugins/continuous-improvement/hooks/route-prompt.mjs +2 -5
- package/plugins/continuous-improvement/hooks/session.mjs +2 -2
- package/plugins/continuous-improvement/hooks/workflow-distill.mjs +2 -2
- package/plugins/continuous-improvement/lib/config-guard-gate.mjs +243 -0
- package/plugins/continuous-improvement/lib/destructive-bash.mjs +216 -0
- package/plugins/continuous-improvement/lib/gateguard-state.mjs +5 -1
- package/plugins/continuous-improvement/lib/plugin-metadata.mjs +12 -1
- package/plugins/continuous-improvement/scripts/route-recommendation.routes.json +2 -2
- package/plugins/continuous-improvement/skills/README.md +0 -1
- package/plugins/continuous-improvement/skills/continuous-improvement/SKILL.md +4 -0
- package/plugins/continuous-improvement/skills/deploy-receipt/SKILL.md +1 -1
- package/plugins/continuous-improvement/skills/gateguard/SKILL.md +17 -2
- package/plugins/continuous-improvement/skills/proceed-with-the-recommendation/SKILL.md +2 -2
- package/plugins/continuous-improvement/skills/reconcile/SKILL.md +0 -1
- package/plugins/continuous-improvement/skills/superpowers/SKILL.md +5 -6
- package/plugins/expert.json +1 -1
- package/scripts/route-recommendation.routes.json +2 -2
- package/skills/README.md +1 -2
- package/skills/deploy-receipt.md +1 -1
- package/skills/gateguard.md +17 -2
- package/skills/proceed-with-the-recommendation.md +2 -2
- package/skills/reconcile.md +0 -1
- package/skills/superpowers.md +5 -6
- package/plugins/continuous-improvement/skills/safety-guard/SKILL.md +0 -77
- package/skills/safety-guard.md +0 -77
|
@@ -46,7 +46,7 @@ See `docs/THIRD_PARTY.md` for plugin-by-plugin scope.
|
|
|
46
46
|
|
|
47
47
|
| Order | Skill | When It Activates |
|
|
48
48
|
|-------|-------|-------------------|
|
|
49
|
-
| 1 | **brainstorming** | Before writing code.
|
|
49
|
+
| 1 | **brainstorming** | Before writing code. Classifies the request as spike, bounded or architectural, then scales the ceremony to it: a 2-3 sentence probe, a short design in chat, or questions plus alternatives plus a sectioned design and a written spec. Approval is required before implementation on all three paths. |
|
|
50
50
|
| 2 | **using-git-worktrees** | After design approval. Creates isolated workspace on new branch, runs project setup, verifies clean test baseline. |
|
|
51
51
|
| 3 | **writing-plans** | With approved design. Breaks work into bite-sized tasks (2-5 minutes each). Every task has exact file paths, complete code, verification steps. |
|
|
52
52
|
| 4 | **subagent-driven-development** or **executing-plans** | With plan. Dispatches fresh subagent per task with two-stage review (spec compliance, then code quality), or executes in batches with human checkpoints. |
|
|
@@ -87,8 +87,8 @@ When a task trigger fires, the dispatcher resolves to the first available skill
|
|
|
87
87
|
| Simplify code, remove duplication | 6 | `agent-skills:code-simplification` → `simplify` |
|
|
88
88
|
| Security review for auth/input/secrets | 4 | `agent-skills:security-and-hardening` → `security-review` |
|
|
89
89
|
| Browser-level visual regression | 4 | `oh-my-claudecode:visual-verdict` (only source) |
|
|
90
|
-
| Reflect after session, extract patterns | 5+7 | `ci:learn-eval`
|
|
91
|
-
| Long autonomous run with quality gates | 6 | `oh-my-claudecode:
|
|
90
|
+
| Reflect after session, extract patterns | 5+7 | `ci:learn-eval` |
|
|
91
|
+
| Long autonomous run with quality gates | 6 | `oh-my-claudecode:ultragoal` → `ci:ralph` |
|
|
92
92
|
| Coordinator role for staged hand-off | 3 | `ruflo-swarm:agents/coordinator` (when ruflo installed) |
|
|
93
93
|
| Product-management work (PRD, OKRs, personas, GTM, growth, market research, analytics) | 1+2+5 | Install `phuryn/pm-skills` via Claude Code marketplace — see docs/THIRD_PARTY.md. Eight installable plugins (`pm-toolkit`, `pm-product-strategy`, `pm-product-discovery`, `pm-market-research`, `pm-data-analytics`, `pm-marketing-growth`, `pm-go-to-market`, `pm-execution`) cover the full lifecycle. Out of band — not a `/plugin install <name>@continuous-improvement` target. |
|
|
94
94
|
|
|
@@ -122,15 +122,14 @@ Valid values:
|
|
|
122
122
|
|
|
123
123
|
### Which rows the override affects
|
|
124
124
|
|
|
125
|
-
These are the routing rows where the override changes the resolved target. Rows not listed here are CI-only or companion-only and route the same under any setting.
|
|
125
|
+
These are the routing rows where the override changes the resolved target. Rows not listed here are CI-only or companion-only and route the same under any setting. `ci:learn-eval` was listed here until OMC 5.x: its companion `oh-my-claudecode:retrospective` never existed upstream, so the row is CI-only and the override cannot change it.
|
|
126
126
|
|
|
127
127
|
| Trigger | `ci-first` (default) | `companions-first` |
|
|
128
128
|
|---|---|---|
|
|
129
129
|
| Write a failing test before code | `ci:tdd-workflow` | `superpowers:test-driven-development`, then `agent-skills:test-driven-development` |
|
|
130
130
|
| Verify before declaring done | `ci:verification-loop` | `superpowers:verification-before-completion` |
|
|
131
131
|
| Curate the right context window | `ci:context-budget` | `agent-skills:context-engineering` |
|
|
132
|
-
| Long autonomous run with quality gates | `ci:ralph` | `oh-my-claudecode:
|
|
133
|
-
| Reflect after session, extract patterns | `ci:learn-eval` | `oh-my-claudecode:retrospective` |
|
|
132
|
+
| Long autonomous run with quality gates | `ci:ralph` | `oh-my-claudecode:ultragoal`, then `ci:ralph` |
|
|
134
133
|
|
|
135
134
|
`superpowers:writing-plans` already wins the planning chain under both settings — it is the first entry, with `ci:planning-with-files` as the third fallback — so that row is unchanged.
|
|
136
135
|
|
package/plugins/expert.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "continuous-improvement",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.25.0",
|
|
4
4
|
"mode": "expert",
|
|
5
5
|
"description": "Expert mode: tune confidence, manage instincts, and persist plans on disk. Adds safety, token-budget, and strategic-compact skills plus the /learn-eval command so long sessions stay sharp and learnings survive context resets.",
|
|
6
6
|
"tools": [
|
|
@@ -191,14 +191,14 @@
|
|
|
191
191
|
{
|
|
192
192
|
"name": "Multi-session retrospective across a sprint",
|
|
193
193
|
"patterns": ["retrospective", "sprint review", "multi.session review", "what worked.*what failed"],
|
|
194
|
-
"preferred": ["
|
|
194
|
+
"preferred": ["learn-eval"],
|
|
195
195
|
"fallback": "What worked / what failed / what to do differently / 3 ranked next moves.",
|
|
196
196
|
"marker": "oh-my-claudecode"
|
|
197
197
|
},
|
|
198
198
|
{
|
|
199
199
|
"name": "Long autonomous run with quality gates",
|
|
200
200
|
"patterns": ["long autonomous", "ultrawork", "quality gates? (between|per) iteration"],
|
|
201
|
-
"preferred": ["oh-my-claudecode:
|
|
201
|
+
"preferred": ["oh-my-claudecode:ultragoal", "ralph"],
|
|
202
202
|
"fallback": "PRD-shaped autonomous loop with verify-between-iterations.",
|
|
203
203
|
"marker": "oh-my-claudecode"
|
|
204
204
|
},
|
package/skills/README.md
CHANGED
|
@@ -28,11 +28,10 @@ These add concrete enforcement to the 7 Laws. Tier-1 skills are the always-on mi
|
|
|
28
28
|
|
|
29
29
|
## Tier 2 — additional skills for **expert** mode
|
|
30
30
|
|
|
31
|
-
Tier-2 skills layer on top of tier-1 for users running `npx continuous-improvement install --mode expert`. They cover
|
|
31
|
+
Tier-2 skills layer on top of tier-1 for users running `npx continuous-improvement install --mode expert`. They cover response-depth control and context-window discipline that matter once an agent runs longer or more aggressively. Autonomous-mode write safety lives in tier-1 `gateguard` (`CI_GATEGUARD_TARGET_LOCK=block`), which replaced the retired `safety-guard` skill on 2026-08-07.
|
|
32
32
|
|
|
33
33
|
| Skill | What it does | When it pays off |
|
|
34
34
|
|-------|--------------|------------------|
|
|
35
|
-
| `safety-guard` | Three-mode runtime guard (careful/freeze/guard) that blocks destructive commands and locks edits to a directory | Autonomous loops, prod systems, `--dangerously-skip-permissions` sessions |
|
|
36
35
|
| `token-budget-advisor` | Heuristic input/output token estimator that offers 25%/50%/75%/100% depth choices before answering | Long sessions where response size matters |
|
|
37
36
|
| `strategic-compact` | Manual phase-boundary checklist for deciding when to run `/compact` (research→plan, plan→implement, debug→next) instead of relying on arbitrary auto-compaction | Multi-phase tasks that approach context limits |
|
|
38
37
|
| `wild-risa-balance` | Decision-framing lens that pairs WILD (Wild/Imaginative/Limitless/Disruptive) generation with RISA (Realistic/Important/Specific/Agreeable) execution, used to split recommendation lists into bold pilots above a safe baseline | Multi-item recommendation blocks where bold options keep losing to safe ones in a flat list |
|
package/skills/deploy-receipt.md
CHANGED
|
@@ -157,7 +157,7 @@ The rollback command is **printed**, not run. The skill's job is to give the ope
|
|
|
157
157
|
- `finishing-a-development-branch` (vendored, third-party/superpowers/) — runs first; reports the merge. This skill runs after.
|
|
158
158
|
- `verification-loop` — same Law 4 family; this skill is the deploy-seam specialization
|
|
159
159
|
- `proceed-with-the-recommendation` — routing-table row for "Merge / close branch" should pair `finishing-a-development-branch` with this skill when the project is auto-deploy
|
|
160
|
-
- `
|
|
160
|
+
- `gateguard` — orthogonal; gateguard gates the destructive op, this verifies post-deploy state
|
|
161
161
|
|
|
162
162
|
## Close-the-Loop Rule
|
|
163
163
|
|
package/skills/gateguard.md
CHANGED
|
@@ -77,7 +77,7 @@ Before creating {file_path}, present these facts:
|
|
|
77
77
|
|
|
78
78
|
### Destructive Bash Gate (every destructive command)
|
|
79
79
|
|
|
80
|
-
Triggers on
|
|
80
|
+
Triggers on structured rules that ignore flag order and spelling — `rm` with any recursive plus any force flag (`rm -r -f`, `rm -Rf`, `rm --recursive --force`), `git clean` with a force flag and no dry run, `git checkout -- <path>` or `git checkout .`, `git restore <path>` unless it is `--staged` only, `find … -delete`, `git push` with a `+refspec`, `git stash drop|clear` — plus the original substring list (`rm -rf`, `git reset --hard`, `git push --force`, `git branch -D`, `drop table`, `truncate `, `Remove-Item -Recurse`, etc.). Each command is judged after `&&`, `||`, `|`, `;` splitting, and a commit message, PR body or title value is blanked first so prose never trips it. The deny reason prints `Matched rule: <id>` so a block is explainable; the classifier is `lib/destructive-bash.mjs`. Plain file writes through Bash (`cat > file`, `sed -i`) are deliberately not gated.
|
|
81
81
|
|
|
82
82
|
```
|
|
83
83
|
1. List all files/data this command will modify or delete
|
|
@@ -154,10 +154,24 @@ The inline `_gateguard_facts_presented: true` retry still works on harnesses tha
|
|
|
154
154
|
|
|
155
155
|
Set the `CI_GATEGUARD_EXCLUDE` environment variable to opt specific low-risk paths out of the gate entirely — an LLM-maintained prose wiki, a generated scratch directory, anything where the fact-forcing pause costs more than it saves. The value is a comma-separated list of path substrings, each matched case-insensitively against the forward-slash-normalized file path, so `/mywiki/` excludes `D:\Vault\MyWiki\notes\x.md`. Unset or empty (the default) changes nothing: every mutating file call is gated exactly as before, and a call that touches a mix of excluded and non-excluded paths still gates the non-excluded ones. Set it per project in `.claude/settings.json` under `env`, or globally in `~/.claude/settings.json`.
|
|
156
156
|
|
|
157
|
+
An exclusion is never silent. When every target of a call is excluded, `hooks/gateguard.mjs` still allows it but prints one stderr line naming the fragment that matched (`gateguard: skipped by CI_GATEGUARD_EXCLUDE (fragment "docs/wiki" matched docs/wiki/page.md)`). A catch-all fragment that every path contains (`/`, `.`, any single character) is honoured too, but the line says what it really is: the file gate is off for this session. Destructive Bash is never excluded. If `/verify-install` reports the probe write went through, check this variable before concluding the hook is not wired.
|
|
158
|
+
|
|
157
159
|
### Locking edits to the current repo
|
|
158
160
|
|
|
159
161
|
A fact-list can't catch a wrong-repo or wrong-worktree write — you can present perfect facts about the wrong file, in the wrong checkout. Set `CI_GATEGUARD_TARGET_LOCK=block` to make the runtime hook (`hooks/gateguard.mjs`) refuse any mutating call whose **absolute** target canonicalizes outside the session project root (`CLAUDE_PROJECT_DIR`, or the git toplevel). Relative paths resolve under the current directory (= the root) and always pass; only an absolute path into a different tree is denied, and the deny reason names both the stray target and the expected root. This runs before the fact gate and independent of clearance — a wrong-repo write is wrong even with facts. Unset (the default) checks nothing, so legitimate out-of-root edits (`~/.claude`, a `/tmp` scratch file, a sibling repo) are unaffected; turn it on per session in a multi-worktree or headless run where cross-repo writes are the real risk. Paths already covered by `CI_GATEGUARD_EXCLUDE` are never target-locked.
|
|
160
162
|
|
|
163
|
+
### Migrating from `safety-guard` (retired 2026-08-07)
|
|
164
|
+
|
|
165
|
+
`safety-guard` was a prose-only tier-2 skill describing three "modes" it never implemented — no hook, no command, no logger ever shipped with it. Every mode it described is already enforced here by the runtime hook (`hooks/gateguard.mjs`):
|
|
166
|
+
|
|
167
|
+
| Retired `safety-guard` mode | What enforces it now |
|
|
168
|
+
|---|---|
|
|
169
|
+
| Careful — warn on `rm -rf`, `git push --force`, `git reset --hard`, `DROP TABLE`, `chmod 777`, `--no-verify` … | [Destructive Bash Gate](#destructive-bash-gate-every-destructive-command). Its pattern set is a superset of the retired watch list, and it blocks rather than warns. |
|
|
170
|
+
| Freeze — restrict writes to one directory tree | `CI_GATEGUARD_TARGET_LOCK=block` (above). Canonicalizes the absolute target against the session project root and refuses strays — before the fact gate, independent of clearance. |
|
|
171
|
+
| Guard — careful + freeze together | Both of the above; they compose. Narrow the surface further with `CI_GATEGUARD_EXCLUDE`. |
|
|
172
|
+
|
|
173
|
+
If you previously opted into `safety-guard` for autonomous or production-adjacent runs, set `CI_GATEGUARD_TARGET_LOCK=block` for that session instead. That is a real refusal, not a checklist the agent can talk itself out of.
|
|
174
|
+
|
|
161
175
|
### Limitations and guarantees
|
|
162
176
|
|
|
163
177
|
- **Honor system.** Clearance is recorded by `ci_gateguard_clear`, the `gateguard-clear.mjs` CLI, a manual state-file write, or the inline `_gateguard_facts_presented` flag where the harness allows it (see "Clearing the gate" above). The hook can't verify the investigation actually happened; the 50-file cap — counted per session — bounds damage from stuck loops or rogue agents.
|
|
@@ -188,5 +202,6 @@ The standalone `gateguard-ai` Python/CLI package referenced in earlier drafts of
|
|
|
188
202
|
|
|
189
203
|
## Related Skills
|
|
190
204
|
|
|
191
|
-
- `safety
|
|
205
|
+
- `worktree-safety` — validates the worktree root before a source write; this skill gates the write itself
|
|
206
|
+
- `reconcile` — git ground truth before a destructive git action
|
|
192
207
|
- `code-reviewer` — Post-edit review (GateGuard is pre-edit investigation)
|
|
@@ -235,8 +235,8 @@ Rows whose **Preferred skill** is not bundled with the `continuous-improvement`
|
|
|
235
235
|
| Fan out N agents on isolated worktrees with shared contract | `superpowers:dispatching-parallel-agents` → `ruflo-swarm:swarm-init` | Use the swarm contract: fixed roles + base ref + shared contract test; reconcile results after. (Reference behavior — does not require `ruflo-swarm`.) |
|
|
236
236
|
| Stream live observation of long agent runs | `ruflo-swarm:monitor-stream` | Push-based event log; poll fallback if the MCP server is offline. (Reference behavior — does not require `ruflo-swarm`.) |
|
|
237
237
|
| Visual regression / browser-level diff | `oh-my-claudecode:visual-verdict` | Playwright screenshot diff against staging baseline. (Reference behavior — does not require `oh-my-claudecode`.) |
|
|
238
|
-
| Multi-session retrospective across a sprint | `
|
|
239
|
-
| Long autonomous run with quality gates | `oh-my-claudecode:
|
|
238
|
+
| Multi-session retrospective across a sprint | `learn-eval` | What worked / what failed / what to do differently / 3 ranked next moves. (Reference behavior — does not require `oh-my-claudecode`.) |
|
|
239
|
+
| Long autonomous run with quality gates | `oh-my-claudecode:ultragoal` → `ralph` | PRD-shaped autonomous loop with verify-between-iterations. (Reference behavior — does not require `oh-my-claudecode`.) |
|
|
240
240
|
| Product-management work (PRD, user stories, acceptance criteria, OKRs, experiments, personas, JTBD, lean canvas, market sizing, competitive analysis, meetings family, launch checklist) | Install phuryn/pm-skills via Claude Code marketplace — see docs/THIRD_PARTY.md | Out-of-band install (`claude plugin marketplace add phuryn/pm-skills` + the eight `pm-*@pm-skills` plugins). Inline fallback: keep the work shape (problem → user → goal → metric → scope; Given/When/Then per story; objective + 3-5 measurable KRs; we-believe / we'll-know hypothesis; TAM/SAM/SOM bottom-up; cross-cutting meetings agenda/brief/recap/synthesize) without depending on a specific routing target. |
|
|
241
241
|
|
|
242
242
|
## Phase 4: Verify (Law 4 — Verify Before Reporting)
|
package/skills/reconcile.md
CHANGED
|
@@ -177,6 +177,5 @@ git branch -d <type>/<slug> # delete the merged feature branch (safe
|
|
|
177
177
|
|
|
178
178
|
- **`recall`** (Law 1) — before a risky git op, recall whether the same operation failed on this repo before.
|
|
179
179
|
- **`gateguard`** (Law 1) — the runtime gate (`hooks/gateguard.mjs`); `reconcile` is the procedure you run once a destructive git action is in play.
|
|
180
|
-
- **`safety-guard`** — destructive-operation guardrails for production and autonomous runs.
|
|
181
180
|
- **`audit`** (Law 4) — when an audit ends in a fix, `reconcile` is the safe path from branch to landed PR.
|
|
182
181
|
- **`commit-commands:commit-push-pr`** — the external-plugin equivalent of the commit → push → PR tail; `reconcile` reimplements it inline so the flow works with no companion installed. For a TDD-gated single-defect variant, use `/ship`.
|
package/skills/superpowers.md
CHANGED
|
@@ -46,7 +46,7 @@ See `docs/THIRD_PARTY.md` for plugin-by-plugin scope.
|
|
|
46
46
|
|
|
47
47
|
| Order | Skill | When It Activates |
|
|
48
48
|
|-------|-------|-------------------|
|
|
49
|
-
| 1 | **brainstorming** | Before writing code.
|
|
49
|
+
| 1 | **brainstorming** | Before writing code. Classifies the request as spike, bounded or architectural, then scales the ceremony to it: a 2-3 sentence probe, a short design in chat, or questions plus alternatives plus a sectioned design and a written spec. Approval is required before implementation on all three paths. |
|
|
50
50
|
| 2 | **using-git-worktrees** | After design approval. Creates isolated workspace on new branch, runs project setup, verifies clean test baseline. |
|
|
51
51
|
| 3 | **writing-plans** | With approved design. Breaks work into bite-sized tasks (2-5 minutes each). Every task has exact file paths, complete code, verification steps. |
|
|
52
52
|
| 4 | **subagent-driven-development** or **executing-plans** | With plan. Dispatches fresh subagent per task with two-stage review (spec compliance, then code quality), or executes in batches with human checkpoints. |
|
|
@@ -87,8 +87,8 @@ When a task trigger fires, the dispatcher resolves to the first available skill
|
|
|
87
87
|
| Simplify code, remove duplication | 6 | `agent-skills:code-simplification` → `simplify` |
|
|
88
88
|
| Security review for auth/input/secrets | 4 | `agent-skills:security-and-hardening` → `security-review` |
|
|
89
89
|
| Browser-level visual regression | 4 | `oh-my-claudecode:visual-verdict` (only source) |
|
|
90
|
-
| Reflect after session, extract patterns | 5+7 | `ci:learn-eval`
|
|
91
|
-
| Long autonomous run with quality gates | 6 | `oh-my-claudecode:
|
|
90
|
+
| Reflect after session, extract patterns | 5+7 | `ci:learn-eval` |
|
|
91
|
+
| Long autonomous run with quality gates | 6 | `oh-my-claudecode:ultragoal` → `ci:ralph` |
|
|
92
92
|
| Coordinator role for staged hand-off | 3 | `ruflo-swarm:agents/coordinator` (when ruflo installed) |
|
|
93
93
|
| Product-management work (PRD, OKRs, personas, GTM, growth, market research, analytics) | 1+2+5 | Install `phuryn/pm-skills` via Claude Code marketplace — see docs/THIRD_PARTY.md. Eight installable plugins (`pm-toolkit`, `pm-product-strategy`, `pm-product-discovery`, `pm-market-research`, `pm-data-analytics`, `pm-marketing-growth`, `pm-go-to-market`, `pm-execution`) cover the full lifecycle. Out of band — not a `/plugin install <name>@continuous-improvement` target. |
|
|
94
94
|
|
|
@@ -122,15 +122,14 @@ Valid values:
|
|
|
122
122
|
|
|
123
123
|
### Which rows the override affects
|
|
124
124
|
|
|
125
|
-
These are the routing rows where the override changes the resolved target. Rows not listed here are CI-only or companion-only and route the same under any setting.
|
|
125
|
+
These are the routing rows where the override changes the resolved target. Rows not listed here are CI-only or companion-only and route the same under any setting. `ci:learn-eval` was listed here until OMC 5.x: its companion `oh-my-claudecode:retrospective` never existed upstream, so the row is CI-only and the override cannot change it.
|
|
126
126
|
|
|
127
127
|
| Trigger | `ci-first` (default) | `companions-first` |
|
|
128
128
|
|---|---|---|
|
|
129
129
|
| Write a failing test before code | `ci:tdd-workflow` | `superpowers:test-driven-development`, then `agent-skills:test-driven-development` |
|
|
130
130
|
| Verify before declaring done | `ci:verification-loop` | `superpowers:verification-before-completion` |
|
|
131
131
|
| Curate the right context window | `ci:context-budget` | `agent-skills:context-engineering` |
|
|
132
|
-
| Long autonomous run with quality gates | `ci:ralph` | `oh-my-claudecode:
|
|
133
|
-
| Reflect after session, extract patterns | `ci:learn-eval` | `oh-my-claudecode:retrospective` |
|
|
132
|
+
| Long autonomous run with quality gates | `ci:ralph` | `oh-my-claudecode:ultragoal`, then `ci:ralph` |
|
|
134
133
|
|
|
135
134
|
`superpowers:writing-plans` already wins the planning chain under both settings — it is the first entry, with `ci:planning-with-files` as the third fallback — so that row is unchanged.
|
|
136
135
|
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: safety-guard
|
|
3
|
-
tier: "2"
|
|
4
|
-
description: Enforces Law 3 (One Thing at a Time) of the 7 Laws of AI Agent Discipline by scoping edits to a directory and blocking destructive shell commands. Use this skill to prevent destructive operations when working on production systems or running agents autonomously.
|
|
5
|
-
origin: continuous-improvement
|
|
6
|
-
disable-model-invocation: true
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
# Safety Guard — Prevent Destructive Operations
|
|
10
|
-
|
|
11
|
-
## When to Use
|
|
12
|
-
|
|
13
|
-
- When working on production systems
|
|
14
|
-
- When agents are running autonomously (full-auto mode)
|
|
15
|
-
- When you want to restrict edits to a specific directory
|
|
16
|
-
- During sensitive operations (migrations, deploys, data changes)
|
|
17
|
-
|
|
18
|
-
## How It Works
|
|
19
|
-
|
|
20
|
-
Three modes of protection:
|
|
21
|
-
|
|
22
|
-
### Mode 1: Careful Mode
|
|
23
|
-
|
|
24
|
-
Intercepts destructive commands before execution and warns:
|
|
25
|
-
|
|
26
|
-
```
|
|
27
|
-
Watched patterns:
|
|
28
|
-
- rm -rf (especially /, ~, or project root)
|
|
29
|
-
- git push --force
|
|
30
|
-
- git reset --hard
|
|
31
|
-
- git checkout . (discard all changes)
|
|
32
|
-
- DROP TABLE / DROP DATABASE
|
|
33
|
-
- docker system prune
|
|
34
|
-
- kubectl delete
|
|
35
|
-
- chmod 777
|
|
36
|
-
- sudo rm
|
|
37
|
-
- npm publish (accidental publishes)
|
|
38
|
-
- Any command with --no-verify
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
When detected: shows what the command does, asks for confirmation, suggests safer alternative.
|
|
42
|
-
|
|
43
|
-
### Mode 2: Freeze Mode
|
|
44
|
-
|
|
45
|
-
Locks file edits to a specific directory tree:
|
|
46
|
-
|
|
47
|
-
```
|
|
48
|
-
/safety-guard freeze src/components/
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
Any Write/Edit outside `src/components/` is blocked with an explanation. Useful when you want an agent to focus on one area without touching unrelated code.
|
|
52
|
-
|
|
53
|
-
### Mode 3: Guard Mode (Careful + Freeze combined)
|
|
54
|
-
|
|
55
|
-
Both protections active. Maximum safety for autonomous agents.
|
|
56
|
-
|
|
57
|
-
```
|
|
58
|
-
/safety-guard guard --dir src/api/ --allow-read-all
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
Agents can read anything but only write to `src/api/`. Destructive commands are blocked everywhere.
|
|
62
|
-
|
|
63
|
-
### Unlock
|
|
64
|
-
|
|
65
|
-
```
|
|
66
|
-
/safety-guard off
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
## Implementation
|
|
70
|
-
|
|
71
|
-
Currently implemented as skill-side discipline: when restricted-mode is active, the agent reads this skill and refuses Bash, Write, Edit, and MultiEdit calls that violate the rules before invoking the tool. There is no bundled tool-call gate today — the same enforcement gap that existed for `gateguard` before issue #106 / PR #108. A future runtime version would track via a follow-up issue.
|
|
72
|
-
|
|
73
|
-
## Integration
|
|
74
|
-
|
|
75
|
-
- Enable by default for `codex -a never` sessions
|
|
76
|
-
- Pair with observability risk scoring in continuous-improvement v2
|
|
77
|
-
- Logs all blocked actions to `~/.claude/safety-guard.log`
|
package/skills/safety-guard.md
DELETED
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: safety-guard
|
|
3
|
-
tier: "2"
|
|
4
|
-
description: Enforces Law 3 (One Thing at a Time) of the 7 Laws of AI Agent Discipline by scoping edits to a directory and blocking destructive shell commands. Use this skill to prevent destructive operations when working on production systems or running agents autonomously.
|
|
5
|
-
origin: continuous-improvement
|
|
6
|
-
disable-model-invocation: true
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
# Safety Guard — Prevent Destructive Operations
|
|
10
|
-
|
|
11
|
-
## When to Use
|
|
12
|
-
|
|
13
|
-
- When working on production systems
|
|
14
|
-
- When agents are running autonomously (full-auto mode)
|
|
15
|
-
- When you want to restrict edits to a specific directory
|
|
16
|
-
- During sensitive operations (migrations, deploys, data changes)
|
|
17
|
-
|
|
18
|
-
## How It Works
|
|
19
|
-
|
|
20
|
-
Three modes of protection:
|
|
21
|
-
|
|
22
|
-
### Mode 1: Careful Mode
|
|
23
|
-
|
|
24
|
-
Intercepts destructive commands before execution and warns:
|
|
25
|
-
|
|
26
|
-
```
|
|
27
|
-
Watched patterns:
|
|
28
|
-
- rm -rf (especially /, ~, or project root)
|
|
29
|
-
- git push --force
|
|
30
|
-
- git reset --hard
|
|
31
|
-
- git checkout . (discard all changes)
|
|
32
|
-
- DROP TABLE / DROP DATABASE
|
|
33
|
-
- docker system prune
|
|
34
|
-
- kubectl delete
|
|
35
|
-
- chmod 777
|
|
36
|
-
- sudo rm
|
|
37
|
-
- npm publish (accidental publishes)
|
|
38
|
-
- Any command with --no-verify
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
When detected: shows what the command does, asks for confirmation, suggests safer alternative.
|
|
42
|
-
|
|
43
|
-
### Mode 2: Freeze Mode
|
|
44
|
-
|
|
45
|
-
Locks file edits to a specific directory tree:
|
|
46
|
-
|
|
47
|
-
```
|
|
48
|
-
/safety-guard freeze src/components/
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
Any Write/Edit outside `src/components/` is blocked with an explanation. Useful when you want an agent to focus on one area without touching unrelated code.
|
|
52
|
-
|
|
53
|
-
### Mode 3: Guard Mode (Careful + Freeze combined)
|
|
54
|
-
|
|
55
|
-
Both protections active. Maximum safety for autonomous agents.
|
|
56
|
-
|
|
57
|
-
```
|
|
58
|
-
/safety-guard guard --dir src/api/ --allow-read-all
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
Agents can read anything but only write to `src/api/`. Destructive commands are blocked everywhere.
|
|
62
|
-
|
|
63
|
-
### Unlock
|
|
64
|
-
|
|
65
|
-
```
|
|
66
|
-
/safety-guard off
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
## Implementation
|
|
70
|
-
|
|
71
|
-
Currently implemented as skill-side discipline: when restricted-mode is active, the agent reads this skill and refuses Bash, Write, Edit, and MultiEdit calls that violate the rules before invoking the tool. There is no bundled tool-call gate today — the same enforcement gap that existed for `gateguard` before issue #106 / PR #108. A future runtime version would track via a follow-up issue.
|
|
72
|
-
|
|
73
|
-
## Integration
|
|
74
|
-
|
|
75
|
-
- Enable by default for `codex -a never` sessions
|
|
76
|
-
- Pair with observability risk scoring in continuous-improvement v2
|
|
77
|
-
- Logs all blocked actions to `~/.claude/safety-guard.log`
|