agy-superpowers 5.0.6 → 5.0.7

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/README.md CHANGED
@@ -130,6 +130,29 @@ This workflow will:
130
130
 
131
131
  ---
132
132
 
133
+ ## Configuration
134
+
135
+ Per-project settings live in `.agent/config.yml`. Create or edit this file in your project's `.agent/` folder:
136
+
137
+ ```yaml
138
+ # .agent/config.yml
139
+
140
+ # auto_commit: true | false
141
+ # When true (default), Superpowers skills automatically commit after completing
142
+ # tasks and writing design docs.
143
+ # When false, all git commits and staging are skipped — files are left as
144
+ # modified for you to commit manually.
145
+ auto_commit: true
146
+ ```
147
+
148
+ | Setting | Default | Description |
149
+ |---|---|---|
150
+ | `auto_commit` | `true` | AI auto-commits after tasks and design docs. Set to `false` to skip all commits. |
151
+
152
+ This file is preserved across `/update-superpowers` runs.
153
+
154
+ ---
155
+
133
156
  ## Installation
134
157
 
135
158
  ### Using This Repo in Your Project
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agy-superpowers",
3
- "version": "5.0.6",
3
+ "version": "5.0.7",
4
4
  "description": "Superpowers skills library for Google Antigravity agent — scaffold .agent/ with one command",
5
5
  "type": "module",
6
6
  "bin": {
@@ -0,0 +1,9 @@
1
+ # Antigravity Superpowers — Project Config
2
+ #
3
+ # Configure per-project behavior by editing this file.
4
+ # Skills read this file to determine how to behave in this project.
5
+
6
+ # auto_commit: true | false
7
+ # When true (default), AI automatically commits after completing tasks and writing design docs.
8
+ # When false, all git commits and staging are skipped; files are left as modified for manual commit.
9
+ auto_commit: false
@@ -0,0 +1,74 @@
1
+ # Skill Patches
2
+
3
+ Patches applied by AI during the `update-superpowers` workflow (Phase 2, Step 7).
4
+ Each patch describes the *intent* of the change — AI finds the relevant section and rewrites it.
5
+ Do not match text literally. Understand intent and adapt to current upstream wording.
6
+
7
+ ---
8
+
9
+ ## Patch: Platform Adaptation — using-superpowers
10
+
11
+ **File:** `using-superpowers/SKILL.md`
12
+ **Intent:** Remove all references to Claude Code, Gemini CLI, and Codex. Replace with a single
13
+ Antigravity block: skills are read using `view_file` on `.agent/skills/<name>/SKILL.md`.
14
+ Reference `references/antigravity-tools.md` for tool name mappings.
15
+ The Platform Adaptation section should say this package is configured for Google Antigravity,
16
+ with tool name equivalents in `references/antigravity-tools.md`.
17
+
18
+ ---
19
+
20
+ ## Patch: Platform mentions — executing-plans
21
+
22
+ **File:** `executing-plans/SKILL.md`
23
+ **Intent:** Replace any mentions of "Claude Code", "Codex", or other non-Antigravity platforms
24
+ with "Antigravity". Example: "(such as Claude Code or Codex)" → "(such as Antigravity)".
25
+
26
+ ---
27
+
28
+ ## Patch: Skills path — writing-skills
29
+
30
+ **File:** `writing-skills/SKILL.md`
31
+ **Intent:** Replace platform-specific personal skill paths (`~/.claude/skills` for Claude Code,
32
+ `~/.agents/skills/` for Codex) with the Antigravity path: `~/.agent/skills`.
33
+
34
+ ---
35
+
36
+ ## Patch: Visual companion platform blocks — brainstorming
37
+
38
+ **File:** `brainstorming/visual-companion.md`
39
+ **Intent:** Remove the Codex-specific server block. Replace Claude Code and Gemini CLI
40
+ server startup blocks with a single Antigravity block:
41
+ ```bash
42
+ # Launch the server normally
43
+ scripts/start-server.sh --project-dir /path/to/project
44
+ ```
45
+
46
+ ---
47
+
48
+ ## Patch: Platform comment — dispatching-parallel-agents
49
+
50
+ **File:** `dispatching-parallel-agents/SKILL.md`
51
+ **Intent:** Remove the comment `// In Claude Code / AI environment` (or similar platform-specific
52
+ inline comments). The code should work without platform-specific annotations.
53
+
54
+ ---
55
+
56
+ ## Patch: auto_commit flag — brainstorming
57
+
58
+ **File:** `brainstorming/SKILL.md`
59
+ **Intent:** Make the step that commits the design document to git conditional on `.agent/config.yml`:
60
+ - Read `.agent/config.yml` before committing
61
+ - If `auto_commit: true` (default): commit normally with `git add <path> && git commit -m "docs: add <topic> design spec"`
62
+ - If `auto_commit: false`: skip commit and staging entirely. Print: "Skipping commit (auto_commit: false in .agent/config.yml). File is ready for manual commit."
63
+
64
+ ---
65
+
66
+ ## Patch: auto_commit flag — subagent-driven-development
67
+
68
+ **File:** `subagent-driven-development/SKILL.md`
69
+ **Intent:** Make the implementer subagent commit step conditional on `.agent/config.yml`:
70
+ - Read `.agent/config.yml` before committing
71
+ - If `auto_commit: true` (default): commit normally with `git add` + `git commit`
72
+ - If `auto_commit: false`: skip commit and staging entirely. Print: "Skipping commit (auto_commit: false in .agent/config.yml). Files left as modified for manual commit."
73
+ Update any diagram labels that mention "commits" to reflect this conditionality
74
+ (e.g. "commits (if auto_commit: true)").
@@ -114,7 +114,9 @@ digraph brainstorming {
114
114
  - Write the validated design (spec) to `docs/superpowers/specs/YYYY-MM-DD-<topic>-design.md`
115
115
  - (User preferences for spec location override this default)
116
116
  - Use elements-of-style:writing-clearly-and-concisely skill if available
117
- - Commit the design document to git
117
+ - **Commit the design document to git** — but first check `.agent/config.yml`:
118
+ - If `auto_commit: true` (default): run `git add <path> && git commit -m "docs: add <topic> design spec"`
119
+ - If `auto_commit: false`: skip commit and staging entirely. Print: "Skipping commit (auto_commit: false in .agent/config.yml). File is ready for manual commit."
118
120
 
119
121
  **Spec Review Loop:**
120
122
  After writing the spec document:
@@ -48,7 +48,7 @@ digraph process {
48
48
  "Dispatch implementer subagent (./implementer-prompt.md)" [shape=box];
49
49
  "Implementer subagent asks questions?" [shape=diamond];
50
50
  "Answer questions, provide context" [shape=box];
51
- "Implementer subagent implements, tests, commits, self-reviews" [shape=box];
51
+ "Implementer subagent implements, tests, commits (if auto_commit: true), self-reviews" [shape=box];
52
52
  "Dispatch spec reviewer subagent (./spec-reviewer-prompt.md)" [shape=box];
53
53
  "Spec reviewer subagent confirms code matches spec?" [shape=diamond];
54
54
  "Implementer subagent fixes spec gaps" [shape=box];
@@ -67,8 +67,8 @@ digraph process {
67
67
  "Dispatch implementer subagent (./implementer-prompt.md)" -> "Implementer subagent asks questions?";
68
68
  "Implementer subagent asks questions?" -> "Answer questions, provide context" [label="yes"];
69
69
  "Answer questions, provide context" -> "Dispatch implementer subagent (./implementer-prompt.md)";
70
- "Implementer subagent asks questions?" -> "Implementer subagent implements, tests, commits, self-reviews" [label="no"];
71
- "Implementer subagent implements, tests, commits, self-reviews" -> "Dispatch spec reviewer subagent (./spec-reviewer-prompt.md)";
70
+ "Implementer subagent asks questions?" -> "Implementer subagent implements, tests, commits (if auto_commit: true), self-reviews" [label="no"];
71
+ "Implementer subagent implements, tests, commits (if auto_commit: true), self-reviews" -> "Dispatch spec reviewer subagent (./spec-reviewer-prompt.md)";
72
72
  "Dispatch spec reviewer subagent (./spec-reviewer-prompt.md)" -> "Spec reviewer subagent confirms code matches spec?";
73
73
  "Spec reviewer subagent confirms code matches spec?" -> "Implementer subagent fixes spec gaps" [label="no"];
74
74
  "Implementer subagent fixes spec gaps" -> "Dispatch spec reviewer subagent (./spec-reviewer-prompt.md)" [label="re-review"];
@@ -247,6 +247,10 @@ Done!
247
247
  - **Start code quality review before spec compliance is ✅** (wrong order)
248
248
  - Move to next task while either review has open issues
249
249
 
250
+ **Before implementer commits:** Check `.agent/config.yml` for `auto_commit` setting.
251
+ - If `auto_commit: true` (default): commit normally with `git add` + `git commit`
252
+ - If `auto_commit: false`: skip commit and staging entirely. Print: "Skipping commit (auto_commit: false in .agent/config.yml). Files left as modified for manual commit."
253
+
250
254
  **If subagent asks questions:**
251
255
  - Answer clearly and completely
252
256
  - Provide additional context if needed
@@ -7,18 +7,26 @@ This workflow has two phases:
7
7
  - **Phase 2 (AI):** update the skill list in rules only — no content rewriting
8
8
 
9
9
  // turbo
10
- 1. Run the update script:
10
+ 1. Preserve user config (if exists):
11
+ `[ -f .agent/config.yml ] && cp .agent/config.yml /tmp/agent-config-backup.yml && echo "Config backed up" || echo "No config to backup"`
12
+
13
+ // turbo
14
+ 2. Run the update script:
11
15
  `bash .agent/.shared/update-superpowers.sh`
12
16
 
13
- - If output ends with "Already up to date" → **STOP**. Nothing to do.
14
- - If clone fails → **STOP**. Report the error to the user.
17
+ - If output ends with "Already up to date" → restore config if backed up (`[ -f /tmp/agent-config-backup.yml ] && cp /tmp/agent-config-backup.yml .agent/config.yml`), then **STOP**. Nothing to do.
18
+ - If clone fails → restore config if backed up, then **STOP**. Report the error to the user.
15
19
  - On success the script prints `SCRIPT_DONE:<new-tag>` — note the new tag and continue.
16
20
 
17
21
  // turbo
18
- 2. Run the Antigravity patch script (breaks symlinks → real files, removes non-Antigravity tool refs):
22
+ 3. Run the Antigravity patch script (breaks symlinks → real files, removes non-Antigravity tool refs):
19
23
  `node scripts/patch-agent-skills.js`
20
24
 
21
- 3. **Phase 2 — Update skill list in rules**
25
+ // turbo
26
+ 4. Restore user config:
27
+ `[ -f /tmp/agent-config-backup.yml ] && cp /tmp/agent-config-backup.yml .agent/config.yml && echo "Config restored" || echo "No config to restore"`
28
+
29
+ 5. **Phase 2 — Update skill list in rules**
22
30
 
23
31
  List all skill folders now present in `.agent/skills/`.
24
32
  Open `.agent/rules/superpowers.md` and update **only the skills table**:
@@ -28,19 +36,30 @@ This workflow has two phases:
28
36
 
29
37
  If no skills were added or removed → skip, note "rules: no changes needed".
30
38
 
31
- 4. **Phase 2 — New skills check**
39
+ 6. **Phase 2 — New skills check**
32
40
 
33
41
  For any skill in `.agent/skills/` that has no corresponding workflow in `.agent/workflows/`:
34
42
  - Read its `SKILL.md` `description` field.
35
43
  - Report it to the user: "New skill available: `<name>` — `<description>`. Create a workflow?"
36
44
  - Do NOT auto-create. Let the user decide.
37
45
 
46
+ 7. **Phase 2 — Apply skill patches from `.agent/patches/skills-patches.md`**
47
+
48
+ Read `.agent/patches/skills-patches.md`. For each patch entry:
49
+ - Open the target SKILL.md (path relative to `.agent/skills/`)
50
+ - Understand the *intent* described — do not match text literally
51
+ - Find the relevant section in the current file content
52
+ - Rewrite that section to match the intent, adapting to any upstream wording changes
53
+ - If the patch is already applied → skip, note "already applied"
54
+
55
+ Apply all patches before moving to the next step.
56
+
38
57
  // turbo
39
- 5. Commit all changes from Phase 2:
58
+ 8. Commit all changes from Phase 2:
40
59
  `git add .agent/ && git commit -m "chore: sync .agent/ with superpowers <new-tag>"`
41
60
  (Skip commit if nothing changed.)
42
61
 
43
- 6. Print summary:
62
+ 8. Print summary:
44
63
  ```
45
64
  ✅ Superpowers updated: <old-tag> → <new-tag>
46
65
  📦 Skills: <old-count> → <new-count> (+new_skill / -removed_skill)