Loading...
Loading...
Transform raw brain dumps (dictated freestyle) into structured implementation artifacts. Use when user has messy ideas, scattered thoughts, or dictated stream-of-consciousness about something they want to build. Produces contracts and implementation specs written to ./docs/ideation/{project-name}/.
npx skill4agent add nicknisi/claude-plugins ideationAskUserQuestionAskUserQuestionINTAKE → CODEBASE EXPLORATION → CONTRACT FORMATION → PHASING → SPEC GENERATION → HANDOFF
↓ ↓ ↓ ↓ ↓
Understand confidence < 95%? PRDs or Repeatable? Analyze deps
existing code ↓ straight ↓ ↓
ASK QUESTIONS to specs? Template + Sequential?
↓ per-phase Parallel?
(loop until ≥95%) deltas Agent Team?Tasksubagent_type: "Explore"GlobGrepReadreferences/confidence-rubric.md| Dimension | Question |
|---|---|
| Problem Clarity | Do I understand what problem we're solving and why it matters? |
| Goal Definition | Are the goals specific and measurable? |
| Success Criteria | Can I write tests or validation steps for "done"? |
| Scope Boundaries | Do I know what's in and out of scope? |
| Consistency | Are there contradictions I need resolved? |
| Score | Action |
|---|---|
| < 70 | Major gaps. Ask 5+ questions targeting lowest dimensions. |
| 70-84 | Moderate gaps. Ask 3-5 targeted questions. |
| 85-94 | Minor gaps. Ask 1-2 specific questions. |
| ≥ 95 | Ready to generate contract. |
AskUserQuestionmultiSelect: trueAskUserQuestion./docs/ideation/{project-name}/contract.mdreferences/contract-template.mdAskUserQuestionQuestion: "Does this contract accurately capture your intent?"
Options:
- "Approved" - Contract is accurate, proceed
- "Needs changes" - Some parts need revision
- "Missing scope" - Important items are not captured
- "Start over" - Fundamentally off track, re-analyzecontract.mdAskUserQuestionQuestion: "How should we proceed from the contract?"
Options:
- "Straight to specs" — Recommended for technical projects.
Contract defines what, specs define how. Faster.
- "PRDs then specs" — Recommended for large scope or cross-functional
teams. Adds a requirements layer for stakeholder alignment.spec.mdprd-phase-{n}.mdreferences/prd-template.mdAskUserQuestionQuestion: "Do these PRD phases look correct?"
Options:
- "Approved" - Phases and requirements look good, proceed to specs
- "Adjust phases" - Need to move features between phases
- "Missing requirements" - Some requirements are missing or unclear
- "Start over" - Need to revisit the contractreferences/spec-template.mdspec-phase-{n}.mdpath/to/similar/file.tsspec-template-{pattern-name}.mdspec-phase-{n}.mdspec-template-{pattern-name}.mdspec-template-sdk-integration.md# SDK Integration Template
## Pattern
For each SDK, create:
1. `src/{language}/{language}-installer-agent.ts` — FrameworkConfig following existing pattern
2. `skills/workos-{sdk-name}/SKILL.md` — Agent skill fetching SDK README
3. `tests/fixtures/{language}/{framework}-example/` — Minimal project fixture
4. `tests/evals/graders/{language}.grader.ts` — Extending BaseGrader
## Implementation Details
{Detailed steps with {placeholders} for variable parts}
## Validation
{Common validation steps}spec-phase-5.md# Spec: Ruby SDK (workos-ruby)
**Template**: ./spec-template-sdk-integration.md
## Inputs
- Language: Ruby
- Framework: Rails
- Package manager: Bundler (`bundle add`)
- Manifest file: Gemfile
- SDK package: workos
- Detection: `rails` gem in Gemfile or `config/routes.rb` exists
## Deviations from template
- Rails has strong conventions — files go in specific locations
- Initializer pattern: `config/initializers/workos.rb`
- Env vars: `.env` with dotenv-rails, or Rails credentials
## Phase-specific concerns
- CI needs Ruby 3.x installed for eval fixturesAskUserQuestionQuestion: "Do these specs look correct?"
Options:
- "Approved" - Specs look good, proceed to execution handoff
- "Adjust approach" - Implementation strategy needs changes
- "Missing components" - Some files or steps are missing
- "Revisit phases" - Phase breakdown needs restructuring/execute-spec| Pattern | Recommendation |
|---|---|
| All phases sequential (chain) | Sequential execution — one session at a time |
| 2+ independent phases | Agent team — lead orchestrates teammates in parallel |
| Mixed dependencies | Hybrid — sequential for dependent chain, agent team for independent group |
Ideation complete. Artifacts written to `./docs/ideation/{project-name}/`.## To start implementation
```bash
claude
/execute-spec docs/ideation/{project-name}/spec-phase-1.md/execute-spec
**When ALL phases are independent (no blocking phase), skip the sequential start and go straight to the agent team prompt below.**
**When 2+ phases are parallelizable (after a blocking phase or from the start), present an agent team prompt.**
Agent teams let a single lead session automatically spawn and coordinate multiple teammates — the user starts **one** `claude` session, and the lead handles spawning, task assignment, plan approval, and synthesis. No manual terminal juggling.
.claude/settings.json~/.claude/settings.json{
"env": {
"CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1"
}
}{Blocking phase} is complete. Create an agent team to implement
{N} remaining phases in parallel. Each phase is independent.
Spawn {N} teammates with plan approval required. Each teammate should:
1. Read their assigned spec file (and the template spec if referenced)
2. Explore the codebase for relevant patterns before planning
3. Plan their implementation approach and wait for approval
4. Implement following spec and codebase patterns
5. Run validation commands from their spec after implementation
Only approve plans that include test coverage and match existing
codebase conventions.
Teammates:
1. "{Phase title}" — docs/ideation/{project-name}/spec-phase-{n}.md
{One-line context about what this phase does}
2. "{Phase title}" — docs/ideation/{project-name}/spec-phase-{n}.md
{One-line context about what this phase does}
...
**Why delegate mode?** Pressing Shift+Tab restricts the lead to coordination-only tools: spawning teammates, messaging, managing tasks, and approving plans. This prevents the lead from implementing tasks itself and ensures work is distributed to teammates.
**Why one session?** The lead automatically spawns each teammate as a separate Claude Code instance. Each teammate gets its own context window, loads project context (CLAUDE.md, MCP servers, skills), and works independently. You interact with the lead and it coordinates everything — use Shift+Up/Down to message individual teammates if needed.
**Shared file detection:** Scan the spec files' "Modified Files" sections. If multiple specs modify the same files, add a coordination note to the team prompt:
**Batching:** If more than 5 parallelizable phases, recommend starting with the highest-priority batch first, then spawning the rest after plans are approved.
### 5.3 Why Fresh Sessions?
- Ideation consumes significant context (contract, specs, exploration)
- Execution benefits from clean context focused on the spec
- Human review between phases catches issues early
- Each phase is independently committable
- Each session creates granular implementation tasks scoped to that phase
## Output Artifacts
All artifacts written to `./docs/ideation/{project-name}/`:
## Bundled Resources
### References
- `references/contract-template.md` - Template for lean contract document
- `references/prd-template.md` - Template for phased PRD documents
- `references/spec-template.md` - Template for implementation specs
- `references/confidence-rubric.md` - Detailed scoring criteria for confidence assessment
- `references/workflow-example.md` - End-to-end workflow walkthrough
### Examples
Completed artifact examples for reference when generating output:
- `examples/contract-example.md` - A filled-in contract for a bookmark feature
- `examples/spec-example.md` - A filled-in spec for the same feature
When generating artifacts, reference these examples for tone, structure, and level of detail.
## Important Notes
- **ALWAYS use `AskUserQuestion` tool for clarifications and approvals.** Never ask questions in plain text.
- **Explore the codebase** before scoring confidence (unless greenfield).
- **Score confidence conservatively.** When uncertain, score lower.
- Never skip the confidence check. Don't assume understanding.
- Always write artifacts to files. Don't just display them.
- Each phase should be independently valuable.
- Specs should be detailed enough to implement without re-reading PRDs or the contract.
- Keep contracts lean. Heavy docs slow iteration.
- **Reference existing code patterns** in specs — "Pattern to follow" with real file paths.
- **Use template + delta** for repeatable phases — don't generate N identical specs.
- **Small projects don't need phases.** If scope is 1-3 components, generate a single spec.