Skip to content

fix(brainstorming): ensure worktree setup happens before writing plan - #632

Closed
stablegenius49 wants to merge 1 commit into
obra:mainfrom
stablegenius49:pr-factory/issue-574-brainstorm-worktree-step
Closed

stablegenius49 wants to merge 1 commit into
obra:mainfrom
stablegenius49:pr-factory/issue-574-brainstorm-worktree-step

Conversation

@stablegenius49

@stablegenius49 stablegenius49 commented Mar 6, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • restore a dedicated using-git-worktrees step in skills/brainstorming/SKILL.md between design-doc commit and writing-plans
  • update the process-flow diagram to enforce that ordering
  • clarify post-design guidance so only using-git-worktrees then writing-plans are allowed

Validation

  • bash tests/opencode/test-skills-core.sh

Closes #574

@coderabbitai

coderabbitai Bot commented Mar 6, 2026

Copy link
Copy Markdown
📝 Walkthrough

Walkthrough

This PR modifies the brainstorming skill's workflow to enforce a strict two-step transition sequence: first invoke using-git-worktrees to establish an isolated branch, then invoke writing-plans for implementation planning. The change reorders workflow steps and updates the Process Flow diagram accordingly.

Changes

Cohort / File(s) Summary
Brainstorming Skill Workflow
skills/brainstorming/SKILL.md
Reorders implementation transition steps to enforce invoking using-git-worktrees before writing-plans; updates Process Flow diagram to include git worktree invocation; revises terminal state and implementation section narrative to clarify the two-step sequence.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Possibly related issues

Possibly related PRs

Poem

🐰 A worktree springs forth before the plan,
The brainstorm's dance unfolds as planned—
First branch the code, then write the way,
Order restored, bugs held at bay! ✨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main change: ensuring worktree setup happens before the writing plan step.
Description check ✅ Passed The description is directly related to the changeset, explaining the restoration of a worktree setup step and diagram updates.
Linked Issues check ✅ Passed The PR successfully addresses issue #574 by restoring the dedicated worktree setup step between design-doc commit and writing-plans.
Out of Scope Changes check ✅ Passed All changes in the PR are directly related to restoring the worktree setup step and updating the process flow diagram as required by issue #574.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (1)
skills/brainstorming/SKILL.md (1)

89-90: Make the commit boundary explicit here too.

The checklist already says the design doc is committed before the worktree step, but this section only says to invoke using-git-worktrees. Repeating “after committing the design doc” would remove the last bit of ambiguity around the #574 failure mode.

✏️ Suggested wording
-- Invoke using-git-worktrees to set up an isolated branch/worktree for execution
+- After committing the design doc, invoke using-git-worktrees to set up an isolated branch/worktree for execution
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@skills/brainstorming/SKILL.md` around lines 89 - 90, Update the SKILL.md
bullet sequence to explicitly state the commit boundary: change the step that
currently reads "Invoke using-git-worktrees to set up an isolated
branch/worktree for execution" to include "after committing the design doc"
(i.e., "After committing the design doc, invoke using-git-worktrees to set up an
isolated branch/worktree for execution") and ensure the following step invoking
the writing-plans skill remains unchanged; reference the "using-git-worktrees"
and "writing-plans" items when making this wording change so the
commit-before-worktree requirement is unambiguous.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In `@skills/brainstorming/SKILL.md`:
- Around line 89-90: Update the SKILL.md bullet sequence to explicitly state the
commit boundary: change the step that currently reads "Invoke
using-git-worktrees to set up an isolated branch/worktree for execution" to
include "after committing the design doc" (i.e., "After committing the design
doc, invoke using-git-worktrees to set up an isolated branch/worktree for
execution") and ensure the following step invoking the writing-plans skill
remains unchanged; reference the "using-git-worktrees" and "writing-plans" items
when making this wording change so the commit-before-worktree requirement is
unambiguous.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: c0be99af-d207-42ea-8d7e-b19240c19bee

📥 Commits

Reviewing files that changed from the base of the PR and between e4a2375 and ddaa3f7.

📒 Files selected for processing (1)
  • skills/brainstorming/SKILL.md

@obra obra added bug Something isn't working claude-code Claude Code (Anthropic CLI) issues brainstorming Retired: use skill:brainstorming worktrees Retired: use skill:using-git-worktrees labels Mar 23, 2026
@obra obra added skill:brainstorming The brainstorming skill skill:using-git-worktrees The using-git-worktrees skill labels Sep 20, 2026
@obra

obra commented Sep 27, 2026

Copy link
Copy Markdown
Owner

Hi @stablegenius49. I'm Claude, helping @obra triage. This is one of twelve PRs filed the same day, and it contradicts dev (the worktree is created at execution time). Superpowers only takes changes that solve a problem someone actually hit, with evidence and a human who has reviewed the diff (see CLAUDE.md and the PR template), so we're closing this.

— Claude (Opus 5.5, claude-opus-5-5), Claude Code 2.1.283, session 49301b31-b716-41b8-a316-80b8461e0de9

@obra obra closed this Sep 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

brainstorming Retired: use skill:brainstorming bug Something isn't working claude-code Claude Code (Anthropic CLI) issues skill:brainstorming The brainstorming skill skill:using-git-worktrees The using-git-worktrees skill worktrees Retired: use skill:using-git-worktrees

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Git worktree is not created sometime after brainstorming

3 participants