ostacky 0.0.1 → 0.0.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.
- package/LICENSE +21 -0
- package/README.md +38 -26
- package/assets/agents/ostacky.md +65 -594
- package/assets/commands/install-stack.md +53 -19
- package/assets/commands/opsx-sync.md +25 -0
- package/assets/skills/brainstorming/SKILL.md +164 -0
- package/assets/skills/brainstorming/SKILL.md.placeholder +36 -0
- package/assets/skills/dispatching-parallel-agents/SKILL.md +182 -0
- package/assets/skills/dispatching-parallel-agents/SKILL.md.placeholder +36 -0
- package/assets/skills/openspec-apply-change/SKILL.md +156 -0
- package/assets/skills/openspec-apply-change/SKILL.md.placeholder +36 -0
- package/assets/skills/openspec-archive-change/SKILL.md +114 -0
- package/assets/skills/openspec-archive-change/SKILL.md.placeholder +36 -0
- package/assets/skills/openspec-explore/SKILL.md +288 -0
- package/assets/skills/openspec-explore/SKILL.md.placeholder +36 -0
- package/assets/skills/openspec-propose/SKILL.md +110 -0
- package/assets/skills/openspec-propose/SKILL.md.placeholder +36 -0
- package/assets/skills/review/SKILL.md +214 -0
- package/assets/skills/review/SKILL.md.placeholder +36 -0
- package/assets/skills/subagent-driven-development/SKILL.md +279 -0
- package/assets/skills/subagent-driven-development/SKILL.md.placeholder +36 -0
- package/assets/skills/tdd/SKILL.md +371 -0
- package/assets/skills/tdd/SKILL.md.placeholder +36 -0
- package/assets/skills/writing-plans/SKILL.md +152 -0
- package/assets/skills/writing-plans/SKILL.md.placeholder +36 -0
- package/dist/cli.js +389 -47
- package/manifest.json +101 -22
- package/package.json +39 -38
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
---
|
|
2
|
-
description: Instala CodeGraph,
|
|
2
|
+
description: Instala CodeGraph, skills curadas y OpenSpec localmente para OpenCode únicamente
|
|
3
3
|
agent: build
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
Instala el stack tecnológico de desarrollo para este proyecto.
|
|
6
|
+
Instala el stack tecnológico de desarrollo para este proyecto, basado en el set curado de 10 skills bundleado dentro del paquete Ostacky.
|
|
7
7
|
|
|
8
8
|
**RESTRICCIÓN ABSOLUTA:** instalar ÚNICAMENTE para OpenCode. Está terminantemente prohibido crear o modificar archivos en `.claude/`, `.kiro/`, `.cursor/`, `.gemini/`, `.codex/`, `.antigravity/`, `.windsurf/` o cualquier otro directorio de plataformas externas.
|
|
9
9
|
|
|
10
|
+
**Origen del set curado:** el set de 10 skills (6 Superpowers + 4 OpenSpec) referenciado en `assets/agents/ostacky.md` está bundleado en `assets/skills/` dentro del paquete npm. La definición del set y su trazabilidad viven en `manifest.json` y `.opencode/ostacky-lock.json`.
|
|
11
|
+
|
|
10
12
|
---
|
|
11
13
|
|
|
12
14
|
## Paso 1 — CodeGraph
|
|
@@ -37,28 +39,58 @@ Verifica que el MCP server esté configurado en `opencode.json` (campo `mcpServe
|
|
|
37
39
|
|
|
38
40
|
---
|
|
39
41
|
|
|
40
|
-
## Paso 2 —
|
|
42
|
+
## Paso 2 — Skills curadas (bundleadas)
|
|
43
|
+
|
|
44
|
+
Las 10 skills curadas están bundleadas dentro del paquete Ostacky en `assets/skills/`. No se descargan ni clonan en tiempo de install; ya vienen en el paquete npm.
|
|
45
|
+
|
|
46
|
+
Copiá cada skill bundleada a `.opencode/skills/<nombre>/` preservando la estructura interna (incluyendo `SKILL.md` y cualquier subdirectorio como `scripts/` o `references/`):
|
|
41
47
|
|
|
42
|
-
|
|
48
|
+
```bash
|
|
49
|
+
# Ejemplo para una skill; aplicar a las 10
|
|
50
|
+
mkdir -p .opencode/skills/brainstorming
|
|
51
|
+
cp -r assets/skills/brainstorming/* .opencode/skills/brainstorming/
|
|
52
|
+
```
|
|
43
53
|
|
|
44
|
-
|
|
54
|
+
**Set curado (referenciado en `assets/agents/ostacky.md`):**
|
|
55
|
+
|
|
56
|
+
**Superpowers (6):** `brainstorming`, `writing-plans`, `tdd`, `subagent-driven-development`, `dispatching-parallel-agents`, `review`
|
|
57
|
+
|
|
58
|
+
**OpenSpec (4):** `openspec-explore`, `openspec-propose`, `openspec-apply-change`, `openspec-archive-change`
|
|
59
|
+
|
|
60
|
+
**NO se requiere** el plugin `superpowers@git+...` en `opencode.json`. Las skills viven en `.opencode/skills/` y OpenCode las descubre automáticamente desde ahí.
|
|
61
|
+
|
|
62
|
+
---
|
|
63
|
+
|
|
64
|
+
## Paso 3 — Parche de `opencode.json`
|
|
65
|
+
|
|
66
|
+
Leé `opencode.json` (o `opencode.jsonc`) en la raíz del proyecto.
|
|
67
|
+
|
|
68
|
+
**Eliminá** cualquier entrada `"plugin": ["superpowers@git+https://github.com/obra/superpowers.git"]` (y equivalentes). Las skills ya están provistas por el bundle local, no por el plugin.
|
|
69
|
+
|
|
70
|
+
**Preservá** sin tocar el bloque `mcp.codegraph` configurado en el Paso 1.
|
|
71
|
+
|
|
72
|
+
**Resultado final esperado** de `opencode.json`:
|
|
45
73
|
|
|
46
74
|
```json
|
|
47
75
|
{
|
|
48
76
|
"$schema": "https://opencode.ai/config.json",
|
|
49
|
-
"
|
|
77
|
+
"mcp": {
|
|
78
|
+
"codegraph": {
|
|
79
|
+
"type": "local",
|
|
80
|
+
"command": ["codegraph", "serve", "--mcp"],
|
|
81
|
+
"enabled": true
|
|
82
|
+
}
|
|
83
|
+
}
|
|
50
84
|
}
|
|
51
85
|
```
|
|
52
86
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
**IMPORTANTE:** modificar ÚNICAMENTE `opencode.json`. No crear ningún archivo fuera del directorio `.opencode/` ni de la raíz del proyecto.
|
|
87
|
+
(El campo `plugin` queda ausente, no como array vacío.)
|
|
56
88
|
|
|
57
89
|
---
|
|
58
90
|
|
|
59
|
-
## Paso
|
|
91
|
+
## Paso 4 — OpenSpec
|
|
60
92
|
|
|
61
|
-
|
|
93
|
+
Inicializá OpenSpec configurándolo exclusivamente para OpenCode:
|
|
62
94
|
|
|
63
95
|
```bash
|
|
64
96
|
openspec init --tools opencode --force
|
|
@@ -66,22 +98,24 @@ openspec init --tools opencode --force
|
|
|
66
98
|
|
|
67
99
|
El flag `--tools opencode` garantiza que solo se generen archivos en `.opencode/skills/` y `.opencode/commands/`. El flag `--force` limpia archivos legacy de inicializaciones anteriores que hayan podido configurar otras plataformas.
|
|
68
100
|
|
|
69
|
-
Si OpenSpec ya estaba correctamente inicializado para opencode,
|
|
101
|
+
Si OpenSpec ya estaba correctamente inicializado para opencode, ejecutá en su lugar:
|
|
70
102
|
|
|
71
103
|
```bash
|
|
72
104
|
openspec update
|
|
73
105
|
```
|
|
74
106
|
|
|
75
|
-
**IMPORTANTE:** verificar después de la ejecución que no existan carpetas `.claude/`, `.kiro/`, `.cursor/` ni similares generadas por OpenSpec. Si existen,
|
|
107
|
+
**IMPORTANTE:** verificar después de la ejecución que no existan carpetas `.claude/`, `.kiro/`, `.cursor/` ni similares generadas por OpenSpec. Si existen, eliminalas.
|
|
76
108
|
|
|
77
109
|
---
|
|
78
110
|
|
|
79
111
|
## Verificación final
|
|
80
112
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
113
|
+
Confirmá que:
|
|
114
|
+
|
|
115
|
+
1. `.opencode/skills/` contiene las 10 skills curadas (cada una con su `SKILL.md`; algunas traen `scripts/` y `references/`)
|
|
116
|
+
2. `.opencode/commands/` contiene los 5 opsx-* commands (`opsx-apply`, `opsx-archive`, `opsx-explore`, `opsx-propose`, `opsx-sync`)
|
|
117
|
+
3. `opencode.json` (o `.jsonc`) tiene **solamente** el bloque `mcp.codegraph` — sin campo `plugin`
|
|
118
|
+
4. `.codegraph/` existe en la raíz del proyecto (índice local de CodeGraph)
|
|
119
|
+
5. **NO existen** archivos generados en `.claude/`, `.kiro/`, `.cursor/`, `.gemini/`, `.codex/` ni ningún directorio de otra plataforma
|
|
86
120
|
|
|
87
|
-
|
|
121
|
+
Reportá el estado de cada componente con ✓ o ✗.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Sincroniza el grafo de CodeGraph y luego los delta specs del change activo con la implementación
|
|
3
|
+
agent: build
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Sincroniza primero el grafo y luego los delta specs (`proposal.md` / `design.md` / `tasks.md`) del change activo en `openspec/changes/<name>/` con el estado actual de la implementación.
|
|
7
|
+
|
|
8
|
+
**Precondición:** existir un change activo bajo `openspec/changes/`.
|
|
9
|
+
|
|
10
|
+
Ejecutá los comandos en este orden:
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
codegraph init -i
|
|
14
|
+
codegraph sync
|
|
15
|
+
openspec update
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Luego verificá que:
|
|
19
|
+
|
|
20
|
+
1. El grafo quedó actualizado con el estado real del código
|
|
21
|
+
2. El change activo sigue presente en `openspec/changes/<name>/`
|
|
22
|
+
3. Los archivos `proposal.md`, `design.md` y `tasks.md` reflejan el código real
|
|
23
|
+
4. No hay drift entre lo especificado y lo implementado
|
|
24
|
+
|
|
25
|
+
Reportá el estado final con ✓ o ✗.
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: brainstorming
|
|
3
|
+
description: "You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Brainstorming Ideas Into Designs
|
|
7
|
+
|
|
8
|
+
Help turn ideas into fully formed designs and specs through natural collaborative dialogue.
|
|
9
|
+
|
|
10
|
+
Start by understanding the current project context, then ask questions one at a time to refine the idea. Once you understand what you're building, present the design and get user approval.
|
|
11
|
+
|
|
12
|
+
<HARD-GATE>
|
|
13
|
+
Do NOT invoke any implementation skill, write any code, scaffold any project, or take any implementation action until you have presented a design and the user has approved it. This applies to EVERY project regardless of perceived simplicity.
|
|
14
|
+
</HARD-GATE>
|
|
15
|
+
|
|
16
|
+
## Anti-Pattern: "This Is Too Simple To Need A Design"
|
|
17
|
+
|
|
18
|
+
Every project goes through this process. A todo list, a single-function utility, a config change — all of them. "Simple" projects are where unexamined assumptions cause the most wasted work. The design can be short (a few sentences for truly simple projects), but you MUST present it and get approval.
|
|
19
|
+
|
|
20
|
+
## Checklist
|
|
21
|
+
|
|
22
|
+
You MUST create a task for each of these items and complete them in order:
|
|
23
|
+
|
|
24
|
+
1. **Explore project context** — check files, docs, recent commits
|
|
25
|
+
2. **Offer visual companion** (if topic will involve visual questions) — this is its own message, not combined with a clarifying question. See the Visual Companion section below.
|
|
26
|
+
3. **Ask clarifying questions** — one at a time, understand purpose/constraints/success criteria
|
|
27
|
+
4. **Propose 2-3 approaches** — with trade-offs and your recommendation
|
|
28
|
+
5. **Present design** — in sections scaled to their complexity, get user approval after each section
|
|
29
|
+
6. **Write design doc** — save to `docs/superpowers/specs/YYYY-MM-DD-<topic>-design.md` and commit
|
|
30
|
+
7. **Spec self-review** — quick inline check for placeholders, contradictions, ambiguity, scope (see below)
|
|
31
|
+
8. **User reviews written spec** — ask user to review the spec file before proceeding
|
|
32
|
+
9. **Transition to implementation** — invoke writing-plans skill to create implementation plan
|
|
33
|
+
|
|
34
|
+
## Process Flow
|
|
35
|
+
|
|
36
|
+
```dot
|
|
37
|
+
digraph brainstorming {
|
|
38
|
+
"Explore project context" [shape=box];
|
|
39
|
+
"Visual questions ahead?" [shape=diamond];
|
|
40
|
+
"Offer Visual Companion\n(own message, no other content)" [shape=box];
|
|
41
|
+
"Ask clarifying questions" [shape=box];
|
|
42
|
+
"Propose 2-3 approaches" [shape=box];
|
|
43
|
+
"Present design sections" [shape=box];
|
|
44
|
+
"User approves design?" [shape=diamond];
|
|
45
|
+
"Write design doc" [shape=box];
|
|
46
|
+
"Spec self-review\n(fix inline)" [shape=box];
|
|
47
|
+
"User reviews spec?" [shape=diamond];
|
|
48
|
+
"Invoke writing-plans skill" [shape=doublecircle];
|
|
49
|
+
|
|
50
|
+
"Explore project context" -> "Visual questions ahead?";
|
|
51
|
+
"Visual questions ahead?" -> "Offer Visual Companion\n(own message, no other content)" [label="yes"];
|
|
52
|
+
"Visual questions ahead?" -> "Ask clarifying questions" [label="no"];
|
|
53
|
+
"Offer Visual Companion\n(own message, no other content)" -> "Ask clarifying questions";
|
|
54
|
+
"Ask clarifying questions" -> "Propose 2-3 approaches";
|
|
55
|
+
"Propose 2-3 approaches" -> "Present design sections";
|
|
56
|
+
"Present design sections" -> "User approves design?";
|
|
57
|
+
"User approves design?" -> "Present design sections" [label="no, revise"];
|
|
58
|
+
"User approves design?" -> "Write design doc" [label="yes"];
|
|
59
|
+
"Write design doc" -> "Spec self-review\n(fix inline)";
|
|
60
|
+
"Spec self-review\n(fix inline)" -> "User reviews spec?";
|
|
61
|
+
"User reviews spec?" -> "Write design doc" [label="changes requested"];
|
|
62
|
+
"User reviews spec?" -> "Invoke writing-plans skill" [label="approved"];
|
|
63
|
+
}
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
**The terminal state is invoking writing-plans.** Do NOT invoke frontend-design, mcp-builder, or any other implementation skill. The ONLY skill you invoke after brainstorming is writing-plans.
|
|
67
|
+
|
|
68
|
+
## The Process
|
|
69
|
+
|
|
70
|
+
**Understanding the idea:**
|
|
71
|
+
|
|
72
|
+
- Check out the current project state first (files, docs, recent commits)
|
|
73
|
+
- Before asking detailed questions, assess scope: if the request describes multiple independent subsystems (e.g., "build a platform with chat, file storage, billing, and analytics"), flag this immediately. Don't spend questions refining details of a project that needs to be decomposed first.
|
|
74
|
+
- If the project is too large for a single spec, help the user decompose into sub-projects: what are the independent pieces, how do they relate, what order should they be built? Then brainstorm the first sub-project through the normal design flow. Each sub-project gets its own spec → plan → implementation cycle.
|
|
75
|
+
- For appropriately-scoped projects, ask questions one at a time to refine the idea
|
|
76
|
+
- Prefer multiple choice questions when possible, but open-ended is fine too
|
|
77
|
+
- Only one question per message - if a topic needs more exploration, break it into multiple questions
|
|
78
|
+
- Focus on understanding: purpose, constraints, success criteria
|
|
79
|
+
|
|
80
|
+
**Exploring approaches:**
|
|
81
|
+
|
|
82
|
+
- Propose 2-3 different approaches with trade-offs
|
|
83
|
+
- Present options conversationally with your recommendation and reasoning
|
|
84
|
+
- Lead with your recommended option and explain why
|
|
85
|
+
|
|
86
|
+
**Presenting the design:**
|
|
87
|
+
|
|
88
|
+
- Once you believe you understand what you're building, present the design
|
|
89
|
+
- Scale each section to its complexity: a few sentences if straightforward, up to 200-300 words if nuanced
|
|
90
|
+
- Ask after each section whether it looks right so far
|
|
91
|
+
- Cover: architecture, components, data flow, error handling, testing
|
|
92
|
+
- Be ready to go back and clarify if something doesn't make sense
|
|
93
|
+
|
|
94
|
+
**Design for isolation and clarity:**
|
|
95
|
+
|
|
96
|
+
- Break the system into smaller units that each have one clear purpose, communicate through well-defined interfaces, and can be understood and tested independently
|
|
97
|
+
- For each unit, you should be able to answer: what does it do, how do you use it, and what does it depend on?
|
|
98
|
+
- Can someone understand what a unit does without reading its internals? Can you change the internals without breaking consumers? If not, the boundaries need work.
|
|
99
|
+
- Smaller, well-bounded units are also easier for you to work with - you reason better about code you can hold in context at once, and your edits are more reliable when files are focused. When a file grows large, that's often a signal that it's doing too much.
|
|
100
|
+
|
|
101
|
+
**Working in existing codebases:**
|
|
102
|
+
|
|
103
|
+
- Explore the current structure before proposing changes. Follow existing patterns.
|
|
104
|
+
- Where existing code has problems that affect the work (e.g., a file that's grown too large, unclear boundaries, tangled responsibilities), include targeted improvements as part of the design - the way a good developer improves code they're working in.
|
|
105
|
+
- Don't propose unrelated refactoring. Stay focused on what serves the current goal.
|
|
106
|
+
|
|
107
|
+
## After the Design
|
|
108
|
+
|
|
109
|
+
**Documentation:**
|
|
110
|
+
|
|
111
|
+
- Write the validated design (spec) to `docs/superpowers/specs/YYYY-MM-DD-<topic>-design.md`
|
|
112
|
+
- (User preferences for spec location override this default)
|
|
113
|
+
- Use elements-of-style:writing-clearly-and-concisely skill if available
|
|
114
|
+
- Commit the design document to git
|
|
115
|
+
|
|
116
|
+
**Spec Self-Review:**
|
|
117
|
+
After writing the spec document, look at it with fresh eyes:
|
|
118
|
+
|
|
119
|
+
1. **Placeholder scan:** Any "TBD", "TODO", incomplete sections, or vague requirements? Fix them.
|
|
120
|
+
2. **Internal consistency:** Do any sections contradict each other? Does the architecture match the feature descriptions?
|
|
121
|
+
3. **Scope check:** Is this focused enough for a single implementation plan, or does it need decomposition?
|
|
122
|
+
4. **Ambiguity check:** Could any requirement be interpreted two different ways? If so, pick one and make it explicit.
|
|
123
|
+
|
|
124
|
+
Fix any issues inline. No need to re-review — just fix and move on.
|
|
125
|
+
|
|
126
|
+
**User Review Gate:**
|
|
127
|
+
After the spec review loop passes, ask the user to review the written spec before proceeding:
|
|
128
|
+
|
|
129
|
+
> "Spec written and committed to `<path>`. Please review it and let me know if you want to make any changes before we start writing out the implementation plan."
|
|
130
|
+
|
|
131
|
+
Wait for the user's response. If they request changes, make them and re-run the spec review loop. Only proceed once the user approves.
|
|
132
|
+
|
|
133
|
+
**Implementation:**
|
|
134
|
+
|
|
135
|
+
- Invoke the writing-plans skill to create a detailed implementation plan
|
|
136
|
+
- Do NOT invoke any other skill. writing-plans is the next step.
|
|
137
|
+
|
|
138
|
+
## Key Principles
|
|
139
|
+
|
|
140
|
+
- **One question at a time** - Don't overwhelm with multiple questions
|
|
141
|
+
- **Multiple choice preferred** - Easier to answer than open-ended when possible
|
|
142
|
+
- **YAGNI ruthlessly** - Remove unnecessary features from all designs
|
|
143
|
+
- **Explore alternatives** - Always propose 2-3 approaches before settling
|
|
144
|
+
- **Incremental validation** - Present design, get approval before moving on
|
|
145
|
+
- **Be flexible** - Go back and clarify when something doesn't make sense
|
|
146
|
+
|
|
147
|
+
## Visual Companion
|
|
148
|
+
|
|
149
|
+
A browser-based companion for showing mockups, diagrams, and visual options during brainstorming. Available as a tool — not a mode. Accepting the companion means it's available for questions that benefit from visual treatment; it does NOT mean every question goes through the browser.
|
|
150
|
+
|
|
151
|
+
**Offering the companion:** When you anticipate that upcoming questions will involve visual content (mockups, layouts, diagrams), offer it once for consent:
|
|
152
|
+
> "Some of what we're working on might be easier to explain if I can show it to you in a web browser. I can put together mockups, diagrams, comparisons, and other visuals as we go. This feature is still new and can be token-intensive. Want to try it? (Requires opening a local URL)"
|
|
153
|
+
|
|
154
|
+
**This offer MUST be its own message.** Do not combine it with clarifying questions, context summaries, or any other content. The message should contain ONLY the offer above and nothing else. Wait for the user's response before continuing. If they decline, proceed with text-only brainstorming.
|
|
155
|
+
|
|
156
|
+
**Per-question decision:** Even after the user accepts, decide FOR EACH QUESTION whether to use the browser or the terminal. The test: **would the user understand this better by seeing it than reading it?**
|
|
157
|
+
|
|
158
|
+
- **Use the browser** for content that IS visual — mockups, wireframes, layout comparisons, architecture diagrams, side-by-side visual designs
|
|
159
|
+
- **Use the terminal** for content that is text — requirements questions, conceptual choices, tradeoff lists, A/B/C/D text options, scope decisions
|
|
160
|
+
|
|
161
|
+
A question about a UI topic is not automatically a visual question. "What does personality mean in this context?" is a conceptual question — use the terminal. "Which wizard layout works better?" is a visual question — use the browser.
|
|
162
|
+
|
|
163
|
+
If they agree to the companion, read the detailed guide before proceeding:
|
|
164
|
+
`skills/brainstorming/visual-companion.md`
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: brainstorming
|
|
3
|
+
description: Discovery and exploration of user intent, requirements, and design
|
|
4
|
+
source: github.com/obra/superpowers
|
|
5
|
+
ref: main
|
|
6
|
+
status: placeholder
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# brainstorming (placeholder)
|
|
10
|
+
|
|
11
|
+
**Status:** placeholder. Real content must be fetched from upstream via `ostacky sync` (maintainer command).
|
|
12
|
+
|
|
13
|
+
**Source:** github.com/obra/superpowers @ `ref: main`
|
|
14
|
+
**Original path in upstream:** `skills/brainstorming/SKILL.md` (or equivalent — adjust per repo)
|
|
15
|
+
|
|
16
|
+
## What this skill does
|
|
17
|
+
|
|
18
|
+
This file is a placeholder so the bundled installer can copy a complete directory
|
|
19
|
+
structure into `.opencode/skills/brainstorming/`. The CLI hashes the directory tree and
|
|
20
|
+
records the hash in the lockfile. Replacing this placeholder with the real
|
|
21
|
+
upstream content is a maintainer task, not an end-user task.
|
|
22
|
+
|
|
23
|
+
## For end users
|
|
24
|
+
|
|
25
|
+
If you ran `ostacky install` and see this file in your `.opencode/skills/brainstorming/`,
|
|
26
|
+
your installation is working as designed. The curated set is intentionally small.
|
|
27
|
+
To get the real skill content, ask the Ostacky maintainer to refresh the bundle.
|
|
28
|
+
|
|
29
|
+
## For maintainers
|
|
30
|
+
|
|
31
|
+
To populate this placeholder with the real upstream content:
|
|
32
|
+
|
|
33
|
+
1. `git clone --depth=1 https://github.com/github.com/obra/superpowers.git`
|
|
34
|
+
2. Copy `skills/brainstorming/SKILL.md` (and `scripts/`, `references/` if present) to this directory
|
|
35
|
+
3. Update `manifest.json` with the computed tree hash for this skill
|
|
36
|
+
4. Bump version, `npm publish`
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: dispatching-parallel-agents
|
|
3
|
+
description: Use when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Dispatching Parallel Agents
|
|
7
|
+
|
|
8
|
+
## Overview
|
|
9
|
+
|
|
10
|
+
You delegate tasks to specialized agents with isolated context. By precisely crafting their instructions and context, you ensure they stay focused and succeed at their task. They should never inherit your session's context or history — you construct exactly what they need. This also preserves your own context for coordination work.
|
|
11
|
+
|
|
12
|
+
When you have multiple unrelated failures (different test files, different subsystems, different bugs), investigating them sequentially wastes time. Each investigation is independent and can happen in parallel.
|
|
13
|
+
|
|
14
|
+
**Core principle:** Dispatch one agent per independent problem domain. Let them work concurrently.
|
|
15
|
+
|
|
16
|
+
## When to Use
|
|
17
|
+
|
|
18
|
+
```dot
|
|
19
|
+
digraph when_to_use {
|
|
20
|
+
"Multiple failures?" [shape=diamond];
|
|
21
|
+
"Are they independent?" [shape=diamond];
|
|
22
|
+
"Single agent investigates all" [shape=box];
|
|
23
|
+
"One agent per problem domain" [shape=box];
|
|
24
|
+
"Can they work in parallel?" [shape=diamond];
|
|
25
|
+
"Sequential agents" [shape=box];
|
|
26
|
+
"Parallel dispatch" [shape=box];
|
|
27
|
+
|
|
28
|
+
"Multiple failures?" -> "Are they independent?" [label="yes"];
|
|
29
|
+
"Are they independent?" -> "Single agent investigates all" [label="no - related"];
|
|
30
|
+
"Are they independent?" -> "Can they work in parallel?" [label="yes"];
|
|
31
|
+
"Can they work in parallel?" -> "Parallel dispatch" [label="yes"];
|
|
32
|
+
"Can they work in parallel?" -> "Sequential agents" [label="no - shared state"];
|
|
33
|
+
}
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
**Use when:**
|
|
37
|
+
- 3+ test files failing with different root causes
|
|
38
|
+
- Multiple subsystems broken independently
|
|
39
|
+
- Each problem can be understood without context from others
|
|
40
|
+
- No shared state between investigations
|
|
41
|
+
|
|
42
|
+
**Don't use when:**
|
|
43
|
+
- Failures are related (fix one might fix others)
|
|
44
|
+
- Need to understand full system state
|
|
45
|
+
- Agents would interfere with each other
|
|
46
|
+
|
|
47
|
+
## The Pattern
|
|
48
|
+
|
|
49
|
+
### 1. Identify Independent Domains
|
|
50
|
+
|
|
51
|
+
Group failures by what's broken:
|
|
52
|
+
- File A tests: Tool approval flow
|
|
53
|
+
- File B tests: Batch completion behavior
|
|
54
|
+
- File C tests: Abort functionality
|
|
55
|
+
|
|
56
|
+
Each domain is independent - fixing tool approval doesn't affect abort tests.
|
|
57
|
+
|
|
58
|
+
### 2. Create Focused Agent Tasks
|
|
59
|
+
|
|
60
|
+
Each agent gets:
|
|
61
|
+
- **Specific scope:** One test file or subsystem
|
|
62
|
+
- **Clear goal:** Make these tests pass
|
|
63
|
+
- **Constraints:** Don't change other code
|
|
64
|
+
- **Expected output:** Summary of what you found and fixed
|
|
65
|
+
|
|
66
|
+
### 3. Dispatch in Parallel
|
|
67
|
+
|
|
68
|
+
```typescript
|
|
69
|
+
// In Claude Code / AI environment
|
|
70
|
+
Task("Fix agent-tool-abort.test.ts failures")
|
|
71
|
+
Task("Fix batch-completion-behavior.test.ts failures")
|
|
72
|
+
Task("Fix tool-approval-race-conditions.test.ts failures")
|
|
73
|
+
// All three run concurrently
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
### 4. Review and Integrate
|
|
77
|
+
|
|
78
|
+
When agents return:
|
|
79
|
+
- Read each summary
|
|
80
|
+
- Verify fixes don't conflict
|
|
81
|
+
- Run full test suite
|
|
82
|
+
- Integrate all changes
|
|
83
|
+
|
|
84
|
+
## Agent Prompt Structure
|
|
85
|
+
|
|
86
|
+
Good agent prompts are:
|
|
87
|
+
1. **Focused** - One clear problem domain
|
|
88
|
+
2. **Self-contained** - All context needed to understand the problem
|
|
89
|
+
3. **Specific about output** - What should the agent return?
|
|
90
|
+
|
|
91
|
+
```markdown
|
|
92
|
+
Fix the 3 failing tests in src/agents/agent-tool-abort.test.ts:
|
|
93
|
+
|
|
94
|
+
1. "should abort tool with partial output capture" - expects 'interrupted at' in message
|
|
95
|
+
2. "should handle mixed completed and aborted tools" - fast tool aborted instead of completed
|
|
96
|
+
3. "should properly track pendingToolCount" - expects 3 results but gets 0
|
|
97
|
+
|
|
98
|
+
These are timing/race condition issues. Your task:
|
|
99
|
+
|
|
100
|
+
1. Read the test file and understand what each test verifies
|
|
101
|
+
2. Identify root cause - timing issues or actual bugs?
|
|
102
|
+
3. Fix by:
|
|
103
|
+
- Replacing arbitrary timeouts with event-based waiting
|
|
104
|
+
- Fixing bugs in abort implementation if found
|
|
105
|
+
- Adjusting test expectations if testing changed behavior
|
|
106
|
+
|
|
107
|
+
Do NOT just increase timeouts - find the real issue.
|
|
108
|
+
|
|
109
|
+
Return: Summary of what you found and what you fixed.
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
## Common Mistakes
|
|
113
|
+
|
|
114
|
+
**❌ Too broad:** "Fix all the tests" - agent gets lost
|
|
115
|
+
**✅ Specific:** "Fix agent-tool-abort.test.ts" - focused scope
|
|
116
|
+
|
|
117
|
+
**❌ No context:** "Fix the race condition" - agent doesn't know where
|
|
118
|
+
**✅ Context:** Paste the error messages and test names
|
|
119
|
+
|
|
120
|
+
**❌ No constraints:** Agent might refactor everything
|
|
121
|
+
**✅ Constraints:** "Do NOT change production code" or "Fix tests only"
|
|
122
|
+
|
|
123
|
+
**❌ Vague output:** "Fix it" - you don't know what changed
|
|
124
|
+
**✅ Specific:** "Return summary of root cause and changes"
|
|
125
|
+
|
|
126
|
+
## When NOT to Use
|
|
127
|
+
|
|
128
|
+
**Related failures:** Fixing one might fix others - investigate together first
|
|
129
|
+
**Need full context:** Understanding requires seeing entire system
|
|
130
|
+
**Exploratory debugging:** You don't know what's broken yet
|
|
131
|
+
**Shared state:** Agents would interfere (editing same files, using same resources)
|
|
132
|
+
|
|
133
|
+
## Real Example from Session
|
|
134
|
+
|
|
135
|
+
**Scenario:** 6 test failures across 3 files after major refactoring
|
|
136
|
+
|
|
137
|
+
**Failures:**
|
|
138
|
+
- agent-tool-abort.test.ts: 3 failures (timing issues)
|
|
139
|
+
- batch-completion-behavior.test.ts: 2 failures (tools not executing)
|
|
140
|
+
- tool-approval-race-conditions.test.ts: 1 failure (execution count = 0)
|
|
141
|
+
|
|
142
|
+
**Decision:** Independent domains - abort logic separate from batch completion separate from race conditions
|
|
143
|
+
|
|
144
|
+
**Dispatch:**
|
|
145
|
+
```
|
|
146
|
+
Agent 1 → Fix agent-tool-abort.test.ts
|
|
147
|
+
Agent 2 → Fix batch-completion-behavior.test.ts
|
|
148
|
+
Agent 3 → Fix tool-approval-race-conditions.test.ts
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
**Results:**
|
|
152
|
+
- Agent 1: Replaced timeouts with event-based waiting
|
|
153
|
+
- Agent 2: Fixed event structure bug (threadId in wrong place)
|
|
154
|
+
- Agent 3: Added wait for async tool execution to complete
|
|
155
|
+
|
|
156
|
+
**Integration:** All fixes independent, no conflicts, full suite green
|
|
157
|
+
|
|
158
|
+
**Time saved:** 3 problems solved in parallel vs sequentially
|
|
159
|
+
|
|
160
|
+
## Key Benefits
|
|
161
|
+
|
|
162
|
+
1. **Parallelization** - Multiple investigations happen simultaneously
|
|
163
|
+
2. **Focus** - Each agent has narrow scope, less context to track
|
|
164
|
+
3. **Independence** - Agents don't interfere with each other
|
|
165
|
+
4. **Speed** - 3 problems solved in time of 1
|
|
166
|
+
|
|
167
|
+
## Verification
|
|
168
|
+
|
|
169
|
+
After agents return:
|
|
170
|
+
1. **Review each summary** - Understand what changed
|
|
171
|
+
2. **Check for conflicts** - Did agents edit same code?
|
|
172
|
+
3. **Run full suite** - Verify all fixes work together
|
|
173
|
+
4. **Spot check** - Agents can make systematic errors
|
|
174
|
+
|
|
175
|
+
## Real-World Impact
|
|
176
|
+
|
|
177
|
+
From debugging session (2025-10-03):
|
|
178
|
+
- 6 failures across 3 files
|
|
179
|
+
- 3 agents dispatched in parallel
|
|
180
|
+
- All investigations completed concurrently
|
|
181
|
+
- All fixes integrated successfully
|
|
182
|
+
- Zero conflicts between agent changes
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: dispatching-parallel-agents
|
|
3
|
+
description: Run multiple independent tasks in parallel via subagents
|
|
4
|
+
source: github.com/obra/superpowers
|
|
5
|
+
ref: main
|
|
6
|
+
status: placeholder
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# dispatching-parallel-agents (placeholder)
|
|
10
|
+
|
|
11
|
+
**Status:** placeholder. Real content must be fetched from upstream via `ostacky sync` (maintainer command).
|
|
12
|
+
|
|
13
|
+
**Source:** github.com/obra/superpowers @ `ref: main`
|
|
14
|
+
**Original path in upstream:** `skills/dispatching-parallel-agents/SKILL.md` (or equivalent — adjust per repo)
|
|
15
|
+
|
|
16
|
+
## What this skill does
|
|
17
|
+
|
|
18
|
+
This file is a placeholder so the bundled installer can copy a complete directory
|
|
19
|
+
structure into `.opencode/skills/dispatching-parallel-agents/`. The CLI hashes the directory tree and
|
|
20
|
+
records the hash in the lockfile. Replacing this placeholder with the real
|
|
21
|
+
upstream content is a maintainer task, not an end-user task.
|
|
22
|
+
|
|
23
|
+
## For end users
|
|
24
|
+
|
|
25
|
+
If you ran `ostacky install` and see this file in your `.opencode/skills/dispatching-parallel-agents/`,
|
|
26
|
+
your installation is working as designed. The curated set is intentionally small.
|
|
27
|
+
To get the real skill content, ask the Ostacky maintainer to refresh the bundle.
|
|
28
|
+
|
|
29
|
+
## For maintainers
|
|
30
|
+
|
|
31
|
+
To populate this placeholder with the real upstream content:
|
|
32
|
+
|
|
33
|
+
1. `git clone --depth=1 https://github.com/github.com/obra/superpowers.git`
|
|
34
|
+
2. Copy `skills/dispatching-parallel-agents/SKILL.md` (and `scripts/`, `references/` if present) to this directory
|
|
35
|
+
3. Update `manifest.json` with the computed tree hash for this skill
|
|
36
|
+
4. Bump version, `npm publish`
|