Skip to content

Commit 4472cfc

Browse files
authored
feat: add opencode skills and deepsource-check integration (#2676)
* feat: add opencode skills and deepsource-check integration - Add superpowers skills to .opencode/skills/ - Add deepsource-check skill for code quality scanning - Update AGENTS.md with deepsource-check workflow * fix: keep only deepsource, brainstorming, write-plan skills * fix: resolve frontend formatting issues
1 parent d010c9c commit 4472cfc

File tree

10 files changed

+1139
-5
lines changed

10 files changed

+1139
-5
lines changed
Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
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+
## Overview
9+
10+
Help turn ideas into fully formed designs and specs through natural collaborative dialogue.
11+
12+
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.
13+
14+
<HARD-GATE>
15+
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.
16+
</HARD-GATE>
17+
18+
## Anti-Pattern: "This Is Too Simple To Need A Design"
19+
20+
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.
21+
22+
## Checklist
23+
24+
You MUST create a task for each of these items and complete them in order:
25+
26+
1. **Explore project context** — check files, docs, recent commits
27+
2. **Ask clarifying questions** — one at a time, understand purpose/constraints/success criteria
28+
3. **Propose 2-3 approaches** — with trade-offs and your recommendation
29+
4. **Present design** — in sections scaled to their complexity, get user approval after each section
30+
5. **Write design doc** — save to `docs/plans/YYYY-MM-DD-<topic>-design.md` and commit
31+
6. **Transition to implementation** — invoke writing-plans skill to create implementation plan
32+
33+
## Process Flow
34+
35+
```dot
36+
digraph brainstorming {
37+
"Explore project context" [shape=box];
38+
"Ask clarifying questions" [shape=box];
39+
"Propose 2-3 approaches" [shape=box];
40+
"Present design sections" [shape=box];
41+
"User approves design?" [shape=diamond];
42+
"Write design doc" [shape=box];
43+
"Invoke writing-plans skill" [shape=doublecircle];
44+
45+
"Explore project context" -> "Ask clarifying questions";
46+
"Ask clarifying questions" -> "Propose 2-3 approaches";
47+
"Propose 2-3 approaches" -> "Present design sections";
48+
"Present design sections" -> "User approves design?";
49+
"User approves design?" -> "Present design sections" [label="no, revise"];
50+
"User approves design?" -> "Write design doc" [label="yes"];
51+
"Write design doc" -> "Invoke writing-plans skill";
52+
}
53+
```
54+
55+
**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.
56+
57+
## The Process
58+
59+
**Understanding the idea:**
60+
61+
- Check out the current project state first (files, docs, recent commits)
62+
- Ask questions one at a time to refine the idea
63+
- Prefer multiple choice questions when possible, but open-ended is fine too
64+
- Only one question per message - if a topic needs more exploration, break it into multiple questions
65+
- Focus on understanding: purpose, constraints, success criteria
66+
67+
**Exploring approaches:**
68+
69+
- Propose 2-3 different approaches with trade-offs
70+
- Present options conversationally with your recommendation and reasoning
71+
- Lead with your recommended option and explain why
72+
73+
**Presenting the design:**
74+
75+
- Once you believe you understand what you're building, present the design
76+
- Scale each section to its complexity: a few sentences if straightforward, up to 200-300 words if nuanced
77+
- Ask after each section whether it looks right so far
78+
- Cover: architecture, components, data flow, error handling, testing
79+
- Be ready to go back and clarify if something doesn't make sense
80+
81+
## After the Design
82+
83+
**Documentation:**
84+
85+
- Write the validated design to `docs/plans/YYYY-MM-DD-<topic>-design.md`
86+
- Use elements-of-style:writing-clearly-and-concisely skill if available
87+
- Commit the design document to git
88+
89+
**Implementation:**
90+
91+
- Invoke the writing-plans skill to create a detailed implementation plan
92+
- Do NOT invoke any other skill. writing-plans is the next step.
93+
94+
## Key Principles
95+
96+
- **One question at a time** - Don't overwhelm with multiple questions
97+
- **Multiple choice preferred** - Easier to answer than open-ended when possible
98+
- **YAGNI ruthlessly** - Remove unnecessary features from all designs
99+
- **Explore alternatives** - Always propose 2-3 approaches before settling
100+
- **Incremental validation** - Present design, get approval before moving on
101+
- **Be flexible** - Go back and clarify when something doesn't make sense

0 commit comments

Comments
 (0)