UNPKG

claudekit

Version:

CLI tools for Claude Code development workflow

406 lines (344 loc) โ€ข 11.2 kB
# Subagent Installation Presets ## Design Principles - No auto-detection complexity - Clear, descriptive preset names - Logical groupings that match real-world use cases - Progressive disclosure (start simple, allow expansion) ## Proposed Preset Structure ### Option 1: Size-Based Presets (Simple) ``` Choose your agent installation preset: ( ) ๐ŸŽฏ Minimal (5 agents) Essential agents for any project โ†’ typescript, testing, git, code-quality, nodejs ( ) ๐Ÿ“ฆ Standard (10 agents) โ† DEFAULT Common development stack โ†’ Minimal + react, database, docker, jest, webpack ( ) ๐Ÿ’ผ Professional (15 agents) Comprehensive development toolkit โ†’ Standard + performance, accessibility, postgres, playwright, devops ( ) ๐ŸŒŸ Everything (23 agents) Complete suite with all specialists โ†’ All available agents ( ) โš™๏ธ Custom Choose individual agents ``` ### Option 2: Role-Based Presets (Clear Intent) ``` Select preset based on your role: ( ) ๐ŸŽจ Frontend Developer (8 agents) โ€ข react-expert โ€ข react-performance-expert โ€ข typescript-expert โ€ข css-styling-expert โ€ข accessibility-expert โ€ข webpack-expert โ€ข vite-expert โ€ข testing-expert ( ) ๐Ÿš€ Backend Developer (7 agents) โ€ข nodejs-expert โ€ข database-expert โ€ข postgres-expert โ€ข mongodb-expert โ€ข typescript-expert โ€ข docker-expert โ€ข testing-expert ( ) ๐Ÿ”ง Full-Stack Developer (12 agents) โ† DEFAULT โ€ข typescript-expert โ€ข react-expert โ€ข nodejs-expert โ€ข nextjs-expert โ€ข database-expert โ€ข testing-expert โ€ข git-expert โ€ข docker-expert โ€ข postgres-expert โ€ข webpack-expert โ€ข jest-expert โ€ข code-quality-expert ( ) ๐Ÿงช Testing Specialist (7 agents) โ€ข testing-expert โ€ข jest-expert โ€ข vitest-expert โ€ข playwright-expert โ€ข code-quality-expert โ€ข typescript-expert โ€ข react-expert (for component testing) ( ) โ˜๏ธ DevOps Engineer (6 agents) โ€ข devops-expert โ€ข docker-expert โ€ข github-actions-expert โ€ข nodejs-expert โ€ข git-expert โ€ข database-expert ( ) โš™๏ธ Custom Selection Choose individual agents ``` ### Option 3: Stack-Based Presets (Technology Focused) ``` Select your technology stack: ( ) โš›๏ธ React Application (8 agents) Modern React development โ€ข react-expert โ€ข react-performance-expert โ€ข typescript-expert โ€ข css-styling-expert โ€ข jest-expert โ€ข webpack-expert โ€ข testing-expert โ€ข code-quality-expert ( ) โ–ฒ Next.js Full-Stack (10 agents) โ† DEFAULT Next.js with API and database โ€ข nextjs-expert โ€ข react-expert โ€ข nodejs-expert โ€ข typescript-expert โ€ข database-expert โ€ข postgres-expert โ€ข testing-expert โ€ข jest-expert โ€ข docker-expert โ€ข git-expert ( ) ๐ŸŸข Node.js Backend (8 agents) API and microservices โ€ข nodejs-expert โ€ข typescript-expert โ€ข database-expert โ€ข postgres-expert โ€ข mongodb-expert โ€ข docker-expert โ€ข testing-expert โ€ข jest-expert ( ) ๐Ÿ“ฑ Modern Web App (11 agents) SPA with backend API โ€ข typescript-expert โ€ข react-expert โ€ข nodejs-expert โ€ข database-expert โ€ข webpack-expert โ€ข vite-expert โ€ข testing-expert โ€ข jest-expert โ€ข docker-expert โ€ข git-expert โ€ข code-quality-expert ( ) ๐Ÿข Enterprise Stack (15 agents) Large-scale applications โ€ข All core experts (7) โ€ข All testing experts (4) โ€ข postgres-expert โ€ข docker-expert โ€ข github-actions-expert โ€ข accessibility-expert ( ) โš™๏ธ Custom Selection Choose individual agents ``` ### Option 4: Hybrid Approach (RECOMMENDED) ``` โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ• Step 3: Choose AI Assistant Subagents โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ• Quick Presets - Select one: ๐ŸŽฏ Core Essentials (5 agents) Basic agents every project needs โ†’ typescript, testing, git, code-quality, nodejs ๐Ÿ“ฆ Recommended Stack (10 agents) โ† DEFAULT Well-rounded for most projects โ†’ Core + react, database, docker, jest, webpack ๐Ÿ’ผ Professional Suite (15 agents) Comprehensive toolkit โ†’ Recommended + specialists for performance, accessibility, CI/CD ๐ŸŒŸ Complete Collection (23 agents) Everything available โ†’ All domain experts and specialists โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ Or choose by development focus: [ ] Frontend Focus (+6 agents) react, react-performance, css-styling, accessibility, vite, webpack [ ] Backend Focus (+5 agents) nodejs, database, postgres, mongodb, docker [ ] Testing Focus (+4 agents) jest, vitest, playwright, code-quality [ ] DevOps Focus (+3 agents) devops, github-actions, docker [ ] Custom Selection Pick individual agents manually [Continue with Recommended Stack] [Change Selection] ``` ## Detailed Preset Definitions ### ๐ŸŽฏ Core Essentials (5 agents) **Purpose**: Minimum viable agent set for any project **Agents**: - `typescript-expert` - Most projects use TypeScript - `testing-expert` - Universal testing guidance - `git-expert` - Version control is universal - `code-quality-expert` - Best practices for any language - `nodejs-expert` - Common runtime even for frontend ### ๐Ÿ“ฆ Recommended Stack (10 agents) **Purpose**: Covers 80% of web development needs **Agents**: - All from Core Essentials (5) - `react-expert` - Most popular framework - `database-expert` - General database guidance - `docker-expert` - Containerization is standard - `jest-expert` - Most common test runner - `webpack-expert` - Still widely used bundler ### ๐Ÿ’ผ Professional Suite (15 agents) **Purpose**: For teams needing comprehensive coverage **Agents**: - All from Recommended Stack (10) - `react-performance-expert` - Performance optimization - `accessibility-expert` - WCAG compliance - `postgres-expert` - Most common production DB - `playwright-expert` - E2E testing - `devops-expert` - CI/CD and deployment ### ๐ŸŒŸ Complete Collection (23 agents) **Purpose**: Maximum coverage for consultants/agencies **Agents**: All available agents ## Focus Area Add-ons These can be added to any preset: ### Frontend Focus (+6) - `react-expert` (if not included) - `react-performance-expert` - `css-styling-expert` - `accessibility-expert` - `vite-expert` - `webpack-expert` (if not included) ### Backend Focus (+5) - `nodejs-expert` (if not included) - `database-expert` (if not included) - `postgres-expert` - `mongodb-expert` - `docker-expert` (if not included) ### Testing Focus (+4) - `jest-expert` (if not included) - `vitest-expert` - `playwright-expert` - `code-quality-expert` (if not included) ### DevOps Focus (+3) - `devops-expert` - `github-actions-expert` - `docker-expert` (if not included) ## Implementation Code ```typescript interface AgentPreset { id: string; name: string; emoji: string; description: string; agents: string[]; isDefault?: boolean; category: 'size' | 'role' | 'stack' | 'addon'; } const AGENT_PRESETS: AgentPreset[] = [ { id: 'core', name: 'Core Essentials', emoji: '๐ŸŽฏ', description: 'Basic agents every project needs', agents: ['typescript-expert', 'testing-expert', 'git-expert', 'code-quality-expert', 'nodejs-expert'], category: 'size' }, { id: 'recommended', name: 'Recommended Stack', emoji: '๐Ÿ“ฆ', description: 'Well-rounded for most projects', agents: [ 'typescript-expert', 'testing-expert', 'git-expert', 'code-quality-expert', 'nodejs-expert', 'react-expert', 'database-expert', 'docker-expert', 'jest-expert', 'webpack-expert' ], isDefault: true, category: 'size' }, { id: 'professional', name: 'Professional Suite', emoji: '๐Ÿ’ผ', description: 'Comprehensive toolkit', agents: [ 'typescript-expert', 'testing-expert', 'git-expert', 'code-quality-expert', 'nodejs-expert', 'react-expert', 'database-expert', 'docker-expert', 'jest-expert', 'webpack-expert', 'react-performance-expert', 'accessibility-expert', 'postgres-expert', 'playwright-expert', 'devops-expert' ], category: 'size' }, { id: 'everything', name: 'Complete Collection', emoji: '๐ŸŒŸ', description: 'All available agents', agents: getAllAgents(), category: 'size' } ]; const FOCUS_ADDONS: AgentPreset[] = [ { id: 'frontend-focus', name: 'Frontend Focus', emoji: '๐ŸŽจ', description: 'React, CSS, accessibility, and build tools', agents: ['react-expert', 'react-performance-expert', 'css-styling-expert', 'accessibility-expert', 'vite-expert', 'webpack-expert'], category: 'addon' }, { id: 'backend-focus', name: 'Backend Focus', emoji: '๐Ÿš€', description: 'Node.js, databases, and containers', agents: ['nodejs-expert', 'database-expert', 'postgres-expert', 'mongodb-expert', 'docker-expert'], category: 'addon' }, { id: 'testing-focus', name: 'Testing Focus', emoji: '๐Ÿงช', description: 'All testing frameworks and tools', agents: ['jest-expert', 'vitest-expert', 'playwright-expert', 'code-quality-expert'], category: 'addon' }, { id: 'devops-focus', name: 'DevOps Focus', emoji: 'โ˜๏ธ', description: 'CI/CD and infrastructure', agents: ['devops-expert', 'github-actions-expert', 'docker-expert'], category: 'addon' } ]; ``` ## User Experience Flow 1. **Show presets with clear value proposition** ``` ๐ŸŽฏ Core (5) - Just the essentials ๐Ÿ“ฆ Recommended (10) - Good for most projects โ† DEFAULT ๐Ÿ’ผ Professional (15) - Comprehensive coverage ๐ŸŒŸ Everything (23) - Complete suite ``` 2. **Optional: Add focus areas** ``` Add specialized expertise: [ ] +6 Frontend agents [ ] +5 Backend agents [ ] +4 Testing agents [ ] +3 DevOps agents ``` 3. **Show final selection** ``` Your selection: Recommended Stack + Frontend Focus Total agents: 14 (10 base + 4 additional) ``` ## Benefits of This Approach 1. **Simple mental model** - Size-based presets are intuitive 2. **No detection needed** - Works immediately, no analysis required 3. **Clear value prop** - Each preset has obvious use case 4. **Flexible** - Add-on system allows customization 5. **Fast** - Most users pick "Recommended" and continue 6. **Educational** - Shows what agents are for each purpose ## Recommendation Implement **Option 4 (Hybrid Approach)** because it: - Provides simple size-based presets as primary choice - Allows optional focus area additions - Defaults to sensible "Recommended Stack" - Requires no project analysis - Takes < 10 seconds to complete