weave-brainstorm-and-refinelisted
Install: claude install-skill tony/ai-workflow-plugins
# Weave Brainstorm & Refine
*Selection guidance for this skill is bundled at `references/overview.md`.*
The full pipeline: generate independent originals from multiple AI models (Claude, Antigravity, GPT), then iteratively refine them through a judge-weave-distribute cycle. Phase 1 brainstorms diverse responses with optional multiple variants per model. Phase 2 takes the best originals through iterative refinement where each pass picks the best, incorporates strengths from runners-up, and distributes the woven result back for another round.
This is a **project-read-only** command — no files in your repository are written, edited, or deleted. Session artifacts (model outputs, judge assessments, woven results) are persisted to `$AI_AIP_ROOT` for post-session inspection; this directory is outside your repository.
The prompt comes from `$ARGUMENTS`. If no arguments are provided, ask the user what they want to brainstorm and refine.
---
## Phase 1: Gather Context
**Goal**: Understand the project and prepare the prompt.
1. **Read CLAUDE.md / AGENTS.md** if present — project conventions inform better responses.
2. **Determine trunk branch** (for prompts about branch changes):
```bash
git remote show origin | grep 'HEAD branch'
```
Fall back to `main`, then `master`, if detection fails.
3. **Capture the prompt**: Use `$ARGUMENTS` as the user's prompt. If `$ARGUMENTS` is empty, ask the user what they want to brainstorm and refine.
---
## Phase 1b: Build Context