claudekit
Version:
CLI tools for Claude Code development workflow
406 lines (344 loc) โข 11.2 kB
Markdown
# 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