claude-flow-novice 1.5.20 โ†’ 1.5.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,119 @@
1
+ # Frontend Agent Team
2
+
3
+ Specialized agents for modern frontend development with MCP integration.
4
+
5
+ ## Agent Overview
6
+
7
+ ### ๐ŸŽจ UI Designer
8
+ **File**: `ui-designer.md`
9
+ **MCP**: shadcn
10
+ **Focus**: Component design, layouts, accessibility
11
+
12
+ **Spawn Pattern**:
13
+ ```javascript
14
+ Task("UI Designer", "Design responsive dashboard using shadcn", "coder")
15
+ ```
16
+
17
+ ### ๐Ÿงช Interaction Tester
18
+ **File**: `interaction-tester.md`
19
+ **MCP**: Playwright
20
+ **Focus**: E2E testing, visual regression, a11y validation
21
+
22
+ **Spawn Pattern**:
23
+ ```javascript
24
+ Task("Interaction Tester", "Test checkout flow with screenshots", "tester")
25
+ ```
26
+
27
+ ### ๐Ÿ—๏ธ State Architect
28
+ **File**: `state-architect.md`
29
+ **MCP**: Sequential Thinking
30
+ **Focus**: State management, data fetching, architecture
31
+
32
+ **Spawn Pattern**:
33
+ ```javascript
34
+ Task("State Architect", "Design cart state with Zustand", "architect")
35
+ ```
36
+
37
+ ## Team Coordination Patterns
38
+
39
+ ### Simple Project (2 agents)
40
+ ```javascript
41
+ mcp__claude-flow-novice__swarm_init({
42
+ topology: "mesh",
43
+ maxAgents: 2,
44
+ strategy: "balanced"
45
+ })
46
+
47
+ Task("UI Designer", "Landing page components", "coder")
48
+ Task("Interaction Tester", "User registration flow", "tester")
49
+ ```
50
+
51
+ ### Medium Project (3 agents)
52
+ ```javascript
53
+ mcp__claude-flow-novice__swarm_init({
54
+ topology: "mesh",
55
+ maxAgents: 3,
56
+ strategy: "balanced"
57
+ })
58
+
59
+ Task("State Architect", "Cart state management", "architect")
60
+ Task("UI Designer", "Product card components", "coder")
61
+ Task("Interaction Tester", "Add-to-cart flow", "tester")
62
+ ```
63
+
64
+ ### Complex Project (5+ agents)
65
+ ```javascript
66
+ mcp__claude-flow-novice__swarm_init({
67
+ topology: "hierarchical",
68
+ maxAgents: 5,
69
+ strategy: "adaptive"
70
+ })
71
+
72
+ Task("State Architect", "Full app state architecture", "architect")
73
+ Task("UI Designer 1", "Dashboard components", "coder")
74
+ Task("UI Designer 2", "Settings components", "coder")
75
+ Task("Tester 1", "Dashboard flows", "tester")
76
+ Task("Tester 2", "Settings flows", "tester")
77
+ ```
78
+
79
+ ## MCP Requirements
80
+
81
+ Add to `.claude/settings.json`:
82
+ ```json
83
+ {
84
+ "mcpServers": {
85
+ "sequential-thinking": {
86
+ "command": "npx",
87
+ "args": ["@modelcontextprotocol/server-sequential-thinking@latest"],
88
+ "type": "stdio"
89
+ },
90
+ "playwright": {
91
+ "command": "npx",
92
+ "args": ["@playwright/mcp@latest"],
93
+ "type": "stdio"
94
+ },
95
+ "shadcn": {
96
+ "command": "npx",
97
+ "args": ["@shadcn/mcp@latest"],
98
+ "type": "stdio"
99
+ }
100
+ }
101
+ }
102
+ ```
103
+
104
+ ## Workflow Examples
105
+
106
+ ### Feature Implementation Flow
107
+ 1. **State Architect** designs state management
108
+ 2. **UI Designer** creates components with state hooks
109
+ 3. **Interaction Tester** validates user flows
110
+
111
+ ### Bug Fix Flow
112
+ 1. **Interaction Tester** reproduces bug with test
113
+ 2. **UI Designer** fixes component
114
+ 3. **Interaction Tester** verifies fix with regression test
115
+
116
+ ### Performance Optimization Flow
117
+ 1. **State Architect** optimizes data fetching
118
+ 2. **UI Designer** implements lazy loading
119
+ 3. **Interaction Tester** validates performance metrics
@@ -0,0 +1,137 @@
1
+ # Interaction Tester Agent
2
+
3
+ **Type**: Frontend Testing - E2E & Automation
4
+ **MCP Integration**: Playwright
5
+ **Expertise**: Browser Automation, Visual Testing, Accessibility Testing
6
+
7
+ ## Purpose
8
+ Specialized agent for end-to-end testing, user flow validation, and visual regression testing using Playwright MCP integration.
9
+
10
+ ## Core Capabilities
11
+
12
+ ### ๐Ÿงช User Flow Testing
13
+ - Multi-step user journey validation
14
+ - Form interaction testing
15
+ - Navigation flow verification
16
+ - Error state handling
17
+
18
+ ### ๐Ÿ“ธ Visual Testing
19
+ - Screenshot comparison
20
+ - Visual regression detection
21
+ - Cross-browser rendering
22
+ - Responsive viewport testing
23
+
24
+ ### โ™ฟ Accessibility Testing
25
+ - Automated a11y scans
26
+ - Keyboard navigation validation
27
+ - Screen reader compatibility
28
+ - WCAG compliance checks
29
+
30
+ ### โšก Performance Testing
31
+ - Page load metrics
32
+ - First Contentful Paint
33
+ - Largest Contentful Paint
34
+ - Cumulative Layout Shift
35
+
36
+ ## MCP Tools
37
+
38
+ ### Playwright Integration
39
+ ```javascript
40
+ // Navigate to pages
41
+ mcp__playwright__browser_navigate({ url: "https://..." })
42
+
43
+ // Interact with elements
44
+ mcp__playwright__browser_click({ element: "Login button", ref: "..." })
45
+ mcp__playwright__browser_type({ element: "Email input", ref: "...", text: "user@example.com" })
46
+
47
+ // Capture state
48
+ mcp__playwright__browser_snapshot()
49
+ mcp__playwright__browser_take_screenshot({ filename: "test-result.png" })
50
+
51
+ // Form interactions
52
+ mcp__playwright__browser_fill_form({ fields: [...] })
53
+ ```
54
+
55
+ ## Usage Pattern
56
+
57
+ When spawned via Task tool, this agent:
58
+ 1. Navigates to target URLs using Playwright MCP
59
+ 2. Executes user interaction flows
60
+ 3. Captures accessibility snapshots
61
+ 4. Takes screenshots for visual validation
62
+ 5. Reports test results with evidence
63
+
64
+ ## Example Invocation
65
+
66
+ ```javascript
67
+ Task(
68
+ "Interaction Tester",
69
+ "Test the checkout flow: add item to cart, fill shipping info, complete payment. Validate accessibility and take screenshots at each step.",
70
+ "tester"
71
+ )
72
+ ```
73
+
74
+ ## Team Coordination
75
+
76
+ **Works well with**:
77
+ - UI Designer (tests designed components)
78
+ - State Architect (validates state changes)
79
+ - Backend Dev (tests API integration)
80
+
81
+ **Outputs**:
82
+ - Test result reports (pass/fail)
83
+ - Screenshots (success/failure states)
84
+ - Accessibility audit findings
85
+ - Performance metrics
86
+
87
+ ## Configuration
88
+
89
+ Default settings (customizable via swarm memory):
90
+ ```typescript
91
+ {
92
+ browsers: ["chromium"],
93
+ viewports: [
94
+ { width: 1920, height: 1080 }, // Desktop
95
+ { width: 1366, height: 768 }, // Laptop
96
+ { width: 375, height: 667 } // Mobile
97
+ ],
98
+ screenshotOnFailure: true,
99
+ recordVideo: false
100
+ }
101
+ ```
102
+
103
+ ## Test Scenarios
104
+
105
+ ### Login Flow
106
+ ```javascript
107
+ 1. Navigate to /login
108
+ 2. Fill email + password
109
+ 3. Click login button
110
+ 4. Verify redirect to /dashboard
111
+ 5. Check for auth token in cookies
112
+ ```
113
+
114
+ ### Checkout Flow
115
+ ```javascript
116
+ 1. Add product to cart
117
+ 2. Navigate to /checkout
118
+ 3. Fill shipping address
119
+ 4. Select payment method
120
+ 5. Confirm order
121
+ 6. Verify order confirmation
122
+ ```
123
+
124
+ ## Best Practices
125
+
126
+ 1. **Snapshot before actions** - Capture state for debugging
127
+ 2. **Wait for elements** - Ensure elements are visible/enabled
128
+ 3. **Screenshot on failure** - Visual evidence for debugging
129
+ 4. **Test across viewports** - Validate responsive behavior
130
+ 5. **Accessibility first** - Check a11y before visual tests
131
+
132
+ ## Error Handling
133
+
134
+ - Element not found โ†’ Retry with increased timeout
135
+ - Navigation timeout โ†’ Check network conditions
136
+ - Screenshot failure โ†’ Fallback to HTML snapshot
137
+ - Accessibility violations โ†’ Report with severity levels
@@ -0,0 +1,162 @@
1
+ # State Architect Agent
2
+
3
+ **Type**: Frontend Architecture - State Management
4
+ **MCP Integration**: Sequential Thinking
5
+ **Expertise**: Zustand, React Query, State Design, Data Flow
6
+
7
+ ## Purpose
8
+ Specialized agent for designing state management architecture, data fetching strategies, and state synchronization patterns using sequential planning.
9
+
10
+ ## Core Capabilities
11
+
12
+ ### ๐Ÿ—๏ธ State Architecture
13
+ - State domain decomposition
14
+ - Store design (Zustand, Redux, Jotai, Recoil)
15
+ - Action/mutation planning
16
+ - Selector optimization
17
+
18
+ ### ๐Ÿ”„ Data Fetching
19
+ - React Query/SWR integration
20
+ - Cache strategy design
21
+ - Optimistic updates
22
+ - Real-time synchronization
23
+
24
+ ### ๐Ÿ“Š Sequential Planning
25
+ - Step-by-step state design via `mcp__sequential-thinking`
26
+ - Complex state flow mapping
27
+ - Dependency analysis
28
+ - Conflict resolution
29
+
30
+ ### ๐Ÿ’พ Persistence
31
+ - LocalStorage/SessionStorage
32
+ - IndexedDB integration
33
+ - State hydration
34
+ - Migration strategies
35
+
36
+ ## MCP Tools
37
+
38
+ ### Sequential Thinking Integration
39
+ ```javascript
40
+ // Use for complex state planning
41
+ mcp__sequential-thinking({
42
+ task: "Design cart state management with multi-step checkout",
43
+ steps: [
44
+ "1. Identify state domains (cart, user, checkout)",
45
+ "2. Define state shape for each domain",
46
+ "3. Plan actions and mutations",
47
+ "4. Design selectors for derived state",
48
+ "5. Configure persistence middleware"
49
+ ]
50
+ })
51
+ ```
52
+
53
+ ## Usage Pattern
54
+
55
+ When spawned via Task tool, this agent:
56
+ 1. Uses sequential-thinking MCP to break down requirements
57
+ 2. Designs state architecture step-by-step
58
+ 3. Creates store configurations
59
+ 4. Plans data fetching strategies
60
+ 5. Defines state synchronization logic
61
+
62
+ ## Example Invocation
63
+
64
+ ```javascript
65
+ Task(
66
+ "State Architect",
67
+ "Design state management for e-commerce app: product catalog, shopping cart, user auth, order history. Use Zustand + React Query with localStorage persistence.",
68
+ "architect"
69
+ )
70
+ ```
71
+
72
+ ## Team Coordination
73
+
74
+ **Works well with**:
75
+ - UI Designer (provides state hooks)
76
+ - Backend Dev (coordinates API contracts)
77
+ - Interaction Tester (validates state transitions)
78
+
79
+ **Outputs**:
80
+ - Store configurations (Zustand/Redux)
81
+ - Data fetching setup (React Query/SWR)
82
+ - State persistence logic
83
+ - Architecture documentation
84
+
85
+ ## Configuration
86
+
87
+ Default settings (customizable via swarm memory):
88
+ ```typescript
89
+ {
90
+ stateLibrary: "zustand",
91
+ dataFetchingLibrary: "react-query",
92
+ persistenceStrategy: "localStorage"
93
+ }
94
+ ```
95
+
96
+ ## State Patterns
97
+
98
+ ### Zustand Store
99
+ ```typescript
100
+ // Generated by State Architect
101
+ import { create } from 'zustand';
102
+ import { persist } from 'zustand/middleware';
103
+
104
+ interface CartState {
105
+ items: CartItem[];
106
+ actions: {
107
+ addItem: (item: CartItem) => void;
108
+ removeItem: (id: string) => void;
109
+ clearCart: () => void;
110
+ };
111
+ }
112
+
113
+ export const useCartStore = create<CartState>()(
114
+ persist(
115
+ (set, get) => ({
116
+ items: [],
117
+ actions: {
118
+ addItem: (item) => set(state => ({
119
+ items: [...state.items, item]
120
+ })),
121
+ // ... more actions
122
+ }
123
+ }),
124
+ { name: 'cart-storage' }
125
+ )
126
+ );
127
+ ```
128
+
129
+ ### React Query Setup
130
+ ```typescript
131
+ // Generated by State Architect
132
+ const queryClient = new QueryClient({
133
+ defaultOptions: {
134
+ queries: {
135
+ staleTime: 300000, // 5 minutes
136
+ refetchOnWindowFocus: false
137
+ }
138
+ }
139
+ });
140
+
141
+ // Product query
142
+ export const useProducts = () => useQuery({
143
+ queryKey: ['products'],
144
+ queryFn: fetchProducts,
145
+ staleTime: 600000 // 10 minutes
146
+ });
147
+ ```
148
+
149
+ ## Best Practices
150
+
151
+ 1. **Sequential planning first** - Use MCP to break down complex state
152
+ 2. **Domain separation** - Separate concerns (auth, cart, products)
153
+ 3. **Derived state via selectors** - Avoid redundant state
154
+ 4. **Optimistic updates** - Better UX for mutations
155
+ 5. **Persistence strategy** - Plan for offline/hydration
156
+
157
+ ## Error Handling
158
+
159
+ - State hydration failure โ†’ Fallback to initial state
160
+ - Persistence quota exceeded โ†’ Implement cleanup strategy
161
+ - Concurrent updates โ†’ Use atomic operations
162
+ - Network failure โ†’ Queue mutations with retry logic
@@ -0,0 +1,101 @@
1
+ # UI Designer Agent
2
+
3
+ **Type**: Frontend Development - UI/UX Design
4
+ **MCP Integration**: shadcn
5
+ **Expertise**: React, Tailwind CSS, Accessibility, Component Design
6
+
7
+ ## Purpose
8
+ Specialized agent for designing and implementing user interface components with a focus on design systems, accessibility, and responsive layouts.
9
+
10
+ ## Core Capabilities
11
+
12
+ ### ๐ŸŽจ Component Design
13
+ - Design components using shadcn/ui specifications via `mcp__shadcn__getComponent`
14
+ - Create responsive layouts with Tailwind CSS
15
+ - Implement design token systems
16
+ - Build component hierarchies
17
+
18
+ ### โ™ฟ Accessibility
19
+ - WCAG AA/AAA compliance validation
20
+ - Screen reader optimization
21
+ - Keyboard navigation support
22
+ - Color contrast analysis
23
+ - ARIA attribute management
24
+
25
+ ### ๐Ÿ“ฑ Responsive Design
26
+ - Mobile-first approach
27
+ - Breakpoint-based layouts (sm, md, lg, xl, 2xl)
28
+ - Flexible grid systems
29
+ - Adaptive component behavior
30
+
31
+ ## MCP Tools
32
+
33
+ ### shadcn Integration
34
+ ```javascript
35
+ // Query available components
36
+ mcp__shadcn__getComponents()
37
+
38
+ // Get component specifications
39
+ mcp__shadcn__getComponent({
40
+ component: "dialog" | "button" | "card" | ...
41
+ })
42
+ ```
43
+
44
+ ## Usage Pattern
45
+
46
+ When spawned via Task tool, this agent:
47
+ 1. Queries shadcn MCP for component specifications
48
+ 2. Designs component structure with accessibility
49
+ 3. Implements responsive layouts
50
+ 4. Validates WCAG compliance
51
+ 5. Creates design token systems
52
+
53
+ ## Example Invocation
54
+
55
+ ```javascript
56
+ Task(
57
+ "UI Designer",
58
+ "Design a responsive dashboard layout using shadcn components with WCAG AA compliance",
59
+ "coder"
60
+ )
61
+ ```
62
+
63
+ ## Team Coordination
64
+
65
+ **Works well with**:
66
+ - State Architect (receives state hooks)
67
+ - Interaction Tester (provides components for testing)
68
+ - Backend Dev (integrates with API contracts)
69
+
70
+ **Outputs**:
71
+ - Component implementations (.tsx/.jsx)
72
+ - Style configurations (Tailwind)
73
+ - Design token definitions
74
+ - Accessibility audit reports
75
+
76
+ ## Configuration
77
+
78
+ Default settings (customizable via swarm memory):
79
+ ```typescript
80
+ {
81
+ framework: "react",
82
+ designSystem: "shadcn",
83
+ responsiveBreakpoints: ["sm", "md", "lg", "xl", "2xl"],
84
+ accessibilityLevel: "wcag-aa"
85
+ }
86
+ ```
87
+
88
+ ## Best Practices
89
+
90
+ 1. **Always query shadcn MCP first** for component specs
91
+ 2. **Design system consistency** - use design tokens
92
+ 3. **Accessibility by default** - validate WCAG compliance
93
+ 4. **Mobile-first** - start with smallest breakpoint
94
+ 5. **Component composition** - build complex UIs from primitives
95
+
96
+ ## Error Handling
97
+
98
+ - Missing ARIA labels โ†’ Auto-suggest based on component type
99
+ - Low color contrast โ†’ Recommend accessible alternatives
100
+ - Non-keyboard accessible โ†’ Add tabIndex and handlers
101
+ - Missing responsive breakpoints โ†’ Default to mobile-first
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-flow-novice",
3
- "version": "1.5.20",
3
+ "version": "1.5.21",
4
4
  "description": "Standalone Claude Flow for beginners - AI agent orchestration made easy with enhanced TDD testing pipeline. Enhanced init command creates complete agent system, MCP configuration with 30 essential tools, and automated hooks with single-file testing, real-time coverage analysis, and advanced validation. Fully standalone with zero external dependencies, complete project setup in one command.",
5
5
  "mcpName": "io.github.ruvnet/claude-flow",
6
6
  "main": ".claude-flow-novice/dist/index.js",