@drunkcoding/agents-and-skills 0.0.17 → 0.0.18
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 +19 -4
- package/README.md +1 -0
- package/package.json +1 -1
- package/plugins/auto-power/.claude-plugin/plugin.json +17 -0
- package/plugins/auto-power/README.md +80 -0
- package/plugins/auto-power/assets/CHECKPOINT_SCHEMA.md +69 -0
- package/plugins/auto-power/assets/ESCALATION_TEMPLATE.md +67 -0
- package/plugins/auto-power/commands/auto-power-resume.md +32 -0
- package/plugins/auto-power/commands/auto-power.md +46 -0
- package/plugins/auto-power/skills/auto-power-runtime/SKILL.md +220 -0
- package/plugins/html-effectiveness/.claude-plugin/plugin.json +1 -1
- package/plugins/plugin-validator/.claude-plugin/plugin.json +1 -1
- package/plugins/team-superpower/.claude-plugin/plugin.json +1 -1
- package/plugins/tech-graph/.claude-plugin/plugin.json +1 -1
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"name": "tech-graph",
|
|
13
13
|
"source": "./plugins/tech-graph",
|
|
14
14
|
"description": "6-step wizard for technical diagrams (SVG/PNG) via fireworks-tech-graph",
|
|
15
|
-
"version": "0.0.
|
|
15
|
+
"version": "0.0.18",
|
|
16
16
|
"category": "diagram",
|
|
17
17
|
"keywords": [
|
|
18
18
|
"diagram",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"name": "html-effectiveness",
|
|
27
27
|
"source": "./plugins/html-effectiveness",
|
|
28
28
|
"description": "Generate self-contained interactive HTML reports from 20 upstream templates via a conversational agent.",
|
|
29
|
-
"version": "0.0.
|
|
29
|
+
"version": "0.0.18",
|
|
30
30
|
"category": "reports",
|
|
31
31
|
"keywords": [
|
|
32
32
|
"html",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"name": "team-superpower",
|
|
42
42
|
"source": "./plugins/team-superpower",
|
|
43
43
|
"description": "Shape-adaptive engineering team that runs the Superpowers skill chain across up to 8 roles — designer, planner, software-architect, security-engineer, backend-developer, frontend-developer, qa-engineer, reviewer — driven by a `team-superpower` block in CLAUDE.md. Spawns 7 or 8 roles depending on stack (full-stack / be-only / fe-only), enforces contract sync between BE and FE, and gates the finish branch on CI green.",
|
|
44
|
-
"version": "0.0.
|
|
44
|
+
"version": "0.0.18",
|
|
45
45
|
"category": "workflow",
|
|
46
46
|
"keywords": [
|
|
47
47
|
"agent-teams",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"name": "plugin-validator",
|
|
61
61
|
"source": "./plugins/plugin-validator",
|
|
62
62
|
"description": "Orchestrated validator for Claude Code plugins — validates skills, agents, commands, and hooks across every plugin under plugins/**.",
|
|
63
|
-
"version": "0.0.
|
|
63
|
+
"version": "0.0.18",
|
|
64
64
|
"category": "tooling",
|
|
65
65
|
"keywords": [
|
|
66
66
|
"validation",
|
|
@@ -71,6 +71,21 @@
|
|
|
71
71
|
"commands",
|
|
72
72
|
"hooks"
|
|
73
73
|
]
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"name": "auto-power",
|
|
77
|
+
"source": "./plugins/auto-power",
|
|
78
|
+
"description": "Single-command hands-off pipeline wrapping obra/superpowers. Auto-answers safe clarifying questions during spec, then runs plan → arch+sec → impl → verify → review → ff-merge with no further touchpoints. Checkpointed and resumable; escalates only on substantive failures.",
|
|
79
|
+
"version": "0.0.18",
|
|
80
|
+
"category": "workflow",
|
|
81
|
+
"keywords": [
|
|
82
|
+
"superpowers",
|
|
83
|
+
"automation",
|
|
84
|
+
"pipeline",
|
|
85
|
+
"tdd",
|
|
86
|
+
"auto-merge",
|
|
87
|
+
"checkpoint"
|
|
88
|
+
]
|
|
74
89
|
}
|
|
75
90
|
]
|
|
76
91
|
}
|
package/README.md
CHANGED
|
@@ -12,6 +12,7 @@ Published on npm as [`@drunkcoding/agents-and-skills`](https://www.npmjs.com/pac
|
|
|
12
12
|
| [`html-effectiveness`](plugins/html-effectiveness) | Conversational agent that generates self-contained interactive HTML reports from 20 templates. |
|
|
13
13
|
| [`team-superpower`](plugins/team-superpower) | Shape-adaptive engineering team running the Superpowers skill chain — up to 8 roles (designer, planner, software-architect, security-engineer, backend-developer, frontend-developer, qa-engineer, reviewer); spawns 7 or 8 depending on stack (`full-stack` / `be-only` / `fe-only`) declared in `CLAUDE.md`. Test/build commands, contract publish + sync, security checklist, and CI gate before merge are all driven by the project's `CLAUDE.md` `team-superpower` block. |
|
|
14
14
|
| [`plugin-validator`](plugins/plugin-validator) | Orchestrated validator that checks every plugin's skills, agents, commands, and hooks for spec compliance — runs in parallel and proposes batched fixes. |
|
|
15
|
+
| [`auto-power`](plugins/auto-power) | Single-command hands-off pipeline that wraps `obra/superpowers`. Auto-answers safe clarifying questions during spec, then runs plan → arch+sec → impl → verify → review → ff-merge with no further touchpoints. Checkpointed and resumable. Escalates on substantive failures. |
|
|
15
16
|
|
|
16
17
|
## Install
|
|
17
18
|
|
package/package.json
CHANGED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "auto-power",
|
|
3
|
+
"displayName": "Auto Power",
|
|
4
|
+
"version": "0.0.18",
|
|
5
|
+
"description": "Single-command, hands-off pipeline that wraps obra/superpowers: auto-answers safe clarifying questions during spec, then runs plan → arch+sec → impl → verify → review → ff-merge with no further touchpoints. Checkpointed and resumable; escalates only on substantive failures (security, architecture, repeated QA fail, semantic conflict).",
|
|
6
|
+
"author": {
|
|
7
|
+
"name": "Steven Hoang"
|
|
8
|
+
},
|
|
9
|
+
"keywords": [
|
|
10
|
+
"superpowers",
|
|
11
|
+
"automation",
|
|
12
|
+
"pipeline",
|
|
13
|
+
"tdd",
|
|
14
|
+
"auto-merge",
|
|
15
|
+
"checkpoint"
|
|
16
|
+
]
|
|
17
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
# auto-power
|
|
2
|
+
|
|
3
|
+
Single-command, hands-off pipeline that wraps [`obra/superpowers`](https://github.com/obra/superpowers). Auto-answers safe clarifying questions during the spec phase, then runs plan → arch+sec → impl → verify → review → ff-merge with no further owner touchpoints. Checkpointed and resumable. Escalates only on substantive failures.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
After installing this marketplace:
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
/plugin install auto-power@drunkcoding
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Commands
|
|
14
|
+
|
|
15
|
+
| Command | Purpose |
|
|
16
|
+
|---|---|
|
|
17
|
+
| `/auto-power <idea>` | Start a fresh pipeline for `<idea>` |
|
|
18
|
+
| `/auto-power-resume <slug>` | Resume an interrupted or blocked pipeline |
|
|
19
|
+
|
|
20
|
+
## Lifecycle
|
|
21
|
+
|
|
22
|
+
1. **Brainstorming** — `superpowers:brainstorming` runs. Clarifying questions that match a deterministic whitelist (test framework, lint command, naming convention, etc.) are auto-answered from repo signals. Unsafe or ambiguous questions surface to you.
|
|
23
|
+
2. **Spec approval** — once the spec doc is written and self-reviewed, you are asked to approve. **This is the only owner touchpoint by design.**
|
|
24
|
+
3. **Plan** — `superpowers:writing-plans` produces the implementation plan.
|
|
25
|
+
4. **Arch+Sec self-review** — inline checklist; any ❌ escalates immediately.
|
|
26
|
+
5. **Worktree** — if you ran `/auto-power` from inside an existing worktree, that worktree is reused (the pipeline does not remove it on finish). If you ran from the main repo, a new worktree is created at `../<repo>-<slug>/`.
|
|
27
|
+
6. **Implementation** — `superpowers:subagent-driven-development` (preferred) or `executing-plans`. Mid-impl touchpoints ("continue?", "commit?", "run tests?") are auto-approved. Destructive git operations are never auto-approved — they escalate.
|
|
28
|
+
7. **Verify** — `superpowers:verification-before-completion`.
|
|
29
|
+
8. **Review** — `superpowers:requesting-code-review` self-review pass.
|
|
30
|
+
9. **Finish** — CI gate (polled up to `--ci-wait`), then `git merge --ff-only` to `main`, push, branch delete. If we created the worktree, it is removed.
|
|
31
|
+
|
|
32
|
+
## Artifacts
|
|
33
|
+
|
|
34
|
+
The pipeline writes everything next to your existing superpowers artifacts:
|
|
35
|
+
|
|
36
|
+
- `docs/superpowers/specs/<date>-<slug>-design.md` — spec
|
|
37
|
+
- `docs/superpowers/specs/<date>-<slug>-plan.md` — plan
|
|
38
|
+
- `docs/superpowers/specs/<slug>-auto-decisions.md` — append-only log of every auto-answer and auto-approve, with category and signal source
|
|
39
|
+
- `docs/superpowers/specs/<slug>-checkpoint.json` — pipeline state
|
|
40
|
+
- `docs/superpowers/specs/<slug>-ESCALATION.md` — only written when the pipeline halts on a substantive failure
|
|
41
|
+
|
|
42
|
+
## Escalation handling
|
|
43
|
+
|
|
44
|
+
If the runtime halts, it writes an escalation file with: phase, signal, retry history, last error logs, suggested fixes, and the exact resume command. Substantive failures (security ❌, architecture ❌, semantic merge conflict, repeated QA failure, persistent CI red, non-ff merge required, missing test suite, missing plan-referenced file) never auto-retry — you decide.
|
|
45
|
+
|
|
46
|
+
After fixing the underlying issue:
|
|
47
|
+
|
|
48
|
+
```
|
|
49
|
+
/auto-power-resume <slug> --cleared
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
To abandon the work:
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
rm docs/superpowers/specs/<slug>-checkpoint.json
|
|
56
|
+
git worktree remove <worktree-path> # only if the pipeline created it
|
|
57
|
+
git branch -D <branch> # only after confirming no work to keep
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
## Flags reference
|
|
61
|
+
|
|
62
|
+
| Flag | Default | Notes |
|
|
63
|
+
|---|---|---|
|
|
64
|
+
| `--branch=<name>` | `auto-power/<slug>` | Override branch name |
|
|
65
|
+
| `--no-worktree` | off | In-place work on current branch |
|
|
66
|
+
| `--worktree` | off | Force new worktree even if already in one |
|
|
67
|
+
| `--max-retries=N` | 3 | Override transient-failure retry budget |
|
|
68
|
+
| `--ci-wait=MIN` | 30 | Override CI polling timeout |
|
|
69
|
+
|
|
70
|
+
## What it does NOT do (v1)
|
|
71
|
+
|
|
72
|
+
- No multi-agent fan-out (single Claude session, serial). Use `team-superpower` if you want parallel teammates.
|
|
73
|
+
- No PR mode — finish is always `git merge --ff-only` to `main`.
|
|
74
|
+
- No cross-repo orchestration.
|
|
75
|
+
- No web UI or TUI; status lives in stdout and the checkpoint file.
|
|
76
|
+
|
|
77
|
+
## Relationship to other plugins
|
|
78
|
+
|
|
79
|
+
- `obra/superpowers` — the skill chain `auto-power` drives. Not forked or duplicated.
|
|
80
|
+
- `team-superpower` — sibling plugin for multi-agent parallel runs with explicit owner touchpoints. Pick this when you want oversight per phase, not hands-off automation.
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
# Auto-Power Checkpoint Schema
|
|
2
|
+
|
|
3
|
+
Location: `docs/superpowers/specs/<slug>-checkpoint.json` (next to the spec/plan files for the same `<slug>`).
|
|
4
|
+
|
|
5
|
+
Format: plain JSON. Users may inspect or edit by hand.
|
|
6
|
+
|
|
7
|
+
## Schema
|
|
8
|
+
|
|
9
|
+
```json
|
|
10
|
+
{
|
|
11
|
+
"slug": "add-foo-widget",
|
|
12
|
+
"started_at": "2026-05-14T08:30:00Z",
|
|
13
|
+
"updated_at": "2026-05-14T09:12:00Z",
|
|
14
|
+
"status": "running | blocked | done",
|
|
15
|
+
"phase": "spec | plan | arch_sec | worktree | impl | verify | review | finish",
|
|
16
|
+
"branch": "auto-power/add-foo-widget",
|
|
17
|
+
"worktree_path": "/abs/path/to/worktree-or-null",
|
|
18
|
+
"worktree_created_by_us": true,
|
|
19
|
+
"spec_path": "docs/superpowers/specs/2026-05-14-add-foo-widget-design.md",
|
|
20
|
+
"plan_path": "docs/superpowers/specs/2026-05-14-add-foo-widget-plan.md",
|
|
21
|
+
"auto_decisions_path": "docs/superpowers/specs/2026-05-14-add-foo-widget-auto-decisions.md",
|
|
22
|
+
"current_task_id": "task-3",
|
|
23
|
+
"tasks_done": ["task-1", "task-2"],
|
|
24
|
+
"retries": { "impl": 1, "verify": 0, "ci": 0 },
|
|
25
|
+
"last_error": null,
|
|
26
|
+
"finish_mode": "ff-merge",
|
|
27
|
+
"limits": { "max_retries": 3, "ci_wait_minutes": 30, "phase_stall_minutes": 30 }
|
|
28
|
+
}
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## Field reference
|
|
32
|
+
|
|
33
|
+
| Field | Type | Required | Notes |
|
|
34
|
+
|---|---|---|---|
|
|
35
|
+
| `slug` | string | yes | Kebab-case identifier; appears in every artifact filename |
|
|
36
|
+
| `started_at` | ISO-8601 UTC | yes | Set once at pipeline start; never overwritten |
|
|
37
|
+
| `updated_at` | ISO-8601 UTC | yes | Bumped on every write |
|
|
38
|
+
| `status` | enum | yes | `running` during pipeline, `blocked` after escalation, `done` after successful merge |
|
|
39
|
+
| `phase` | enum | yes | One of: `spec`, `plan`, `arch_sec`, `worktree`, `impl`, `verify`, `review`, `finish` |
|
|
40
|
+
| `branch` | string | yes | Git branch holding the work |
|
|
41
|
+
| `worktree_path` | string \| null | yes | Absolute worktree path; `null` when running in main repo |
|
|
42
|
+
| `worktree_created_by_us` | bool | yes | `true` only when the pipeline itself created the worktree. Drives cleanup behavior on finish |
|
|
43
|
+
| `spec_path` | string | yes | Relative path to the approved design doc |
|
|
44
|
+
| `plan_path` | string | yes | Set after plan phase completes |
|
|
45
|
+
| `auto_decisions_path` | string | yes | Append-only log of auto-answers and auto-approves |
|
|
46
|
+
| `current_task_id` | string \| null | yes | Plan task currently in flight; null outside `impl` phase |
|
|
47
|
+
| `tasks_done` | string[] | yes | Completed plan task IDs |
|
|
48
|
+
| `retries` | object | yes | Keys: any of `plan`, `arch_sec`, `impl`, `verify`, `review`, `finish`, `ci`. Counters reset on phase advance |
|
|
49
|
+
| `last_error` | object \| null | yes | `{ phase, signal, message, at }` populated on retry or escalation |
|
|
50
|
+
| `finish_mode` | enum | yes | Always `ff-merge` in v1 |
|
|
51
|
+
| `limits` | object | yes | `max_retries` (default 3), `ci_wait_minutes` (default 30), `phase_stall_minutes` (default 30) |
|
|
52
|
+
|
|
53
|
+
## Write triggers
|
|
54
|
+
|
|
55
|
+
The runtime writes the checkpoint:
|
|
56
|
+
|
|
57
|
+
1. At pipeline start (initial creation).
|
|
58
|
+
2. Before every phase transition.
|
|
59
|
+
3. After every retry counter increment.
|
|
60
|
+
4. After every task completion (`tasks_done` append + `current_task_id` advance).
|
|
61
|
+
5. Before any escalation file write.
|
|
62
|
+
6. On successful merge (`status: done`).
|
|
63
|
+
|
|
64
|
+
## Hard rules
|
|
65
|
+
|
|
66
|
+
- Never overwrite the checkpoint without bumping `updated_at`.
|
|
67
|
+
- Never resume into a branch different from the one recorded.
|
|
68
|
+
- Never advance `phase` without first writing the checkpoint.
|
|
69
|
+
- Never remove a worktree where `worktree_created_by_us: false`.
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# Auto-Power Escalation Template
|
|
2
|
+
|
|
3
|
+
The runtime writes one of these files to `docs/superpowers/specs/<slug>-ESCALATION.md` whenever a substantive failure halts the pipeline. Use the structure below verbatim — replace bracketed placeholders.
|
|
4
|
+
|
|
5
|
+
```markdown
|
|
6
|
+
# Escalation: <slug>
|
|
7
|
+
|
|
8
|
+
**Halted at:** <ISO-8601 UTC>
|
|
9
|
+
**Phase:** <plan | arch_sec | worktree | impl | verify | review | finish>
|
|
10
|
+
**Signal:** <SEC_BLOCKED | ARCH_BLOCKED | QA_FAIL_EXHAUSTED | SEMANTIC_CONFLICT | CI_RED_PERSISTENT | FINISH_BLOCKED | TEST_SUITE_MISSING | PLAN_FILE_MISSING | OTHER:<short>>
|
|
11
|
+
**Branch:** <branch>
|
|
12
|
+
**Worktree:** <path or "in-repo">
|
|
13
|
+
**Checkpoint:** docs/superpowers/specs/<slug>-checkpoint.json
|
|
14
|
+
|
|
15
|
+
## What failed
|
|
16
|
+
|
|
17
|
+
<One paragraph: the immediate symptom and the gate that caught it.>
|
|
18
|
+
|
|
19
|
+
## Retry history
|
|
20
|
+
|
|
21
|
+
| # | Attempt | Outcome |
|
|
22
|
+
|---|---|---|
|
|
23
|
+
| 1 | <action taken> | <result> |
|
|
24
|
+
| 2 | <action taken> | <result> |
|
|
25
|
+
| 3 | <action taken> | <result> |
|
|
26
|
+
|
|
27
|
+
## Last error logs
|
|
28
|
+
|
|
29
|
+
```
|
|
30
|
+
<verbatim last error block; truncate at 2 KB if longer>
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## Suggested fixes
|
|
34
|
+
|
|
35
|
+
- <fix 1: concrete, file-level>
|
|
36
|
+
- <fix 2>
|
|
37
|
+
- <fix 3>
|
|
38
|
+
|
|
39
|
+
## Resume command
|
|
40
|
+
|
|
41
|
+
After applying a fix:
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
/auto-power-resume <slug> --cleared
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
If you decide to abandon the work:
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
# Delete the checkpoint and (if we created it) the worktree:
|
|
51
|
+
rm docs/superpowers/specs/<slug>-checkpoint.json
|
|
52
|
+
git worktree remove <worktree-path> # only if worktree_created_by_us=true
|
|
53
|
+
git branch -D <branch> # only after confirming no work to keep
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## Signal reference
|
|
57
|
+
|
|
58
|
+
| Signal | Origin | Auto-retry? |
|
|
59
|
+
|---|---|---|
|
|
60
|
+
| `SEC_BLOCKED` | security self-review ❌ | No — escalate immediately |
|
|
61
|
+
| `ARCH_BLOCKED` | architecture self-review ❌ | No — escalate immediately |
|
|
62
|
+
| `QA_FAIL_EXHAUSTED` | `verification-before-completion` red after `max_retries` | No — escalate after retries used |
|
|
63
|
+
| `SEMANTIC_CONFLICT` | merge conflict touching overlapping logic | No |
|
|
64
|
+
| `CI_RED_PERSISTENT` | same CI failure signature after `max_retries` | No |
|
|
65
|
+
| `FINISH_BLOCKED` | non-ff, push rejected, dirty worktree | No |
|
|
66
|
+
| `TEST_SUITE_MISSING` | no test runner detected, can't verify | No |
|
|
67
|
+
| `PLAN_FILE_MISSING` | plan task references a non-existent file | No |
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Resume an auto-power pipeline from its checkpoint. Re-enters the recorded phase with retry counters preserved. Use --cleared after fixing the issue described in an ESCALATION.md file.
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# /auto-power-resume
|
|
6
|
+
|
|
7
|
+
**Usage:** `/auto-power-resume <slug-or-checkpoint-path> [--cleared]`
|
|
8
|
+
|
|
9
|
+
**Arguments:**
|
|
10
|
+
|
|
11
|
+
| Flag | Default | Effect |
|
|
12
|
+
|---|---|---|
|
|
13
|
+
| `<slug-or-checkpoint-path>` (required, positional) | — | Either the slug (resolves to `docs/superpowers/specs/<slug>-checkpoint.json`) or an explicit path |
|
|
14
|
+
| `--cleared` | off | Required when the checkpoint `status` is `blocked`. Asserts you have fixed the issue described in the ESCALATION file. Clears `last_error` and resumes from the recorded phase |
|
|
15
|
+
|
|
16
|
+
## Procedure
|
|
17
|
+
|
|
18
|
+
1. Resolve the checkpoint path from the positional argument.
|
|
19
|
+
2. Invoke the `auto-power-runtime` skill with intent `resume`. The skill executes §8 of its own rules:
|
|
20
|
+
- Verify branch and (if recorded) worktree path exist.
|
|
21
|
+
- Reject if HEAD has uncommitted churn the pipeline did not write.
|
|
22
|
+
- `status: done` ⇒ no-op, print summary, exit.
|
|
23
|
+
- `status: blocked` without `--cleared` ⇒ re-print escalation summary, exit.
|
|
24
|
+
- `status: blocked` with `--cleared` ⇒ clear `last_error`, set `status: running`, re-enter the recorded `phase`.
|
|
25
|
+
- `status: running` ⇒ re-enter the recorded `phase`.
|
|
26
|
+
3. Continue the pipeline from that phase until the next escalation or successful finish.
|
|
27
|
+
|
|
28
|
+
## Hard guarantees
|
|
29
|
+
|
|
30
|
+
- The resume never changes the recorded `branch`.
|
|
31
|
+
- Retry counters survive resume — if `retries.impl` is `2` on a 3-retry budget, only one retry remains.
|
|
32
|
+
- The auto-decisions log is appended to, never rewritten.
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Run the obra/superpowers chain end-to-end as a single hands-off pipeline. Auto-answers safe clarifying questions during spec, then runs plan → arch+sec → impl → verify → review → ff-merge with no further touchpoints. The only owner touchpoint is spec approval. Checkpointed and resumable.
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# /auto-power
|
|
6
|
+
|
|
7
|
+
**Usage:** `/auto-power <idea> [--branch=<name>] [--no-worktree | --worktree] [--max-retries=N] [--ci-wait=MIN]`
|
|
8
|
+
|
|
9
|
+
**Arguments:**
|
|
10
|
+
|
|
11
|
+
| Flag | Default | Effect |
|
|
12
|
+
|---|---|---|
|
|
13
|
+
| `<idea>` (required, positional) | — | One-line description of the feature to build. Same input you would give to `superpowers:brainstorming`. |
|
|
14
|
+
| `--branch=<name>` | `auto-power/<slug>` | Override the branch name |
|
|
15
|
+
| `--no-worktree` | off | Force in-place work on the current branch (skip worktree creation even if running from the main repo) |
|
|
16
|
+
| `--worktree` | off | Force creation of a new worktree even if already inside one |
|
|
17
|
+
| `--max-retries=N` | 3 | Override `limits.max_retries` |
|
|
18
|
+
| `--ci-wait=MIN` | 30 | Override `limits.ci_wait_minutes` |
|
|
19
|
+
|
|
20
|
+
## Procedure
|
|
21
|
+
|
|
22
|
+
1. Parse the arguments above. Slugify `<idea>` (kebab-case, ≤ 40 chars) to derive `<slug>`.
|
|
23
|
+
2. Invoke the `auto-power-runtime` skill. Pass: `slug`, `idea`, parsed flags, the absolute path to `plugins/auto-power/assets/CHECKPOINT_SCHEMA.md`, and the path to `plugins/auto-power/assets/ESCALATION_TEMPLATE.md`.
|
|
24
|
+
3. Follow the runtime skill exactly. Do not improvise touchpoint decisions — every prompt is either covered by the skill's rules or surfaces an escalation.
|
|
25
|
+
|
|
26
|
+
## Owner touchpoints
|
|
27
|
+
|
|
28
|
+
Exactly one by design: spec approval at the end of phase 1. Every other interactive prompt is auto-resolved per the runtime skill's whitelist (`§1`) or auto-approve table (`§5`), or escalates via `§6`.
|
|
29
|
+
|
|
30
|
+
## Artifacts produced
|
|
31
|
+
|
|
32
|
+
- `docs/superpowers/specs/<date>-<slug>-design.md`
|
|
33
|
+
- `docs/superpowers/specs/<date>-<slug>-plan.md`
|
|
34
|
+
- `docs/superpowers/specs/<slug>-auto-decisions.md`
|
|
35
|
+
- `docs/superpowers/specs/<slug>-checkpoint.json`
|
|
36
|
+
- On failure: `docs/superpowers/specs/<slug>-ESCALATION.md`
|
|
37
|
+
|
|
38
|
+
## On escalation
|
|
39
|
+
|
|
40
|
+
If the runtime writes an escalation file, fix the underlying issue and resume:
|
|
41
|
+
|
|
42
|
+
```
|
|
43
|
+
/auto-power-resume <slug> --cleared
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
See `plugins/auto-power/README.md` for the full lifecycle and escalation handling.
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: auto-power-runtime
|
|
3
|
+
description: Use when running /auto-power or /auto-power-resume. Drives the obra/superpowers skill chain as a single-session, hands-off pipeline with auto-answered clarifying questions, auto-approved mid-impl touchpoints, checkpoint-based resume, retry+escalation policy, and ff-merge finish.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# auto-power-runtime
|
|
7
|
+
|
|
8
|
+
You are the driver for the `/auto-power` and `/auto-power-resume` commands. You invoke `obra/superpowers` skills in order and apply the policies in this file at each touchpoint. You never improvise — every decision is either a deterministic rule below or an explicit escalation to the user.
|
|
9
|
+
|
|
10
|
+
**Reference assets** (read once at start):
|
|
11
|
+
- `assets/CHECKPOINT_SCHEMA.md` — checkpoint format and write triggers
|
|
12
|
+
- `assets/ESCALATION_TEMPLATE.md` — escalation file structure and signal reference
|
|
13
|
+
|
|
14
|
+
## Pipeline
|
|
15
|
+
|
|
16
|
+
Phases run serially. Write the checkpoint before advancing.
|
|
17
|
+
|
|
18
|
+
1. `spec` — invoke `superpowers:brainstorming` with the auto-answer interceptor (see §1).
|
|
19
|
+
2. `plan` — invoke `superpowers:writing-plans`.
|
|
20
|
+
3. `arch_sec` — run the inline architecture + security self-review checklist (see §3).
|
|
21
|
+
4. `worktree` — detect or create per §4.
|
|
22
|
+
5. `impl` — invoke `superpowers:subagent-driven-development` (preferred) or `superpowers:executing-plans`; intercept touchpoints per §5.
|
|
23
|
+
6. `verify` — invoke `superpowers:verification-before-completion`.
|
|
24
|
+
7. `review` — invoke `superpowers:requesting-code-review` (self-review pass).
|
|
25
|
+
8. `finish` — invoke `superpowers:finishing-a-development-branch`; ff-merge per §7.
|
|
26
|
+
|
|
27
|
+
The **only** interactive owner touchpoint is the spec approval gate at the end of phase 1. Every other Claude-Code-side prompt is auto-resolved or escalated.
|
|
28
|
+
|
|
29
|
+
## §1. Clarifying-question auto-answer
|
|
30
|
+
|
|
31
|
+
While phase 1 runs, intercept every clarifying question the brainstorming skill asks. Classify it against the whitelist below. Auto-answer only if the question matches a category **and** the repo signal is present **and** unambiguous. Otherwise forward verbatim to the user.
|
|
32
|
+
|
|
33
|
+
### Whitelist
|
|
34
|
+
|
|
35
|
+
| Category | Signal source |
|
|
36
|
+
|---|---|
|
|
37
|
+
| Test framework | `package.json` devDependencies (`jest`, `vitest`, `mocha`, `node:test`); `pyproject.toml`; existing test files under `tests/`, `__tests__/`, `*_test.py` |
|
|
38
|
+
| Build / lint / format command | `CLAUDE.md` `team-superpower` block; `package.json` `scripts`; `Makefile`; `pyproject.toml` `[tool.*]` |
|
|
39
|
+
| File naming convention | Nearest sibling files in target dir (kebab vs snake vs camel by majority vote) |
|
|
40
|
+
| Code style | `.prettierrc*`, `ruff.toml`, `pyproject.toml [tool.ruff]`, `.editorconfig`, `eslint.config.*` |
|
|
41
|
+
| Target directory | Module structure of the nearest comparable feature |
|
|
42
|
+
| Language / runtime version | `package.json` `engines`, `.tool-versions`, `.nvmrc`, `pyproject.toml` `requires-python` |
|
|
43
|
+
| Plugin location convention | `plugins/<name>/` (per repo CLAUDE.md) |
|
|
44
|
+
| Visual companion offer | Always decline (run is non-interactive after spec approval) |
|
|
45
|
+
|
|
46
|
+
### Always raise
|
|
47
|
+
|
|
48
|
+
- Purpose / success criteria when the idea is ambiguous.
|
|
49
|
+
- Trade-off choices with no clear repo signal.
|
|
50
|
+
- Multi-subsystem scope decomposition prompts.
|
|
51
|
+
- The "propose 2-3 approaches" prompt — user picks.
|
|
52
|
+
- Anything not on the whitelist.
|
|
53
|
+
|
|
54
|
+
### Audit log
|
|
55
|
+
|
|
56
|
+
For every auto-answered question, append a row to `docs/superpowers/specs/<slug>-auto-decisions.md`:
|
|
57
|
+
|
|
58
|
+
```markdown
|
|
59
|
+
| <UTC time> | spec | <question verbatim> | <category> | <signal source> | <answer> |
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
Create the file with this header on first write:
|
|
63
|
+
|
|
64
|
+
```markdown
|
|
65
|
+
# Auto-power auto-decisions — <slug>
|
|
66
|
+
|
|
67
|
+
| When (UTC) | Phase | Question | Category | Signal | Answer |
|
|
68
|
+
|---|---|---|---|---|---|
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
### Spec approval gate
|
|
72
|
+
|
|
73
|
+
After brainstorming finishes and the spec doc is written + self-reviewed, surface the standard message:
|
|
74
|
+
|
|
75
|
+
> "Spec written and committed to `<path>`. Please review it and let me know if you want to make any changes before I continue with the rest of the pipeline."
|
|
76
|
+
|
|
77
|
+
Wait for the user's reply. Revise on request, otherwise advance to phase 2. **This is the only owner touchpoint by design.**
|
|
78
|
+
|
|
79
|
+
## §2. Checkpoint
|
|
80
|
+
|
|
81
|
+
Create the checkpoint at pipeline start. See `assets/CHECKPOINT_SCHEMA.md` for the schema and write triggers. Hard rules:
|
|
82
|
+
|
|
83
|
+
- Always bump `updated_at` on every write.
|
|
84
|
+
- Never advance `phase` without writing first.
|
|
85
|
+
- On every retry, increment `retries.<phase>` and write.
|
|
86
|
+
- On phase advance, reset that phase's retry counter to 0.
|
|
87
|
+
- On successful merge, set `status: done` and write a final time.
|
|
88
|
+
|
|
89
|
+
## §3. Arch + sec self-review (phase 3)
|
|
90
|
+
|
|
91
|
+
Run this inline against the plan from phase 2. Treat each as ✅ / ⚠️ / ❌. Any ❌ ⇒ escalate with signal `ARCH_BLOCKED` or `SEC_BLOCKED`.
|
|
92
|
+
|
|
93
|
+
### Architecture checklist
|
|
94
|
+
|
|
95
|
+
- Single-responsibility per file? Any file expected > ~300 lines?
|
|
96
|
+
- Module boundaries match plan task scope?
|
|
97
|
+
- New code touches files only inside scopes declared by plan tasks?
|
|
98
|
+
- Dependencies on external services declared?
|
|
99
|
+
- Failure modes documented (timeouts, partial writes, retries)?
|
|
100
|
+
- Backward compatibility considered if modifying public interfaces?
|
|
101
|
+
|
|
102
|
+
### Security checklist (project-aware — skip items that don't apply)
|
|
103
|
+
|
|
104
|
+
- Input validation on user-supplied data?
|
|
105
|
+
- No secrets / tokens committed?
|
|
106
|
+
- SQL strings parameterized (if any SQL)?
|
|
107
|
+
- HTML output escaped (if rendering HTML)?
|
|
108
|
+
- AuthN/AuthZ enforced on new endpoints (if any endpoints)?
|
|
109
|
+
- File I/O paths sanitized (no `../` traversal)?
|
|
110
|
+
- Shell exec uses argv form, not string concat (if any shell-out)?
|
|
111
|
+
|
|
112
|
+
Append the result table to the plan file under a `## Auto-power arch+sec review` heading.
|
|
113
|
+
|
|
114
|
+
## §4. Worktree detection (phase 4)
|
|
115
|
+
|
|
116
|
+
```
|
|
117
|
+
top=$(git rev-parse --show-toplevel)
|
|
118
|
+
main_top=$(git worktree list --porcelain | awk '/^worktree /{print $2; exit}')
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
- `$top == $main_top` ⇒ running in main repo. Invoke `superpowers:using-git-worktrees` to create `../<repo>-<slug>/` on branch `auto-power/<slug>`. Set `worktree_path` and `worktree_created_by_us: true`.
|
|
122
|
+
- `$top != $main_top` ⇒ already in a worktree. Skip creation. Use the current branch. Set `worktree_path = $top` and `worktree_created_by_us: false`.
|
|
123
|
+
- Flag overrides: `--no-worktree` forces in-place work on the current branch; `--worktree` forces creation even if already inside one.
|
|
124
|
+
|
|
125
|
+
## §5. Mid-impl auto-approve (phase 5)
|
|
126
|
+
|
|
127
|
+
When `superpowers:subagent-driven-development` or `superpowers:executing-plans` surfaces a touchpoint, decide per the table below. Log every auto-decision to the auto-decisions file:
|
|
128
|
+
|
|
129
|
+
```markdown
|
|
130
|
+
| <UTC time> | impl | <touchpoint> | auto-approve | <reason> |
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
| Touchpoint | Auto-decision |
|
|
134
|
+
|---|---|
|
|
135
|
+
| "Continue to next task?" | yes |
|
|
136
|
+
| "Code review checkpoint?" | run self-review pass; treat findings per §6 |
|
|
137
|
+
| "Run tests now?" | yes |
|
|
138
|
+
| "Commit this work?" | yes (per-task commit) |
|
|
139
|
+
| Force push | escalate (`FINISH_BLOCKED` / refuse) |
|
|
140
|
+
| Branch delete on dirty tree | escalate |
|
|
141
|
+
| `git reset --hard` | escalate |
|
|
142
|
+
| Any history rewrite (`rebase -i`, `commit --amend` to pushed history) | escalate |
|
|
143
|
+
| File deletion outside declared task scope | escalate |
|
|
144
|
+
|
|
145
|
+
## §6. Retry + escalation policy
|
|
146
|
+
|
|
147
|
+
### Transient (auto-retry, up to `limits.max_retries`, default 3)
|
|
148
|
+
|
|
149
|
+
- Test failures with a clear stack trace ⇒ apply fix indicated by the error, re-run.
|
|
150
|
+
- Lint / format errors ⇒ auto-fix, re-run.
|
|
151
|
+
- CI flake (timeout, 5xx) ⇒ re-trigger.
|
|
152
|
+
- Simple merge conflicts (whitespace, import order, non-semantic) ⇒ auto-resolve, re-run.
|
|
153
|
+
|
|
154
|
+
Increment `retries.<phase>` on every retry. Write the checkpoint.
|
|
155
|
+
|
|
156
|
+
### Substantive (escalate, no retry)
|
|
157
|
+
|
|
158
|
+
| Trigger | Signal |
|
|
159
|
+
|---|---|
|
|
160
|
+
| Security self-review ❌ | `SEC_BLOCKED` |
|
|
161
|
+
| Architecture self-review ❌ | `ARCH_BLOCKED` |
|
|
162
|
+
| QA fail still red after `max_retries` | `QA_FAIL_EXHAUSTED` |
|
|
163
|
+
| Semantic merge conflict | `SEMANTIC_CONFLICT` |
|
|
164
|
+
| CI red after `max_retries` same signature | `CI_RED_PERSISTENT` |
|
|
165
|
+
| Non-ff merge required | `FINISH_BLOCKED` |
|
|
166
|
+
| Push rejected | `FINISH_BLOCKED` |
|
|
167
|
+
| Dirty worktree at finish | `FINISH_BLOCKED` |
|
|
168
|
+
| Test suite missing | `TEST_SUITE_MISSING` |
|
|
169
|
+
| Plan task references missing file | `PLAN_FILE_MISSING` |
|
|
170
|
+
|
|
171
|
+
### Escalation procedure
|
|
172
|
+
|
|
173
|
+
1. Set `status: blocked`, `last_error`, and write checkpoint.
|
|
174
|
+
2. Render `assets/ESCALATION_TEMPLATE.md` into `docs/superpowers/specs/<slug>-ESCALATION.md` with the fields filled in.
|
|
175
|
+
3. Print one line to stdout: `BLOCKED <signal>: see docs/superpowers/specs/<slug>-ESCALATION.md`.
|
|
176
|
+
4. Exit. The pipeline does not continue without `/auto-power-resume <slug> --cleared`.
|
|
177
|
+
|
|
178
|
+
## §7. Finish (phase 8)
|
|
179
|
+
|
|
180
|
+
Pre-merge: poll CI for the branch up to `limits.ci_wait_minutes` (default 30) using `gh pr checks <branch>` or `gh run list --branch <branch> --limit 1 --json status,conclusion`. Green ⇒ merge. Red ⇒ retry policy.
|
|
181
|
+
|
|
182
|
+
Merge sequence:
|
|
183
|
+
|
|
184
|
+
```bash
|
|
185
|
+
git checkout main
|
|
186
|
+
git pull --ff-only origin main
|
|
187
|
+
git merge --ff-only <branch>
|
|
188
|
+
git push origin main
|
|
189
|
+
git branch -d <branch>
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
If `worktree_created_by_us == true`:
|
|
193
|
+
|
|
194
|
+
```bash
|
|
195
|
+
git worktree remove <worktree-path>
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
Never remove a worktree where `worktree_created_by_us == false`.
|
|
199
|
+
|
|
200
|
+
Any failure in the above ⇒ `FINISH_BLOCKED`.
|
|
201
|
+
|
|
202
|
+
On success: set `status: done`, write checkpoint a final time, print:
|
|
203
|
+
|
|
204
|
+
```
|
|
205
|
+
DONE <slug>: merged to main, branch <branch> deleted[, worktree <path> removed]
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
## §8. Resume semantics
|
|
209
|
+
|
|
210
|
+
When invoked via `/auto-power-resume`:
|
|
211
|
+
|
|
212
|
+
1. Load `docs/superpowers/specs/<slug>-checkpoint.json` (or the explicit path argument).
|
|
213
|
+
2. Verify the recorded `branch` exists and (if `worktree_path` set) the path exists.
|
|
214
|
+
3. Reject if HEAD has uncommitted churn outside files the pipeline itself wrote.
|
|
215
|
+
4. `status: done` ⇒ no-op, print summary, exit.
|
|
216
|
+
5. `status: blocked` and `--cleared` flag absent ⇒ re-print the escalation summary, exit.
|
|
217
|
+
6. `status: blocked` and `--cleared` flag present ⇒ clear `last_error`, set `status: running`, re-enter the recorded `phase` with retry counters preserved.
|
|
218
|
+
7. `status: running` (e.g. session was killed) ⇒ re-enter the recorded `phase` with retry counters preserved.
|
|
219
|
+
|
|
220
|
+
Never resume into a different branch than the one recorded in the checkpoint.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "html-effectiveness",
|
|
3
3
|
"displayName": "HTML Effectiveness Reports",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.18",
|
|
5
5
|
"description": "Generate self-contained interactive HTML reports from 20 upstream templates via a conversational agent.",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Steven Hoang"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "plugin-validator",
|
|
3
3
|
"displayName": "Plugin Validator",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.18",
|
|
5
5
|
"description": "Orchestrated validator for Claude Code plugins — validates skills, agents, commands, and hooks across every plugin under plugins/**.",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Steven Hoang"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "team-superpower",
|
|
3
3
|
"displayName": "Team Superpower",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.18",
|
|
5
5
|
"description": "Shape-adaptive coordination layer that runs the obra/superpowers skill chain across a Claude Code agent team — one /team-feature command takes an idea through design, plan, pre-impl architecture+security gate, BE/FE implementation, QA gate, code review, CI gate, and finish with at most 3 owner touchpoints. Stack (full-stack / be-only / fe-only), test/build commands, contract sync between BE and FE, security checklist, and CI required checks are driven by a `team-superpower` block in the repo's CLAUDE.md.",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Steven Hoang"
|