# genius-specs > Transforms discovery findings into formal specifications with user stories, use cases, business rules, and acceptance criteria. REQUIRES USER APPROVAL before continuing. - Author: benW3ART - Repository: benW3ART/vibes - Version: 20260127143625 - Stars: 0 - Forks: 0 - Last Updated: 2026-02-07 - Source: https://github.com/benW3ART/vibes - Web: https://mule.run/skillshub/@@benW3ART/vibes~genius-specs:20260127143625 --- --- name: genius-specs description: Transforms discovery findings into formal specifications with user stories, use cases, business rules, and acceptance criteria. REQUIRES USER APPROVAL before continuing. --- # Genius Specs v6.2 - Formal Specifications **Turning vision into actionable requirements.** ## STARTUP VERIFICATION ```bash # Verify preconditions python3 scripts/state-manager.py check genius-specs if [ $? -ne 0 ]; then echo "Cannot proceed. Check requirements above." exit 1 fi # Mark skill start python3 scripts/state-manager.py start genius-specs ``` ## Required Input ```bash # Verify required files for f in DISCOVERY.xml MARKET-ANALYSIS.xml; do if [ ! -f "$f" ]; then echo "ERROR: $f not found" exit 1 fi done echo "✓ All inputs available" ``` ## Specification Components ### 1. User Stories ``` US-001: As a [role], I want [feature], so that [benefit] Acceptance Criteria: - Given [context] - When [action] - Then [result] ``` ### 2. Use Cases - Actors and their goals - Preconditions - Main flow (happy path) - Alternative flows - Postconditions ### 3. Business Rules ``` BR-001: [Rule description] Condition: [When this applies] Action: [What must happen] ``` ### 4. Technical Requirements - Performance targets (response times, load capacity) - Security requirements (auth, encryption, compliance) - Compatibility (browsers, devices, APIs) ### 5. Data Model - Entities and relationships - Required fields and types - Validation rules ### 6. API Endpoints - Routes and methods - Request/response schemas - Authentication requirements ### 7. Screens - Pages and their purposes - Key components per page - User flows ## Output Generate SPECIFICATIONS.xml: ```xml user sign up with email access the platform I am on the signup page I enter valid email and password I receive a confirmation email high User Registration New User User is not logged in 1. User clicks "Sign Up" 2. System displays form 3. User enters details 4. System validates and creates account User account exists Email must be unique During registration Reject duplicate emails API responses under 200ms Support 100 concurrent users JWT-based authentication TLS 1.3 for all traffic Convert visitors to signups Hero, Features, CTA, Footer Main user workspace Nav, Sidebar, Content, Stats ``` ## COMPLETION - REQUIRES APPROVAL After generating SPECIFICATIONS.xml: ### Step 1: Verify Output ```bash if [ ! -f SPECIFICATIONS.xml ]; then echo "ERROR: SPECIFICATIONS.xml not created!" exit 1 fi ``` ### Step 2: Display Summary for Approval ``` ═══════════════════════════════════════════════════════════════ SPECIFICATIONS COMPLETE ═══════════════════════════════════════════════════════════════ 📋 Summary: • User Stories: [X] stories defined • Use Cases: [X] use cases documented • Business Rules: [X] rules specified • Data Entities: [X] entities modeled • API Endpoints: [X] endpoints defined • Screens: [X] screens planned 📄 Full specifications: SPECIFICATIONS.xml ═══════════════════════════════════════════════════════════════ 🔒 APPROVAL REQUIRED These specifications define what will be built. Please review. To approve and continue to design phase: → Say "approved" or run: genius approve specs To request changes: → Tell me what to modify ═══════════════════════════════════════════════════════════════ ``` ### Step 3: WAIT FOR USER APPROVAL **DO NOT CONTINUE until user explicitly approves.** This is a MANDATORY CHECKPOINT. The user must either: 1. Say "approved", "yes", "continue", "looks good" → Continue 2. Request changes → Make changes, show summary again ### Step 4: On Approval ```bash # User has approved - update state bash scripts/genius-cli.sh approve specs python3 scripts/state-manager.py start genius-designer ``` Then output: ``` ✅ Specifications Approved! Creating design options... ``` And immediately continue to genius-designer skill.