ai-development-framework 0.1.0
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.
- package/.claude/agents/_template/AGENT.md +36 -0
- package/.claude/agents/architect-agent/AGENT.md +60 -0
- package/.claude/agents/architect-agent/decisions/log.md +18 -0
- package/.claude/agents/architect-agent/frontend/.gitkeep +0 -0
- package/.claude/agents/architect-agent/index.md +32 -0
- package/.claude/agents/architect-agent/modules/.gitkeep +0 -0
- package/.claude/agents/architect-agent/shared/patterns.md +19 -0
- package/.claude/agents/mobile-tester-agent/AGENT.md +46 -0
- package/.claude/agents/mobile-tester-agent/screen-patterns.md +42 -0
- package/.claude/agents/tester-agent/AGENT.md +44 -0
- package/.claude/agents/tester-agent/auth-state.md +22 -0
- package/.claude/agents/tester-agent/test-patterns.md +36 -0
- package/.claude/agents/ui-ux-analyzer/AGENT.md +75 -0
- package/.claude/commands/create-prd.md +55 -0
- package/.claude/commands/evolve.md +84 -0
- package/.claude/commands/execute.md +76 -0
- package/.claude/commands/plan-feature.md +100 -0
- package/.claude/commands/plan-project.md +110 -0
- package/.claude/commands/prime.md +71 -0
- package/.claude/commands/setup.md +81 -0
- package/.claude/commands/ship.md +73 -0
- package/.claude/commands/start.md +63 -0
- package/.claude/commands/validate.md +72 -0
- package/.claude/hooks/architect-sync.sh +18 -0
- package/.claude/hooks/branch-guard.sh +15 -0
- package/.claude/hooks/evolve-reminder.sh +13 -0
- package/.claude/hooks/plan-required.sh +20 -0
- package/.claude/hooks/session-primer.sh +38 -0
- package/.claude/references/claude-md-template.md +90 -0
- package/.claude/references/code-patterns.md +37 -0
- package/.claude/references/issue-template.md +56 -0
- package/.claude/references/plan-template.md +92 -0
- package/.claude/references/prd-template.md +119 -0
- package/.claude/rules/_global.md +22 -0
- package/.claude/rules/_template.md +23 -0
- package/.claude/rules/backend.md +29 -0
- package/.claude/rules/database.md +28 -0
- package/.claude/rules/frontend.md +34 -0
- package/.claude/rules/mobile.md +33 -0
- package/.claude/rules/testing.md +37 -0
- package/.claude/settings.local.json +27 -0
- package/.claude/skills/e2e-test/SKILL.md +87 -0
- package/.claude/skills/playwright-cli/SKILL.md +97 -0
- package/CLAUDE.md +65 -0
- package/README.md +83 -0
- package/cli/index.js +35 -0
- package/cli/init.js +219 -0
- package/cli/update.js +120 -0
- package/docs/command-reference.md +41 -0
- package/docs/customization.md +33 -0
- package/docs/getting-started.md +68 -0
- package/docs/methodology.md +78 -0
- package/docs/plans/2026-03-30-ai-development-framework-design.md +483 -0
- package/docs/plugin-install-guide.md +66 -0
- package/docs/superpowers/plans/2026-03-30-framework-implementation.md +3462 -0
- package/package.json +28 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# [Agent Name]
|
|
2
|
+
|
|
3
|
+
[One-line description of what this agent does]
|
|
4
|
+
|
|
5
|
+
## Query Types
|
|
6
|
+
|
|
7
|
+
### [QUERY_TYPE_1] [parameters]
|
|
8
|
+
[Description of what this query does and what it returns]
|
|
9
|
+
|
|
10
|
+
### [QUERY_TYPE_2] [parameters]
|
|
11
|
+
[Description]
|
|
12
|
+
|
|
13
|
+
## Tools
|
|
14
|
+
|
|
15
|
+
- [Tool 1] — [what it's used for]
|
|
16
|
+
- [Tool 2] — [what it's used for]
|
|
17
|
+
|
|
18
|
+
## Response Format
|
|
19
|
+
|
|
20
|
+
- Max ~[20-30] lines per response
|
|
21
|
+
- [Format guidelines]
|
|
22
|
+
|
|
23
|
+
## Knowledge Base
|
|
24
|
+
|
|
25
|
+
```
|
|
26
|
+
agent-name/
|
|
27
|
+
├── AGENT.md ← This file (protocol definition)
|
|
28
|
+
└── [other files] ← Agent-specific knowledge files
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## Usage Example
|
|
32
|
+
|
|
33
|
+
```
|
|
34
|
+
Agent: [QUERY_TYPE_1] [example parameters]
|
|
35
|
+
→ Agent responds with: [example output format]
|
|
36
|
+
```
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# Architect Agent
|
|
2
|
+
|
|
3
|
+
Project architecture knowledge base. Call before creating/modifying modules, routes, DB tables, or endpoints.
|
|
4
|
+
|
|
5
|
+
## Query Types
|
|
6
|
+
|
|
7
|
+
### RETRIEVE domain:<area>
|
|
8
|
+
Returns: file map, endpoints, DB tables, integration points, gotchas for the specified domain.
|
|
9
|
+
Read `index.md` to find the right domain file, then read that file.
|
|
10
|
+
|
|
11
|
+
### IMPACT
|
|
12
|
+
Analyzes what a planned change will affect.
|
|
13
|
+
Read relevant domain files, trace dependencies, report:
|
|
14
|
+
- Files that will need changes
|
|
15
|
+
- Other modules that integrate with this area
|
|
16
|
+
- Database tables affected
|
|
17
|
+
- Potential breaking changes
|
|
18
|
+
- Patterns to follow (from shared/patterns.md)
|
|
19
|
+
|
|
20
|
+
### RECORD domain:<area>
|
|
21
|
+
Main agent reports that changes were made. Verify the changes exist, then update the relevant domain file and index.md.
|
|
22
|
+
- Use Glob and Grep to verify new files/endpoints exist
|
|
23
|
+
- Update the domain knowledge file with new information
|
|
24
|
+
- Add a decision to decisions/log.md if this was an architectural choice
|
|
25
|
+
|
|
26
|
+
### PATTERN
|
|
27
|
+
Returns established conventions from shared/patterns.md.
|
|
28
|
+
Read the patterns file and return relevant conventions.
|
|
29
|
+
|
|
30
|
+
## Tools
|
|
31
|
+
|
|
32
|
+
- Read, Glob, Grep — for codebase exploration
|
|
33
|
+
- Edit, Write — for updating knowledge base files
|
|
34
|
+
|
|
35
|
+
## Response Format
|
|
36
|
+
|
|
37
|
+
- Max ~30 lines per response
|
|
38
|
+
- Structured: use tables and bullet lists
|
|
39
|
+
- Include file paths with line numbers where relevant
|
|
40
|
+
- Flag GOTCHA warnings for known pitfalls
|
|
41
|
+
|
|
42
|
+
## Knowledge Base Structure
|
|
43
|
+
|
|
44
|
+
```
|
|
45
|
+
architect-agent/
|
|
46
|
+
├── index.md ← TOC: lists all domains with brief descriptions
|
|
47
|
+
├── modules/ ← One file per backend module/domain
|
|
48
|
+
├── frontend/ ← Frontend-specific knowledge (routes, components)
|
|
49
|
+
├── shared/
|
|
50
|
+
│ └── patterns.md ← Cross-cutting conventions and patterns
|
|
51
|
+
└── decisions/
|
|
52
|
+
└── log.md ← Architecture decision records
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
## Initialization
|
|
56
|
+
|
|
57
|
+
When first set up for a project, the main agent should:
|
|
58
|
+
1. Run /prime to understand the codebase
|
|
59
|
+
2. Use RECORD to populate initial domain files from codebase exploration
|
|
60
|
+
3. The knowledge base grows organically as RECORD queries accumulate
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Architecture Decision Log
|
|
2
|
+
|
|
3
|
+
Records of significant architectural choices and their rationale.
|
|
4
|
+
Added by architect-agent RECORD when structural decisions are made.
|
|
5
|
+
|
|
6
|
+
## Format
|
|
7
|
+
|
|
8
|
+
### ADR-NNN: [Decision Title]
|
|
9
|
+
|
|
10
|
+
**Date:** YYYY-MM-DD
|
|
11
|
+
**Status:** Accepted / Superseded by ADR-XXX
|
|
12
|
+
**Context:** Why was this decision needed?
|
|
13
|
+
**Decision:** What was decided?
|
|
14
|
+
**Consequences:** What are the implications (positive and negative)?
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
> No decisions recorded yet. Decisions are added as the project evolves.
|
|
File without changes
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Architecture Knowledge Base — Index
|
|
2
|
+
|
|
3
|
+
This file is the table of contents for the architect-agent knowledge base.
|
|
4
|
+
It is populated by RECORD queries as the project evolves.
|
|
5
|
+
|
|
6
|
+
## How to Use
|
|
7
|
+
|
|
8
|
+
- **RETRIEVE domain:X** — Look up domain X below, read the linked file
|
|
9
|
+
- **IMPACT** — Read relevant domains, trace dependencies
|
|
10
|
+
- **RECORD domain:X** — After changes, update the linked file
|
|
11
|
+
- **PATTERN** — Read `shared/patterns.md`
|
|
12
|
+
|
|
13
|
+
## Domains
|
|
14
|
+
|
|
15
|
+
> This section is populated as the project grows. Run architect-agent RECORD to add domains.
|
|
16
|
+
|
|
17
|
+
| Domain | File | Description |
|
|
18
|
+
|--------|------|-------------|
|
|
19
|
+
| _example_ | `modules/example.md` | _Example: authentication module — endpoints, guards, strategies_ |
|
|
20
|
+
|
|
21
|
+
## Frontend
|
|
22
|
+
|
|
23
|
+
| Area | File | Description |
|
|
24
|
+
|------|------|-------------|
|
|
25
|
+
| _example_ | `frontend/routes.md` | _Example: route map and page inventory_ |
|
|
26
|
+
|
|
27
|
+
## Shared
|
|
28
|
+
|
|
29
|
+
| Resource | File |
|
|
30
|
+
|----------|------|
|
|
31
|
+
| Cross-cutting patterns | `shared/patterns.md` |
|
|
32
|
+
| Architecture decisions | `decisions/log.md` |
|
|
File without changes
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Cross-Cutting Patterns
|
|
2
|
+
|
|
3
|
+
Conventions that apply across all domains. Updated by architect-agent RECORD and /evolve.
|
|
4
|
+
|
|
5
|
+
## Naming Conventions
|
|
6
|
+
|
|
7
|
+
> Populated by /create-rules when it analyzes the codebase.
|
|
8
|
+
|
|
9
|
+
## File Organization
|
|
10
|
+
|
|
11
|
+
> Populated by /create-rules when it analyzes the codebase.
|
|
12
|
+
|
|
13
|
+
## Error Handling
|
|
14
|
+
|
|
15
|
+
> Populated by /create-rules when it analyzes the codebase.
|
|
16
|
+
|
|
17
|
+
## API Design
|
|
18
|
+
|
|
19
|
+
> Populated by /create-rules when it analyzes the codebase.
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Mobile Tester Agent
|
|
2
|
+
|
|
3
|
+
Mobile app testing agent. Uses mobile-mcp tools to test Expo/React Native apps on iOS simulator. Reports concise pass/fail results.
|
|
4
|
+
|
|
5
|
+
## Query Types
|
|
6
|
+
|
|
7
|
+
### VERIFY screen:<ScreenName> Checks: <list>
|
|
8
|
+
Spot-checks on a single screen.
|
|
9
|
+
|
|
10
|
+
Example:
|
|
11
|
+
```
|
|
12
|
+
VERIFY screen:HomeScreen Checks: renders header, shows tab bar, lists 3 items
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
### FLOW: <scenario> Steps: 1. ... 2. ...
|
|
16
|
+
Multi-step user journey on mobile.
|
|
17
|
+
|
|
18
|
+
Example:
|
|
19
|
+
```
|
|
20
|
+
FLOW: Add item Steps: 1. Tap + button 2. Fill title field 3. Tap save 4. Verify item appears in list
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Tools
|
|
24
|
+
|
|
25
|
+
- **mobile-mcp tools:** mobile_list_available_devices, mobile_launch_app, mobile_take_screenshot, mobile_click_on_screen_at_coordinates, mobile_type_keys, mobile_swipe_on_screen, mobile_press_button, mobile_list_elements_on_screen
|
|
26
|
+
- **Read** — read screen-patterns.md and auth-state.md
|
|
27
|
+
|
|
28
|
+
## App Launch Sequence
|
|
29
|
+
|
|
30
|
+
1. `mobile_list_available_devices` — find booted iOS simulator
|
|
31
|
+
2. `mobile_launch_app` or `mobile_open_url` with Expo URL
|
|
32
|
+
3. `mobile_take_screenshot` — verify app loaded
|
|
33
|
+
4. If login required: read `../tester-agent/auth-state.md` and authenticate
|
|
34
|
+
|
|
35
|
+
## Response Format
|
|
36
|
+
|
|
37
|
+
- Max ~20 lines per response
|
|
38
|
+
- PASS or FAIL per check
|
|
39
|
+
- On FAIL: include screenshot and brief description
|
|
40
|
+
- On PASS: one-line confirmation, no screenshot
|
|
41
|
+
|
|
42
|
+
## Navigation
|
|
43
|
+
|
|
44
|
+
- **Tab bar:** Tap coordinates from screen-patterns.md
|
|
45
|
+
- **Back:** `mobile_swipe_on_screen` from left edge or tap back button
|
|
46
|
+
- **Scroll:** `mobile_swipe_on_screen` vertical
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# Screen Patterns
|
|
2
|
+
|
|
3
|
+
Screen inventory and navigation patterns for the mobile-tester-agent.
|
|
4
|
+
Populated by /create-rules and updated by /evolve.
|
|
5
|
+
|
|
6
|
+
## Configuration
|
|
7
|
+
|
|
8
|
+
- **App URL:** exp://localhost:8081
|
|
9
|
+
- **Dev command:** `npx expo start`
|
|
10
|
+
- **Platform:** iOS Simulator
|
|
11
|
+
|
|
12
|
+
## Navigation Structure
|
|
13
|
+
|
|
14
|
+
> Populated when /create-rules scans the mobile app's routing.
|
|
15
|
+
|
|
16
|
+
### Tab Bar
|
|
17
|
+
| Tab | Screen | Icon Position (approx) |
|
|
18
|
+
|-----|--------|----------------------|
|
|
19
|
+
| Home | HomeScreen | Bottom-left |
|
|
20
|
+
| Search | SearchScreen | Bottom-center-left |
|
|
21
|
+
| Profile | ProfileScreen | Bottom-right |
|
|
22
|
+
|
|
23
|
+
### Stack Screens
|
|
24
|
+
| Parent | Screen | Trigger |
|
|
25
|
+
|--------|--------|---------|
|
|
26
|
+
| Home | DetailScreen | Tap list item |
|
|
27
|
+
|
|
28
|
+
## Screen Inventory
|
|
29
|
+
|
|
30
|
+
> Populated when /create-rules scans the mobile app's screens.
|
|
31
|
+
|
|
32
|
+
| Screen | Auth Required | Key Elements |
|
|
33
|
+
|--------|--------------|-------------|
|
|
34
|
+
| HomeScreen | No | Header, list, tab bar |
|
|
35
|
+
| LoginScreen | No | Email field, password field, submit |
|
|
36
|
+
| ProfileScreen | Yes | Avatar, name, settings list |
|
|
37
|
+
|
|
38
|
+
## Common Patterns
|
|
39
|
+
|
|
40
|
+
- **Pull to refresh:** Swipe down from top of list
|
|
41
|
+
- **Infinite scroll:** Swipe up at bottom of list
|
|
42
|
+
- **Modal dismiss:** Swipe down from modal header or tap X
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# Tester Agent
|
|
2
|
+
|
|
3
|
+
Browser testing agent. Runs playwright-cli to verify web UI renders correctly and user flows work. Reports concise pass/fail results.
|
|
4
|
+
|
|
5
|
+
## Query Types
|
|
6
|
+
|
|
7
|
+
### VERIFY page:<path> Checks: <list>
|
|
8
|
+
Spot-checks on a single page. Navigate to the page, verify each check.
|
|
9
|
+
|
|
10
|
+
Example:
|
|
11
|
+
```
|
|
12
|
+
VERIFY page:/dashboard Checks: renders heading, shows user name, sidebar has 5 links
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
### FLOW: <scenario> Steps: 1. ... 2. ...
|
|
16
|
+
Multi-step user journey. Execute steps in order, verify each one.
|
|
17
|
+
|
|
18
|
+
Example:
|
|
19
|
+
```
|
|
20
|
+
FLOW: User login Steps: 1. Navigate to /login 2. Fill email and password 3. Click submit 4. Verify redirected to /dashboard
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Tools
|
|
24
|
+
|
|
25
|
+
- **Bash** — run playwright-cli commands
|
|
26
|
+
- **Read** — read test-patterns.md and auth-state.md
|
|
27
|
+
|
|
28
|
+
## Setup
|
|
29
|
+
|
|
30
|
+
1. Read `test-patterns.md` to understand the page inventory
|
|
31
|
+
2. Read `auth-state.md` for login credentials if testing authenticated pages
|
|
32
|
+
3. Launch browser: `npx playwright-cli open <base-url>`
|
|
33
|
+
|
|
34
|
+
## Configuration
|
|
35
|
+
|
|
36
|
+
- **Base URL:** Read from test-patterns.md (default: http://localhost:3000)
|
|
37
|
+
- **Dev command:** Read from test-patterns.md
|
|
38
|
+
|
|
39
|
+
## Response Format
|
|
40
|
+
|
|
41
|
+
- Max ~20 lines per response
|
|
42
|
+
- PASS or FAIL per check
|
|
43
|
+
- On FAIL: include screenshot and brief description of what went wrong
|
|
44
|
+
- On PASS: one-line confirmation, no screenshot
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Auth State
|
|
2
|
+
|
|
3
|
+
Test credentials for the tester-agent. Fill in when setting up the project.
|
|
4
|
+
|
|
5
|
+
## Test User
|
|
6
|
+
|
|
7
|
+
- **Email:** test@example.com
|
|
8
|
+
- **Password:** testpassword123
|
|
9
|
+
|
|
10
|
+
## Login Flow
|
|
11
|
+
|
|
12
|
+
1. Navigate to `/login`
|
|
13
|
+
2. Fill email field
|
|
14
|
+
3. Fill password field
|
|
15
|
+
4. Click submit button
|
|
16
|
+
5. Wait for redirect to `/dashboard`
|
|
17
|
+
|
|
18
|
+
## Session Management
|
|
19
|
+
|
|
20
|
+
- Auth state is stored in browser cookies/localStorage
|
|
21
|
+
- If session expires, re-run the login flow above
|
|
22
|
+
- For persistent state, save browser state after login
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# Test Patterns
|
|
2
|
+
|
|
3
|
+
Page inventory and common test patterns for the tester-agent.
|
|
4
|
+
Populated by /create-rules and updated by /evolve.
|
|
5
|
+
|
|
6
|
+
## Configuration
|
|
7
|
+
|
|
8
|
+
- **Base URL:** http://localhost:3000
|
|
9
|
+
- **Dev command:** `npm run dev`
|
|
10
|
+
- **Auth required:** Yes/No
|
|
11
|
+
|
|
12
|
+
## Page Inventory
|
|
13
|
+
|
|
14
|
+
> Populated when /create-rules scans the project's routes/pages.
|
|
15
|
+
|
|
16
|
+
| Route | Auth Required | Key Elements |
|
|
17
|
+
|-------|--------------|-------------|
|
|
18
|
+
| `/` | No | Hero section, navigation |
|
|
19
|
+
| `/login` | No | Email field, password field, submit button |
|
|
20
|
+
| `/dashboard` | Yes | User greeting, sidebar, main content |
|
|
21
|
+
|
|
22
|
+
## Common UI Elements
|
|
23
|
+
|
|
24
|
+
> Populated when /create-rules detects component patterns.
|
|
25
|
+
|
|
26
|
+
- Navigation: [describe nav pattern]
|
|
27
|
+
- Forms: [describe form pattern]
|
|
28
|
+
- Modals: [describe modal pattern]
|
|
29
|
+
- Tables: [describe table pattern]
|
|
30
|
+
|
|
31
|
+
## Form Patterns
|
|
32
|
+
|
|
33
|
+
> Populated from codebase analysis.
|
|
34
|
+
|
|
35
|
+
| Form | Route | Fields | Validation |
|
|
36
|
+
|------|-------|--------|------------|
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
# UI/UX Analyzer Agent
|
|
2
|
+
|
|
3
|
+
Professional UI/UX audit agent. Discovers pages, captures full-page screenshots (desktop and mobile viewports), analyzes design quality, and produces a detailed audit report with actionable findings.
|
|
4
|
+
|
|
5
|
+
## How to Invoke
|
|
6
|
+
|
|
7
|
+
Provide the base URL and optionally credentials:
|
|
8
|
+
```
|
|
9
|
+
Audit the UI at http://localhost:3000
|
|
10
|
+
Credentials: test@example.com / testpassword123
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Process
|
|
14
|
+
|
|
15
|
+
1. **Discover pages** — Read tester-agent/test-patterns.md for page inventory, or crawl from the base URL
|
|
16
|
+
2. **Capture screenshots** — For each page:
|
|
17
|
+
- Desktop viewport (1440px)
|
|
18
|
+
- Tablet viewport (768px)
|
|
19
|
+
- Mobile viewport (375px)
|
|
20
|
+
3. **Analyze** each page for:
|
|
21
|
+
- Visual hierarchy and layout
|
|
22
|
+
- Typography consistency
|
|
23
|
+
- Color usage and contrast (WCAG AA)
|
|
24
|
+
- Spacing and alignment
|
|
25
|
+
- Responsive behavior
|
|
26
|
+
- Interactive element sizing (touch targets)
|
|
27
|
+
- Loading states and empty states
|
|
28
|
+
- Error state handling
|
|
29
|
+
4. **Generate report** — Write to `.claude/ui-audit/AUDIT_REPORT.md`
|
|
30
|
+
|
|
31
|
+
## Tools
|
|
32
|
+
|
|
33
|
+
- **Bash** — run agent-browser commands for navigation and screenshots
|
|
34
|
+
- **Read, Glob, Grep** — read project files and patterns
|
|
35
|
+
- **Write** — generate audit report
|
|
36
|
+
|
|
37
|
+
## Report Format
|
|
38
|
+
|
|
39
|
+
```markdown
|
|
40
|
+
# UI/UX Audit Report
|
|
41
|
+
|
|
42
|
+
**Date:** YYYY-MM-DD
|
|
43
|
+
**Base URL:** <url>
|
|
44
|
+
**Pages audited:** N
|
|
45
|
+
|
|
46
|
+
## Summary
|
|
47
|
+
|
|
48
|
+
[Overall assessment: 1-2 paragraphs]
|
|
49
|
+
|
|
50
|
+
## Findings
|
|
51
|
+
|
|
52
|
+
### [Finding Title]
|
|
53
|
+
- **Severity:** Critical / Major / Minor / Enhancement
|
|
54
|
+
- **Page(s):** /path
|
|
55
|
+
- **Description:** What the issue is
|
|
56
|
+
- **Screenshot:** [reference]
|
|
57
|
+
- **Recommendation:** How to fix it
|
|
58
|
+
|
|
59
|
+
## Scores
|
|
60
|
+
|
|
61
|
+
| Category | Score (1-10) |
|
|
62
|
+
|----------|-------------|
|
|
63
|
+
| Visual Design | |
|
|
64
|
+
| Consistency | |
|
|
65
|
+
| Accessibility | |
|
|
66
|
+
| Responsiveness | |
|
|
67
|
+
| Overall | |
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
## After Audit
|
|
71
|
+
|
|
72
|
+
The main agent should:
|
|
73
|
+
1. Read `.claude/ui-audit/AUDIT_REPORT.md`
|
|
74
|
+
2. Create GitHub issues for each Critical/Major finding
|
|
75
|
+
3. Add Minor/Enhancement findings to a tracking issue
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# /create-prd — Product Requirements Document Generator
|
|
2
|
+
|
|
3
|
+
Generate a comprehensive PRD from a product idea. This command ALWAYS starts with brainstorming.
|
|
4
|
+
|
|
5
|
+
## Arguments
|
|
6
|
+
|
|
7
|
+
- `$ARGUMENTS` — optional: the product idea in brief (can also be discussed interactively)
|
|
8
|
+
|
|
9
|
+
## Process
|
|
10
|
+
|
|
11
|
+
### Phase 1: Brainstorm (MANDATORY)
|
|
12
|
+
|
|
13
|
+
Invoke the brainstorming skill to explore the idea before writing anything:
|
|
14
|
+
|
|
15
|
+
1. If `$ARGUMENTS` is provided, use it as the starting point
|
|
16
|
+
2. If not, ask: "What are you building? Give me the elevator pitch."
|
|
17
|
+
3. Explore through conversation:
|
|
18
|
+
- What problem does this solve?
|
|
19
|
+
- Who is the target user?
|
|
20
|
+
- What are the constraints (timeline, budget, team size, tech preferences)?
|
|
21
|
+
- What does success look like?
|
|
22
|
+
- What's explicitly OUT of scope?
|
|
23
|
+
4. Propose 2-3 architectural approaches with tradeoffs
|
|
24
|
+
5. Get user's choice before proceeding
|
|
25
|
+
|
|
26
|
+
### Phase 2: Generate PRD
|
|
27
|
+
|
|
28
|
+
1. Read `.claude/references/prd-template.md` for the structure
|
|
29
|
+
2. Fill in every section based on the brainstorming conversation
|
|
30
|
+
3. Be specific — no placeholder text, no "TBD" sections
|
|
31
|
+
4. User stories should be concrete and testable
|
|
32
|
+
5. Implementation phases should be ordered by dependency and value
|
|
33
|
+
|
|
34
|
+
### Phase 3: Review and Save
|
|
35
|
+
|
|
36
|
+
1. Present the PRD to the user section by section
|
|
37
|
+
2. Ask for feedback on each major section
|
|
38
|
+
3. Incorporate feedback
|
|
39
|
+
4. Save to `docs/plans/PRD.md`
|
|
40
|
+
|
|
41
|
+
### Phase 4: Next Steps
|
|
42
|
+
|
|
43
|
+
After saving, tell the user:
|
|
44
|
+
|
|
45
|
+
> **PRD saved to `docs/plans/PRD.md`.**
|
|
46
|
+
>
|
|
47
|
+
> Next steps:
|
|
48
|
+
> - Run `/plan-project` to decompose this into GitHub milestones and issues
|
|
49
|
+
> - Or run `/plan-feature` to start planning a specific feature from the PRD
|
|
50
|
+
|
|
51
|
+
Commit the PRD:
|
|
52
|
+
```bash
|
|
53
|
+
git add docs/plans/PRD.md
|
|
54
|
+
git commit -m "docs: add product requirements document"
|
|
55
|
+
```
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
# /evolve — Self-Improvement
|
|
2
|
+
|
|
3
|
+
Updates the framework's rules, knowledge base, and patterns from what was learned in this session. This is what makes the system get smarter over time.
|
|
4
|
+
|
|
5
|
+
## Philosophy
|
|
6
|
+
|
|
7
|
+
"Every bug from the AI coding assistant isn't just something to fix — it's an opportunity to address the root cause in your system."
|
|
8
|
+
|
|
9
|
+
## Process
|
|
10
|
+
|
|
11
|
+
### Step 1: Reflect on Session
|
|
12
|
+
|
|
13
|
+
Review what happened in this session:
|
|
14
|
+
1. `git log --oneline main..HEAD` — what was built
|
|
15
|
+
2. Were there any:
|
|
16
|
+
- Bugs that took multiple attempts to fix?
|
|
17
|
+
- Patterns the AI got wrong repeatedly?
|
|
18
|
+
- Missing context that caused mistakes?
|
|
19
|
+
- New conventions established?
|
|
20
|
+
- Architecture decisions made?
|
|
21
|
+
|
|
22
|
+
### Step 2: Update CLAUDE.md
|
|
23
|
+
|
|
24
|
+
Invoke the revise-claude-md skill (from claude-md-management plugin) to:
|
|
25
|
+
- Add new conventions discovered
|
|
26
|
+
- Update tech stack if it changed
|
|
27
|
+
- Add new commands or scripts
|
|
28
|
+
- Remove outdated information
|
|
29
|
+
|
|
30
|
+
If the plugin isn't available, manually check CLAUDE.md for needed updates.
|
|
31
|
+
|
|
32
|
+
### Step 3: Update Architect Knowledge Base
|
|
33
|
+
|
|
34
|
+
If structural changes were made:
|
|
35
|
+
1. Dispatch architect-agent with RECORD query
|
|
36
|
+
2. Agent verifies changes exist in codebase
|
|
37
|
+
3. Agent updates relevant domain files in modules/ and frontend/
|
|
38
|
+
4. Agent updates index.md if new domains were added
|
|
39
|
+
5. If an architectural decision was made, add to decisions/log.md
|
|
40
|
+
|
|
41
|
+
### Step 4: Update Rules
|
|
42
|
+
|
|
43
|
+
Check if any domain rules need updating:
|
|
44
|
+
- Did a new pattern emerge in backend code? Update rules/backend.md
|
|
45
|
+
- Did a new component pattern emerge? Update rules/frontend.md
|
|
46
|
+
- Did a testing anti-pattern surface? Update rules/testing.md
|
|
47
|
+
|
|
48
|
+
### Step 5: Update Code Patterns
|
|
49
|
+
|
|
50
|
+
If the /execute phase revealed patterns the AI should follow:
|
|
51
|
+
- Add to .claude/references/code-patterns.md
|
|
52
|
+
- Include real code examples from the current codebase
|
|
53
|
+
- Note common pitfalls with before/after examples
|
|
54
|
+
|
|
55
|
+
### Step 6: Update Test Patterns
|
|
56
|
+
|
|
57
|
+
If new pages or screens were created:
|
|
58
|
+
- Update .claude/agents/tester-agent/test-patterns.md with new routes
|
|
59
|
+
- Update .claude/agents/mobile-tester-agent/screen-patterns.md if mobile
|
|
60
|
+
|
|
61
|
+
### Step 7: Report
|
|
62
|
+
|
|
63
|
+
```
|
|
64
|
+
=== System Evolution ===
|
|
65
|
+
|
|
66
|
+
Updated:
|
|
67
|
+
- [ ] CLAUDE.md — [what changed]
|
|
68
|
+
- [ ] architect-agent knowledge base — [domains updated]
|
|
69
|
+
- [ ] rules/[domain].md — [what changed]
|
|
70
|
+
- [ ] references/code-patterns.md — [patterns added]
|
|
71
|
+
- [ ] test-patterns.md — [routes added]
|
|
72
|
+
|
|
73
|
+
New decisions recorded:
|
|
74
|
+
- ADR-N: [decision title]
|
|
75
|
+
|
|
76
|
+
System health:
|
|
77
|
+
The framework is now better equipped to handle [specific scenario].
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
Commit all updates:
|
|
81
|
+
```bash
|
|
82
|
+
git add CLAUDE.md .claude/
|
|
83
|
+
git commit -m "chore: evolve framework — update rules and knowledge base"
|
|
84
|
+
```
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
# /execute — Plan Executor
|
|
2
|
+
|
|
3
|
+
Executes an implementation plan task by task with TDD discipline.
|
|
4
|
+
|
|
5
|
+
## Arguments
|
|
6
|
+
|
|
7
|
+
- `$ARGUMENTS` — path to plan file (auto-detected from current branch if omitted)
|
|
8
|
+
|
|
9
|
+
## Prerequisites
|
|
10
|
+
|
|
11
|
+
- A plan file must exist
|
|
12
|
+
- If the plan specifies dependencies to install, install them first
|
|
13
|
+
- Read the plan's "Mandatory Reading" section before starting
|
|
14
|
+
|
|
15
|
+
## Process
|
|
16
|
+
|
|
17
|
+
### Step 1: Load Plan
|
|
18
|
+
|
|
19
|
+
1. If path provided, read that file
|
|
20
|
+
2. If not, search for plan files:
|
|
21
|
+
- `docs/plans/` and `docs/superpowers/plans/`
|
|
22
|
+
- Match against current branch name
|
|
23
|
+
- If multiple found, ask user which one
|
|
24
|
+
3. Parse the plan into tasks and steps
|
|
25
|
+
|
|
26
|
+
### Step 2: Read Mandatory Files
|
|
27
|
+
|
|
28
|
+
Read every file listed in the plan's "Mandatory Reading" section. This ensures you have the codebase context needed for implementation.
|
|
29
|
+
|
|
30
|
+
### Step 3: Execute Tasks
|
|
31
|
+
|
|
32
|
+
For each task in the plan:
|
|
33
|
+
|
|
34
|
+
1. **Announce:** "Starting Task N: [task name]"
|
|
35
|
+
2. **Read** all files listed in the task's "Files" section
|
|
36
|
+
3. **For each step:**
|
|
37
|
+
- If it's a test step: write the test exactly as specified
|
|
38
|
+
- If it's a verification step: run the exact command, check output matches expected
|
|
39
|
+
- If it's an implementation step: write the code as specified
|
|
40
|
+
- If it's a commit step: stage and commit with the specified message
|
|
41
|
+
4. **If a test fails unexpectedly:**
|
|
42
|
+
- Read the error output carefully
|
|
43
|
+
- Fix the implementation (not the test, unless the test has a bug)
|
|
44
|
+
- Re-run the test
|
|
45
|
+
- If stuck after 3 attempts, stop and report the issue
|
|
46
|
+
5. **After task completion:** mark the task checkbox as done in the plan file
|
|
47
|
+
|
|
48
|
+
### Step 4: Validation
|
|
49
|
+
|
|
50
|
+
After all tasks are complete:
|
|
51
|
+
1. Run the project's full test suite
|
|
52
|
+
2. Run lint/type-check if available
|
|
53
|
+
3. Verify the application starts without errors
|
|
54
|
+
|
|
55
|
+
### Step 5: Completion Report
|
|
56
|
+
|
|
57
|
+
```
|
|
58
|
+
=== Execution Complete ===
|
|
59
|
+
|
|
60
|
+
Plan: [plan file path]
|
|
61
|
+
Tasks completed: N/N
|
|
62
|
+
Tests passing: all / N failures
|
|
63
|
+
Lint: pass / N issues
|
|
64
|
+
Type check: pass / N errors
|
|
65
|
+
|
|
66
|
+
Next steps:
|
|
67
|
+
- Run /validate for full verification
|
|
68
|
+
- Run /ship when ready to commit and create PR
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
## Error Handling
|
|
72
|
+
|
|
73
|
+
- If a task fails and cannot be fixed in 3 attempts: stop, report the issue, ask the user
|
|
74
|
+
- If the plan has a bug (wrong file path, missing step): fix the plan and continue
|
|
75
|
+
- If a dependency is missing: install it and continue
|
|
76
|
+
- Never skip a failing test — either fix the code or report the issue
|