kiro-agents 1.10.0 → 1.11.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/README.md +179 -58
- package/build/npm/bin/cli.js +13 -11
- package/build/npm/dist/agents.md +3 -180
- package/build/npm/dist/aliases.md +58 -40
- package/build/npm/dist/modes/kiro-as-spec-mode.md +284 -0
- package/build/npm/dist/modes/kiro-as-vibe-mode.md +312 -0
- package/build/npm/dist/modes/kiro-spec-mode.md +1 -6
- package/build/npm/dist/modes/kiro-vibe-mode.md +1 -6
- package/build/npm/dist/modes.md +68 -40
- package/build/npm/power/POWER.md +8 -0
- package/build/npm/power/steering/agent-activation.md +30 -3
- package/build/npm/power/steering/agent-creation.md +358 -11
- package/build/npm/power/steering/agent-management.md +12 -9
- package/build/npm/power/steering/chit-chat.md +217 -0
- package/build/npm/power/steering/kiro-as-spec-mode.md +284 -0
- package/build/npm/power/steering/kiro-as-vibe-mode.md +312 -0
- package/build/npm/power/steering/kiro-spec-mode.md +263 -0
- package/build/npm/power/steering/kiro-vibe-mode.md +293 -0
- package/build/npm/power/steering/mode-management.md +66 -40
- package/build/npm/power/steering/mode-switching.md +9 -5
- package/build/npm/{dist → power/steering}/strict-mode.md +95 -14
- package/package.json +7 -3
- package/build/npm/dist/interactions/chit-chat.md +0 -212
- package/build/npm/dist/interactions/interaction-styles.md +0 -162
- package/build/npm/dist/protocols/agent-activation.md +0 -50
- package/build/npm/dist/protocols/agent-creation.md +0 -629
- package/build/npm/dist/protocols/agent-management.md +0 -183
- package/build/npm/dist/protocols/mode-management.md +0 -139
- package/build/npm/dist/protocols/mode-switching.md +0 -84
package/build/npm/dist/modes.md
CHANGED
|
@@ -8,13 +8,17 @@ keywords: ["modes", "vibe", "spec", "workflow", "interactive"]
|
|
|
8
8
|
|
|
9
9
|
You are now in **mode management** using chit-chat interaction protocol.
|
|
10
10
|
|
|
11
|
+
/only-read-protocols chit-chat.md
|
|
12
|
+
|
|
11
13
|
## Mode Management Steps
|
|
12
14
|
|
|
13
15
|
When entering mode management:
|
|
14
16
|
|
|
15
17
|
### Step 1: Load Chit-Chat Mode
|
|
16
18
|
|
|
17
|
-
|
|
19
|
+
/only-read-protocols chit-chat.md
|
|
20
|
+
|
|
21
|
+
Apply protocols from chit-chat.md:
|
|
18
22
|
- Use diff blocks to show progress
|
|
19
23
|
- Provide numbered choice lists (4-6 options)
|
|
20
24
|
- Maintain single focus per message
|
|
@@ -26,18 +30,7 @@ Begin with a diff block showing:
|
|
|
26
30
|
⏳ Mode selection
|
|
27
31
|
```
|
|
28
32
|
|
|
29
|
-
### Step 2:
|
|
30
|
-
|
|
31
|
-
Scan agent-system directory for `kiro-*-mode.md` files:
|
|
32
|
-
- Extract mode names from filenames (remove `kiro-` prefix and `-mode.md` suffix)
|
|
33
|
-
- Read frontmatter for descriptions
|
|
34
|
-
- Identify current mode from context (if any)
|
|
35
|
-
|
|
36
|
-
**Available Kiro modes:**
|
|
37
|
-
- **vibe** - Flexible, conversational development assistance
|
|
38
|
-
- **spec** - Structured feature development with requirements, design, and tasks
|
|
39
|
-
|
|
40
|
-
### Step 3: Present Mode Selection
|
|
33
|
+
### Step 2: Present Mode Selection
|
|
41
34
|
|
|
42
35
|
Use this response structure:
|
|
43
36
|
|
|
@@ -50,19 +43,24 @@ Use this response structure:
|
|
|
50
43
|
|
|
51
44
|
**Available Kiro modes:**
|
|
52
45
|
|
|
53
|
-
- **vibe** - Flexible, conversational development assistance
|
|
54
|
-
- **spec** - Structured feature development with requirements, design, and tasks
|
|
46
|
+
- **vibe** - Flexible, conversational development assistance (with vibe tools)
|
|
47
|
+
- **spec** - Structured feature development with requirements, design, and tasks (with spec tools)
|
|
48
|
+
- **as-vibe** - Vibe interaction style (keeps current tools)
|
|
49
|
+
- **as-spec** - Spec interaction style (keeps current tools)
|
|
55
50
|
|
|
56
51
|
**What would you like to do?**
|
|
57
52
|
|
|
58
|
-
1. **Switch to vibe mode** - Flexible development
|
|
59
|
-
2. **Switch to spec mode** - Structured
|
|
60
|
-
3. **
|
|
61
|
-
4. **
|
|
62
|
-
5. **
|
|
63
|
-
6. **
|
|
53
|
+
1. **Switch to vibe mode** - Flexible development with vibe tools
|
|
54
|
+
2. **Switch to spec mode** - Structured development with spec tools
|
|
55
|
+
3. **Switch to as-vibe mode** - Vibe interaction style (keeps current tools)
|
|
56
|
+
4. **Switch to as-spec mode** - Spec interaction style (keeps current tools)
|
|
57
|
+
5. **Switch to spec-as-vibe mode** - Spec tools with vibe interaction style
|
|
58
|
+
6. **View mode details** - See full mode capabilities and protocols
|
|
59
|
+
7. **Mode comparison** - Understand differences between modes
|
|
60
|
+
8. **Stay in current mode** - Continue with current mode
|
|
61
|
+
9. **Help** - Learn about mode system
|
|
64
62
|
|
|
65
|
-
### Step
|
|
63
|
+
### Step 3: Handle User Choice
|
|
66
64
|
|
|
67
65
|
Based on user selection:
|
|
68
66
|
|
|
@@ -70,15 +68,33 @@ Based on user selection:
|
|
|
70
68
|
|
|
71
69
|
- Execute `/modes vibe` command
|
|
72
70
|
- Load vibe mode protocols
|
|
73
|
-
- Begin flexible interaction
|
|
71
|
+
- Begin flexible interaction with vibe tools
|
|
74
72
|
|
|
75
73
|
#### Option 2 - Switch to spec
|
|
76
74
|
|
|
77
75
|
- Execute `/modes spec` command
|
|
78
76
|
- Load spec mode protocols
|
|
79
|
-
- Begin structured workflow
|
|
77
|
+
- Begin structured workflow with spec tools
|
|
78
|
+
|
|
79
|
+
#### Option 3 - Switch to as-vibe
|
|
80
|
+
|
|
81
|
+
- Execute `/modes as-vibe` command
|
|
82
|
+
- Load as-vibe mode protocols
|
|
83
|
+
- Begin flexible interaction (keeps current tools)
|
|
84
|
+
|
|
85
|
+
#### Option 4 - Switch to as-spec
|
|
86
|
+
|
|
87
|
+
- Execute `/modes as-spec` command
|
|
88
|
+
- Load as-spec mode protocols
|
|
89
|
+
- Begin structured interaction (keeps current tools)
|
|
90
|
+
|
|
91
|
+
#### Option 5 - Switch to spec-as-vibe
|
|
92
|
+
|
|
93
|
+
- Execute `/spec-as-vibe` command
|
|
94
|
+
- Load spec tools with vibe interaction style
|
|
95
|
+
- Begin flexible interaction with spec capabilities
|
|
80
96
|
|
|
81
|
-
#### Option
|
|
97
|
+
#### Option 6 - View mode details
|
|
82
98
|
|
|
83
99
|
- Show numbered list of modes
|
|
84
100
|
- User selects mode to view
|
|
@@ -86,45 +102,57 @@ Based on user selection:
|
|
|
86
102
|
- Explain capabilities and use cases
|
|
87
103
|
- Offer to switch to that mode
|
|
88
104
|
|
|
89
|
-
#### Option
|
|
105
|
+
#### Option 7 - Mode comparison
|
|
90
106
|
|
|
91
|
-
- Show
|
|
92
|
-
- **Vibe Mode**: Flexible, conversational, quick iterations, no formal workflow
|
|
93
|
-
- **Spec Mode**: Structured workflow with requirements → design → tasks, approval gates
|
|
107
|
+
- Show comprehensive comparison:
|
|
108
|
+
- **Vibe Mode**: Flexible, conversational, quick iterations, no formal workflow (with vibe tools)
|
|
109
|
+
- **Spec Mode**: Structured workflow with requirements → design → tasks, approval gates (with spec tools)
|
|
110
|
+
- **As-Vibe Mode**: Flexible interaction style but keeps current tools
|
|
111
|
+
- **As-Spec Mode**: Structured interaction style but keeps current tools
|
|
94
112
|
- Explain when to use each mode:
|
|
95
|
-
- Use vibe for: Quick fixes, exploration, prototyping, iterative development
|
|
96
|
-
- Use spec for: Complex features, team collaboration, formal planning, documentation
|
|
113
|
+
- Use vibe for: Quick fixes, exploration, prototyping, iterative development (need vibe tools)
|
|
114
|
+
- Use spec for: Complex features, team collaboration, formal planning, documentation (need spec tools)
|
|
115
|
+
- Use as-vibe for: Flexible interaction with current tools (agent superpowers + vibe style)
|
|
116
|
+
- Use as-spec for: Structured interaction with current tools (agent superpowers + spec methodology)
|
|
97
117
|
- Highlight key differences:
|
|
98
|
-
-
|
|
99
|
-
-
|
|
100
|
-
-
|
|
118
|
+
- **Tools**: vibe/spec change tools, as-vibe/as-spec keep current tools
|
|
119
|
+
- **Interaction**: vibe/as-vibe flexible, spec/as-spec structured
|
|
120
|
+
- **Use case**: Combine agent capabilities with desired interaction style
|
|
101
121
|
- Help user choose appropriate mode
|
|
102
122
|
|
|
103
|
-
#### Option
|
|
123
|
+
#### Option 8 - Stay in current mode
|
|
104
124
|
|
|
105
125
|
- Confirm staying in current mode
|
|
106
126
|
- Return to normal interaction
|
|
107
127
|
- Preserve current state
|
|
108
128
|
|
|
109
|
-
#### Option
|
|
129
|
+
#### Option 9 - Help
|
|
110
130
|
|
|
111
131
|
Explain mode system:
|
|
112
|
-
- **What are modes?** - Different interaction styles for different workflows
|
|
132
|
+
- **What are modes?** - Different interaction styles and tool sets for different workflows
|
|
113
133
|
- **How to switch?** - Use `/modes {name}` or `/modes` for interactive menu
|
|
134
|
+
- **Mode types:**
|
|
135
|
+
- **Full modes** (vibe/spec): Change both tools and interaction style
|
|
136
|
+
- **Role modes** (as-vibe/as-spec): Change only interaction style, keep current tools
|
|
114
137
|
- **Mode benefits:**
|
|
115
|
-
- Vibe: Fast iteration, flexible approach
|
|
116
|
-
- Spec: Structured planning, comprehensive documentation
|
|
138
|
+
- Vibe: Fast iteration, flexible approach (with vibe tools)
|
|
139
|
+
- Spec: Structured planning, comprehensive documentation (with spec tools)
|
|
140
|
+
- As-Vibe: Flexible interaction with current tools (agent superpowers + vibe style)
|
|
141
|
+
- As-Spec: Structured interaction with current tools (agent superpowers + spec methodology)
|
|
117
142
|
- **Mode coordination:**
|
|
118
143
|
- Modes can be combined with agents
|
|
119
144
|
- File changes preserved when switching
|
|
120
145
|
- Workflow state resets when switching
|
|
146
|
+
- Role modes enable "agent superpowers" - specialized tools with preferred interaction style
|
|
121
147
|
- **Usage examples:**
|
|
122
148
|
- Quick bug fix → Use vibe mode
|
|
123
149
|
- New feature with requirements → Use spec mode
|
|
150
|
+
- Agent with spec tools but want flexibility → Use as-vibe mode
|
|
151
|
+
- Agent with vibe tools but want structure → Use as-spec mode
|
|
124
152
|
- Refactoring existing code → Use vibe mode
|
|
125
153
|
- Team feature with documentation → Use spec mode
|
|
126
154
|
|
|
127
|
-
### Step
|
|
155
|
+
### Step 4: Maintain Chit-Chat Mode
|
|
128
156
|
|
|
129
157
|
Continue using diff blocks and numbered choices throughout mode management session.
|
|
130
158
|
|
package/build/npm/power/POWER.md
CHANGED
|
@@ -28,6 +28,14 @@ Protocols are detailed, step-by-step instruction documents that guide AI through
|
|
|
28
28
|
|
|
29
29
|
This power provides the following protocols as steering files:
|
|
30
30
|
|
|
31
|
+
### Core Protocols
|
|
32
|
+
|
|
33
|
+
- **strict-mode** - Precision mode for experimental/cutting-edge development
|
|
34
|
+
- Blocks execution on ambiguous input
|
|
35
|
+
- Mandatory clarification before proceeding
|
|
36
|
+
- Prevents assumption propagation
|
|
37
|
+
- Opt-in via `/strict on` command
|
|
38
|
+
|
|
31
39
|
### Agent System Protocols
|
|
32
40
|
|
|
33
41
|
- **agent-activation** - Protocol for activating and assuming agent roles
|
|
@@ -17,7 +17,32 @@ This file contains:
|
|
|
17
17
|
- Examples and best practices
|
|
18
18
|
- Integration requirements
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
This enables `/strict {state}` command for this agent session. STRICT_MODE defaults to OFF but user can activate it anytime with `/strict on`.
|
|
21
|
+
/only-read-protocols strict-mode.md
|
|
22
|
+
|
|
23
|
+
### Step 1.5: Manage Chit-Chat Protocol
|
|
24
|
+
|
|
25
|
+
**Scan the agent definition for chit-chat protocol usage indicators:**
|
|
26
|
+
|
|
27
|
+
Check if the agent definition contains ANY of these patterns (case-insensitive):
|
|
28
|
+
- `**Response Style:** Chit-chat`
|
|
29
|
+
- `**Response Style:** Chit-chat mode`
|
|
30
|
+
- `chit-chat protocol`
|
|
31
|
+
- `chit-chat interaction`
|
|
32
|
+
- Section header containing "Chit-Chat" (e.g., "## Chit-Chat Mode Support")
|
|
33
|
+
|
|
34
|
+
**If ANY indicator is found:**
|
|
35
|
+
```
|
|
36
|
+
/only-read-protocols chit-chat.md
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
**Chit-chat protocol is active** for this agent session.
|
|
40
|
+
|
|
41
|
+
**If NO indicators are found:**
|
|
42
|
+
|
|
43
|
+
**Chit-chat protocol is inactive** for this agent session.
|
|
44
|
+
|
|
45
|
+
If chit-chat.md is in context from a previous session, its patterns do not apply. Follow the agent's defined interaction protocol instead.
|
|
21
46
|
|
|
22
47
|
### Step 2: Assume Agent Role
|
|
23
48
|
|
|
@@ -34,16 +59,18 @@ You will:
|
|
|
34
59
|
|
|
35
60
|
Start interaction according to **{agent_name}**'s protocols defined in the `.md` file.
|
|
36
61
|
|
|
37
|
-
If
|
|
62
|
+
**If chit-chat protocol is active:**
|
|
38
63
|
- Begin with diff block showing current state
|
|
39
64
|
- Provide numbered choice list (4-6 options, up to 16 if needed)
|
|
40
65
|
- Maintain single focus per message
|
|
41
66
|
- Use visual formatting (bold, code blocks)
|
|
67
|
+
- Follow all chit-chat protocols (STOP system, context references, etc.)
|
|
42
68
|
|
|
43
|
-
|
|
69
|
+
**If chit-chat protocol is inactive:**
|
|
44
70
|
- Begin according to the agent's defined interaction protocol
|
|
45
71
|
- Follow agent-specific response structure
|
|
46
72
|
- Apply agent-specific formatting rules
|
|
73
|
+
- Do NOT use chit-chat patterns (diff blocks, numbered choices, etc.)
|
|
47
74
|
|
|
48
75
|
---
|
|
49
76
|
|
|
@@ -2,24 +2,288 @@
|
|
|
2
2
|
|
|
3
3
|
This file contains the detailed instructions for creating new agents. It is referenced during agent creation workflow in agent management mode.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Creation Methods
|
|
6
6
|
|
|
7
|
-
When creating a new agent:
|
|
7
|
+
When creating a new agent, offer multiple methods based on user experience level:
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
1. **Quick Start** - Choose from predefined templates (fastest)
|
|
10
|
+
2. **Project-Specific** - AI-suggested agents for current workspace
|
|
11
|
+
3. **Explore Roles** - Browse agents by domain and role
|
|
12
|
+
4. **Guided Wizard** - Step-by-step interactive creation (full control)
|
|
13
|
+
5. **Natural Language** - Describe agent in plain English (most intuitive)
|
|
10
14
|
|
|
11
|
-
|
|
15
|
+
## Method Selection
|
|
16
|
+
|
|
17
|
+
When user initiates agent creation:
|
|
18
|
+
|
|
19
|
+
### Step 1: Present Creation Methods
|
|
20
|
+
|
|
21
|
+
Use chit-chat protocol for the creation process:
|
|
22
|
+
|
|
23
|
+
```diff
|
|
24
|
+
👉 Agent Creation
|
|
25
|
+
⏳ Choose creation method
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
**How would you like to create your agent?**
|
|
29
|
+
|
|
30
|
+
1. **Quick Start** - Choose from predefined agent templates
|
|
31
|
+
→ Fastest, no configuration needed
|
|
32
|
+
→ Best for: Common use cases, getting started quickly
|
|
33
|
+
|
|
34
|
+
2. **Project-Specific** - AI suggests agents for your workspace
|
|
35
|
+
→ Analyzes your project and recommends relevant agents
|
|
36
|
+
→ Best for: Project-specific needs, contextual recommendations
|
|
37
|
+
|
|
38
|
+
3. **Explore Roles** - Browse agents by domain and role
|
|
39
|
+
→ Discover what's possible, organized by industry/function
|
|
40
|
+
→ Best for: Exploring options, learning about agent types
|
|
41
|
+
|
|
42
|
+
4. **Guided Wizard** - Step-by-step interactive creation
|
|
43
|
+
→ Full control, guided process
|
|
44
|
+
→ Best for: Custom agents, specific requirements
|
|
45
|
+
|
|
46
|
+
5. **Natural Language** - Describe what you need
|
|
47
|
+
→ "I need an agent that helps with React performance"
|
|
48
|
+
→ Best for: Quick creation, intuitive interface
|
|
49
|
+
|
|
50
|
+
6. **Cancel** - Exit without creating agent
|
|
51
|
+
|
|
52
|
+
**Choose a number (1-6):**
|
|
53
|
+
|
|
54
|
+
### Step 2: Execute Selected Method
|
|
55
|
+
|
|
56
|
+
Based on user choice, execute the appropriate creation method:
|
|
57
|
+
|
|
58
|
+
---
|
|
59
|
+
|
|
60
|
+
## Method 1: Quick Start (Predefined Templates)
|
|
61
|
+
|
|
62
|
+
### Step 2.1: Load Template List
|
|
63
|
+
|
|
64
|
+
Read predefined templates from embedded list:
|
|
65
|
+
|
|
66
|
+
**Predefined Agent Templates:**
|
|
67
|
+
|
|
68
|
+
1. **Full-Stack Developer**
|
|
69
|
+
"Expert in complete web development stack including frontend (React, Vue), backend (Node.js, Python), databases (PostgreSQL, MongoDB), and deployment (Docker, CI/CD)."
|
|
70
|
+
|
|
71
|
+
2. **Code Reviewer**
|
|
72
|
+
"Specialized in code review with focus on code quality, security vulnerabilities, performance issues, best practices, and maintainability. Provides constructive feedback with actionable suggestions."
|
|
73
|
+
|
|
74
|
+
3. **API Architect**
|
|
75
|
+
"Expert in designing and implementing RESTful and GraphQL APIs with focus on scalability, security, documentation (OpenAPI), versioning, and best practices."
|
|
76
|
+
|
|
77
|
+
4. **Frontend Specialist**
|
|
78
|
+
"Specialized in modern frontend development with React, TypeScript, state management, CSS/styling, accessibility (WCAG), and performance optimization (Core Web Vitals)."
|
|
79
|
+
|
|
80
|
+
5. **DevOps Engineer**
|
|
81
|
+
"Expert in containerization (Docker), orchestration (Kubernetes), CI/CD pipelines (GitHub Actions, GitLab CI), infrastructure as code (Terraform), and monitoring (Prometheus, Grafana)."
|
|
82
|
+
|
|
83
|
+
6. **Testing Specialist**
|
|
84
|
+
"Specialized in comprehensive testing strategies including unit tests (Jest, pytest), integration tests, E2E tests (Playwright, Cypress), test-driven development (TDD), and test automation."
|
|
85
|
+
|
|
86
|
+
7. **Database Expert**
|
|
87
|
+
"Expert in database design, optimization, migrations, query performance, indexing strategies, and working with both SQL (PostgreSQL, MySQL) and NoSQL (MongoDB, Redis) databases."
|
|
88
|
+
|
|
89
|
+
8. **Security Auditor**
|
|
90
|
+
"Specialized in application security with focus on OWASP Top 10, vulnerability assessment, secure coding practices, authentication/authorization, and security testing (SAST, DAST)."
|
|
91
|
+
|
|
92
|
+
9. **Technical Writer**
|
|
93
|
+
"Expert in creating clear technical documentation including API references, user guides, tutorials, README files, architecture documentation, and maintaining documentation systems."
|
|
94
|
+
|
|
95
|
+
10. **Performance Optimizer**
|
|
96
|
+
"Specialized in application performance optimization including profiling, bottleneck identification, caching strategies, database optimization, and frontend performance (bundle size, loading times)."
|
|
97
|
+
|
|
98
|
+
11. **UI/UX Designer**
|
|
99
|
+
"Expert in user interface and experience design with focus on user research, wireframing, prototyping (Figma), design systems, accessibility, and usability testing."
|
|
100
|
+
|
|
101
|
+
12. **Data Analyst**
|
|
102
|
+
"Specialized in data analysis, visualization (charts, dashboards), SQL queries, statistical analysis, reporting, and deriving actionable insights from data."
|
|
103
|
+
|
|
104
|
+
### Step 2.2: Present Templates
|
|
105
|
+
|
|
106
|
+
```diff
|
|
107
|
+
👉 Agent Creation - Quick Start
|
|
108
|
+
⏳ Choose template
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
**Choose from predefined agent templates:**
|
|
112
|
+
|
|
113
|
+
[Display templates 1-12 with numbers]
|
|
114
|
+
|
|
115
|
+
**Type number to select template, or 'back' to choose different method:**
|
|
116
|
+
|
|
117
|
+
### Step 2.3: Confirm and Customize
|
|
118
|
+
|
|
119
|
+
User selects template (e.g., "4" for Frontend Specialist).
|
|
120
|
+
|
|
121
|
+
```diff
|
|
122
|
+
👉 Agent Creation - Quick Start
|
|
123
|
+
⏳ Customize template
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
**Selected template:** Frontend Specialist
|
|
127
|
+
|
|
128
|
+
**Default name:** `frontend-specialist`
|
|
129
|
+
**Description:** "Specialized in modern frontend development with React, TypeScript, state management, CSS/styling, accessibility (WCAG), and performance optimization (Core Web Vitals)."
|
|
130
|
+
|
|
131
|
+
**Customize? (optional)**
|
|
132
|
+
|
|
133
|
+
1. **Use as-is** - Create agent with default settings
|
|
134
|
+
2. **Change name** - Customize agent name
|
|
135
|
+
3. **Edit description** - Modify description
|
|
136
|
+
4. **Back** - Choose different template
|
|
137
|
+
|
|
138
|
+
### Step 2.4: Generate Agent
|
|
139
|
+
|
|
140
|
+
Use the template's description to generate complete agent definition following the standard agent structure (see Step 3 below).
|
|
141
|
+
|
|
142
|
+
---
|
|
143
|
+
|
|
144
|
+
## Method 2: Project-Specific (AI Analysis)
|
|
145
|
+
|
|
146
|
+
### Step 2.1: Analyze Workspace
|
|
147
|
+
|
|
148
|
+
```diff
|
|
149
|
+
👉 Agent Creation - Project Analysis
|
|
150
|
+
⏳ Analyzing your workspace...
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
**Analyzing project structure and technologies...**
|
|
154
|
+
|
|
155
|
+
Execute analysis:
|
|
156
|
+
1. Read `package.json`, `requirements.txt`, `Cargo.toml`, etc.
|
|
157
|
+
2. Scan directory structure (src/, tests/, docs/, etc.)
|
|
158
|
+
3. Identify frameworks and libraries
|
|
159
|
+
4. Read README.md and documentation
|
|
160
|
+
5. Check for CI/CD configs, Docker files, etc.
|
|
161
|
+
|
|
162
|
+
### Step 2.2: Generate Recommendations
|
|
163
|
+
|
|
164
|
+
Based on analysis, generate 5-8 relevant agent suggestions.
|
|
165
|
+
|
|
166
|
+
```diff
|
|
167
|
+
👉 Agent Creation - Project Analysis
|
|
168
|
+
⏳ Recommendations
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
**Based on your project (React + TypeScript + Node.js + PostgreSQL):**
|
|
172
|
+
|
|
173
|
+
**Recommended agents:**
|
|
174
|
+
|
|
175
|
+
1. ⭐ **React TypeScript Specialist**
|
|
176
|
+
"Expert in React with TypeScript, hooks, component patterns, and type-safe development."
|
|
177
|
+
|
|
178
|
+
2. ⭐ **API Developer**
|
|
179
|
+
"Specialized in Node.js backend development, RESTful APIs, Express, and database integration."
|
|
180
|
+
|
|
181
|
+
3. ⭐ **Database Expert**
|
|
182
|
+
"Expert in PostgreSQL schema design, query optimization, migrations, and ORMs."
|
|
183
|
+
|
|
184
|
+
4. **Testing Engineer**
|
|
185
|
+
"Specialized in Jest, React Testing Library, and E2E testing with Playwright."
|
|
186
|
+
|
|
187
|
+
5. **DevOps Engineer**
|
|
188
|
+
"Expert in Docker, CI/CD, and deployment automation for Node.js applications."
|
|
189
|
+
|
|
190
|
+
**Type number to select, or 'back' to choose different method:**
|
|
191
|
+
|
|
192
|
+
### Step 2.3: Customize and Generate
|
|
193
|
+
|
|
194
|
+
Follow same customization flow as Quick Start (Step 2.3-2.4 above).
|
|
195
|
+
|
|
196
|
+
---
|
|
197
|
+
|
|
198
|
+
## Method 3: Explore Roles (Domain Browser)
|
|
199
|
+
|
|
200
|
+
### Step 2.1: Present Domains
|
|
201
|
+
|
|
202
|
+
```diff
|
|
203
|
+
👉 Agent Creation - Explore Roles
|
|
204
|
+
⏳ Choose domain
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
**Explore agent roles by domain:**
|
|
208
|
+
|
|
209
|
+
1. 💻 **Software Development**
|
|
210
|
+
Frontend, Backend, DevOps, Testing, Security
|
|
211
|
+
|
|
212
|
+
2. 🎨 **Creative & Design**
|
|
213
|
+
UI/UX, Content Writing, Branding, Video Production
|
|
214
|
+
|
|
215
|
+
3. 💼 **Business & Finance**
|
|
216
|
+
Marketing, Sales, Strategy, Finance, HR
|
|
217
|
+
|
|
218
|
+
4. 🏥 **Healthcare & Medicine**
|
|
219
|
+
Clinical, Research, Administration, Public Health
|
|
220
|
+
|
|
221
|
+
5. 🔬 **Science & Research**
|
|
222
|
+
Data Science, Research Methods, Lab Management
|
|
223
|
+
|
|
224
|
+
6. ⚖️ **Legal & Compliance**
|
|
225
|
+
Legal Research, Contract Review, Compliance
|
|
226
|
+
|
|
227
|
+
7. 🏗️ **Engineering & Architecture**
|
|
228
|
+
Civil, Mechanical, Electrical, Architecture
|
|
229
|
+
|
|
230
|
+
8. 🌾 **Agriculture & Food**
|
|
231
|
+
Farming, Food Science, Culinary
|
|
232
|
+
|
|
233
|
+
[More domains available - type 'more' to see all]
|
|
234
|
+
|
|
235
|
+
**Type number to explore domain, or 'back' to choose different method:**
|
|
236
|
+
|
|
237
|
+
### Step 2.2: Present Roles in Domain
|
|
238
|
+
|
|
239
|
+
User selects domain (e.g., "1" for Software Development).
|
|
12
240
|
|
|
13
241
|
```diff
|
|
14
|
-
👉 Agent
|
|
15
|
-
⏳
|
|
242
|
+
👉 Agent Creation - Explore Roles
|
|
243
|
+
⏳ Software Development roles
|
|
16
244
|
```
|
|
17
245
|
|
|
18
|
-
**
|
|
246
|
+
**Software Development agent roles:**
|
|
247
|
+
|
|
248
|
+
1. **Frontend Developer**
|
|
249
|
+
"Expert in modern frontend: React, Vue, Angular, TypeScript, CSS, accessibility, performance."
|
|
250
|
+
|
|
251
|
+
2. **Backend Developer**
|
|
252
|
+
"Specialized in server-side: APIs, databases, authentication, microservices, serverless."
|
|
253
|
+
|
|
254
|
+
3. **Full-Stack Developer**
|
|
255
|
+
"Complete web development: frontend, backend, databases, deployment."
|
|
256
|
+
|
|
257
|
+
4. **DevOps Engineer**
|
|
258
|
+
"Expert in: Docker, Kubernetes, CI/CD, infrastructure as code, monitoring."
|
|
259
|
+
|
|
260
|
+
5. **Mobile Developer**
|
|
261
|
+
"Specialized in: React Native, Flutter, iOS (Swift), Android (Kotlin)."
|
|
262
|
+
|
|
263
|
+
6. **QA/Testing Specialist**
|
|
264
|
+
"Expert in: test strategies, automation, unit/integration/E2E testing, TDD."
|
|
265
|
+
|
|
266
|
+
7. **Security Engineer**
|
|
267
|
+
"Specialized in: application security, vulnerability assessment, secure coding, penetration testing."
|
|
268
|
+
|
|
269
|
+
8. **Data Engineer**
|
|
270
|
+
"Expert in: data pipelines, ETL, data warehousing, big data technologies."
|
|
271
|
+
|
|
272
|
+
**Type number to select role, or 'back' to choose different domain:**
|
|
273
|
+
|
|
274
|
+
### Step 2.3: Customize and Generate
|
|
275
|
+
|
|
276
|
+
Follow same customization flow as Quick Start (Step 2.3-2.4 above).
|
|
277
|
+
|
|
278
|
+
---
|
|
279
|
+
|
|
280
|
+
## Method 4: Guided Wizard (Current System)
|
|
281
|
+
|
|
282
|
+
### Step 2.1: Agent Type Selection
|
|
19
283
|
|
|
20
|
-
|
|
284
|
+
**Current system - full control over agent definition.**
|
|
21
285
|
|
|
22
|
-
|
|
286
|
+
Follow existing wizard steps (2.1 through 2.8 below).
|
|
23
287
|
|
|
24
288
|
#### 2.1: Agent Type Selection
|
|
25
289
|
|
|
@@ -91,7 +355,7 @@ Group by category. Example:
|
|
|
91
355
|
1. **Formal** - Professional, structured responses
|
|
92
356
|
2. **Casual** - Conversational, friendly tone
|
|
93
357
|
3. **Technical** - Precise, detailed explanations
|
|
94
|
-
4. **Chit-chat
|
|
358
|
+
4. **Chit-chat protocol** - Interactive with diff blocks and numbered choices
|
|
95
359
|
|
|
96
360
|
**Confirmation requirements:**
|
|
97
361
|
- Always confirm before changes
|
|
@@ -122,7 +386,90 @@ Example workflow:
|
|
|
122
386
|
6. Verify tests pass
|
|
123
387
|
7. Document changes
|
|
124
388
|
|
|
125
|
-
|
|
389
|
+
---
|
|
390
|
+
|
|
391
|
+
## Method 5: Natural Language (AI Generation)
|
|
392
|
+
|
|
393
|
+
### Step 2.1: Collect Description
|
|
394
|
+
|
|
395
|
+
```diff
|
|
396
|
+
👉 Agent Creation - Natural Language
|
|
397
|
+
⏳ Describe your agent
|
|
398
|
+
```
|
|
399
|
+
|
|
400
|
+
**Describe what you need in plain English:**
|
|
401
|
+
|
|
402
|
+
**Examples:**
|
|
403
|
+
- "I need help optimizing React performance"
|
|
404
|
+
- "An agent that reviews my Python code for security issues"
|
|
405
|
+
- "Someone who can help me write technical documentation"
|
|
406
|
+
- "Expert in PostgreSQL query optimization"
|
|
407
|
+
- "Help me with Docker and Kubernetes deployment"
|
|
408
|
+
|
|
409
|
+
**Your description:**
|
|
410
|
+
|
|
411
|
+
### Step 2.2: Analyze and Generate Proposal
|
|
412
|
+
|
|
413
|
+
User provides description (e.g., "I need help optimizing React performance").
|
|
414
|
+
|
|
415
|
+
```diff
|
|
416
|
+
👉 Agent Creation - Natural Language
|
|
417
|
+
⏳ Analyzing your request...
|
|
418
|
+
```
|
|
419
|
+
|
|
420
|
+
**AI analyzes the description and extracts:**
|
|
421
|
+
- Agent type (specialist/generalist/coordinator)
|
|
422
|
+
- Primary domain and focus area
|
|
423
|
+
- Key capabilities needed
|
|
424
|
+
- Suggested name
|
|
425
|
+
- Generated description
|
|
426
|
+
|
|
427
|
+
**Present proposal:**
|
|
428
|
+
|
|
429
|
+
```diff
|
|
430
|
+
👉 Agent Creation - Natural Language
|
|
431
|
+
⏳ Review proposal
|
|
432
|
+
```
|
|
433
|
+
|
|
434
|
+
**I understand you need:**
|
|
435
|
+
|
|
436
|
+
**Agent Type:** Specialist
|
|
437
|
+
**Primary Domain:** Software Development → Frontend
|
|
438
|
+
**Focus Area:** React Performance Optimization
|
|
439
|
+
|
|
440
|
+
**Suggested Capabilities:**
|
|
441
|
+
- React profiling and debugging (React DevTools, Profiler API)
|
|
442
|
+
- Performance optimization techniques (memoization, lazy loading)
|
|
443
|
+
- Bundle size optimization (code splitting, tree shaking)
|
|
444
|
+
- Rendering performance (virtual DOM, reconciliation)
|
|
445
|
+
- Core Web Vitals improvement (LCP, FID, CLS)
|
|
446
|
+
- Memory leak detection and prevention
|
|
447
|
+
|
|
448
|
+
**Suggested Name:** `react-performance-optimizer`
|
|
449
|
+
|
|
450
|
+
**Generated Description:**
|
|
451
|
+
"Specialized in React performance optimization with expertise in profiling, bundle optimization, rendering performance, and Core Web Vitals improvement. Helps identify bottlenecks and implement performance best practices."
|
|
452
|
+
|
|
453
|
+
**Does this match what you need?**
|
|
454
|
+
|
|
455
|
+
1. **Yes, create it** - Generate agent with these capabilities
|
|
456
|
+
2. **Modify name** - Change agent name
|
|
457
|
+
3. **Modify description** - Edit description
|
|
458
|
+
4. **Add more details** - Provide additional context to refine
|
|
459
|
+
5. **Start over** - Try different description
|
|
460
|
+
6. **Back** - Choose different creation method
|
|
461
|
+
|
|
462
|
+
### Step 2.3: Refine if Needed
|
|
463
|
+
|
|
464
|
+
If user chooses to modify or add details, iterate on the proposal.
|
|
465
|
+
|
|
466
|
+
### Step 2.4: Generate Agent
|
|
467
|
+
|
|
468
|
+
Once confirmed, generate complete agent definition using the AI-analyzed capabilities and description.
|
|
469
|
+
|
|
470
|
+
---
|
|
471
|
+
|
|
472
|
+
## Step 3: Generate Agent Definition File
|
|
126
473
|
|
|
127
474
|
Create `.kiro/agents/{agent-name}.md` with this structure:
|
|
128
475
|
|