@nst173/superpowers-ccg 1.3.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/.agent/skills/brainstorming/SKILL.md +26 -0
- package/.agent/skills/coordinating-multi-model-work/SKILL.md +29 -0
- package/.agent/skills/executing-plans/SKILL.md +27 -0
- package/.agent/skills/using-superpowers/SKILL.md +29 -0
- package/.agent/skills/verifying-before-completion/SKILL.md +20 -0
- package/.agent/skills/writing-plans/SKILL.md +29 -0
- package/.cursor/agents/code-reviewer.md +22 -0
- package/.cursor/commands/brainstorm.md +11 -0
- package/.cursor/commands/execute-plan.md +12 -0
- package/.cursor/commands/write-plan.md +11 -0
- package/.cursor/hook-scripts/after-file-edit.mjs +3 -0
- package/.cursor/hook-scripts/before-shell-execution.mjs +3 -0
- package/.cursor/hook-scripts/session-end.mjs +3 -0
- package/.cursor/hooks.json +21 -0
- package/.cursor/mcp.json +20 -0
- package/.cursor/rules/checkpoint-protocol.mdc +11 -0
- package/.cursor/rules/orchestrator-routing.mdc +12 -0
- package/.cursor/rules/token-discipline.mdc +12 -0
- package/.cursor/skills/brainstorming/SKILL.md +26 -0
- package/.cursor/skills/coordinating-multi-model-work/SKILL.md +29 -0
- package/.cursor/skills/executing-plans/SKILL.md +27 -0
- package/.cursor/skills/using-superpowers/SKILL.md +29 -0
- package/.cursor/skills/verifying-before-completion/SKILL.md +20 -0
- package/.cursor/skills/writing-plans/SKILL.md +29 -0
- package/AGENTS.md +23 -0
- package/CLAUDE.md +78 -0
- package/GEMINI.md +27 -0
- package/LICENSE +21 -0
- package/README.md +171 -0
- package/agents/code-reviewer.md +54 -0
- package/cli/superpowers-ccg.mjs +8 -0
- package/commands/brainstorm.md +6 -0
- package/commands/execute-plan.md +6 -0
- package/commands/write-plan.md +6 -0
- package/config/antigravity/mcp_config.example.json +26 -0
- package/hooks/hooks.json +37 -0
- package/hooks/pre-tool-use-task.sh +4 -0
- package/hooks/run-hook.cmd +19 -0
- package/hooks/session-start.sh +72 -0
- package/hooks/user-prompt-submit.sh +31 -0
- package/package.json +56 -0
- package/skills/EVALUATION.md +201 -0
- package/skills/brainstorming/SKILL.md +120 -0
- package/skills/coordinating-multi-model-work/GATE.md +36 -0
- package/skills/coordinating-multi-model-work/INTEGRATION.md +51 -0
- package/skills/coordinating-multi-model-work/SKILL.md +51 -0
- package/skills/coordinating-multi-model-work/checkpoints.md +31 -0
- package/skills/coordinating-multi-model-work/cross-validation.md +37 -0
- package/skills/coordinating-multi-model-work/prompts/codex-base.md +40 -0
- package/skills/coordinating-multi-model-work/prompts/gemini-base.md +41 -0
- package/skills/coordinating-multi-model-work/review-chain.md +25 -0
- package/skills/coordinating-multi-model-work/routing-decision.md +50 -0
- package/skills/debugging-systematically/CREATION-LOG.md +119 -0
- package/skills/debugging-systematically/SKILL.md +325 -0
- package/skills/debugging-systematically/condition-based-waiting-example.ts +158 -0
- package/skills/debugging-systematically/condition-based-waiting.md +115 -0
- package/skills/debugging-systematically/defense-in-depth.md +122 -0
- package/skills/debugging-systematically/find-polluter.sh +63 -0
- package/skills/debugging-systematically/root-cause-tracing.md +169 -0
- package/skills/debugging-systematically/test-academic.md +14 -0
- package/skills/debugging-systematically/test-pressure-1.md +58 -0
- package/skills/debugging-systematically/test-pressure-2.md +68 -0
- package/skills/debugging-systematically/test-pressure-3.md +69 -0
- package/skills/developing-with-subagents/SKILL.md +51 -0
- package/skills/developing-with-subagents/code-quality-reviewer-prompt.md +30 -0
- package/skills/developing-with-subagents/implementer-prompt.md +41 -0
- package/skills/developing-with-subagents/spec-reviewer-prompt.md +25 -0
- package/skills/dispatching-parallel-agents/SKILL.md +195 -0
- package/skills/executing-plans/SKILL.md +67 -0
- package/skills/finishing-development-branches/SKILL.md +208 -0
- package/skills/practicing-test-driven-development/SKILL.md +346 -0
- package/skills/practicing-test-driven-development/testing-anti-patterns.md +299 -0
- package/skills/receiving-code-review/SKILL.md +221 -0
- package/skills/requesting-code-review/SKILL.md +127 -0
- package/skills/requesting-code-review/code-reviewer.md +146 -0
- package/skills/shared/multi-model-integration-section.md +32 -0
- package/skills/shared/protocol-threshold.md +46 -0
- package/skills/shared/supplementary-tools.md +132 -0
- package/skills/shared/task-format-reference.md +83 -0
- package/skills/using-git-worktrees/SKILL.md +225 -0
- package/skills/using-superpowers/SKILL.md +101 -0
- package/skills/verifying-before-completion/SKILL.md +159 -0
- package/skills/writing-plans/SKILL.md +55 -0
- package/skills/writing-skills/CHECKLIST.md +92 -0
- package/skills/writing-skills/SKILL.md +111 -0
- package/skills/writing-skills/STRUCTURE.md +208 -0
- package/skills/writing-skills/TESTING.md +155 -0
- package/skills/writing-skills/anthropic-best-practices.md +1150 -0
- package/skills/writing-skills/examples/CLAUDE_MD_TESTING.md +189 -0
- package/skills/writing-skills/graphviz-conventions.dot +172 -0
- package/skills/writing-skills/persuasion-principles.md +187 -0
- package/skills/writing-skills/render-graphs.js +168 -0
- package/skills/writing-skills/testing-skills-with-subagents.md +384 -0
- package/src/cli.mjs +165 -0
- package/src/constants.mjs +7 -0
- package/src/install.mjs +186 -0
- package/src/io.mjs +81 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: brainstorming
|
|
3
|
+
description: Explore requirements, tradeoffs, and routing before implementation starts. Use when the request is open-ended, ambiguous, or likely to require multiple bounded tasks.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Brainstorming
|
|
7
|
+
|
|
8
|
+
## Goals
|
|
9
|
+
|
|
10
|
+
1. Clarify the real user goal and any hidden constraints.
|
|
11
|
+
2. Identify the smallest useful outcome.
|
|
12
|
+
3. Split likely work into backend, frontend, and coordination slices.
|
|
13
|
+
4. Decide whether the task needs a plan or can go straight to a bounded execution step.
|
|
14
|
+
|
|
15
|
+
## Output
|
|
16
|
+
|
|
17
|
+
- A short problem statement
|
|
18
|
+
- Key constraints and risks
|
|
19
|
+
- A proposed task split
|
|
20
|
+
- A recommended next command or skill
|
|
21
|
+
|
|
22
|
+
## Guardrails
|
|
23
|
+
|
|
24
|
+
- Do not implement during brainstorming.
|
|
25
|
+
- Do not generate multi-page plans when a few bounded tasks will do.
|
|
26
|
+
- Prefer narrowing scope over escalating to multiple workers.
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: coordinating-multi-model-work
|
|
3
|
+
description: Route bounded implementation tasks to Codex or Gemini while keeping Cursor out of the implementation hot path. Use for coding, refactors, debugging, UI work, APIs, databases, scripts, and CI/CD changes.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Coordinating Multi-Model Work
|
|
7
|
+
|
|
8
|
+
## Routing
|
|
9
|
+
|
|
10
|
+
- `codex`: backend APIs, databases, auth, scripts, CI/CD, Docker, infrastructure, repo tooling
|
|
11
|
+
- `gemini`: UI components, layouts, styling, interaction polish
|
|
12
|
+
- `cross-validation`: architectural disputes or genuinely ambiguous ownership
|
|
13
|
+
|
|
14
|
+
## Rules
|
|
15
|
+
|
|
16
|
+
1. Reduce the current work to one bounded task.
|
|
17
|
+
2. Assign exactly one worker unless architecture uncertainty makes that unsafe.
|
|
18
|
+
3. Include the file set, acceptance criteria, and verification command.
|
|
19
|
+
4. Require one of two outputs only:
|
|
20
|
+
- a patch-ready diff
|
|
21
|
+
- blocking questions
|
|
22
|
+
5. Reuse the same worker context for fixes on the same task.
|
|
23
|
+
|
|
24
|
+
## Anti-patterns
|
|
25
|
+
|
|
26
|
+
- Do not ask for a prototype and then rewrite it yourself.
|
|
27
|
+
- Do not route the same bounded task to multiple workers by default.
|
|
28
|
+
- Do not let review steps replay the entire execution history.
|
|
29
|
+
- Do not keep long planning and execution narration in the main Cursor thread.
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: executing-plans
|
|
3
|
+
description: Execute a short plan one bounded task at a time with explicit worker ownership and verification. Use after planning is complete and implementation is ready to begin.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Executing Plans
|
|
7
|
+
|
|
8
|
+
## Execution loop
|
|
9
|
+
|
|
10
|
+
1. Pick the next bounded task.
|
|
11
|
+
2. Emit a compact CP1 assessment if implementation is beginning.
|
|
12
|
+
3. Route the task to the correct worker or keep it local if it is truly trivial.
|
|
13
|
+
4. Integrate the returned diff or resolve the blocking questions.
|
|
14
|
+
5. Run the verification command for that task.
|
|
15
|
+
6. Move to the next bounded task only after the current one is stable.
|
|
16
|
+
|
|
17
|
+
## Reporting
|
|
18
|
+
|
|
19
|
+
- Keep progress updates short.
|
|
20
|
+
- Track only the active task, owner, and verification state.
|
|
21
|
+
- Do not duplicate the full plan in every update.
|
|
22
|
+
|
|
23
|
+
## Completion
|
|
24
|
+
|
|
25
|
+
- Run final verification.
|
|
26
|
+
- Emit a compact CP3 assessment.
|
|
27
|
+
- Report remaining risks or gaps if verification is partial.
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: using-superpowers
|
|
3
|
+
description: Establish how to operate Superpowers CCG inside Cursor. Use when starting work, deciding which skill to apply, or setting the orchestration model for a task.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Using Superpowers In Cursor
|
|
7
|
+
|
|
8
|
+
## Core behavior
|
|
9
|
+
|
|
10
|
+
1. If there is even a small chance that a skill applies, use the skill before proceeding.
|
|
11
|
+
2. Keep Cursor in the orchestrator role for anything beyond trivial local edits or documentation.
|
|
12
|
+
3. Break work into bounded tasks with a file set and a verification command.
|
|
13
|
+
4. Route implementation to one worker at a time:
|
|
14
|
+
- `codex` for backend and systems
|
|
15
|
+
- `gemini` for frontend and styling
|
|
16
|
+
5. Only use cross-validation when a single worker cannot safely own the decision.
|
|
17
|
+
|
|
18
|
+
## Standard flow
|
|
19
|
+
|
|
20
|
+
1. Use `brainstorming` before open-ended feature design.
|
|
21
|
+
2. Use `writing-plans` to produce bounded execution tasks.
|
|
22
|
+
3. Use `executing-plans` to run the work one task at a time.
|
|
23
|
+
4. Use `verifying-before-completion` before reporting completion.
|
|
24
|
+
|
|
25
|
+
## Commands
|
|
26
|
+
|
|
27
|
+
- `/brainstorm` for discovery and design
|
|
28
|
+
- `/write-plan` for turning scope into bounded tasks
|
|
29
|
+
- `/execute-plan` for worker-driven execution
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: verifying-before-completion
|
|
3
|
+
description: Validate that the implemented work is actually complete before reporting success. Use before final handoff, after risky edits, or after external worker output is integrated.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Verifying Before Completion
|
|
7
|
+
|
|
8
|
+
## Checklist
|
|
9
|
+
|
|
10
|
+
1. Run the stated verification commands.
|
|
11
|
+
2. Confirm the changed files match the intended scope.
|
|
12
|
+
3. Check for obvious regressions, broken docs, or stale instructions.
|
|
13
|
+
4. Summarize what was verified and what was not.
|
|
14
|
+
|
|
15
|
+
## Output
|
|
16
|
+
|
|
17
|
+
- Verification commands run
|
|
18
|
+
- Result of each command
|
|
19
|
+
- Remaining gaps or risks
|
|
20
|
+
- Compact CP3 assessment
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: writing-plans
|
|
3
|
+
description: Turn a request into a short ordered plan of bounded tasks. Use when implementation spans multiple files, decisions, or verification steps.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Writing Plans
|
|
7
|
+
|
|
8
|
+
## Requirements
|
|
9
|
+
|
|
10
|
+
1. Keep the plan short and execution-oriented.
|
|
11
|
+
2. Each task must name its likely files or subsystem.
|
|
12
|
+
3. Each task must have one owner:
|
|
13
|
+
- Cursor
|
|
14
|
+
- Codex
|
|
15
|
+
- Gemini
|
|
16
|
+
4. Each task should include a verification command or validation method.
|
|
17
|
+
|
|
18
|
+
## Preferred format
|
|
19
|
+
|
|
20
|
+
1. Goal
|
|
21
|
+
2. Constraints
|
|
22
|
+
3. Ordered bounded tasks
|
|
23
|
+
4. First task to execute now
|
|
24
|
+
|
|
25
|
+
## Avoid
|
|
26
|
+
|
|
27
|
+
- vague “investigate everything” steps
|
|
28
|
+
- mixing backend and frontend implementation in one bounded task
|
|
29
|
+
- plans that require the orchestrator to restate the same context repeatedly
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: code-reviewer
|
|
3
|
+
description: Review completed work for regressions, missing verification, and workflow drift. Use after a meaningful bounded task or before final handoff.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Code Reviewer
|
|
7
|
+
|
|
8
|
+
Review with a findings-first mindset.
|
|
9
|
+
|
|
10
|
+
## Priorities
|
|
11
|
+
|
|
12
|
+
1. Behavioral regressions
|
|
13
|
+
2. Missing or weak verification
|
|
14
|
+
3. Routing mistakes that pushed Cursor into implementation unnecessarily
|
|
15
|
+
4. Documentation or instruction drift
|
|
16
|
+
5. Maintainability and clarity issues
|
|
17
|
+
|
|
18
|
+
## Output format
|
|
19
|
+
|
|
20
|
+
1. Findings ordered by severity
|
|
21
|
+
2. Open questions or assumptions
|
|
22
|
+
3. Brief summary of acceptable risk, if no blocking issues remain
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: brainstorm
|
|
3
|
+
description: Clarify requirements, task split, and routing before implementation.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Brainstorm
|
|
7
|
+
|
|
8
|
+
1. Use the `using-superpowers` skill.
|
|
9
|
+
2. Use the `brainstorming` skill.
|
|
10
|
+
3. Clarify the goal, constraints, and likely routing split.
|
|
11
|
+
4. Do not implement yet.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: execute-plan
|
|
3
|
+
description: Execute the current plan with bounded-task routing and verification.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Execute Plan
|
|
7
|
+
|
|
8
|
+
1. Use the `using-superpowers` skill.
|
|
9
|
+
2. Use the `executing-plans` skill.
|
|
10
|
+
3. Use `coordinating-multi-model-work` for routed implementation.
|
|
11
|
+
4. Keep Cursor as the orchestrator unless the task is trivial.
|
|
12
|
+
5. Verify each bounded task before moving on.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: write-plan
|
|
3
|
+
description: Convert the current request into a short plan of bounded tasks.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Write Plan
|
|
7
|
+
|
|
8
|
+
1. Use the `using-superpowers` skill.
|
|
9
|
+
2. Use the `writing-plans` skill.
|
|
10
|
+
3. Produce a short ordered plan with explicit owners and verification commands.
|
|
11
|
+
4. Keep the plan small enough to execute without token sprawl.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 1,
|
|
3
|
+
"hooks": {
|
|
4
|
+
"afterFileEdit": [
|
|
5
|
+
{
|
|
6
|
+
"command": "node ./.cursor/hook-scripts/after-file-edit.mjs"
|
|
7
|
+
}
|
|
8
|
+
],
|
|
9
|
+
"beforeShellExecution": [
|
|
10
|
+
{
|
|
11
|
+
"command": "node ./.cursor/hook-scripts/before-shell-execution.mjs",
|
|
12
|
+
"matcher": "rm|curl|wget|git reset --hard|git checkout --"
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"sessionEnd": [
|
|
16
|
+
{
|
|
17
|
+
"command": "node ./.cursor/hook-scripts/session-end.mjs"
|
|
18
|
+
}
|
|
19
|
+
]
|
|
20
|
+
}
|
|
21
|
+
}
|
package/.cursor/mcp.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"mcpServers": {
|
|
3
|
+
"codex": {
|
|
4
|
+
"command": "uvx",
|
|
5
|
+
"args": [
|
|
6
|
+
"--from",
|
|
7
|
+
"C:\Users\ngosi\.mcp-servers\codexmcp",
|
|
8
|
+
"codexmcp"
|
|
9
|
+
]
|
|
10
|
+
},
|
|
11
|
+
"gemini": {
|
|
12
|
+
"command": "uvx",
|
|
13
|
+
"args": [
|
|
14
|
+
"--from",
|
|
15
|
+
"C:\Users\ngosi\.mcp-servers\geminimcp",
|
|
16
|
+
"geminimcp"
|
|
17
|
+
]
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Apply CP1 before execution starts and CP3 before claiming completion.
|
|
3
|
+
alwaysApply: true
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
checkpoint-protocol:
|
|
7
|
+
|
|
8
|
+
- Before the first substantial implementation step, emit a short CP1 routing assessment.
|
|
9
|
+
- Before claiming completion, emit a short CP3 verification assessment.
|
|
10
|
+
- Keep checkpoint blocks minimal and factual.
|
|
11
|
+
- Include task type, routing choice, and evidence for the final verification state.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Route work through the Superpowers CCG orchestrator instead of treating Cursor as the implementation worker.
|
|
3
|
+
alwaysApply: true
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
orchestrator-routing:
|
|
7
|
+
|
|
8
|
+
- Reduce work to one bounded task with a clear goal, file set, and verification command.
|
|
9
|
+
- Route backend and systems work to the `codex` MCP server.
|
|
10
|
+
- Route frontend and styling work to the `gemini` MCP server.
|
|
11
|
+
- Keep Cursor in the orchestrator role unless the task is trivial coordination or documentation.
|
|
12
|
+
- Use cross-validation only when there is real architectural uncertainty, not by default.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Keep orchestration compact so the main Cursor thread does not become the token hot path.
|
|
3
|
+
alwaysApply: true
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
token-discipline:
|
|
7
|
+
|
|
8
|
+
- Do not ask one worker for a prototype and then rewrite the same task yourself.
|
|
9
|
+
- Require `diff or blocking questions` from implementation workers.
|
|
10
|
+
- Reuse the same worker context for follow-up fixes on the same bounded task.
|
|
11
|
+
- Summarize decisions once and avoid restating the same project context in every turn.
|
|
12
|
+
- Keep reviews artifact-focused instead of replaying the full task narrative.
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: brainstorming
|
|
3
|
+
description: Explore requirements, tradeoffs, and routing before implementation starts. Use when the request is open-ended, ambiguous, or likely to require multiple bounded tasks.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Brainstorming
|
|
7
|
+
|
|
8
|
+
## Goals
|
|
9
|
+
|
|
10
|
+
1. Clarify the real user goal and any hidden constraints.
|
|
11
|
+
2. Identify the smallest useful outcome.
|
|
12
|
+
3. Split likely work into backend, frontend, and coordination slices.
|
|
13
|
+
4. Decide whether the task needs a plan or can go straight to a bounded execution step.
|
|
14
|
+
|
|
15
|
+
## Output
|
|
16
|
+
|
|
17
|
+
- A short problem statement
|
|
18
|
+
- Key constraints and risks
|
|
19
|
+
- A proposed task split
|
|
20
|
+
- A recommended next command or skill
|
|
21
|
+
|
|
22
|
+
## Guardrails
|
|
23
|
+
|
|
24
|
+
- Do not implement during brainstorming.
|
|
25
|
+
- Do not generate multi-page plans when a few bounded tasks will do.
|
|
26
|
+
- Prefer narrowing scope over escalating to multiple workers.
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: coordinating-multi-model-work
|
|
3
|
+
description: Route bounded implementation tasks to Codex or Gemini while keeping Cursor out of the implementation hot path. Use for coding, refactors, debugging, UI work, APIs, databases, scripts, and CI/CD changes.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Coordinating Multi-Model Work
|
|
7
|
+
|
|
8
|
+
## Routing
|
|
9
|
+
|
|
10
|
+
- `codex`: backend APIs, databases, auth, scripts, CI/CD, Docker, infrastructure, repo tooling
|
|
11
|
+
- `gemini`: UI components, layouts, styling, interaction polish
|
|
12
|
+
- `cross-validation`: architectural disputes or genuinely ambiguous ownership
|
|
13
|
+
|
|
14
|
+
## Rules
|
|
15
|
+
|
|
16
|
+
1. Reduce the current work to one bounded task.
|
|
17
|
+
2. Assign exactly one worker unless architecture uncertainty makes that unsafe.
|
|
18
|
+
3. Include the file set, acceptance criteria, and verification command.
|
|
19
|
+
4. Require one of two outputs only:
|
|
20
|
+
- a patch-ready diff
|
|
21
|
+
- blocking questions
|
|
22
|
+
5. Reuse the same worker context for fixes on the same task.
|
|
23
|
+
|
|
24
|
+
## Anti-patterns
|
|
25
|
+
|
|
26
|
+
- Do not ask for a prototype and then rewrite it yourself.
|
|
27
|
+
- Do not route the same bounded task to multiple workers by default.
|
|
28
|
+
- Do not let review steps replay the entire execution history.
|
|
29
|
+
- Do not keep long planning and execution narration in the main Cursor thread.
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: executing-plans
|
|
3
|
+
description: Execute a short plan one bounded task at a time with explicit worker ownership and verification. Use after planning is complete and implementation is ready to begin.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Executing Plans
|
|
7
|
+
|
|
8
|
+
## Execution loop
|
|
9
|
+
|
|
10
|
+
1. Pick the next bounded task.
|
|
11
|
+
2. Emit a compact CP1 assessment if implementation is beginning.
|
|
12
|
+
3. Route the task to the correct worker or keep it local if it is truly trivial.
|
|
13
|
+
4. Integrate the returned diff or resolve the blocking questions.
|
|
14
|
+
5. Run the verification command for that task.
|
|
15
|
+
6. Move to the next bounded task only after the current one is stable.
|
|
16
|
+
|
|
17
|
+
## Reporting
|
|
18
|
+
|
|
19
|
+
- Keep progress updates short.
|
|
20
|
+
- Track only the active task, owner, and verification state.
|
|
21
|
+
- Do not duplicate the full plan in every update.
|
|
22
|
+
|
|
23
|
+
## Completion
|
|
24
|
+
|
|
25
|
+
- Run final verification.
|
|
26
|
+
- Emit a compact CP3 assessment.
|
|
27
|
+
- Report remaining risks or gaps if verification is partial.
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: using-superpowers
|
|
3
|
+
description: Establish how to operate Superpowers CCG inside Cursor. Use when starting work, deciding which skill to apply, or setting the orchestration model for a task.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Using Superpowers In Cursor
|
|
7
|
+
|
|
8
|
+
## Core behavior
|
|
9
|
+
|
|
10
|
+
1. If there is even a small chance that a skill applies, use the skill before proceeding.
|
|
11
|
+
2. Keep Cursor in the orchestrator role for anything beyond trivial local edits or documentation.
|
|
12
|
+
3. Break work into bounded tasks with a file set and a verification command.
|
|
13
|
+
4. Route implementation to one worker at a time:
|
|
14
|
+
- `codex` for backend and systems
|
|
15
|
+
- `gemini` for frontend and styling
|
|
16
|
+
5. Only use cross-validation when a single worker cannot safely own the decision.
|
|
17
|
+
|
|
18
|
+
## Standard flow
|
|
19
|
+
|
|
20
|
+
1. Use `brainstorming` before open-ended feature design.
|
|
21
|
+
2. Use `writing-plans` to produce bounded execution tasks.
|
|
22
|
+
3. Use `executing-plans` to run the work one task at a time.
|
|
23
|
+
4. Use `verifying-before-completion` before reporting completion.
|
|
24
|
+
|
|
25
|
+
## Commands
|
|
26
|
+
|
|
27
|
+
- `/brainstorm` for discovery and design
|
|
28
|
+
- `/write-plan` for turning scope into bounded tasks
|
|
29
|
+
- `/execute-plan` for worker-driven execution
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: verifying-before-completion
|
|
3
|
+
description: Validate that the implemented work is actually complete before reporting success. Use before final handoff, after risky edits, or after external worker output is integrated.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Verifying Before Completion
|
|
7
|
+
|
|
8
|
+
## Checklist
|
|
9
|
+
|
|
10
|
+
1. Run the stated verification commands.
|
|
11
|
+
2. Confirm the changed files match the intended scope.
|
|
12
|
+
3. Check for obvious regressions, broken docs, or stale instructions.
|
|
13
|
+
4. Summarize what was verified and what was not.
|
|
14
|
+
|
|
15
|
+
## Output
|
|
16
|
+
|
|
17
|
+
- Verification commands run
|
|
18
|
+
- Result of each command
|
|
19
|
+
- Remaining gaps or risks
|
|
20
|
+
- Compact CP3 assessment
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: writing-plans
|
|
3
|
+
description: Turn a request into a short ordered plan of bounded tasks. Use when implementation spans multiple files, decisions, or verification steps.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Writing Plans
|
|
7
|
+
|
|
8
|
+
## Requirements
|
|
9
|
+
|
|
10
|
+
1. Keep the plan short and execution-oriented.
|
|
11
|
+
2. Each task must name its likely files or subsystem.
|
|
12
|
+
3. Each task must have one owner:
|
|
13
|
+
- Cursor
|
|
14
|
+
- Codex
|
|
15
|
+
- Gemini
|
|
16
|
+
4. Each task should include a verification command or validation method.
|
|
17
|
+
|
|
18
|
+
## Preferred format
|
|
19
|
+
|
|
20
|
+
1. Goal
|
|
21
|
+
2. Constraints
|
|
22
|
+
3. Ordered bounded tasks
|
|
23
|
+
4. First task to execute now
|
|
24
|
+
|
|
25
|
+
## Avoid
|
|
26
|
+
|
|
27
|
+
- vague “investigate everything” steps
|
|
28
|
+
- mixing backend and frontend implementation in one bounded task
|
|
29
|
+
- plans that require the orchestrator to restate the same context repeatedly
|
package/AGENTS.md
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Superpowers CCG
|
|
2
|
+
|
|
3
|
+
Use Cursor as the orchestrator, not the primary implementation worker.
|
|
4
|
+
|
|
5
|
+
## Operating model
|
|
6
|
+
|
|
7
|
+
- Reduce work to one bounded task at a time.
|
|
8
|
+
- Keep the active task tied to a clear file set and verification command.
|
|
9
|
+
- Route backend and systems work to Codex via MCP.
|
|
10
|
+
- Route frontend and styling work to Gemini via MCP.
|
|
11
|
+
- Use cross-validation only for true architectural uncertainty.
|
|
12
|
+
|
|
13
|
+
## Anti-patterns
|
|
14
|
+
|
|
15
|
+
- Do not ask one worker for a prototype and then rewrite it yourself.
|
|
16
|
+
- Do not route the same bounded task to multiple workers unless necessary.
|
|
17
|
+
- Do not keep long execution narration in the main thread.
|
|
18
|
+
|
|
19
|
+
## Verification
|
|
20
|
+
|
|
21
|
+
- Before implementation starts, emit a compact CP1 routing assessment.
|
|
22
|
+
- Before claiming completion, emit a compact CP3 verification assessment.
|
|
23
|
+
- Report what was verified and what remains unverified.
|
package/CLAUDE.md
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# CLAUDE.md
|
|
2
|
+
|
|
3
|
+
This file provides guidance to Claude Code when working in this repository.
|
|
4
|
+
|
|
5
|
+
## What This Project Is
|
|
6
|
+
|
|
7
|
+
**Superpowers-CCG** is a Claude Code plugin that adds a skills-driven development workflow with multi-model orchestration (Claude + Codex + Gemini). Claude acts as pure orchestrator and routes all implementation code to external models. It is a fork of [obra/superpowers](https://github.com/obra/superpowers).
|
|
8
|
+
|
|
9
|
+
This repository is a **plugin/skills framework** written mostly as Markdown and Bash, with a small Node.js utility. There is no build step.
|
|
10
|
+
|
|
11
|
+
The authoritative agent rules are in `superpowers-ccg.md`.
|
|
12
|
+
|
|
13
|
+
## Running Tests
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
./tests/claude-code/run-skill-tests.sh
|
|
17
|
+
./tests/claude-code/run-skill-tests.sh --integration
|
|
18
|
+
./tests/claude-code/run-skill-tests.sh --test <test-file>.sh
|
|
19
|
+
./tests/claude-code/run-skill-tests.sh --verbose
|
|
20
|
+
./tests/claude-code/run-skill-tests.sh --timeout 1800
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Architecture
|
|
24
|
+
|
|
25
|
+
### Skills (`skills/`)
|
|
26
|
+
|
|
27
|
+
Each skill lives in a subdirectory with `SKILL.md` (YAML frontmatter + instructions). Skills are discovered and resolved via `lib/skills-core.js`. All skills are exposed under the `superpowers-ccg:` namespace.
|
|
28
|
+
|
|
29
|
+
Key skills:
|
|
30
|
+
- `coordinating-multi-model-work/` — Routes tasks to Codex/Gemini MCP and defines the CP checkpoint protocol
|
|
31
|
+
- `developing-with-subagents/` — Routes tasks to external models with spec review via Opus, then Opus quality review
|
|
32
|
+
- `executing-plans/` — Batch plan execution with review checkpoints
|
|
33
|
+
|
|
34
|
+
### Hooks (`hooks/`)
|
|
35
|
+
|
|
36
|
+
Three hooks regulate Claude behavior at runtime:
|
|
37
|
+
|
|
38
|
+
| Hook | Trigger | Purpose |
|
|
39
|
+
|------|---------|---------|
|
|
40
|
+
| `session-start.sh` | startup/resume/clear | Session initialization |
|
|
41
|
+
| `user-prompt-submit.sh` | every user message | Inject CP1/CP3 checkpoint reminders |
|
|
42
|
+
| `pre-tool-use-task.sh` | before Task tool | Remind about model selection |
|
|
43
|
+
|
|
44
|
+
### Multi-Model Routing
|
|
45
|
+
|
|
46
|
+
Claude is the **orchestrator**. It routes tasks, coordinates models, and integrates results, but **never writes implementation code**.
|
|
47
|
+
|
|
48
|
+
| Routing | When | MCP Tool |
|
|
49
|
+
|---------|------|----------|
|
|
50
|
+
| `CODEX` | Backend and systems: API, DB, auth, scripts, CI/CD, Dockerfiles, infrastructure | `mcp__codex__codex` |
|
|
51
|
+
| `GEMINI` | Frontend: UI, components, styles | `mcp__gemini__gemini` |
|
|
52
|
+
| `CROSS_VALIDATION` | Full-stack, architectural, uncertain | Multiple |
|
|
53
|
+
| `CLAUDE` | Orchestration only: docs, coordination (no code) | None |
|
|
54
|
+
|
|
55
|
+
Opus reviews all code-changing paths directly.
|
|
56
|
+
|
|
57
|
+
### Shared Context Layer (Serena HTTP)
|
|
58
|
+
|
|
59
|
+
All agents (Claude, Codex, Gemini) connect to a single Serena instance via Streamable HTTP (port 9121). This provides shared project memories and the `global/response_protocol` memory for token-efficient agent output.
|
|
60
|
+
|
|
61
|
+
### Supplementary Tools
|
|
62
|
+
|
|
63
|
+
Supplementary MCP tools can enhance orchestration, but they are optional. See `skills/shared/supplementary-tools.md`.
|
|
64
|
+
|
|
65
|
+
### Checkpoint Protocol
|
|
66
|
+
|
|
67
|
+
- **CP1**: Before first Task call
|
|
68
|
+
- **CP2**: Mid-execution when uncertainty or stalls appear
|
|
69
|
+
- **CP3**: Before claiming completion
|
|
70
|
+
|
|
71
|
+
### Plugin Metadata (`.claude-plugin/`)
|
|
72
|
+
|
|
73
|
+
- `plugin.json` — name, version, description
|
|
74
|
+
- `marketplace.json` — marketplace registration
|
|
75
|
+
|
|
76
|
+
## Skill Authoring
|
|
77
|
+
|
|
78
|
+
When creating or editing skills, use `superpowers-ccg:writing-skills`. Skills require a failing test before implementation.
|
package/GEMINI.md
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Superpowers CCG For Antigravity
|
|
2
|
+
|
|
3
|
+
Antigravity is the orchestrator. Keep the main agent focused on planning, delegation, integration, and verification rather than hand-writing implementation in the main thread.
|
|
4
|
+
|
|
5
|
+
## Operating model
|
|
6
|
+
|
|
7
|
+
- Reduce work to one bounded task at a time.
|
|
8
|
+
- Prefer small swarms over one giant agent session.
|
|
9
|
+
- Keep each task tied to a file set and a verification command.
|
|
10
|
+
- Reuse the same agent context for follow-up fixes on the same task.
|
|
11
|
+
|
|
12
|
+
## Routing
|
|
13
|
+
|
|
14
|
+
- Backend and systems: prefer Codex MCP
|
|
15
|
+
- Frontend and styling: prefer Gemini-oriented execution
|
|
16
|
+
- Architecture disputes: use a short review pass, not duplicate full implementations
|
|
17
|
+
|
|
18
|
+
## Anti-patterns
|
|
19
|
+
|
|
20
|
+
- Do not prototype in one agent and rewrite the same task in another.
|
|
21
|
+
- Do not restate the full project context in every task.
|
|
22
|
+
- Do not let review replay the full execution story.
|
|
23
|
+
|
|
24
|
+
## Completion
|
|
25
|
+
|
|
26
|
+
- Require evidence for verification before marking work done.
|
|
27
|
+
- Summarize risks or remaining gaps explicitly.
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Jesse Vincent
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|