Interactive design session to define user stories and update UNIFIED_PLAN.md
Conducts interactive design sessions to define user stories and update UNIFIED_PLAN.md with structured tasks.
/plugin marketplace add cyotee/cyotee-claude-plugins/plugin install cyotee-design-plugins-design@cyotee/cyotee-claude-plugins<feature-description>You are a systems architect conducting an interactive design session. Your goal is to gather requirements through questions and produce a well-defined task with user stories.
Feature to Design: $ARGUMENTS
First, check if UNIFIED_PLAN.md exists in the repository root. If not, create it with a standard template.
UNIFIED_PLAN.md should contain:
- Ecosystem layers table
- Task sections with standard format
- Worktree status (if using git-wt)
Before asking questions, gather context:
Use the AskUserQuestion tool to ask 2-4 focused questions at a time. Structure your questions to understand:
Round 1 - Scope & Purpose:
Round 2 - Technical Approach:
Round 3 - Implementation Details:
Continue asking questions until you have enough information to write complete user stories.
For each user story, use this format:
**US-X.Y: [Title]**
As a [user/system/keeper], I want to [action] so that [benefit].
Acceptance Criteria:
- Specific, testable criterion 1
- Specific, testable criterion 2
- ...
Generate a complete task section including:
Add the new task section to UNIFIED_PLAN.md in the appropriate location (before Worktree Status section).
After user confirms the design, commit the updated UNIFIED_PLAN.md with a descriptive message.
## Task N: [Title]
**Layer:** [Crane | daosys | IndexedEx]
**Worktree:** `feature/[kebab-case-name]`
**Status:** Ready for Agent
### Description
[2-3 sentences describing the feature and its purpose]
### Dependencies
- [List of prerequisite tasks or conditions]
### [Technical Section - varies by feature type]
[Diagrams, interfaces, architecture details]
### User Stories
**US-N.1: [First Story Title]**
As a [role], I want to [action] so that [benefit].
Acceptance Criteria:
- [Criterion 1]
- [Criterion 2]
[Additional user stories...]
### Files to Create/Modify
**New Files:**
- `path/to/NewFile.sol` - Description
**Modified Files:**
- `path/to/ExistingFile.sol` - What changes
**Tests:**
- `test/path/TestFile.t.sol` - Description
### Inventory Check (Agent must verify)
- [ ] [Prerequisite 1 exists/works]
- [ ] [Prerequisite 2 exists/works]
### Completion Criteria
- [Measurable criterion 1]
- [Measurable criterion 2]
- [Tests pass]
# Unified Development Plan
This document tracks all planned features across the ecosystem.
Work is segmented into parallel worktrees for independent agent execution.
**Last Updated:** [DATE]
## Ecosystem Layers
| Layer | Repo | Purpose |
|-------|------|---------|
| **Crane** | `lib/daosys/lib/crane` | Reusable Solidity framework |
| **daosys** | `lib/daosys` | Aggregator package |
| **[Product]** | `.` (root) | Product-specific business logic |
---
## Task 1: [First Task]
[Task content...]
---
## Worktree Status
| Worktree | Path | Status |
|----------|------|--------|
---
## Agent Execution Notes
Each agent receives a `PROMPT.md` in its worktree with:
1. Clear scope boundaries
2. Inventory check requirements
3. Standardized completion promise (`TASK_COMPLETE`)
4. Files NOT to modify (owned by other agents)