--- description: Generate a designer-quality landing page from project documentation with AI-generated images allowed-tools: Read, Write, Edit, Bash, Task, TodoWrite, Glob, Grep, mcp__eureka-imagen__generate_hero_image, mcp__eureka-imagen__generate_feature_icon, mcp__eureka-imagen__generate_illustration, mcp__eureka-imagen__generate_og_image, mcp__eureka-imagen__generate_logo_concept, mcp__eureka-imagen__list_available_models, mcp__eureka-imagen__check_status --- # Eureka Landing - Landing Page Generator **Input**: "$ARGUMENTS" --- ## PURPOSE Generate a **designer-quality landing page** with concept branding and Q&A section based on existing project documentation. This command requires documentation to be generated first via `/eureka:index`. ### Output Features | Feature | Description | |---------|-------------| | Hero Section | Compelling headline, tagline, CTA buttons | | Features Grid | Visual feature cards with icons | | How It Works | Step-by-step visual flow | | Screenshots/Demo | Placeholder for app visuals | | Q&A/FAQ | Common questions answered | | Concept Branding | Colors, typography, visual style | | Responsive Design | Mobile-first, works on all devices | | Dark Mode | Automatic system preference detection | | **AI Images** | AI-generated hero, icons, illustrations (ImageRouter) | ### Image Generation (Optional) When `--with-images` flag is used and IMAGEROUTER_API_KEY is set, the command will: - Generate a hero banner image - Generate feature icons - Generate how-it-works illustrations - Generate OG image for social sharing ```bash # With AI-generated images /eureka:landing --with-images # Without images (default) /eureka:landing ``` --- ## PREREQUISITES ``` ╔══════════════════════════════════════════════════════════════╗ ║ ⚠️ REQUIRES DOCUMENTATION FIRST ║ ╠══════════════════════════════════════════════════════════════╣ ║ ║ ║ This command uses data from /eureka:index output. ║ ║ ║ ║ Required files: ║ ║ ✓ docs/analysis.yml (or custom output dir) ║ ║ ✓ docs/PROJECT_DOCUMENTATION.md ║ ║ ║ ║ If missing, run first: ║ ║ /eureka:index ║ ║ ║ ╚══════════════════════════════════════════════════════════════╝ ``` --- ## EXECUTION FLOW ### ═══════════════════════════════════════════════════════════════ ### PHASE 1: Validate Prerequisites ### ═══════════════════════════════════════════════════════════════ #### 1.1: Check for Documentation ```bash DOCS_DIR="${ARGUMENTS:-docs}" # Check if documentation exists if [ ! -f "$DOCS_DIR/analysis.yml" ] && [ ! -f "$DOCS_DIR/PROJECT_DOCUMENTATION.md" ]; then echo "❌ ERROR: Documentation not found!" echo "" echo "Required: $DOCS_DIR/analysis.yml or $DOCS_DIR/PROJECT_DOCUMENTATION.md" echo "" echo "Run first: /eureka:index" exit 1 fi echo "✅ Documentation found in $DOCS_DIR" ``` #### 1.2: Display Start Banner ``` ╔══════════════════════════════════════════════════════════════╗ ║ 🎨 EUREKA LANDING - Designer Landing Page Generator ║ ╠══════════════════════════════════════════════════════════════╣ ║ Creating: Hero + Features + How It Works + Q&A ║ ║ Style: Modern, professional, conversion-optimized ║ ╚══════════════════════════════════════════════════════════════╝ ``` --- ### ═══════════════════════════════════════════════════════════════ ### PHASE 2: Parallel Content Generation ### ═══════════════════════════════════════════════════════════════ #### 2.1: Launch Content Generation Agents in Parallel **CRITICAL: Launch ALL agents in a SINGLE message:** ``` Launch these 4 Task agents IN PARALLEL: ┌─────────────────────────────────────────────────────────────────┐ │ AGENT 1: Branding Concept Generator │ ├─────────────────────────────────────────────────────────────────┤ │ Task tool with: │ │ subagent_type: "frontend-architect" │ │ run_in_background: true │ │ prompt: | │ │ # CONCEPT BRANDING GENERATION │ │ │ │ Read $DOCS_DIR/analysis.yml and create a branding concept. │ │ │ │ ## Output: branding.json │ │ ```json │ │ { │ │ "brand": { │ │ "name": "Project Name", │ │ "tagline": "Compelling one-liner", │ │ "value_proposition": "What makes it special" │ │ }, │ │ "colors": { │ │ "primary": "#hex - main brand color", │ │ "secondary": "#hex - accent color", │ │ "accent": "#hex - CTA/highlight color", │ │ "background": "#hex - light bg", │ │ "background_dark": "#hex - dark mode bg", │ │ "text": "#hex - primary text", │ │ "text_muted": "#hex - secondary text" │ │ }, │ │ "typography": { │ │ "heading_font": "Inter, system-ui, sans-serif", │ │ "body_font": "Inter, system-ui, sans-serif", │ │ "mono_font": "JetBrains Mono, monospace" │ │ }, │ │ "style": { │ │ "border_radius": "12px", │ │ "shadow": "0 4px 6px -1px rgba(0,0,0,0.1)", │ │ "gradient": "linear-gradient(...)" │ │ }, │ │ "icons": { │ │ "style": "lucide|heroicons|phosphor", │ │ "feature_icons": ["icon1", "icon2", ...] │ │ } │ │ } │ │ ``` │ │ │ │ Base colors on project type: │ │ - Developer tools: Blues, purples │ │ - Business apps: Blues, greens │ │ - Creative tools: Vibrant, gradients │ │ - Data/Analytics: Teals, blues │ │ │ │ Write to: $DOCS_DIR/branding.json │ └─────────────────────────────────────────────────────────────────┘ ┌─────────────────────────────────────────────────────────────────┐ │ AGENT 2: Hero & Features Content │ ├─────────────────────────────────────────────────────────────────┤ │ Task tool with: │ │ subagent_type: "technical-writer" │ │ run_in_background: true │ │ prompt: | │ │ # HERO & FEATURES CONTENT │ │ │ │ Read $DOCS_DIR/analysis.yml and create marketing content. │ │ │ │ ## Output: content.json │ │ ```json │ │ { │ │ "hero": { │ │ "headline": "Powerful, benefit-focused headline", │ │ "subheadline": "Explain the value in one sentence", │ │ "cta_primary": "Get Started", │ │ "cta_secondary": "Learn More", │ │ "social_proof": "Used by X developers" │ │ }, │ │ "features": [ │ │ { │ │ "title": "Feature Name", │ │ "description": "Benefit-focused description", │ │ "icon": "suggested-icon-name" │ │ } │ │ ], │ │ "how_it_works": [ │ │ { │ │ "step": 1, │ │ "title": "Step Title", │ │ "description": "What happens" │ │ } │ │ ], │ │ "stats": [ │ │ { "value": "10x", "label": "Faster" } │ │ ] │ │ } │ │ ``` │ │ │ │ Writing Rules: │ │ - Headlines: Benefit-focused, action-oriented │ │ - Features: Max 6, each with clear benefit │ │ - How It Works: 3-4 steps maximum │ │ - Use numbers and specifics when possible │ │ │ │ Write to: $DOCS_DIR/content.json │ └─────────────────────────────────────────────────────────────────┘ ┌─────────────────────────────────────────────────────────────────┐ │ AGENT 3: Q&A / FAQ Generator │ ├─────────────────────────────────────────────────────────────────┤ │ Task tool with: │ │ subagent_type: "technical-writer" │ │ run_in_background: true │ │ prompt: | │ │ # Q&A / FAQ GENERATION │ │ │ │ Read $DOCS_DIR/analysis.yml and PROJECT_DOCUMENTATION.md │ │ to generate comprehensive Q&A. │ │ │ │ ## Output: faq.json │ │ ```json │ │ { │ │ "categories": [ │ │ { │ │ "name": "Getting Started", │ │ "questions": [ │ │ { │ │ "q": "How do I install [Project]?", │ │ "a": "Clear, step-by-step answer" │ │ } │ │ ] │ │ }, │ │ { │ │ "name": "Features", │ │ "questions": [...] │ │ }, │ │ { │ │ "name": "Technical", │ │ "questions": [...] │ │ }, │ │ { │ │ "name": "Pricing & Support", │ │ "questions": [...] │ │ } │ │ ] │ │ } │ │ ``` │ │ │ │ Q&A Guidelines: │ │ - 3-5 questions per category │ │ - Anticipate real user questions │ │ - Answers should be concise but complete │ │ - Include code snippets where helpful │ │ - Address common concerns and objections │ │ │ │ Write to: $DOCS_DIR/faq.json │ └─────────────────────────────────────────────────────────────────┘ ┌─────────────────────────────────────────────────────────────────┐ │ AGENT 4: SEO & Meta Content │ ├─────────────────────────────────────────────────────────────────┤ │ Task tool with: │ │ subagent_type: "technical-writer" │ │ run_in_background: true │ │ prompt: | │ │ # SEO & META CONTENT │ │ │ │ Read $DOCS_DIR/analysis.yml and create SEO content. │ │ │ │ ## Output: seo.json │ │ ```json │ │ { │ │ "title": "Project Name - Tagline | Category", │ │ "description": "150-160 char meta description", │ │ "keywords": ["keyword1", "keyword2"], │ │ "og": { │ │ "title": "Open Graph title", │ │ "description": "OG description", │ │ "type": "website" │ │ }, │ │ "twitter": { │ │ "card": "summary_large_image", │ │ "title": "Twitter title", │ │ "description": "Twitter description" │ │ }, │ │ "structured_data": { │ │ "@type": "SoftwareApplication", │ │ "name": "...", │ │ "description": "..." │ │ } │ │ } │ │ ``` │ │ │ │ Write to: $DOCS_DIR/seo.json │ └─────────────────────────────────────────────────────────────────┘ ``` #### 2.2: Wait for All Content Agents ``` Use TaskOutput tool to wait for each agent: - TaskOutput with task_id from Agent 1 (branding), block: true - TaskOutput with task_id from Agent 2 (content), block: true - TaskOutput with task_id from Agent 3 (faq), block: true - TaskOutput with task_id from Agent 4 (seo), block: true ``` --- ### ═══════════════════════════════════════════════════════════════ ### PHASE 3: Generate Landing Page HTML ### ═══════════════════════════════════════════════════════════════ #### 3.1: Generate Designer-Quality Landing Page **Use Task tool with frontend-architect agent:** ``` Task tool with: subagent_type: "frontend-architect" prompt: | # GENERATE LANDING PAGE HTML Read these files and generate a stunning landing page: - $DOCS_DIR/branding.json (colors, typography, style) - $DOCS_DIR/content.json (hero, features, how-it-works) - $DOCS_DIR/faq.json (Q&A sections) - $DOCS_DIR/seo.json (meta tags) ## Output: $DOCS_DIR/landing.html ## Design Requirements ### Structure ```html
Subheadline