Spec Iterator
# Stop Building Features Based on Assumptions **Spec Iterator** conducts structured AI-powered clarification sessions that systematically uncover gaps in your requirements *before* you write code. --- ## The Problem Everyone Ignores ``` Stakeholder: "Build a dashboard for our sales team" β You build it β Stakeholder: "Where's the pipeline view?" β You: "You didn't mention that" β Stakeholder: "I assumed it was obvious" β πΈ 2 weeks of rework ``` **Requirements arrive incomplete.** Stakeholders don't know what they don't know. The "obvious" features only become obvious after you ship the wrong thing. --- ## How Spec Iterator Works ``` βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β "We need order tracking for customers" β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β π ANALYZE β β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β β β’ Entities detected: orders, customers, tracking β β β’ Gaps found: users undefined, stages unclear, no UX β β β’ Completeness: 12% β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β β CLARIFY (Round 1) β β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β β 1. Who are the primary users of this tracking system? β β 2. What order stages should be visible to customers? β β 3. Should users receive notifications? Which events? β β 4. What systems contain order data today? β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β [You provide answers] β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β β CLARIFY (Round 2) β Completeness: 48% β β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β β 1. Email or SMS for notifications? Or both? β β 2. Real-time tracking needed or periodic updates? β β 3. What about returns and exchanges? β β 4. Mobile app or web only? β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β [You provide answers] β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β β READY β Completeness: 84% β β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β β All critical gaps resolved. Ready to generate spec. β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β π GENERATE β β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β β β’ Problem statement with user personas β β β’ Step-by-step user flow β β β’ Features with acceptance criteria β β β’ Edge cases with handling strategies β β β’ Documented assumptions β β β’ Open questions for stakeholders β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ ``` --- ## Completeness Scoring Track exactly what's missing across **5 categories**: | Category | Weight | What It Covers | |----------|--------|----------------| | **Functional** | 30% | Features, users, business rules | | **Technical** | 25% | Integrations, data, APIs | | **UX** | 20% | Flows, errors, accessibility | | **Edge Cases** | 15% | Errors, boundaries, recovery | | **Constraints** | 10% | Budget, compliance, scale | **Example output:** ``` Completeness: 73% βββ Functional: ββββββββββ 85% βββ Technical: ββββββββββ 60% βββ UX: ββββββββββ 75% βββ Edge Cases: ββββββββββ 55% βββ Constraints: ββββββββββ 80% β οΈ Technical gaps: Data refresh frequency, API rate limits β οΈ Edge cases: Offline handling, partial order updates ``` --- ## Tools Included | Tool | Description | |------|-------------| | `spec_start_session` | Start clarification from a rough requirement | | `spec_answer_questions` | Provide answers, receive follow-up questions | | `spec_get_gaps` | See exactly what's missing and the impact | | `spec_generate` | Generate complete specification | | `spec_get_status` | Check session progress | | `spec_list_sessions` | List all active sessions | --- ## Sample Output ```markdown # Order Tracking System ## Problem Statement **Pain:** Customers have no visibility into order status after purchase **Who:** E-commerce customers, support team **Workarounds:** Calling support, checking email for shipping updates ## Features ### 1. Order Status Page (MVP) Customers can view real-time order status on a dedicated page. **Acceptance Criteria:** - [ ] Display order stages: Confirmed β Processing β Shipped β Delivered - [ ] Show estimated delivery date - [ ] Update within 5 minutes of status change - [ ] Accessible without login via order ID + email ### 2. Email Notifications (MVP) Automated emails at key order milestones. **Acceptance Criteria:** - [ ] Send on: order confirmed, shipped, out for delivery, delivered - [ ] Include tracking link when available - [ ] Unsubscribe option per notification type ## Edge Cases | Scenario | Handling | |----------|----------| | Order stuck in "Processing" > 48h | Trigger support alert | | Tracking number not yet available | Show "Tracking available soon" | | Multiple shipments per order | Show each shipment separately | ``` --- ## Who It's For **Product Managers** β Stop missing requirements that cause rework **Tech Leads** β Don't estimate incomplete requirements **Solo Developers** β Think through requirements systematically **Startup Founders** β Document ideas with implementation detail **Consultants** β Standardize discovery across clients --- ## Configuration Requires your Anthropic API key: | Parameter | Description | |-----------|-------------| | `ANTHROPIC_API_KEY` | Your Anthropic API key | **You pay Claude directly** β typical spec costs $0.05-0.15 in API usage (3-5 rounds of clarification). --- ## Quick Start 1. **Connect** Spec Iterator in Claude Desktop 2. **Run:** `spec_start_session` with your rough requirement 3. **Answer** the clarifying questions 4. **Generate** when completeness hits 80%+ --- ## Resources - **GitHub:** [Repository](https://github.com/JesseHenson/claude_code_apex_marketplace/tree/master/plugins/spec-iterator-mcp) - **Demo:** Coming soon - **Support:** Open an issue on GitHub --- ## Version **v0.1.0** β Initial release - Multi-turn clarification flow - Completeness scoring (5 categories) - Markdown and JSON output - Session persistence Site: https://aibusinessautomation.solutions/
