superpowers-mcp 6.4.2 → 6.4.3

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.
@@ -1,46 +1,16 @@
1
- # Desktop quick setup / 桌面版快速安裝
1
+ # Desktop import guide
2
2
 
3
- The new `lmstudio`, `roo` and `--print-config` options are unreleased. Until the next npm release, run from a checkout:
3
+ This guide covers ChatWise and Cherry Studio, which require manual JSON import.
4
4
 
5
5
  ```bash
6
- npm ci
7
- npm run build
8
- node out/setup.js --target lmstudio
9
- # Or choose Roo Code in VS Code Desktop:
10
- node out/setup.js --target roo
11
- # Or print JSON to import into a desktop app:
12
- node out/setup.js --print-config
6
+ npx -y superpowers-mcp setup --print-config
13
7
  ```
14
8
 
15
- 目前新增選項尚未發布至 npm。發布前請使用上方本機指令;設定中的 MCP 伺服器仍透過 npm 啟動已發布版本。
16
-
17
9
  Install Node.js with npm first and restart the desktop app after saving its configuration. If a GUI cannot find `npx`, use its absolute executable path in the app's MCP configuration (`command -v npx` on macOS/Linux; `where.exe npx` on Windows). This installs the Superpowers MCP connection, not the desktop application. Tool execution also depends on the model and the client's available capabilities.
18
10
 
19
- ## File-based desktop setup
20
-
21
- After the next npm release:
22
-
23
- ```bash
24
- npx -y superpowers-mcp setup --target lmstudio
25
- npx -y superpowers-mcp setup --target roo
26
- ```
27
-
28
- Run only the command for the client you want. Both targets support `--dry-run`, `--backup`, `--bun` and `--remove`. `lm-studio` aliases `lmstudio`; `roo-code` and `roocode` alias `roo`.
29
-
30
- | Client | Configuration location |
31
- | --- | --- |
32
- | LM Studio, all three OSes | User home + `.lmstudio/mcp.json` |
33
- | Roo Code, macOS | `~/Library/Application Support/Code/User/globalStorage/rooveterinaryinc.roo-cline/settings/mcp_settings.json` |
34
- | Roo Code, Windows | `%APPDATA%/Code/User/globalStorage/rooveterinaryinc.roo-cline/settings/mcp_settings.json` |
35
- | Roo Code, Linux | `~/.config/Code/User/globalStorage/rooveterinaryinc.roo-cline/settings/mcp_settings.json` |
36
-
37
- Roo setup targets the standard VS Code Desktop profile. For Insiders, portable builds, remote VS Code or a custom storage location, open Roo's **Edit Global MCP** configuration and merge the JSON below into its existing `mcpServers` object.
38
-
39
- LM Studio: open **Program → Install → Edit mcp.json** to inspect the configuration, then enable the integration for your chat. Select a model that supports tool use.
40
-
41
11
  ## ChatWise and Cherry Studio
42
12
 
43
- Copy this complete JSON, or generate it with `node out/setup.js --print-config` (`--bun` selects `bunx`). After release, the equivalent command is `npx -y superpowers-mcp setup --print-config`.
13
+ Copy this complete JSON, or generate it with `npx -y superpowers-mcp setup --print-config` (`--bun` selects `bunx`).
44
14
 
45
15
  ```json
46
16
  {
@@ -55,32 +25,22 @@ Copy this complete JSON, or generate it with `node out/setup.js --print-config`
55
25
 
56
26
  ### ChatWise
57
27
 
58
- [Add Superpowers to ChatWise / 一鍵加入 ChatWise](https://chatwise.app/mcp-add?json=eyJtY3BTZXJ2ZXJzIjp7InN1cGVycG93ZXJzIjp7ImNvbW1hbmQiOiJucHgiLCJhcmdzIjpbIi15Iiwic3VwZXJwb3dlcnMtbWNwIl19fX0%3D)
28
+ [Add Superpowers to ChatWise](https://chatwise.app/mcp-add?json=eyJtY3BTZXJ2ZXJzIjp7InN1cGVycG93ZXJzIjp7ImNvbW1hbmQiOiJucHgiLCJhcmdzIjpbIi15Iiwic3VwZXJwb3dlcnMtbWNwIl19fX0%3D)
59
29
 
60
30
  ChatWise must already be installed. Alternatively, copy the JSON, open **Settings → Tools → + → Import JSON from Clipboard**, then enable tools for the chat. Use the MCP Tools chat workflow: ChatWise's current Agent preview documents MCP as disabled in that mode.
61
31
 
62
- 先安裝 ChatWise,再點上方連結;也可以在 Tools 設定從剪貼簿匯入 JSON,並在對話開啟工具。請使用支援 MCP Tools 的對話模式,目前 Agent 預覽模式不支援 MCP。
63
-
64
32
  ### Cherry Studio
65
33
 
66
34
  Open **Settings → MCP → MCP Servers → Add → Import from JSON**, paste the JSON, save and enable the server. If using manual creation, choose **stdio**, name `superpowers`, command `npx`, and two separate arguments: `-y` and `superpowers-mcp`. Then open **Work → Agent menu → Edit → MCP** and enable this server for the intended Agent.
67
35
 
68
- 在「設定 → MCP → MCP 伺服器 → 新增」匯入 JSON,儲存並啟動後,到「工作 → Agent 選單 → 編輯 → MCP」綁定。只加入伺服器、未綁定 Agent 時,Agent 不會取得工具。
69
-
70
36
  ## Verify the connection
71
37
 
72
38
  Ask the assistant: **Use `list_skills` to list the Superpowers skills, then use `read_skill` to read `brainstorming`.** Confirm that actual tool results appear. Prompts and resources vary by client; the tool-based path is the common verification route.
73
39
 
74
- Hermes users can now keep inline comments such as `mcp_servers: # configured servers`; setup also recognizes `superpowers: # my agent` during update and removal.
75
-
76
40
  ## References
77
41
 
78
- - [LM Studio MCP configuration and paths](https://lmstudio.ai/blog/lmstudio-v0.3.17)
79
- - [LM Studio MCP usage](https://lmstudio.ai/docs/app/mcp)
80
- - [Roo Code MCP configuration](https://roocodeinc.github.io/Roo-Code/features/mcp/using-mcp-in-roo/)
81
- - [Roo Code storage and configuration migration](https://github.com/RooCodeInc/Roo-Code/issues/8520)
82
42
  - [ChatWise JSON import and install links](https://docs.chatwise.app/tools)
83
43
  - [ChatWise Agent preview limitations](https://docs.chatwise.app/agent)
84
44
  - [Cherry Studio MCP setup and Agent binding](https://docs.cherryai.com.cn/advanced-basic/extensions/mcp)
85
45
 
86
- Paths and import formats were checked against these sources on 2026-09-13. Automated checks exercise configuration generation, preservation and removal; desktop GUI connections have not been tested on physical Windows/Linux installations.
46
+ Import formats were checked against these sources on 2026-09-13. Automated checks exercise configuration generation, preservation and removal; desktop GUI connections have not been tested on physical Windows/Linux installations.
@@ -0,0 +1,220 @@
1
+ # Superpowers MCP: Composición de skills y flujos de trabajo
2
+
3
+ [English](skill-compositions.md) | [繁體中文](skill-compositions.zh-TW.md) | [日本語](skill-compositions.ja.md) | [한국어](skill-compositions.ko.md) | [Español](skill-compositions.es.md) | [Português (BR)](skill-compositions.pt-BR.md) | [हिन्दी](skill-compositions.hi.md)
4
+
5
+ > **Fuente de verdad:** este documento en inglés es canónico. Actualízalo primero cuando cambie el comportamiento de los skills y luego sincroniza las traducciones.
6
+
7
+
8
+ ## 1. Elige un flujo de trabajo
9
+
10
+ Estos prompts son **lanzadores de flujo de trabajo interactivos**, no automatización en el servidor. Seleccionar uno añade instrucciones estructuradas a la conversación; el agente anfitrión debe tener acceso a archivos, terminal y Git, y debe llamar a `read_skill` en cada etapa. El flujo se detiene siempre que un skill requiera aprobación de diseño, revisión del plan o una decisión de finalización de rama.
11
+
12
+ | Objetivo | MCP Prompt | Qué hace |
13
+ | :--- | :--- | :--- |
14
+ | Construir una funcionalidad nueva | `feature-pipeline` | Inicia el flujo interactivo completo de funcionalidades. |
15
+ | Investigar y corregir un bug complejo | `structured-debug` | Inicia el flujo estructurado de depuración. |
16
+ | Planificar una gran refactorización o migración | `skill-composition` con escenario de refactorización | Recomienda el Pipeline 3; aún no hay un prompt lanzador dedicado. |
17
+ | Estabilizar un código heredado | `skill-composition` con escenario heredado | Recomienda el Pipeline 4; aún no hay un prompt lanzador dedicado. |
18
+
19
+ El método de invocación portable es el **menú de MCP Prompts** de tu cliente. Los nombres de slash-command varían según el cliente y pueden incluir el nombre del servidor MCP configurado. Mencionar un prompt por su nombre en el chat ordinario no garantiza que el cliente recupere ese MCP prompt.
20
+
21
+ La misma guía se expone a los clientes MCP como `guide://superpowers/skill-compositions`.
22
+
23
+ ### Requisitos previos
24
+
25
+ - Ejecuta en una sesión de agente con acceso al repositorio objetivo, archivos, terminal y Git.
26
+ - Crear worktrees requiere un repositorio Git y permiso para crear ramas y directorios.
27
+ - `subagent-driven-development` requiere herramientas multiagente del host. Cuando no están disponibles, `feature-pipeline` usa `executing-plans` como alternativa integrada.
28
+ - Los pushes, pull requests, merges y limpiezas destructivas siguen siendo decisiones explícitas del usuario.
29
+
30
+ ## 2. Por qué importan las composiciones de skills
31
+
32
+ Los 15 skills principales de `superpowers-mcp` abarcan todo el ciclo de vida del desarrollo de software (SDLC): desde descubrimiento de requisitos, planificación de arquitectura, configuración de espacios aislados, desarrollo guiado por pruebas (TDD) y depuración sistemática, hasta verificación completa, revisión de código e integración de ramas.
33
+
34
+ Mientras cada skill atómico actúa como una herramienta de ingeniería de precisión, el desarrollo de nivel productivo requiere **orquestación de flujos**. Las composiciones convierten interacciones ad-hoc con la IA en pipelines disciplinados, reproducibles y con protecciones de seguridad.
35
+
36
+ ---
37
+
38
+ ## 3. Principios arquitectónicos fundamentales
39
+
40
+ Al componer skills, aplica siempre estos cinco mecanismos de seguridad:
41
+
42
+ 1. **Aislamiento primero (con Git Worktrees)**: Siempre que coordines varios subagentes o depures hipótesis independientes en paralelo, usa `superpowers:using-git-worktrees` para evitar condiciones de carrera y contaminación del espacio de trabajo.
43
+ 2. **TDD por defecto**: Ninguna modificación de código sin una prueba que falle primero (ciclo Rojo-Verde-Refactorización) para garantizar seguridad contra regresiones.
44
+ 3. **Puertas de revisión de doble capa**: Nunca omitas las comprobaciones de cumplimiento de spec por tarea ni las revisiones de rama por funcionalidad (`requesting-code-review` / `receiving-code-review`).
45
+ 4. **Verificación completa antes de finalizar**: Ejecuta toda la suite de pruebas, el verificador de tipos y el linter (`verification-before-completion`) antes de declarar listo o fusionar ramas.
46
+ 5. **Frontera de seguridad remota (solo commits locales)**: Mantén los commits en local — sin push/pull/fetch salvo que el plan o tu compañero humano lo indique. Crea la rama desde una ref compartida con `--no-track` (o `--unset-upstream` antes del primer commit) para que la rama de funcionalidad nunca rastree una rama compartida, y nunca reescribas una rama compartida (`git revert` es el único remedio que aplicas tú mismo).
47
+
48
+ ---
49
+
50
+ ## 4. Cuatro pipelines estándar
51
+
52
+ ### Pipeline 1: Desarrollo de funcionalidades de extremo a extremo
53
+ **Ideal para:** Construir funcionalidades nuevas, módulos grandes o mejoras de subsistemas centrales.
54
+
55
+ ```mermaid
56
+ flowchart LR
57
+ F1[brainstorming] --> F2[writing-plans]
58
+ F2 --> F3[using-git-worktrees]
59
+ F3 --> F4["subagent-driven-development / executing-plans (with TDD)"]
60
+ F4 --> F5[verification-before-completion]
61
+ F5 --> F6[requesting-code-review]
62
+ F6 --> F7[finishing-a-development-branch]
63
+ ```
64
+
65
+ | Paso | Skill | Responsabilidad y entregable |
66
+ | :--- | :--- | :--- |
67
+ | **1. Requisitos y diseño** | `brainstorming` | Aclara intención, restricciones, decisiones de arquitectura y casos borde; confirma entendimiento compartido, ejecuta la revisión de traspaso a planificación y produce la Spec de diseño. |
68
+ | **2. Construcción del plan** | `writing-plans` | Descompone la Spec en tareas pequeñas y verificables con Recommended Skills. |
69
+ | **3. Aislamiento del espacio** | `using-git-worktrees` | Crea un worktree Git aislado para proteger la rama principal y el trabajo activo. |
70
+ | **4. Ejecución de tareas** | `subagent-driven-development` o `executing-plans` | Usa subagentes nuevos cuando el host los soporta; si no, ejecuta en línea. Carga `test-driven-development` para tareas de implementación y aplica Rojo ➔ Verde ➔ Refactorización. |
71
+ | **5. Verificación completa** | `verification-before-completion` | Ejecuta toda la suite de pruebas, linter y comprobaciones de tipos para cero regresiones; cuando no hay comando de pruebas, reabre el artefacto y da cuenta de cada parte de la solicitud. |
72
+ | **6. Revisión adversarial** | `requesting-code-review` | Ensambla el paquete de revisión y realiza revisiones integrales de código y arquitectura. |
73
+ | **7. Finalización de rama** | `finishing-a-development-branch` | Exporta hallazgos diferidos (checklist de PR o archivo de seguimientos), presenta las opciones de merge/PR/conservar y ejecuta solo la opción elegida. |
74
+
75
+ ---
76
+
77
+ ### Pipeline 2: Resolución estructurada y depuración multifallo
78
+ **Ideal para:** Bugs complejos, tests inestables, múltiples fallos o incidentes en producción.
79
+
80
+ ```mermaid
81
+ flowchart LR
82
+ D1[systematic-debugging] --> D2[using-git-worktrees]
83
+ D2 --> D3[dispatching-parallel-agents]
84
+ D3 --> D4[test-driven-development]
85
+ D4 --> D5[verification-before-completion]
86
+ D5 --> D6[requesting-code-review]
87
+ D6 --> D7[finishing-a-development-branch]
88
+ ```
89
+
90
+ 1. **`systematic-debugging`**: Investiga causas raíz y divide los fallos en hipótesis distintas y verificables.
91
+ 2. **`using-git-worktrees`**: Prepara worktrees aislados para investigaciones paralelas y evita interferencias entre pruebas.
92
+ 3. **`dispatching-parallel-agents`**: Despacha subagentes concurrentes para validar o invalidar cada hipótesis.
93
+ 4. **`test-driven-development`**: Escribe pruebas mínimas de reproducción que fallen antes de aplicar correcciones específicas.
94
+ 5. **`verification-before-completion`**: Valida que todas las pruebas del repositorio pasen con salidas limpias.
95
+ 6. **`requesting-code-review`** (y `receiving-code-review`): Revisa el delta de la corrección, asegura cobertura defensiva de regresión y resuelve los hallazgos.
96
+ 7. **`finishing-a-development-branch`**: Fusiona la rama del bugfix, elimina worktrees temporales y limpia el espacio.
97
+
98
+ ---
99
+
100
+ ### Pipeline 3: Refactorización grande y migración de sistemas
101
+ **Ideal para:** Refactors arquitectónicos, migraciones de framework o desacoplamiento de servicios.
102
+
103
+ ```mermaid
104
+ flowchart LR
105
+ R1[brainstorming] --> R2["writing-plans (skeleton-first)"]
106
+ R2 --> R3[using-git-worktrees]
107
+ R3 --> R4[subagent-driven-development]
108
+ R4 --> R5[verification-before-completion]
109
+ R5 --> R6[requesting-code-review]
110
+ R6 --> R7[finishing-a-development-branch]
111
+ ```
112
+
113
+ 1. **`brainstorming`**: Define contratos de interfaz, estrategias de transición y criterios de paridad.
114
+ 2. **`writing-plans` (modo Skeleton-First)**: Diseña primero el slice end-to-end más delgado entre todos los subsistemas.
115
+ 3. **`using-git-worktrees`**: Establece worktrees de migración dedicados y duraderos.
116
+ 4. **`subagent-driven-development`**: Ejecuta tareas de refactorización por fases con puertas de revisión obligatorias por tarea.
117
+ 5. **`verification-before-completion`** + **`requesting-code-review`**: Verificación total de regresión y revisión arquitectónica.
118
+ 6. **`finishing-a-development-branch`**: Fusiona la rama de migración, limpia worktrees y finaliza la entrega.
119
+
120
+ ---
121
+
122
+ ### Pipeline 4: Red de seguridad para código heredado
123
+ **Ideal para:** Códigos heredados sin cobertura automatizada ni patrones consistentes.
124
+
125
+ ```mermaid
126
+ flowchart LR
127
+ L1[brainstorming] --> L2[writing-plans]
128
+ L2 --> L3["test-driven-development (characterization)"]
129
+ L3 --> L4[systematic-debugging]
130
+ L4 --> L5[verification-before-completion]
131
+ ```
132
+
133
+ 1. **`brainstorming`**: Identifica rutas críticas de negocio y módulos de alto riesgo.
134
+ 2. **`writing-plans`**: Crea la hoja de ruta para añadir pruebas de caracterización y de borde.
135
+ 3. **`test-driven-development`**: Crea pruebas golden-master y de regresión contra comportamientos existentes con la guardia de caracterización TDD (mutar, verificar fallo, restaurar vía VCS, stay green).
136
+ 4. **`systematic-debugging`**: Encuentra defectos ocultos que emergen al establecer baselines.
137
+ 5. **`verification-before-completion`**: Consolida barreras de CI automatizadas.
138
+
139
+ ### Meta skill: Forense de sesiones
140
+
141
+ Fuera de los cuatro pipelines, **`diagnosing-superpowers`** reconstruye qué falló en una sesión pasada desde sus transcripciones en disco: entrevista inicial, descubrimiento de sesión, informes paralelos con evidencia citada y luego un paquete depurado opcional o borrador de GitHub issue. Úsalo cuando una sesión ignoró el plan, repitió trabajo o produjo un resultado inexplicable — y cuando el hallazgo pertenece upstream, también redacta el informe para mantenedores. El servidor MCP solo sirve el contenido del skill; el agente lee los archivos de transcripción del host con sus propias herramientas, así que ninguna transcripción cruza la frontera del servidor.
142
+
143
+ ---
144
+
145
+ ## 5. Esquema de metadatos de skills en planes
146
+
147
+ En planes generados por `writing-plans`, especifica los skills recomendados por tarea:
148
+
149
+ ```markdown
150
+ ### Task 1: Implement Token Authentication Middleware
151
+ - **Goal**: Validate JWT tokens and extract user claims
152
+ - **Target Files**: `src/auth/jwt.ts`, `tests/auth/jwt.test.ts`
153
+ - **Recommended Skill**: `superpowers:test-driven-development`
154
+ - **Task Brief**:
155
+ 1. Write failing test for expired and invalid signatures (FAIL)
156
+ 2. Implement minimal signature verification (PASS)
157
+ 3. Refactor with strict type safety
158
+ ```
159
+
160
+ ### Protocolo de despacho controlador → subagente
161
+ Cuando el agente controlador despacha un subagente de tarea:
162
+ 1. El controlador lee el `Recommended Skill` indicado en la tarea del plan.
163
+ 2. El controlador inyecta instrucciones o guía al subagente para cargar ese skill vía `read_skill(skill_name)`.
164
+ 3. El subagente ejecuta bajo la metodología estricta de ese skill (p. ej. Red-Green-Refactor).
165
+
166
+ ---
167
+
168
+ ## 6. Referencia de MCP Prompts nativos
169
+
170
+ `superpowers-mcp` ofrece MCP prompts nativos listos para usar en IDEs (Cursor, Antigravity, VS Code, Devin Desktop):
171
+
172
+ | MCP Prompt | Argumentos | Propósito |
173
+ | :--- | :--- | :--- |
174
+ | **`feature-pipeline`** | `feature_name` requerido, `requirements` opcional | Lanzador interactivo de desarrollo de funcionalidades end-to-end. |
175
+ | **`structured-debug`** | `issue_description`, `failing_tests` | Lanzador interactivo de depuración sistemática e investigación multiagente opcional. |
176
+ | **`skill-composition`** | `scenario` | Recomendador dinámico de composición para tareas de funcionalidad, debug, refactor o legado. |
177
+ | **`session-start`** | - | Inyecta el contexto fundacional de Superpowers y reglas de invocación. |
178
+ | **`sdd-implementer`** | `brief_file`, `task_name`, ... | Plantilla de prompt de subagente implementador de tareas SDD. |
179
+ | **`sdd-task-reviewer`** | `brief_file`, `report_file`, `review_file`, ... | Plantilla de prompt revisor de spec y calidad por tarea SDD. |
180
+ | **`sdd-re-review`** | `brief_file`, `review_file`, `previous_findings`, ... | Plantilla de re-revisor SDD de alcance de ronda de corrección. |
181
+ | **`spec-reviewer`** | `spec_file` | Plantilla de prompt revisor adversarial de specs de diseño. |
182
+ | **`plan-reviewer`** | `plan_file`, `spec_file` | Plantilla de prompt revisor adversarial de planes de implementación. |
183
+
184
+ ---
185
+
186
+ ## 7. Guía práctica de uso
187
+
188
+ Con `superpowers-mcp` instalado, parte de un MCP prompt nativo y deja que sus instrucciones carguen los skills necesarios.
189
+
190
+ ### Método A: Menú de MCP Prompts (recomendado)
191
+ En un cliente con soporte de MCP prompts:
192
+ 1. Confirma que el servidor MCP `superpowers` configurado está conectado.
193
+ 2. **Nueva funcionalidad**: Selecciona `feature-pipeline` e indica `feature_name` más `requirements` opcional.
194
+ 3. **Resolución y bugfixes**: Selecciona `structured-debug` y pega los logs de error o nombres de pruebas que fallan.
195
+ 4. **Tareas personalizadas / arquitectura**: Selecciona `skill-composition` para que la IA recomiende el mejor pipeline para tu escenario.
196
+
197
+ Tu cliente también puede exponer un slash command con namespace. Consulta su selector de prompts para la sintaxis exacta en lugar de asumir que `/feature-pipeline` es portable.
198
+
199
+ ### Método B: Alternativa en lenguaje natural
200
+ Puedes pedir al agente que siga un flujo nombrado, pero esto no garantiza que el cliente recupere el MCP prompt nativo. Para uso determinista, selecciónalo desde el menú de MCP Prompts.
201
+ - *«Sigue el `feature-pipeline` para construir [Nombre de funcionalidad].»*
202
+ - *«Ejecuta el flujo `structured-debug` sobre este error: [Pega error / traza].»*
203
+ - *«Aplica el Pipeline de refactorización de `docs/skill-compositions.es.md` para refactorizar [Módulo].»*
204
+
205
+ ### 💬 Ejemplo interactivo paso a paso:
206
+ ```text
207
+ [You]: (Selects the `feature-pipeline` MCP prompt and enters "coupon code checkout system".)
208
+ ↓
209
+ [AI]: (Loads brainstorming with `read_skill`) "Understood. Does the coupon have an expiry date, and can it stack with site-wide sales?"
210
+ ↓
211
+ [You]: "It has an expiry date, and it cannot stack."
212
+ ↓
213
+ [AI]: (After design approval, loads `writing-plans`) "Created implementation plan at docs/superpowers/plans/... Please review."
214
+ ↓
215
+ [You]: "Looks good, proceed."
216
+ ↓
217
+ [AI]: (Creates or verifies a worktree ➔ uses SDD or the inline fallback ➔ implements via TDD ➔ verifies ➔ reviews ➔ presents branch-finishing choices)
218
+ ↓
219
+ [AI]: "All tasks and full test suite passed (100%). Code review clean. Branch ready for merge!"
220
+ ```
@@ -0,0 +1,220 @@
1
+ # Superpowers MCP: Skill संयोजन और वर्कफ़्लो पाइपलाइन
2
+
3
+ [English](skill-compositions.md) | [繁體中文](skill-compositions.zh-TW.md) | [日本語](skill-compositions.ja.md) | [한국어](skill-compositions.ko.md) | [Español](skill-compositions.es.md) | [Português (BR)](skill-compositions.pt-BR.md) | [हिन्दी](skill-compositions.hi.md)
4
+
5
+ > **प्रामाणिक स्रोत:** यह अंग्रेज़ी दस्तावेज़ canonical है। skill व्यवहार बदलने पर पहले इसे अपडेट करें, फिर अनुवाद sync करें।
6
+
7
+
8
+ ## 1. वर्कफ़्लो चुनें
9
+
10
+ ये prompts **इंटरैक्टिव वर्कफ़्लो लॉन्चर** हैं, सर्वर-साइड स्वचालन नहीं। किसी एक को चुनने से वार्तालाप में संरचित निर्देश जुड़ते हैं; होस्ट एजेंट के पास फ़ाइल, टर्मिनल और Git एक्सेस होना चाहिए और हर चरण में `read_skill` कॉल करना चाहिए। जब भी किसी skill को डिज़ाइन अनुमोदन, योजना समीक्षा या ब्रांच-समापन निर्णय चाहिए, वर्कफ़्लो रुकता है।
11
+
12
+ | लक्ष्य | MCP Prompt | यह क्या करता है |
13
+ | :--- | :--- | :--- |
14
+ | नई सुविधा बनाएँ | `feature-pipeline` | पूर्ण इंटरैक्टिव सुविधा वर्कफ़्लो शुरू करता है। |
15
+ | जटिल बग की जाँच व सुधार करें | `structured-debug` | संरचित डिबगिंग वर्कफ़्लो शुरू करता है। |
16
+ | बड़े रीफ़ैक्टर या माइग्रेशन की योजना बनाएँ | रीफ़ैक्टर परिदृश्य सहित `skill-composition` | Pipeline 3 अनुशंसित करता है; अभी कोई समर्पित लॉन्चर prompt नहीं है। |
17
+ | लेगेसी कोडबेस स्थिर करें | लेगेसी परिदृश्य सहित `skill-composition` | Pipeline 4 अनुशंसित करता है; अभी कोई समर्पित लॉन्चर prompt नहीं है। |
18
+
19
+ पोर्टेबल आह्वान विधि आपके क्लाइंट का **MCP Prompts मेनू** है। Slash-command नाम क्लाइंट अनुसार बदलते हैं और उनमें कॉन्फ़िगर MCP सर्वर नाम शामिल हो सकता है। सामान्य चैट में prompt नाम का उल्लेख मात्र से यह गारंटी नहीं कि क्लाइंट वह MCP prompt लाएगा।
20
+
21
+ यही मार्गदर्शिका MCP क्लाइंटों को `guide://superpowers/skill-compositions` के रूप में एक्सपोज़ की जाती है।
22
+
23
+ ### पूर्वापेक्षाएँ
24
+
25
+ - लक्ष्य रिपॉज़िटरी, फ़ाइलों, टर्मिनल और Git तक एक्सेस वाली एजेंट सत्र में चलाएँ।
26
+ - Worktree निर्माण हेतु Git रिपॉज़िटरी तथा ब्रांच व डायरेक्टरी बनाने की अनुमति चाहिए।
27
+ - `subagent-driven-development` हेतु होस्ट-प्रदत्त मल्टी-एजेंट टूल चाहिए। अनुपलब्ध होने पर `feature-pipeline` इनलाइन फ़ॉलबैक के रूप में `executing-plans` उपयोग करता है।
28
+ - Push, pull request, merge और विनाशकारी सफ़ाई स्पष्ट उपयोगकर्ता निर्णय बने रहते हैं।
29
+
30
+ ## 2. Skill संयोजन क्यों महत्वपूर्ण हैं
31
+
32
+ `superpowers-mcp` के 15 मुख्य skills संपूर्ण सॉफ़्टवेयर विकास जीवनचक्र (SDLC) को कवर करते हैं: आवश्यकता खोज, आर्किटेक्चर योजना, पृथक workspace सेटअप, टेस्ट-चालित विकास (TDD) और व्यवस्थित डिबगिंग से लेकर पूर्ण सत्यापन, कोड समीक्षा और ब्रांच एकीकरण तक।
33
+
34
+ जहाँ हर atomic skill सटीक इंजीनियरिंग टूल की तरह काम करता है, उत्पादन-स्तरीय विकास हेतु **वर्कफ़्लो ऑर्केस्ट्रेशन** चाहिए। Skill संयोजन तदर्थ AI इंटरैक्शन को अनुशासित, पुनरुत्पादनीय और सुरक्षा-संरक्षित इंजीनियरिंग पाइपलाइनों में बदल देते हैं।
35
+
36
+ ---
37
+
38
+ ## 3. मुख्य आर्किटेक्चर सिद्धांत
39
+
40
+ Skills संयोजित करते समय ये पाँच सुरक्षा तंत्र हमेशा लागू करें:
41
+
42
+ 1. **पहले पृथक्करण (Git Worktrees द्वारा)**: जब भी कई subagents समन्वयित करें या स्वतंत्र परिकल्पनाएँ समानांतर डिबग करें, फ़ाइलसिस्टम रेस कंडीशन और workspace प्रदूषण से बचने हेतु हमेशा `superpowers:using-git-worktrees` उपयोग करें।
43
+ 2. **डिफ़ॉल्ट TDD**: पहले असफल टेस्ट (Red-Green-Refactor चक्र) के बिना कोई कोड संशोधन नहीं, ताकि रिग्रेशन सुरक्षा गारंटीकृत हो।
44
+ 3. **दोहरी-परत समीक्षा गेट**: कार्य-स्तरीय spec अनुपालन जाँच या सुविधा-स्तरीय ब्रांच समीक्षा (`requesting-code-review` / `receiving-code-review`) कभी न छोड़ें।
45
+ 4. **पूर्ण होने से पहले पूर्ण सत्यापन**: done कहने या ब्रांच मर्ज करने से पहले संपूर्ण टेस्ट सूट, टाइप-चेकर और linter (`verification-before-completion`) चलाएँ।
46
+ 5. **Remote-सुरक्षा सीमा (केवल स्थानीय commits)**: Commits स्थानीय रखें — योजना या मानव साथी कहे बिना push/pull/fetch नहीं। साझा ref से `--no-track` (या पहले commit से पहले `--unset-upstream`) के साथ ब्रांच बनाएँ ताकि सुविधा ब्रांच कभी साझा ब्रांच को ट्रैक न करे, और साझा ब्रांच कभी rewrite न करें (`git revert` ही एकमात्र उपाय है जो आप स्वयं लगाते हैं)।
47
+
48
+ ---
49
+
50
+ ## 4. चार मानक वर्कफ़्लो पाइपलाइन
51
+
52
+ ### Pipeline 1: एंड-टू-एंड सुविधा विकास
53
+ **उपयुक्त:** नई सुविधाएँ, बड़े मॉड्यूल या मुख्य सबसिस्टम संवर्धन बनाना।
54
+
55
+ ```mermaid
56
+ flowchart LR
57
+ F1[brainstorming] --> F2[writing-plans]
58
+ F2 --> F3[using-git-worktrees]
59
+ F3 --> F4["subagent-driven-development / executing-plans (with TDD)"]
60
+ F4 --> F5[verification-before-completion]
61
+ F5 --> F6[requesting-code-review]
62
+ F6 --> F7[finishing-a-development-branch]
63
+ ```
64
+
65
+ | चरण | Skill | उत्तरदायित्व व सुपुर्दगी |
66
+ | :--- | :--- | :--- |
67
+ | **1. आवश्यकता व डिज़ाइन** | `brainstorming` | आशय, बाधाएँ, आर्किटेक्चर निर्णय और edge cases स्पष्ट करें; साझा समझ पुष्ट करें, योजना-हैंडऑफ़ समीक्षा चलाएँ और डिज़ाइन Spec आउटपुट करें। |
68
+ | **2. योजना निर्माण** | `writing-plans` | Spec को Recommended Skills सहित छोटे, परीक्षणयोग्य कार्यों में बाँटें। |
69
+ | **3. Workspace पृथक्करण** | `using-git-worktrees` | मुख्य ब्रांच और सक्रिय कार्य की रक्षा हेतु पृथक Git worktree बनाएँ। |
70
+ | **4. कार्य निष्पादन** | `subagent-driven-development` या `executing-plans` | होस्ट समर्थित हो तो ताज़ा subagents उपयोग करें; अन्यथा इनलाइन निष्पादित करें। कार्यान्वयन कार्यों हेतु `test-driven-development` लोड करें और Red ➔ Green ➔ Refactor लागू करें। |
71
+ | **5. पूर्ण सूट सत्यापन** | `verification-before-completion` | शून्य रिग्रेशन हेतु पूर्ण टेस्ट सूट, linter और टाइप जाँच चलाएँ; जब कोई टेस्ट कमांड न हो, आर्टिफ़ैक्ट पुनः खोलें और अनुरोध के हर भाग का हिसाब दें। |
72
+ | **6. प्रतिकूल समीक्षा** | `requesting-code-review` | समीक्षा पैकेज जोड़ें और व्यापक कोड व आर्किटेक्चर समीक्षाएँ करें। |
73
+ | **7. ब्रांच समापन** | `finishing-a-development-branch` | विलंबित निष्कर्ष निर्यात करें (PR चेकलिस्ट या committed follow-ups फ़ाइल), फिर उपलब्ध merge/PR/keep विकल्प प्रस्तुत करें और केवल उपयोगकर्ता-चुना विकल्प निष्पादित करें। |
74
+
75
+ ---
76
+
77
+ ### Pipeline 2: संरचित समस्या-निवारण व बहु-विफलता डिबगिंग
78
+ **उपयुक्त:** जटिल बग, flaky टेस्ट, कई टेस्ट विफलताएँ या उत्पादन घटनाएँ।
79
+
80
+ ```mermaid
81
+ flowchart LR
82
+ D1[systematic-debugging] --> D2[using-git-worktrees]
83
+ D2 --> D3[dispatching-parallel-agents]
84
+ D3 --> D4[test-driven-development]
85
+ D4 --> D5[verification-before-completion]
86
+ D5 --> D6[requesting-code-review]
87
+ D6 --> D7[finishing-a-development-branch]
88
+ ```
89
+
90
+ 1. **`systematic-debugging`**: मूल कारणों की जाँच करें और विफलताओं को भिन्न, परीक्षणयोग्य परिकल्पनाओं में बाँटें।
91
+ 2. **`using-git-worktrees`**: समानांतर जाँच हेतु पृथक worktrees प्रावधानित करें ताकि टेस्ट हस्तक्षेप रुके।
92
+ 3. **`dispatching-parallel-agents`**: प्रत्येक परिकल्पना मान्य/अमान्य करने हेतु समवर्ती subagents भेजें।
93
+ 4. **`test-driven-development`**: लक्षित बगफ़िक्स लगाने से पहले न्यूनतम असफल पुनरुत्पादन टेस्ट लिखें।
94
+ 5. **`verification-before-completion`**: मान्य करें कि सभी रिपॉज़िटरी टेस्ट स्वच्छ आउटपुट सहित पास हों।
95
+ 6. **`requesting-code-review`** (और `receiving-code-review`): सुधार डेल्टा की समीक्षा करें, रक्षात्मक रिग्रेशन कवरेज सुनिश्चित करें और समीक्षा निष्कर्ष सुलझाएँ।
96
+ 7. **`finishing-a-development-branch`**: बगफ़िक्स ब्रांच मर्ज करें, अस्थायी worktrees हटाएँ और workspace साफ़ करें।
97
+
98
+ ---
99
+
100
+ ### Pipeline 3: बड़ा रीफ़ैक्टरिंग व सिस्टम माइग्रेशन
101
+ **उपयुक्त:** आर्किटेक्चर रीफ़ैक्टर, फ़्रेमवर्क माइग्रेशन या सेवा पृथक्करण।
102
+
103
+ ```mermaid
104
+ flowchart LR
105
+ R1[brainstorming] --> R2["writing-plans (skeleton-first)"]
106
+ R2 --> R3[using-git-worktrees]
107
+ R3 --> R4[subagent-driven-development]
108
+ R4 --> R5[verification-before-completion]
109
+ R5 --> R6[requesting-code-review]
110
+ R6 --> R7[finishing-a-development-branch]
111
+ ```
112
+
113
+ 1. **`brainstorming`**: इंटरफ़ेस अनुबंध, संक्रमण रणनीतियाँ और समता मानदंड परिभाषित करें।
114
+ 2. **`writing-plans` (Skeleton-First मोड)**: पहले सभी सबसिस्टमों में सबसे पतला एंड-टू-एंड slice डिज़ाइन करें।
115
+ 3. **`using-git-worktrees`**: समर्पित दीर्घजीवी माइग्रेशन worktrees स्थापित करें।
116
+ 4. **`subagent-driven-development`**: प्रति-कार्य अनिवार्य समीक्षा गेट सहित चरणबद्ध रीफ़ैक्टर कार्य निष्पादित करें।
117
+ 5. **`verification-before-completion`** + **`requesting-code-review`**: पूर्ण रिग्रेशन सत्यापन और आर्किटेक्चर समीक्षा।
118
+ 6. **`finishing-a-development-branch`**: माइग्रेशन ब्रांच मर्ज करें, worktrees साफ़ करें और डिलीवरी अंतिम करें।
119
+
120
+ ---
121
+
122
+ ### Pipeline 4: लेगेसी कोडबेस सुरक्षा-जाल
123
+ **उपयुक्त:** स्वचालित टेस्ट कवरेज या सुसंगत पैटर्न रहित लेगेसी कोडबेस।
124
+
125
+ ```mermaid
126
+ flowchart LR
127
+ L1[brainstorming] --> L2[writing-plans]
128
+ L2 --> L3["test-driven-development (characterization)"]
129
+ L3 --> L4[systematic-debugging]
130
+ L4 --> L5[verification-before-completion]
131
+ ```
132
+
133
+ 1. **`brainstorming`**: महत्वपूर्ण व्यवसाय पथ और उच्च-जोखिम मॉड्यूल पहचानें।
134
+ 2. **`writing-plans`**: characterization और सीमा टेस्ट जोड़ने का रोडमैप बनाएँ।
135
+ 3. **`test-driven-development`**: TDD characterization गार्ड से मौजूदा व्यवहारों पर golden-master और रिग्रेशन टेस्ट लिखें (mutate, विफलता सत्यापित, VCS से restore, stay green)।
136
+ 4. **`systematic-debugging`**: टेस्ट आधार स्थापित करते समय उभरे छिपे दोषों का मूल-कारण खोजें।
137
+ 5. **`verification-before-completion`**: स्वचालित CI टेस्ट अवरोध सुदृढ़ करें।
138
+
139
+ ### Meta Skill: सत्र फॉरेंसिक
140
+
141
+ चार पाइपलाइनों से बाहर, **`diagnosing-superpowers`** डिस्क पर ट्रांसक्रिप्ट से पिछली सत्र की गड़बड़ी का पुनर्निर्माण करता है: intake साक्षात्कार, सत्र खोज, उद्धृत साक्ष्य सहित समानांतर विश्लेषक रिपोर्ट, फिर वैकल्पिक स्क्रब बंडल या GitHub issue मसौदा। जब सत्र योजना अनदेखा करे, कार्य दोहराए या अव्याख्येय परिणाम दे — और जब निष्कर्ष upstream का हो, तो मेंटेनर रिपोर्ट भी मसौदित करता है। MCP सर्वर केवल skill सामग्री परोसता है; एजेंट होस्ट की ट्रांसक्रिप्ट फ़ाइलें अपने टूलों से पढ़ता है, इसलिए कोई ट्रांसक्रिप्ट सर्वर सीमा पार नहीं करती।
142
+
143
+ ---
144
+
145
+ ## 5. योजनाओं में skill मेटाडेटा स्कीमा
146
+
147
+ `writing-plans` द्वारा जेनरेट योजनाओं में हर कार्य हेतु अनुशंसित skills निर्दिष्ट करें:
148
+
149
+ ```markdown
150
+ ### Task 1: Implement Token Authentication Middleware
151
+ - **Goal**: Validate JWT tokens and extract user claims
152
+ - **Target Files**: `src/auth/jwt.ts`, `tests/auth/jwt.test.ts`
153
+ - **Recommended Skill**: `superpowers:test-driven-development`
154
+ - **Task Brief**:
155
+ 1. Write failing test for expired and invalid signatures (FAIL)
156
+ 2. Implement minimal signature verification (PASS)
157
+ 3. Refactor with strict type safety
158
+ ```
159
+
160
+ ### नियंत्रक-से-subagent प्रेषण प्रोटोकॉल
161
+ जब नियंत्रक एजेंट कार्य subagent भेजता है:
162
+ 1. नियंत्रक योजना कार्य में निर्दिष्ट `Recommended Skill` पढ़ता है।
163
+ 2. नियंत्रक निर्देश इंजेक्ट करता है या subagent को `read_skill(skill_name)` से वह skill लोड करने हेतु मार्गदर्शित करता है।
164
+ 3. Subagent उस skill की सख्त पद्धति से निष्पादित करता है (उदा. Red-Green-Refactor)।
165
+
166
+ ---
167
+
168
+ ## 6. नेटिव MCP Prompts संदर्भ
169
+
170
+ `superpowers-mcp` IDEs (Cursor, Antigravity, VS Code, Devin Desktop) में नेटिव, उपयोग-तैयार MCP prompts देता है:
171
+
172
+ | MCP Prompt | तर्क | उद्देश्य |
173
+ | :--- | :--- | :--- |
174
+ | **`feature-pipeline`** | आवश्यक `feature_name`, वैकल्पिक `requirements` | एंड-टू-एंड सुविधा विकास हेतु इंटरैक्टिव लॉन्चर। |
175
+ | **`structured-debug`** | `issue_description`, `failing_tests` | व्यवस्थित डिबगिंग और वैकल्पिक मल्टी-एजेंट जाँच हेतु इंटरैक्टिव लॉन्चर। |
176
+ | **`skill-composition`** | `scenario` | सुविधा, debug, refactor या लेगेसी कार्यों हेतु गतिशील skill संयोजन अनुशंसक। |
177
+ | **`session-start`** | - | आधारभूत Superpowers संदर्भ और skill आह्वान नियम इंजेक्ट करता है। |
178
+ | **`sdd-implementer`** | `brief_file`, `task_name`, ... | SDD कार्य कार्यान्वयनकर्ता subagent prompt टेम्पलेट। |
179
+ | **`sdd-task-reviewer`** | `brief_file`, `report_file`, `review_file`, ... | SDD प्रति-कार्य spec व गुणवत्ता समीक्षक prompt टेम्पलेट। |
180
+ | **`sdd-re-review`** | `brief_file`, `review_file`, `previous_findings`, ... | SDD सुधार-राउंड सीमित पुनः-समीक्षक prompt टेम्पलेट। |
181
+ | **`spec-reviewer`** | `spec_file` | प्रतिकूल डिज़ाइन spec समीक्षक prompt टेम्पलेट। |
182
+ | **`plan-reviewer`** | `plan_file`, `spec_file` | प्रतिकूल कार्यान्वयन योजना समीक्षक prompt टेम्पलेट। |
183
+
184
+ ---
185
+
186
+ ## 7. व्यावहारिक उपयोग मार्गदर्शिका
187
+
188
+ `superpowers-mcp` इंस्टॉल होने पर नेटिव MCP prompt से शुरू करें और उसके निर्देशों को आवश्यक skills लोड करने दें।
189
+
190
+ ### विधि A: MCP Prompts मेनू (अनुशंसित)
191
+ MCP prompts समर्थित क्लाइंट में:
192
+ 1. पुष्टि करें कि कॉन्फ़िगर `superpowers` MCP सर्वर जुड़ा है।
193
+ 2. **नई सुविधा विकास**: `feature-pipeline` चुनें और `feature_name` तथा वैकल्पिक `requirements` दें।
194
+ 3. **समस्या-निवारण व बगफ़िक्स**: `structured-debug` चुनें और त्रुटि लॉग या असफल टेस्ट नाम चिपकाएँ।
195
+ 4. **कस्टम / आर्किटेक्चर कार्य**: अपने परिदृश्य हेतु सर्वोत्तम पाइपलाइन AI से अनुशंसित कराने हेतु `skill-composition` चुनें।
196
+
197
+ आपका क्लाइंट नेमस्पेस्ड slash command भी एक्सपोज़ कर सकता है। `/feature-pipeline` पोर्टेबल मानने के बजाय सटीक सिंटैक्स हेतु उसका prompt picker देखें।
198
+
199
+ ### विधि B: प्राकृतिक-भाषा फ़ॉलबैक
200
+ आप एजेंट से नामित वर्कफ़्लो अनुसरण करने को कह सकते हैं, पर यह गारंटी नहीं कि क्लाइंट नेटिव MCP prompt लाएगा। नियतात्मक उपयोग हेतु MCP Prompts मेनू से चुनें।
201
+ - *"कृपया [सुविधा नाम] बनाने हेतु `feature-pipeline` अनुसरण करें।"*
202
+ - *"इस त्रुटि पर `structured-debug` वर्कफ़्लो चलाएँ: [त्रुटि / trace चिपकाएँ]।"*
203
+ - *"[मॉड्यूल] रीफ़ैक्टर करने हेतु `docs/skill-compositions.hi.md` से Refactoring Pipeline लागू करें।"*
204
+
205
+ ### 💬 इंटरैक्टिव चरण-दर-चरण वॉकथ्रू उदाहरण:
206
+ ```text
207
+ [You]: (Selects the `feature-pipeline` MCP prompt and enters "coupon code checkout system".)
208
+ ↓
209
+ [AI]: (Loads brainstorming with `read_skill`) "Understood. Does the coupon have an expiry date, and can it stack with site-wide sales?"
210
+ ↓
211
+ [You]: "It has an expiry date, and it cannot stack."
212
+ ↓
213
+ [AI]: (After design approval, loads `writing-plans`) "Created implementation plan at docs/superpowers/plans/... Please review."
214
+ ↓
215
+ [You]: "Looks good, proceed."
216
+ ↓
217
+ [AI]: (Creates or verifies a worktree ➔ uses SDD or the inline fallback ➔ implements via TDD ➔ verifies ➔ reviews ➔ presents branch-finishing choices)
218
+ ↓
219
+ [AI]: "All tasks and full test suite passed (100%). Code review clean. Branch ready for merge!"
220
+ ```