@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.
Files changed (97) hide show
  1. package/.agent/skills/brainstorming/SKILL.md +26 -0
  2. package/.agent/skills/coordinating-multi-model-work/SKILL.md +29 -0
  3. package/.agent/skills/executing-plans/SKILL.md +27 -0
  4. package/.agent/skills/using-superpowers/SKILL.md +29 -0
  5. package/.agent/skills/verifying-before-completion/SKILL.md +20 -0
  6. package/.agent/skills/writing-plans/SKILL.md +29 -0
  7. package/.cursor/agents/code-reviewer.md +22 -0
  8. package/.cursor/commands/brainstorm.md +11 -0
  9. package/.cursor/commands/execute-plan.md +12 -0
  10. package/.cursor/commands/write-plan.md +11 -0
  11. package/.cursor/hook-scripts/after-file-edit.mjs +3 -0
  12. package/.cursor/hook-scripts/before-shell-execution.mjs +3 -0
  13. package/.cursor/hook-scripts/session-end.mjs +3 -0
  14. package/.cursor/hooks.json +21 -0
  15. package/.cursor/mcp.json +20 -0
  16. package/.cursor/rules/checkpoint-protocol.mdc +11 -0
  17. package/.cursor/rules/orchestrator-routing.mdc +12 -0
  18. package/.cursor/rules/token-discipline.mdc +12 -0
  19. package/.cursor/skills/brainstorming/SKILL.md +26 -0
  20. package/.cursor/skills/coordinating-multi-model-work/SKILL.md +29 -0
  21. package/.cursor/skills/executing-plans/SKILL.md +27 -0
  22. package/.cursor/skills/using-superpowers/SKILL.md +29 -0
  23. package/.cursor/skills/verifying-before-completion/SKILL.md +20 -0
  24. package/.cursor/skills/writing-plans/SKILL.md +29 -0
  25. package/AGENTS.md +23 -0
  26. package/CLAUDE.md +78 -0
  27. package/GEMINI.md +27 -0
  28. package/LICENSE +21 -0
  29. package/README.md +171 -0
  30. package/agents/code-reviewer.md +54 -0
  31. package/cli/superpowers-ccg.mjs +8 -0
  32. package/commands/brainstorm.md +6 -0
  33. package/commands/execute-plan.md +6 -0
  34. package/commands/write-plan.md +6 -0
  35. package/config/antigravity/mcp_config.example.json +26 -0
  36. package/hooks/hooks.json +37 -0
  37. package/hooks/pre-tool-use-task.sh +4 -0
  38. package/hooks/run-hook.cmd +19 -0
  39. package/hooks/session-start.sh +72 -0
  40. package/hooks/user-prompt-submit.sh +31 -0
  41. package/package.json +56 -0
  42. package/skills/EVALUATION.md +201 -0
  43. package/skills/brainstorming/SKILL.md +120 -0
  44. package/skills/coordinating-multi-model-work/GATE.md +36 -0
  45. package/skills/coordinating-multi-model-work/INTEGRATION.md +51 -0
  46. package/skills/coordinating-multi-model-work/SKILL.md +51 -0
  47. package/skills/coordinating-multi-model-work/checkpoints.md +31 -0
  48. package/skills/coordinating-multi-model-work/cross-validation.md +37 -0
  49. package/skills/coordinating-multi-model-work/prompts/codex-base.md +40 -0
  50. package/skills/coordinating-multi-model-work/prompts/gemini-base.md +41 -0
  51. package/skills/coordinating-multi-model-work/review-chain.md +25 -0
  52. package/skills/coordinating-multi-model-work/routing-decision.md +50 -0
  53. package/skills/debugging-systematically/CREATION-LOG.md +119 -0
  54. package/skills/debugging-systematically/SKILL.md +325 -0
  55. package/skills/debugging-systematically/condition-based-waiting-example.ts +158 -0
  56. package/skills/debugging-systematically/condition-based-waiting.md +115 -0
  57. package/skills/debugging-systematically/defense-in-depth.md +122 -0
  58. package/skills/debugging-systematically/find-polluter.sh +63 -0
  59. package/skills/debugging-systematically/root-cause-tracing.md +169 -0
  60. package/skills/debugging-systematically/test-academic.md +14 -0
  61. package/skills/debugging-systematically/test-pressure-1.md +58 -0
  62. package/skills/debugging-systematically/test-pressure-2.md +68 -0
  63. package/skills/debugging-systematically/test-pressure-3.md +69 -0
  64. package/skills/developing-with-subagents/SKILL.md +51 -0
  65. package/skills/developing-with-subagents/code-quality-reviewer-prompt.md +30 -0
  66. package/skills/developing-with-subagents/implementer-prompt.md +41 -0
  67. package/skills/developing-with-subagents/spec-reviewer-prompt.md +25 -0
  68. package/skills/dispatching-parallel-agents/SKILL.md +195 -0
  69. package/skills/executing-plans/SKILL.md +67 -0
  70. package/skills/finishing-development-branches/SKILL.md +208 -0
  71. package/skills/practicing-test-driven-development/SKILL.md +346 -0
  72. package/skills/practicing-test-driven-development/testing-anti-patterns.md +299 -0
  73. package/skills/receiving-code-review/SKILL.md +221 -0
  74. package/skills/requesting-code-review/SKILL.md +127 -0
  75. package/skills/requesting-code-review/code-reviewer.md +146 -0
  76. package/skills/shared/multi-model-integration-section.md +32 -0
  77. package/skills/shared/protocol-threshold.md +46 -0
  78. package/skills/shared/supplementary-tools.md +132 -0
  79. package/skills/shared/task-format-reference.md +83 -0
  80. package/skills/using-git-worktrees/SKILL.md +225 -0
  81. package/skills/using-superpowers/SKILL.md +101 -0
  82. package/skills/verifying-before-completion/SKILL.md +159 -0
  83. package/skills/writing-plans/SKILL.md +55 -0
  84. package/skills/writing-skills/CHECKLIST.md +92 -0
  85. package/skills/writing-skills/SKILL.md +111 -0
  86. package/skills/writing-skills/STRUCTURE.md +208 -0
  87. package/skills/writing-skills/TESTING.md +155 -0
  88. package/skills/writing-skills/anthropic-best-practices.md +1150 -0
  89. package/skills/writing-skills/examples/CLAUDE_MD_TESTING.md +189 -0
  90. package/skills/writing-skills/graphviz-conventions.dot +172 -0
  91. package/skills/writing-skills/persuasion-principles.md +187 -0
  92. package/skills/writing-skills/render-graphs.js +168 -0
  93. package/skills/writing-skills/testing-skills-with-subagents.md +384 -0
  94. package/src/cli.mjs +165 -0
  95. package/src/constants.mjs +7 -0
  96. package/src/install.mjs +186 -0
  97. package/src/io.mjs +81 -0
package/README.md ADDED
@@ -0,0 +1,171 @@
1
+ # Superpowers-CCG
2
+
3
+ Superpowers-CCG is a fork/enhanced variant of [obra/superpowers](https://github.com/obra/superpowers). It keeps the same skills-driven workflow and adds **CCG multi-model orchestration**: Claude is the **pure orchestrator** (never writes code), routing implementation to **Codex MCP** (backend and systems) and **Gemini MCP** (frontend), with **Opus as the reviewer** for every code-changing path.
4
+
5
+ > **CCG** = **C**laude + **C**odex + **G**emini
6
+
7
+ ## npm CLI
8
+
9
+ This repo now also ships a project-level installer CLI for supported agents:
10
+
11
+ - Claude Code
12
+ - Cursor
13
+ - Antigravity
14
+
15
+ Run it with:
16
+
17
+ ```bash
18
+ npx @nst173/superpowers-ccg setup
19
+ ```
20
+
21
+ Install only specific agents:
22
+
23
+ ```bash
24
+ npx @nst173/superpowers-ccg setup --agent claude-code --agent cursor
25
+ ```
26
+
27
+ Install into another project directory:
28
+
29
+ ```bash
30
+ npx @nst173/superpowers-ccg setup ../my-project --all
31
+ ```
32
+
33
+ Preview changes without writing files:
34
+
35
+ ```bash
36
+ npx @nst173/superpowers-ccg setup --dry-run
37
+ ```
38
+
39
+ List supported agents:
40
+
41
+ ```bash
42
+ npx @nst173/superpowers-ccg list
43
+ ```
44
+
45
+ ## What You Get
46
+
47
+ - **Claude as pure orchestrator**: Claude routes, coordinates, and integrates. It never writes implementation code.
48
+ - **Multi-model routing (CCG)**: route tasks to Codex (backend and systems) or Gemini (frontend). Use **CROSS_VALIDATION** for full-stack or critical tasks.
49
+ - **Opus reviewer**: Opus reviews all code-changing paths directly.
50
+ - **MCP tool integration**: external calls go through `mcp__codex__codex` and `mcp__gemini__gemini`.
51
+ - **Collaboration checkpoints**: CP1/CP2/CP3 checkpoints are embedded in the main skills.
52
+ - **Fail-closed gate**: if a required external model call cannot complete, the workflow stops with `BLOCKED`.
53
+
54
+ ## Quick Start (Claude Code)
55
+
56
+ ### Prerequisites
57
+
58
+ - [Claude Code](https://docs.claude.com/docs/claude-code) installed (`claude --version`)
59
+ - [Gemini CLI](https://github.com/google-gemini/gemini-cli) installed and authenticated (`gemini --version`)
60
+ - [Codex CLI](https://developers.openai.com/codex/quickstart) installed and authenticated (`codex --version`)
61
+ - `uv` / `uvx` available
62
+
63
+ ### Install
64
+
65
+ ```bash
66
+ claude plugin marketplace add https://github.com/sitien173/superpowers-ccg
67
+ claude plugin install superpowers-ccg
68
+ ```
69
+
70
+ ### MCP Setup
71
+
72
+ ```bash
73
+ # Backend and systems specialist
74
+ claude mcp add codex -s user --transport stdio -- uvx --from git+https://github.com/GuDaStudio/codexmcp.git codexmcp
75
+
76
+ # Frontend specialist
77
+ claude mcp add gemini -s user --transport stdio -- uvx --from git+https://github.com/GuDaStudio/geminimcp.git geminimcp
78
+ ```
79
+
80
+ ## Using External Models
81
+
82
+ You normally do **not** call MCP tools manually. Tell Claude what you want, and the workflow decides when to invoke external models.
83
+
84
+ - Backend or systems: "Use Codex MCP for the API/database/CI parts, return a patch only."
85
+ - Frontend: "Use Gemini MCP for UI/components/styles, return a patch only."
86
+ - Cross-validation: "Do CROSS_VALIDATION for this design and reconcile conflicts."
87
+ - Code review runs automatically after implementation.
88
+
89
+ ## Model Selection
90
+
91
+ | Task type | Routing | MCP Tool |
92
+ |---|---|---|
93
+ | Backend, systems, scripts, CI/CD, Docker, infrastructure | CODEX | `mcp__codex__codex` |
94
+ | Frontend (UI/components/styles) | GEMINI | `mcp__gemini__gemini` |
95
+ | Full-stack / unclear / high impact | CROSS_VALIDATION | multiple |
96
+ | Orchestration only (docs, coordination) | CLAUDE | none |
97
+
98
+ The routing and checkpoint rules live in `skills/coordinating-multi-model-work/`.
99
+
100
+ ## Cursor Plugin
101
+
102
+ This repo now also ships a Cursor Marketplace plugin scaffold based on `cursor/plugin-template`.
103
+
104
+ - Marketplace manifest: [`.cursor-plugin/marketplace.json`](.cursor-plugin/marketplace.json)
105
+ - Plugin package: [`plugins/superpowers-ccg`](plugins/superpowers-ccg)
106
+ - Setup notes: [`docs/cursor-plugin.md`](docs/cursor-plugin.md)
107
+
108
+ Validate the Cursor packaging with:
109
+
110
+ ```bash
111
+ node scripts/validate-cursor-plugin.mjs
112
+ ```
113
+
114
+ ## Antigravity Port
115
+
116
+ This repo now also includes an Antigravity-oriented port built around:
117
+
118
+ - [`AGENTS.md`](AGENTS.md)
119
+ - [`GEMINI.md`](GEMINI.md)
120
+ - [`.agent/skills`](.agent/skills)
121
+ - [`config/antigravity/mcp_config.example.json`](config/antigravity/mcp_config.example.json)
122
+ - [`docs/antigravity.md`](docs/antigravity.md)
123
+
124
+ Sync the project skills with:
125
+
126
+ ```bash
127
+ node scripts/sync-antigravity-workspace.mjs
128
+ ```
129
+
130
+ ## Checkpoint Protocol
131
+
132
+ | Checkpoint | When | Purpose |
133
+ |---|---|---|
134
+ | CP1 | Before first Task call | Assess routing, invoke external model early |
135
+ | CP2 | Mid-execution | Triggered by uncertainty, stalled debugging, or repeated failures |
136
+ | CP3 | Before claiming completion | Final domain review and verification |
137
+
138
+ ## Differences vs Superpowers (obra/superpowers)
139
+
140
+ - **Claude as orchestrator-only**: Claude never writes implementation code.
141
+ - **Built-in multi-model routing** via MCP tools (Codex, Gemini).
142
+ - **Codex covers systems work**: scripts, CI/CD, Dockerfiles, and infrastructure route to Codex.
143
+ - **Opus reviews all code** directly.
144
+ - **CP checkpoints** enforce evidence-driven collaboration.
145
+ - **Skill set changes** align the plugin with the CCG workflow.
146
+
147
+ ## Update
148
+
149
+ ```bash
150
+ claude plugin update superpowers-ccg
151
+ ```
152
+
153
+ ## Testing
154
+
155
+ See `tests/claude-code/README.md` for the Claude Code skills test suite.
156
+
157
+ ```bash
158
+ ./tests/claude-code/run-skill-tests.sh
159
+ ```
160
+
161
+ ## Support
162
+
163
+ - Issues: https://github.com/sitien173/superpowers-ccg/issues
164
+
165
+ ## Acknowledgments
166
+
167
+ - [obra/superpowers](https://github.com/obra/superpowers) - Original Superpowers project
168
+ - [BryanHoo/superpowers-ccg](https://github.com/BryanHoo/superpowers-ccg) - CCG collaboration fork
169
+ - [fengshao1227/ccg-workflow](https://github.com/fengshao1227/ccg-workflow) - CCG workflow
170
+ - [GuDaStudio/geminimcp](https://github.com/GuDaStudio/geminimcp) - Gemini MCP
171
+ - [GuDaStudio/codexmcp](https://github.com/GuDaStudio/codexmcp) - Codex MCP
@@ -0,0 +1,54 @@
1
+ ---
2
+ name: code-reviewer
3
+ description: |
4
+ Use this agent when a major project step has been completed and needs to be reviewed against the original plan and coding standards. Examples: <example>Context: The user is creating a code-review agent that should be called after a logical chunk of code is written. user: "I've finished implementing the user authentication system as outlined in step 3 of our plan" assistant: "Great work! Now let me use the code-reviewer agent to review the implementation against our plan and coding standards" <commentary>Since a major project step has been completed, use the code-reviewer agent to validate the work against the plan and identify any issues.</commentary></example> <example>Context: User has completed a significant feature implementation. user: "The API endpoints for the task management system are now complete - that covers step 2 from our architecture document" assistant: "Excellent! Let me have the code-reviewer agent examine this implementation to ensure it aligns with our plan and follows best practices" <commentary>A numbered step from the planning document has been completed, so the code-reviewer agent should review the work.</commentary></example>
5
+ model: opus
6
+ ---
7
+
8
+ You are the final code review arbiter with expertise in software architecture, design patterns, and best practices. Your role is to review completed project steps against original plans, evaluate any assistant-review feedback, and make the final judgment on whether the implementation is ready.
9
+
10
+ When reviewing completed work, you will:
11
+
12
+ 1. **Plan Alignment Analysis**:
13
+ - Compare the implementation against the original planning document or step description
14
+ - Identify any deviations from the planned approach, architecture, or requirements
15
+ - Assess whether deviations are justified improvements or problematic departures
16
+ - Verify that all planned functionality has been implemented
17
+
18
+ 2. **Code Quality Assessment**:
19
+ - Review code for adherence to established patterns and conventions
20
+ - Check for proper error handling, type safety, and defensive programming
21
+ - Evaluate code organization, naming conventions, and maintainability
22
+ - Assess test coverage and quality of test implementations
23
+ - Look for potential security vulnerabilities or performance issues
24
+
25
+ 3. **Architecture and Design Review**:
26
+ - Ensure the implementation follows SOLID principles and established architectural patterns
27
+ - Check for proper separation of concerns and loose coupling
28
+ - Verify that the code integrates well with existing systems
29
+ - Assess scalability and extensibility considerations
30
+
31
+ 4. **Documentation and Standards**:
32
+ - Verify that code includes appropriate comments and documentation
33
+ - Check that file headers, function documentation, and inline comments are present and accurate
34
+ - Ensure adherence to project-specific coding standards and conventions
35
+
36
+ 5. **Issue Identification and Recommendations**:
37
+ - Clearly categorize issues as: Critical (must fix), Important (should fix), or Suggestions (nice to have)
38
+ - For each issue, provide specific examples and actionable recommendations
39
+ - When you identify plan deviations, explain whether they're problematic or beneficial
40
+ - Suggest specific improvements with code examples when helpful
41
+
42
+ 6. **Prior Feedback Arbitration**:
43
+ - If prior review feedback is provided, treat it as advisory input, not a binding verdict
44
+ - Re-evaluate each reported issue against the actual diff and project context
45
+ - Explicitly decide whether to accept, dismiss, or refine prior findings
46
+ - Add missed issues when prior feedback is incomplete
47
+
48
+ 7. **Communication Protocol**:
49
+ - If you find significant deviations from the plan, ask the coding agent to review and confirm the changes
50
+ - If you identify issues with the original plan itself, recommend plan updates
51
+ - For implementation problems, provide clear guidance on fixes needed
52
+ - Always acknowledge what was done well before highlighting issues
53
+
54
+ Your output should be structured, actionable, and focused on helping maintain high code quality while ensuring project goals are met. Be thorough but concise, and always provide constructive feedback that helps improve both the current implementation and future development practices.
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env node
2
+
3
+ import { runCli } from "../src/cli.mjs";
4
+
5
+ runCli(process.argv.slice(2)).catch((error) => {
6
+ console.error(`superpowers-ccg: ${error.message}`);
7
+ process.exit(1);
8
+ });
@@ -0,0 +1,6 @@
1
+ ---
2
+ description: "You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores requirements and design before implementation."
3
+ disable-model-invocation: true
4
+ ---
5
+
6
+ Invoke the superpowers-ccg:brainstorming skill and follow it exactly as presented to you
@@ -0,0 +1,6 @@
1
+ ---
2
+ description: Execute plan in batches with review checkpoints
3
+ disable-model-invocation: true
4
+ ---
5
+
6
+ Invoke the superpowers-ccg:executing-plans skill and follow it exactly as presented to you
@@ -0,0 +1,6 @@
1
+ ---
2
+ description: Create detailed implementation plan with bite-sized tasks
3
+ disable-model-invocation: true
4
+ ---
5
+
6
+ Invoke the superpowers-ccg:writing-plans skill and follow it exactly as presented to you
@@ -0,0 +1,26 @@
1
+ {
2
+ "mcpServers": {
3
+ "codex": {
4
+ "command": "uvx",
5
+ "args": [
6
+ "--from",
7
+ "git+https://github.com/GuDaStudio/codexmcp.git",
8
+ "codexmcp"
9
+ ],
10
+ "env": {
11
+ "OPENAI_API_KEY": "${OPENAI_API_KEY}"
12
+ }
13
+ },
14
+ "gemini": {
15
+ "command": "uvx",
16
+ "args": [
17
+ "--from",
18
+ "git+https://github.com/GuDaStudio/geminimcp.git",
19
+ "geminimcp"
20
+ ],
21
+ "env": {
22
+ "GEMINI_API_KEY": "${GEMINI_API_KEY}"
23
+ }
24
+ }
25
+ }
26
+ }
@@ -0,0 +1,37 @@
1
+ {
2
+ "hooks": {
3
+ "SessionStart": [
4
+ {
5
+ "matcher": "startup|resume|clear|compact",
6
+ "hooks": [
7
+ {
8
+ "type": "command",
9
+ "command": "\"${CLAUDE_PLUGIN_ROOT}/hooks/run-hook.cmd\" session-start.sh"
10
+ }
11
+ ]
12
+ }
13
+ ],
14
+ "UserPromptSubmit": [
15
+ {
16
+ "matcher": "*",
17
+ "hooks": [
18
+ {
19
+ "type": "command",
20
+ "command": "\"${CLAUDE_PLUGIN_ROOT}/hooks/run-hook.cmd\" user-prompt-submit.sh"
21
+ }
22
+ ]
23
+ }
24
+ ],
25
+ "PreToolUse": [
26
+ {
27
+ "matcher": "Task",
28
+ "hooks": [
29
+ {
30
+ "type": "command",
31
+ "command": "\"${CLAUDE_PLUGIN_ROOT}/hooks/run-hook.cmd\" pre-tool-use-task.sh"
32
+ }
33
+ ]
34
+ }
35
+ ]
36
+ }
37
+ }
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env bash
2
+ # PreToolUse hook for Task tool - enforce model selection reminder
3
+
4
+ echo "⚠️ Task model enforcement check: implementation/docs -> model:sonnet, search/exploration -> model:haiku" >&2
@@ -0,0 +1,19 @@
1
+ : << 'CMDBLOCK'
2
+ @echo off
3
+ REM Polyglot wrapper: runs .sh scripts cross-platform
4
+ REM Usage: run-hook.cmd <script-name> [args...]
5
+ REM The script should be in the same directory as this wrapper
6
+
7
+ if "%~1"=="" (
8
+ echo run-hook.cmd: missing script name >&2
9
+ exit /b 1
10
+ )
11
+ "C:\Program Files\Git\bin\bash.exe" -l "%~dp0%~1" %2 %3 %4 %5 %6 %7 %8 %9
12
+ exit /b
13
+ CMDBLOCK
14
+
15
+ # Unix shell runs from here
16
+ SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
17
+ SCRIPT_NAME="$1"
18
+ shift
19
+ "${SCRIPT_DIR}/${SCRIPT_NAME}" "$@"
@@ -0,0 +1,72 @@
1
+ #!/usr/bin/env bash
2
+ # SessionStart hook for superpowers-ccg plugin
3
+
4
+ set -euo pipefail
5
+
6
+ # Check if legacy skills directory exists and build warning
7
+ warning_message=""
8
+ legacy_skills_dir="${HOME}/.config/superpowers/skills"
9
+ if [ -d "$legacy_skills_dir" ]; then
10
+ warning_message="\n\n<important-reminder>IN YOUR FIRST REPLY AFTER SEEING THIS MESSAGE YOU MUST TELL THE USER:⚠️ **WARNING:** Superpowers now uses Claude Code's skills system. Custom skills in ~/.config/superpowers/skills will not be read. Move custom skills to ~/.claude/skills instead. To make this message go away, remove ~/.config/superpowers/skills</important-reminder>"
11
+ fi
12
+
13
+ # Compact session context (~300 tokens); load full skills on demand via Skill tool
14
+ COMPACT_CONTEXT="$(cat <<'ENDOFCOMPACT'
15
+ You have superpowers.
16
+
17
+ **Core Rules:**
18
+ 1. **1% Rule:** If there is even a 1% chance a skill applies, use the Skill tool to load it before responding.
19
+ 2. **Claude is orchestrator-only:** All implementation code goes through external models (Codex/Gemini MCP).
20
+ 3. **Checkpoint Protocol:** CP1 before first Task call, CP3 before claiming completion.
21
+ 4. **Fail-Closed:** If Routing != CLAUDE and MCP call fails, output BLOCKED (see GATE.md for tiered policy).
22
+
23
+ **Multi-Model Routing:**
24
+ - Backend (API, DB, auth) → CODEX (`mcp__codex__codex`)
25
+ - Frontend (UI, styles) → GEMINI (`mcp__gemini__gemini`)
26
+ - Backend and systems (API, DB, auth, CI/CD, scripts, infrastructure) → CODEX (`mcp__codex__codex`)
27
+ - Full-stack/uncertain → CROSS_VALIDATION (multiple)
28
+ - Docs/coordination only → CLAUDE
29
+
30
+ **Shared Serena (HTTP 9121):** All agents share one Serena instance. `global/response_protocol` controls token-efficient agent output format.
31
+
32
+ **Supplementary Tools (optional):** Grok Search/Tavily (research), Sequential-Thinking (complex reasoning), Serena (shared context bus), Magic (UI components), Morphllm (bulk edits).
33
+
34
+ **Skill Namespace:** `superpowers-ccg:` — use Skill tool to load any skill by name.
35
+
36
+ **To learn more:** Load `superpowers-ccg:using-superpowers` or `superpowers-ccg:coordinating-multi-model-work` for full instructions.
37
+ ENDOFCOMPACT
38
+ )"
39
+
40
+ # Escape outputs for JSON using pure bash
41
+ escape_for_json() {
42
+ local input="$1"
43
+ local output=""
44
+ local i char
45
+ for (( i=0; i<${#input}; i++ )); do
46
+ char="${input:$i:1}"
47
+ case "$char" in
48
+ $'\\') output+='\\' ;;
49
+ '"') output+='\"' ;;
50
+ $'\n') output+='\n' ;;
51
+ $'\r') output+='\r' ;;
52
+ $'\t') output+='\t' ;;
53
+ *) output+="$char" ;;
54
+ esac
55
+ done
56
+ printf '%s' "$output"
57
+ }
58
+
59
+ compact_escaped=$(escape_for_json "$COMPACT_CONTEXT")
60
+ warning_escaped=$(escape_for_json "$warning_message")
61
+
62
+ # Output context injection as JSON
63
+ cat <<EOF
64
+ {
65
+ "hookSpecificOutput": {
66
+ "hookEventName": "SessionStart",
67
+ "additionalContext": "<EXTREMELY_IMPORTANT>\n${compact_escaped}\n\n${warning_escaped}\n</EXTREMELY_IMPORTANT>"
68
+ }
69
+ }
70
+ EOF
71
+
72
+ exit 0
@@ -0,0 +1,31 @@
1
+ #!/usr/bin/env bash
2
+ # UserPromptSubmit hook for superpowers-ccg plugin
3
+
4
+ set -euo pipefail
5
+
6
+ REMINDER_TEXT="[CP Protocol Threshold]
7
+
8
+ Before the first Task call, output a short standalone [CP1 Assessment] block.
9
+ Before claiming completion, output a short standalone [CP3 Assessment] block.
10
+
11
+ Use the minimal format below. Do not add extra narration to the checkpoint itself.
12
+
13
+ [CP1 Assessment]
14
+ - Task type: [Frontend/Backend/Full-stack/Other]
15
+ - Complexity: [Trivial/Standard/Critical]
16
+ - Routing decision: [CLAUDE/CODEX/GEMINI/CROSS_VALIDATION]
17
+ - Rationale: [one sentence]
18
+
19
+ Compact trivial form:
20
+ [CP1] Routing: CLAUDE | Trivial: <reason>
21
+
22
+ [CP3 Assessment]
23
+ - Task type: [Frontend/Backend/Full-stack/Other]
24
+ - Routing decision: [CLAUDE/CODEX/GEMINI/CROSS_VALIDATION]
25
+ - Rationale: [one sentence]
26
+
27
+ Compact trivial form:
28
+ [CP3] Verified: <evidence>
29
+ "
30
+
31
+ printf '%s\n' "$REMINDER_TEXT"
package/package.json ADDED
@@ -0,0 +1,56 @@
1
+ {
2
+ "name": "@nst173/superpowers-ccg",
3
+ "version": "1.3.0",
4
+ "description": "CLI to install Superpowers CCG workflows at project level for Claude Code, Cursor, and Antigravity.",
5
+ "type": "module",
6
+ "bin": {
7
+ "superpowers-ccg": "./cli/superpowers-ccg.mjs",
8
+ "spccg": "./cli/superpowers-ccg.mjs"
9
+ },
10
+ "files": [
11
+ "AGENTS.md",
12
+ "CLAUDE.md",
13
+ "GEMINI.md",
14
+ "LICENSE",
15
+ "README.md",
16
+ "agents",
17
+ "commands",
18
+ "hooks",
19
+ "skills",
20
+ ".cursor",
21
+ ".agent",
22
+ "config/antigravity",
23
+ "cli",
24
+ "src"
25
+ ],
26
+ "scripts": {
27
+ "test:smoke": "node scripts/smoke-test-cli.mjs",
28
+ "prepublishOnly": "npm run test:smoke"
29
+ },
30
+ "keywords": [
31
+ "claude-code",
32
+ "cursor",
33
+ "antigravity",
34
+ "workflow",
35
+ "skills",
36
+ "orchestrator",
37
+ "mcp",
38
+ "cli"
39
+ ],
40
+ "license": "MIT",
41
+ "author": "nst173",
42
+ "repository": {
43
+ "type": "git",
44
+ "url": "git+https://github.com/sitien173/superpowers-ccg.git"
45
+ },
46
+ "homepage": "https://github.com/sitien173/superpowers-ccg#readme",
47
+ "bugs": {
48
+ "url": "https://github.com/sitien173/superpowers-ccg/issues"
49
+ },
50
+ "engines": {
51
+ "node": ">=18"
52
+ },
53
+ "publishConfig": {
54
+ "access": "public"
55
+ }
56
+ }