From wp-labs-superpowers
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.
How this skill is triggered — by the user, by Claude, or both
Slash command
/wp-labs-superpowers:brainstormingThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Help turn ideas into fully formed designs and specs through natural collaborative dialogue.
Help turn ideas into fully formed designs and specs through natural collaborative dialogue.
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.
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.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.
You MUST create a task for each of these items and complete them in order:
.superpowers/01-specs/YYYY-MM-DD-HHmm-<name-of-spec>.md (git-ignored working copy; not committed)digraph brainstorming {
"Explore project context" [shape=box];
"Ask clarifying questions" [shape=box];
"Propose 2-3 approaches" [shape=box];
"Present design sections" [shape=box];
"User approves design?" [shape=diamond];
"Write design doc" [shape=box];
"Spec self-review\n(fix inline)" [shape=box];
"User reviews spec?" [shape=diamond];
"Invoke writing-plans skill" [shape=doublecircle];
"Explore project context" -> "Ask clarifying questions";
"Ask clarifying questions" -> "Propose 2-3 approaches";
"Propose 2-3 approaches" -> "Present design sections";
"Present design sections" -> "User approves design?";
"User approves design?" -> "Present design sections" [label="no, revise"];
"User approves design?" -> "Write design doc" [label="yes"];
"Write design doc" -> "Spec self-review\n(fix inline)";
"Spec self-review\n(fix inline)" -> "User reviews spec?";
"User reviews spec?" -> "Write design doc" [label="changes requested"];
"User reviews spec?" -> "Invoke writing-plans skill" [label="approved"];
}
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.
Understanding the idea:
Exploring approaches:
Presenting the design:
Design for isolation and clarity:
Working in existing codebases:
Documentation:
.superpowers/01-specs/YYYY-MM-DD-HHmm-<name-of-spec>.md
.superpowers/ is git-ignored working space; the GitHub tracking issue (see the "Team workflow" section at the end of this skill) is its durable recordSpec Self-Review: After writing the spec document, look at it with fresh eyes:
Fix any issues inline. No need to re-review — just fix and move on.
User Review Gate: After the spec review loop passes, ask the user to review the written spec before proceeding:
"Spec written to
<path>(git-ignored working copy). Please review it and let me know if you want to make any changes before we start writing out the implementation plan."
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.
Implementation:
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.
Offering the companion (just-in-time): Do NOT offer it upfront. Wait until a question would genuinely be clearer shown than told — a real mockup / layout / diagram question, not merely a UI topic. The first time that happens, offer it then, as its own message:
"This next part might be easier if I show you — I can put together mockups, diagrams, and comparisons in a browser tab as we go. It's still new and can be token-intensive. Want me to? I'll open it for you."
This offer MUST be its own message. Only the offer — no clarifying question, summary, or other content. Wait for the user's response. If they accept, start the server with --open so their browser opens to the first screen automatically. If they decline, continue text-only and don't offer again unless they raise it.
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?
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.
If they agree to the companion, read the detailed guide before proceeding:
skills/brainstorming/visual-companion.md
Write the spec to the repository ROOT's .superpowers/01-specs/ — the main working tree, not
the current directory or a worktree. Resolve the root explicitly and ensure the folder self-ignores
(add the .gitignore if it is missing, even when the folder already exists):
repo_top=$(git -C "$(git rev-parse --git-common-dir)/.." rev-parse --show-toplevel)
mkdir -p "$repo_top/.superpowers/01-specs"
[ -f "$repo_top/.superpowers/01-specs/.gitignore" ] || printf '*\n' > "$repo_top/.superpowers/01-specs/.gitignore"
After the user approves the written spec (the User Review Gate passes) and BEFORE invoking writing-plans, log the spec to an issue tracker.
#42 or its URL) or a Jira key (e.g. PROJ-123). If found,
use that tracker and skip the prompt in step 2.Log this spec to a tracker? [github / jira / neither].
gh issue create --title "<spec slug>" --body-file <spec-path>. Capture the printed URL.--from-file reads the
summary from the file's first line and the description from the rest, so prepend the slug:
{ printf '%s\n' "<spec slug>"; cat <spec-path>; } > "$repo_top/.superpowers/01-specs/.jira-workitem"
acli jira workitem create --project "$JIRA_KEY" --type Task \
--from-file "$repo_top/.superpowers/01-specs/.jira-workitem" --json
Capture the created key from the --json output (| jq -r .key).gh issue comment <number> --body-file <spec-path>acli jira workitem comment --key <KEY> --body-file <spec-path>Tracking issue: <url-or-key> (writing-plans reads
this to comment the plan) and, when you posted the spec as a comment, Spec sync: <comment-ref>.Jira project resolution. Determine JIRA_KEY in this order: the JIRA_PROJECT env var; else the
repo-local git config jira.project; else ask Which Jira project key? once and persist it for this
repo with git config jira.project "<KEY>" so later runs don't ask again.
Keep it in sync. If you later revise the spec (e.g. during the spec review loop), update its tracker counterpart in place — do NOT post a duplicate:
gh issue edit <number> --body-file <spec-path>; comment → edit via the
recorded Spec sync: URL:
gh api --method PATCH /repos/{owner}/{repo}/issues/comments/<comment-id> -F body=@<spec-path>.acli jira workitem edit --key <KEY> --summary "<spec slug>" --description-file <spec-path>;
comment → re-run the comment command with --edit-last.Specs are git-ignored working copies — do NOT commit the spec file. The tracker issue is its durable record. This overrides any "commit the design document to git" step earlier in this skill.
If the chosen CLI (gh or acli) is missing or unauthenticated, report it and continue — never
block the workflow on it.
npx claudepluginhub cssherry-wp/wp-labs-starter --plugin wp-labs-superpowersCreates, edits, and verifies skills using a test-driven development approach with pressure scenarios and subagents.