@drunkcoding/agents-and-skills 0.0.25 → 0.0.27
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 +14 -33
- package/README.md +1 -0
- package/package.json +1 -1
- package/plugins/html-effectiveness/.claude-plugin/plugin.json +1 -1
- package/plugins/plugin-validator/.claude-plugin/plugin.json +1 -1
- package/plugins/team-share/.claude-plugin/plugin.json +17 -0
- package/plugins/team-share/README.md +30 -0
- package/plugins/team-share/agents/team-share.md +206 -0
- package/plugins/team-share/commands/team-share.md +4 -0
- package/plugins/tech-graph/.claude-plugin/plugin.json +1 -1
- package/plugins/auto-power/.claude-plugin/plugin.json +0 -17
- package/plugins/auto-power/README.md +0 -80
- package/plugins/auto-power/assets/CHECKPOINT_SCHEMA.md +0 -69
- package/plugins/auto-power/assets/ESCALATION_TEMPLATE.md +0 -67
- package/plugins/auto-power/commands/auto-power-resume.md +0 -32
- package/plugins/auto-power/commands/auto-power.md +0 -46
- package/plugins/auto-power/skills/auto-power-runtime/SKILL.md +0 -220
- package/plugins/team-superpower/.claude-plugin/plugin.json +0 -21
- package/plugins/team-superpower/README.md +0 -294
- package/plugins/team-superpower/agents/backend-developer.md +0 -221
- package/plugins/team-superpower/agents/feature-planner.md +0 -66
- package/plugins/team-superpower/agents/frontend-developer.md +0 -242
- package/plugins/team-superpower/agents/qc-engineer.md +0 -84
- package/plugins/team-superpower/agents/security-engineer.md +0 -175
- package/plugins/team-superpower/agents/solution-architect.md +0 -80
- package/plugins/team-superpower/agents/team-leader.md +0 -100
- package/plugins/team-superpower/assets/AGENTS.md.template +0 -23
- package/plugins/team-superpower/assets/CLAUDE.md.template +0 -117
- package/plugins/team-superpower/assets/ESCALATION.md +0 -142
- package/plugins/team-superpower/assets/SESSION_README.md +0 -337
- package/plugins/team-superpower/commands/team-cleanup.md +0 -70
- package/plugins/team-superpower/commands/team-feature.md +0 -319
- package/plugins/team-superpower/hooks/hooks.json +0 -25
- package/plugins/team-superpower/hooks/task-completed.sh +0 -254
- package/plugins/team-superpower/hooks/task-created.sh +0 -174
- package/plugins/team-superpower/hooks/teammate-idle.sh +0 -142
- package/plugins/team-superpower/scripts/assess-complexity.sh +0 -194
- package/plugins/team-superpower/scripts/detect-stack.sh +0 -473
- package/plugins/team-superpower/scripts/parse-claudemd.sh +0 -194
- package/plugins/team-superpower/scripts/team-state.sh +0 -313
- package/plugins/team-superpower/scripts/wave-collision-check.sh +0 -60
|
@@ -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.27",
|
|
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.27",
|
|
30
30
|
"category": "reports",
|
|
31
31
|
"keywords": [
|
|
32
32
|
"html",
|
|
@@ -37,30 +37,11 @@
|
|
|
37
37
|
"decision-matrix"
|
|
38
38
|
]
|
|
39
39
|
},
|
|
40
|
-
{
|
|
41
|
-
"name": "team-superpower",
|
|
42
|
-
"source": "./plugins/team-superpower",
|
|
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.25",
|
|
45
|
-
"category": "workflow",
|
|
46
|
-
"keywords": [
|
|
47
|
-
"agent-teams",
|
|
48
|
-
"superpowers",
|
|
49
|
-
"tdd",
|
|
50
|
-
"orchestration",
|
|
51
|
-
"workflow",
|
|
52
|
-
"brainstorming",
|
|
53
|
-
"code-review",
|
|
54
|
-
"architecture",
|
|
55
|
-
"security",
|
|
56
|
-
"qa"
|
|
57
|
-
]
|
|
58
|
-
},
|
|
59
40
|
{
|
|
60
41
|
"name": "plugin-validator",
|
|
61
42
|
"source": "./plugins/plugin-validator",
|
|
62
43
|
"description": "Orchestrated validator for Claude Code plugins — validates skills, agents, commands, and hooks across every plugin under plugins/**.",
|
|
63
|
-
"version": "0.0.
|
|
44
|
+
"version": "0.0.27",
|
|
64
45
|
"category": "tooling",
|
|
65
46
|
"keywords": [
|
|
66
47
|
"validation",
|
|
@@ -73,18 +54,18 @@
|
|
|
73
54
|
]
|
|
74
55
|
},
|
|
75
56
|
{
|
|
76
|
-
"name": "
|
|
77
|
-
"source": "./plugins/
|
|
78
|
-
"description": "
|
|
79
|
-
"version": "0.0.
|
|
80
|
-
"category": "
|
|
57
|
+
"name": "team-share",
|
|
58
|
+
"source": "./plugins/team-share",
|
|
59
|
+
"description": "Share Claude plugin settings with a team, scaffold CLAUDE.md when needed, refresh the Understand-Anything graph, and stage the onboarding artifacts for review.",
|
|
60
|
+
"version": "0.0.27",
|
|
61
|
+
"category": "tooling",
|
|
81
62
|
"keywords": [
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
"
|
|
63
|
+
"onboarding",
|
|
64
|
+
"team",
|
|
65
|
+
"claude",
|
|
66
|
+
"settings",
|
|
67
|
+
"understand-anything",
|
|
68
|
+
"git-lfs"
|
|
88
69
|
]
|
|
89
70
|
}
|
|
90
71
|
]
|
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
|
+
| [`team-share`](plugins/team-share) | Onboarding helper that shares Claude plugin settings, scaffolds `CLAUDE.md` when missing, refreshes the Understand-Anything graph, and stages the resulting repo artifacts for review. |
|
|
15
16
|
| [`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. |
|
|
16
17
|
|
|
17
18
|
## team-superpower v3
|
package/package.json
CHANGED
|
@@ -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.27",
|
|
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.27",
|
|
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"
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "team-share",
|
|
3
|
+
"displayName": "Team Share",
|
|
4
|
+
"version": "0.0.27",
|
|
5
|
+
"description": "Share Claude plugin settings with a team, scaffold CLAUDE.md when needed, refresh the Understand-Anything graph, and stage the onboarding artifacts for review.",
|
|
6
|
+
"author": {
|
|
7
|
+
"name": "Steven Hoang"
|
|
8
|
+
},
|
|
9
|
+
"keywords": [
|
|
10
|
+
"onboarding",
|
|
11
|
+
"team",
|
|
12
|
+
"claude",
|
|
13
|
+
"settings",
|
|
14
|
+
"understand-anything",
|
|
15
|
+
"git-lfs"
|
|
16
|
+
]
|
|
17
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# team-share
|
|
2
|
+
|
|
3
|
+
Share repo-level Claude Code onboarding artifacts with your team in one pass.
|
|
4
|
+
|
|
5
|
+
## What it does
|
|
6
|
+
|
|
7
|
+
The `team-share` agent prepares a repository for teammates by:
|
|
8
|
+
|
|
9
|
+
1. Writing a shareable `.claude/settings.json` from the maintainer's enabled plugins and marketplaces.
|
|
10
|
+
2. Ensuring `CLAUDE.md` exists when the project does not already have one.
|
|
11
|
+
3. Refreshing the Understand-Anything knowledge graph with auto-update enabled.
|
|
12
|
+
4. Tracking the graph with `git-lfs` and staging the resulting onboarding files for human review.
|
|
13
|
+
|
|
14
|
+
It is designed to be idempotent and intentionally stops short of committing or pushing.
|
|
15
|
+
|
|
16
|
+
## Usage
|
|
17
|
+
|
|
18
|
+
Run:
|
|
19
|
+
|
|
20
|
+
```text
|
|
21
|
+
/team-share [--force] [--language <lang>]
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Arguments are passed through to `/understand` alongside the default `--auto-update` behavior.
|
|
25
|
+
|
|
26
|
+
## Notes
|
|
27
|
+
|
|
28
|
+
- The command expects `git-lfs` and `jq` to be installed.
|
|
29
|
+
- It stages files for review but does not create commits.
|
|
30
|
+
- The knowledge graph flow depends on the `understand-anything` plugin being available to teammates.
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: team-share
|
|
3
|
+
description: Share Claude plugin settings with the team, build or refresh the Understand-Anything knowledge graph with auto-update, and git-lfs track it before staging everything for review.
|
|
4
|
+
argument-hint: "[--force] [--language <lang>] (passed through to /understand)"
|
|
5
|
+
allowed-tools: Bash, Read, Write, Edit, Glob, Grep, Skill
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# /team-share
|
|
9
|
+
|
|
10
|
+
Make this repo onboarding-ready for the team in one pass:
|
|
11
|
+
|
|
12
|
+
1. Generate a **shareable `.claude/settings.json`** (plugins + marketplaces) from the maintainer's live setup.
|
|
13
|
+
2. Build/refresh the **Understand-Anything knowledge graph** with auto-update enabled.
|
|
14
|
+
3. **git-lfs track** the graph and **stage** everything — leaving the commit to a human.
|
|
15
|
+
|
|
16
|
+
This command is **idempotent** — safe to re-run. It **never commits or pushes**; it only stages.
|
|
17
|
+
`$ARGUMENTS` (e.g. `--force`, `--language zh`) is forwarded to `/understand`.
|
|
18
|
+
|
|
19
|
+
Plugin source: Understand-Anything (Egonex fork) — <https://github.com/Egonex-AI/Understand-Anything>
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## Step 0 — Preconditions (stop on any failure, fail loud)
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
git rev-parse --is-inside-work-tree # must be a git repo
|
|
27
|
+
git rev-parse --abbrev-ref HEAD # report branch; warn if it is the default/protected branch
|
|
28
|
+
command -v git-lfs || echo "MISSING: git-lfs — install it (brew install git-lfs) before continuing"
|
|
29
|
+
command -v jq || echo "MISSING: jq — install it (brew install jq) before continuing"
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
- If not a git repo, or `git-lfs`/`jq` are missing → **report and STOP**. Do not partially apply.
|
|
33
|
+
- If on a protected branch (e.g. `develop`/`main`), warn and ask the user to switch to a feature branch first.
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
## Step 1 — Generate the shareable `.claude/settings.json` **and ensure `CLAUDE.md` exists**
|
|
38
|
+
|
|
39
|
+
Goal: teammates who clone the repo get the **same plugins + marketplaces** the maintainer uses, with **no machine-specific data leaked** — *and* a project-level `CLAUDE.md` is scaffolded if it is missing.
|
|
40
|
+
|
|
41
|
+
### 1a — Merge plugin + marketplace settings
|
|
42
|
+
|
|
43
|
+
Copy **only** `enabledPlugins` and `extraKnownMarketplaces` from the maintainer's user settings into the repo settings. Do **NOT** copy `hooks`, `permissions`, `env`, or any key holding absolute paths or local tooling (those are per-machine and may expose private paths).
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
USER_SETTINGS="$HOME/.claude/settings.json"
|
|
47
|
+
REPO_SETTINGS=".claude/settings.json"
|
|
48
|
+
|
|
49
|
+
mkdir -p .claude
|
|
50
|
+
[ -f "$REPO_SETTINGS" ] || echo '{}' > "$REPO_SETTINGS"
|
|
51
|
+
|
|
52
|
+
# Merge: repo settings win on scalar keys; the two plugin maps are unioned
|
|
53
|
+
# (user entries layered on top of any existing repo entries). Only these two
|
|
54
|
+
# keys are taken from user settings — nothing else crosses over.
|
|
55
|
+
jq -s '
|
|
56
|
+
.[0] as $repo | .[1] as $user
|
|
57
|
+
| $repo
|
|
58
|
+
+ { enabledPlugins: (($repo.enabledPlugins // {}) + ($user.enabledPlugins // {})) }
|
|
59
|
+
+ { extraKnownMarketplaces: (($repo.extraKnownMarketplaces // {}) + ($user.extraKnownMarketplaces // {})) }
|
|
60
|
+
' "$REPO_SETTINGS" "$USER_SETTINGS" > "$REPO_SETTINGS.tmp" && mv "$REPO_SETTINGS.tmp" "$REPO_SETTINGS"
|
|
61
|
+
|
|
62
|
+
jq '{enabledPlugins, extraKnownMarketplaces}' "$REPO_SETTINGS" # show the result for review
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
Notes:
|
|
66
|
+
- This shares **currently-enabled** plugins (the in-use set). It does not pull disabled-but-installed plugins.
|
|
67
|
+
- Some marketplaces may be **private** (require repo/org access). Flag any private marketplace so the user can confirm teammates can reach it.
|
|
68
|
+
- Confirm `understand-anything@understand-anything` is present in `enabledPlugins` (needed for Step 2's auto-update hook to work on teammates' machines). If absent, tell the user to install it:
|
|
69
|
+
`/plugin marketplace add Egonex-AI/Understand-Anything` then `/plugin install understand-anything`.
|
|
70
|
+
|
|
71
|
+
### 1b — Scaffold `CLAUDE.md` if missing
|
|
72
|
+
|
|
73
|
+
The `claude-code-setup` plugin (from the `claude-plugins-official` marketplace) generates a project-savvy `CLAUDE.md` when one does not yet exist. Running the install command is **idempotent** — if `CLAUDE.md` is already present it will **not** be overwritten.
|
|
74
|
+
|
|
75
|
+
```bash
|
|
76
|
+
# Only create CLAUDE.md when it does not already exist.
|
|
77
|
+
if [ -f CLAUDE.md ]; then
|
|
78
|
+
echo "✅ CLAUDE.md already exists — skipping plugin install."
|
|
79
|
+
else
|
|
80
|
+
echo "📝 CLAUDE.md not found — installing claude-code-setup plugin to scaffold it…"
|
|
81
|
+
claude plugin install claude-code-setup@claude-plugins-official
|
|
82
|
+
if [ -f CLAUDE.md ]; then
|
|
83
|
+
echo "✅ CLAUDE.md created by claude-code-setup."
|
|
84
|
+
else
|
|
85
|
+
echo "⚠️ claude-code-setup did not produce CLAUDE.md — you may need to run it manually or create the file yourself."
|
|
86
|
+
fi
|
|
87
|
+
fi
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
Notes:
|
|
91
|
+
- The plugin must already be available in the `claude-plugins-official` marketplace (it is already listed in `enabledPlugins` in the repo settings).
|
|
92
|
+
- If the team prefers a custom `CLAUDE.md` template, commit one *before* running this command so the guard `[ -f CLAUDE.md ]` skips the plugin step.
|
|
93
|
+
|
|
94
|
+
### 1c — Inject the Understand-Anything code-research section into `CLAUDE.md`
|
|
95
|
+
|
|
96
|
+
Goal: every teammate's AI assistant knows to use the Understand-Anything commands when doing code research, without duplicating the section on re-runs.
|
|
97
|
+
|
|
98
|
+
```bash
|
|
99
|
+
# Only append when the section marker is not already present (idempotent).
|
|
100
|
+
if grep -qF '## Code research with Understand-Anything' CLAUDE.md 2>/dev/null; then
|
|
101
|
+
echo "✅ Understand-Anything section already in CLAUDE.md — skipping."
|
|
102
|
+
else
|
|
103
|
+
cat >> CLAUDE.md << 'EOF'
|
|
104
|
+
|
|
105
|
+
## Code research with Understand-Anything
|
|
106
|
+
|
|
107
|
+
This project uses the [Understand-Anything](https://github.com/Egonex-AI/Understand-Anything) plugin to maintain an interactive knowledge graph of the codebase. **Always prefer these commands over raw grep/glob when researching code structure, relationships, or logic:**
|
|
108
|
+
|
|
109
|
+
| Goal | Command |
|
|
110
|
+
|------|---------|
|
|
111
|
+
| Explore the full codebase graph | `/understand` |
|
|
112
|
+
| Ask a free-form question about the code | `/understand-chat <question>` |
|
|
113
|
+
| Deep-dive into a specific file or function | `/understand-explain <path/symbol>` |
|
|
114
|
+
| See impact of your current changes before committing | `/understand-diff` |
|
|
115
|
+
| Open the interactive visual dashboard | `/understand-dashboard` |
|
|
116
|
+
| Extract business-domain knowledge (domains, flows, steps) | `/understand-domain` |
|
|
117
|
+
| Generate an onboarding guide for new teammates | `/understand-onboard` |
|
|
118
|
+
|
|
119
|
+
The knowledge graph lives in `.understand-anything/knowledge-graph.json` and is kept up-to-date automatically on every commit (auto-update is enabled). Re-run `/understand` after large refactors to force a full rebuild, or pass `--force` to rebuild from scratch.
|
|
120
|
+
EOF
|
|
121
|
+
echo "✅ Understand-Anything code-research section appended to CLAUDE.md."
|
|
122
|
+
fi
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
Notes:
|
|
126
|
+
- The section is appended at the end of `CLAUDE.md` so it does not disturb existing content.
|
|
127
|
+
- The marker string `## Code research with Understand-Anything` is used as the idempotency guard — do not rename the heading without updating the guard.
|
|
128
|
+
- If `MIRRORS.md` / `AGENTS.md` or other agent-config files exist alongside `CLAUDE.md` (e.g. for non-Claude runtimes), apply the same append to them so all agent runtimes get the guidance. The loop below covers `AGENTS.md` and `MIRRORS.md` — add more filenames to the `for` list if the project uses additional agent-config files.
|
|
129
|
+
|
|
130
|
+
```bash
|
|
131
|
+
# Mirror to AGENTS.md / MIRRORS.md if they exist (non-Claude runtimes).
|
|
132
|
+
for f in AGENTS.md MIRRORS.md; do
|
|
133
|
+
if [ -f "$f" ] && ! grep -qF '## Code research with Understand-Anything' "$f" 2>/dev/null; then
|
|
134
|
+
cat >> "$f" << 'EOF'
|
|
135
|
+
|
|
136
|
+
## Code research with Understand-Anything
|
|
137
|
+
|
|
138
|
+
This project uses the [Understand-Anything](https://github.com/Egonex-AI/Understand-Anything) plugin to maintain an interactive knowledge graph of the codebase. **Always prefer these commands over raw grep/glob when researching code structure, relationships, or logic:**
|
|
139
|
+
|
|
140
|
+
| Goal | Command |
|
|
141
|
+
|------|---------|
|
|
142
|
+
| Explore the full codebase graph | `/understand` |
|
|
143
|
+
| Ask a free-form question about the code | `/understand-chat <question>` |
|
|
144
|
+
| Deep-dive into a specific file or function | `/understand-explain <path/symbol>` |
|
|
145
|
+
| See impact of your current changes before committing | `/understand-diff` |
|
|
146
|
+
| Open the interactive visual dashboard | `/understand-dashboard` |
|
|
147
|
+
| Extract business-domain knowledge (domains, flows, steps) | `/understand-domain` |
|
|
148
|
+
| Generate an onboarding guide for new teammates | `/understand-onboard` |
|
|
149
|
+
|
|
150
|
+
The knowledge graph lives in `.understand-anything/knowledge-graph.json` and is kept up-to-date automatically on every commit (auto-update is enabled). Re-run `/understand` after large refactors to force a full rebuild, or pass `--force` to rebuild from scratch.
|
|
151
|
+
EOF
|
|
152
|
+
echo "✅ Understand-Anything section also appended to $f."
|
|
153
|
+
fi
|
|
154
|
+
done
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
---
|
|
158
|
+
|
|
159
|
+
## Step 2 — Build / refresh the knowledge graph (auto-update on)
|
|
160
|
+
|
|
161
|
+
Run the skill **in the main thread** (it dispatches its own analyzer subagents — do not wrap it in a subagent):
|
|
162
|
+
|
|
163
|
+
```
|
|
164
|
+
/understand --auto-update $ARGUMENTS
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
- `--auto-update` writes `{"autoUpdate": true}` to `.understand-anything/config.json`. The plugin's bundled hook then incrementally patches the graph whenever a `git commit` is made (and on stale SessionStart), so each commit lands with a matching graph.
|
|
168
|
+
- If a graph already exists, `/understand` runs incrementally. Pass `--force` (via `$ARGUMENTS`) to rebuild from scratch.
|
|
169
|
+
- After it finishes, confirm these exist: `.understand-anything/knowledge-graph.json`, `.understand-anything/meta.json`, `.understand-anything/config.json` (with `autoUpdate: true`).
|
|
170
|
+
|
|
171
|
+
---
|
|
172
|
+
|
|
173
|
+
## Step 3 — Ignore scratch, git-lfs track the graph, and stage
|
|
174
|
+
|
|
175
|
+
Scratch outputs must stay local (never committed):
|
|
176
|
+
|
|
177
|
+
```bash
|
|
178
|
+
# .gitignore — append only if missing (idempotent)
|
|
179
|
+
for p in ".understand-anything/intermediate/" ".understand-anything/tmp/" ".understand-anything/diff-overlay.json"; do
|
|
180
|
+
grep -qxF "$p" .gitignore 2>/dev/null || echo "$p" >> .gitignore
|
|
181
|
+
done
|
|
182
|
+
|
|
183
|
+
# Large graphs (10 MB+) belong in LFS; tracking is harmless for small ones too.
|
|
184
|
+
git lfs install
|
|
185
|
+
git lfs track ".understand-anything/*.json"
|
|
186
|
+
|
|
187
|
+
# Stage — but DO NOT commit. A human reviews and commits.
|
|
188
|
+
git add .gitattributes .gitignore .claude/settings.json .understand-anything/ CLAUDE.md
|
|
189
|
+
# Also stage AGENTS.md / MIRRORS.md if they were modified.
|
|
190
|
+
for f in AGENTS.md MIRRORS.md; do [ -f "$f" ] && git add "$f"; done
|
|
191
|
+
|
|
192
|
+
git status
|
|
193
|
+
git lfs ls-files # confirm the graph json is LFS-tracked
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
---
|
|
197
|
+
|
|
198
|
+
## Done — report, do not commit
|
|
199
|
+
|
|
200
|
+
Summarize for the user:
|
|
201
|
+
- Which plugins/marketplaces were written into `.claude/settings.json` (call out any private ones).
|
|
202
|
+
- `CLAUDE.md` status: already existed vs created by `claude-code-setup`; Understand-Anything section added vs already present.
|
|
203
|
+
- `AGENTS.md` status (if applicable): Understand-Anything section added vs already present / not found.
|
|
204
|
+
- Graph status: created vs incrementally updated; `autoUpdate` on/off.
|
|
205
|
+
- What is staged and confirmed LFS-tracked.
|
|
206
|
+
- Remind them: **review, then commit yourself** (e.g. `git commit -m "chore: share team onboarding (claude settings + CLAUDE.md + understand graph)"`). The auto-update hook keeps the graph fresh on every future commit.
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "auto-power",
|
|
3
|
-
"displayName": "Auto Power",
|
|
4
|
-
"version": "0.0.25",
|
|
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
|
-
}
|
|
@@ -1,80 +0,0 @@
|
|
|
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.
|
|
@@ -1,69 +0,0 @@
|
|
|
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`.
|
|
@@ -1,67 +0,0 @@
|
|
|
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 |
|
|
@@ -1,32 +0,0 @@
|
|
|
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.
|