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.
Files changed (29) hide show
  1. package/README.md +179 -58
  2. package/build/npm/bin/cli.js +13 -11
  3. package/build/npm/dist/agents.md +3 -180
  4. package/build/npm/dist/aliases.md +58 -40
  5. package/build/npm/dist/modes/kiro-as-spec-mode.md +284 -0
  6. package/build/npm/dist/modes/kiro-as-vibe-mode.md +312 -0
  7. package/build/npm/dist/modes/kiro-spec-mode.md +1 -6
  8. package/build/npm/dist/modes/kiro-vibe-mode.md +1 -6
  9. package/build/npm/dist/modes.md +68 -40
  10. package/build/npm/power/POWER.md +8 -0
  11. package/build/npm/power/steering/agent-activation.md +30 -3
  12. package/build/npm/power/steering/agent-creation.md +358 -11
  13. package/build/npm/power/steering/agent-management.md +12 -9
  14. package/build/npm/power/steering/chit-chat.md +217 -0
  15. package/build/npm/power/steering/kiro-as-spec-mode.md +284 -0
  16. package/build/npm/power/steering/kiro-as-vibe-mode.md +312 -0
  17. package/build/npm/power/steering/kiro-spec-mode.md +263 -0
  18. package/build/npm/power/steering/kiro-vibe-mode.md +293 -0
  19. package/build/npm/power/steering/mode-management.md +66 -40
  20. package/build/npm/power/steering/mode-switching.md +9 -5
  21. package/build/npm/{dist → power/steering}/strict-mode.md +95 -14
  22. package/package.json +7 -3
  23. package/build/npm/dist/interactions/chit-chat.md +0 -212
  24. package/build/npm/dist/interactions/interaction-styles.md +0 -162
  25. package/build/npm/dist/protocols/agent-activation.md +0 -50
  26. package/build/npm/dist/protocols/agent-creation.md +0 -629
  27. package/build/npm/dist/protocols/agent-management.md +0 -183
  28. package/build/npm/dist/protocols/mode-management.md +0 -139
  29. package/build/npm/dist/protocols/mode-switching.md +0 -84
@@ -1,629 +0,0 @@
1
- # Agent Creation Protocol
2
-
3
- This file contains the detailed instructions for creating new agents. It is referenced during agent creation workflow in agent management mode.
4
-
5
- ## Creation Methods
6
-
7
- When creating a new agent, offer multiple methods based on user experience level:
8
-
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)
14
-
15
- ## Method Selection
16
-
17
- When user initiates agent creation:
18
-
19
- ### Step 1: Present Creation Methods
20
-
21
- Use chit-chat mode 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).
240
-
241
- ```diff
242
- 👉 Agent Creation - Explore Roles
243
- ⏳ Software Development roles
244
- ```
245
-
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
283
-
284
- **Current system - full control over agent definition.**
285
-
286
- Follow existing wizard steps (2.1 through 2.8 below).
287
-
288
- #### 2.1: Agent Type Selection
289
-
290
- **What type of agent would you like to create?**
291
-
292
- 1. **Specialist** - Focused on specific domain (e.g., refactoring, testing)
293
- - Deep expertise in narrow area
294
- - Clear boundaries of responsibility
295
- - Best for: Specialized tasks requiring domain expertise
296
-
297
- 2. **Generalist** - Broad capabilities across domains
298
- - Flexible and adaptable
299
- - Good for exploration and discovery
300
- - Best for: General-purpose assistance
301
-
302
- 3. **Coordinator** - Manages other agents
303
- - Orchestrates complex workflows
304
- - Handles agent handoffs
305
- - Best for: Multi-agent workflows
306
-
307
- #### 2.2: Agent Name
308
-
309
- **What should we name this agent?**
310
-
311
- Requirements:
312
- - Lowercase with hyphens (e.g., `refactor-architect`)
313
- - No spaces or special characters
314
- - Descriptive of agent's purpose
315
- - Must be unique (check `.kiro/agents/` directory)
316
-
317
- #### 2.3: Agent Description
318
-
319
- **Provide a brief description (1-2 sentences):**
320
-
321
- This will be shown in agent listings and help users understand when to use this agent.
322
-
323
- Example: "Specialized in code refactoring with focus on design patterns, SOLID principles, and maintainability improvements."
324
-
325
- #### 2.4: Core Responsibilities
326
-
327
- **What are the agent's primary responsibilities? (3-5 items)**
328
-
329
- Example:
330
- - Analyze code structure and identify refactoring opportunities
331
- - Apply design patterns appropriately
332
- - Improve code maintainability and readability
333
- - Ensure SOLID principles compliance
334
-
335
- #### 2.5: Capabilities
336
-
337
- **What specific capabilities should this agent have?**
338
-
339
- Group by category. Example:
340
-
341
- **Code Analysis:**
342
- - Detect code smells and anti-patterns
343
- - Identify coupling and cohesion issues
344
- - Analyze complexity metrics
345
-
346
- **Refactoring:**
347
- - Extract methods and classes
348
- - Apply design patterns
349
- - Simplify conditional logic
350
-
351
- #### 2.6: Interaction Protocol
352
-
353
- **How should this agent interact with users?**
354
-
355
- 1. **Formal** - Professional, structured responses
356
- 2. **Casual** - Conversational, friendly tone
357
- 3. **Technical** - Precise, detailed explanations
358
- 4. **Chit-chat mode** - Interactive with diff blocks and numbered choices
359
-
360
- **Confirmation requirements:**
361
- - Always confirm before changes
362
- - Never confirm (trusted operations)
363
- - Confirm only risky operations
364
-
365
- #### 2.7: Mandatory Protocols
366
-
367
- **What rules MUST this agent follow?**
368
-
369
- Example:
370
- 1. **Always analyze before refactoring** - Never refactor without understanding impact
371
- 2. **Preserve functionality** - Ensure tests pass after refactoring
372
- 3. **Document changes** - Explain why refactoring was done
373
-
374
- #### 2.8: Workflows
375
-
376
- **Define step-by-step processes for common tasks:**
377
-
378
- Example workflow:
379
-
380
- **Refactor Code:**
381
- 1. Analyze current code structure
382
- 2. Identify refactoring opportunities
383
- 3. Propose refactoring plan
384
- 4. Get user confirmation
385
- 5. Apply refactoring
386
- 6. Verify tests pass
387
- 7. Document changes
388
-
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
473
-
474
- Create `.kiro/agents/{agent-name}.md` with this structure:
475
-
476
- ```markdown
477
- ---
478
- name: {agent-name}
479
- type: {specialist|generalist|coordinator}
480
- description: {brief description}
481
- version: 1.0.0
482
- ---
483
-
484
- # {Agent Name}
485
-
486
- {Brief overview of agent purpose and capabilities}
487
-
488
- ## Core Responsibilities
489
-
490
- {List of primary responsibilities}
491
-
492
- ## Capabilities
493
-
494
- {Detailed list organized by category}
495
-
496
- ## Interaction Protocol
497
-
498
- {How agent responds to user input}
499
-
500
- **Response Style:** {formal|casual|technical|chit-chat}
501
-
502
- **Formatting Preferences:**
503
- - {Code blocks, lists, tables, etc.}
504
-
505
- **Confirmation Requirements:**
506
- - {Always, never, when risky}
507
-
508
- **Error Handling:**
509
- - {How agent handles errors}
510
-
511
- ## Mandatory Protocols
512
-
513
- {Rules agent MUST follow with rationale}
514
-
515
- ## Workflows
516
-
517
- {Step-by-step processes for common tasks}
518
-
519
- ## Examples
520
-
521
- ### Example 1: {Scenario Name}
522
-
523
- **User:** {Example user input}
524
- **Agent:** {Example agent response}
525
-
526
- ### Example 2: {Scenario Name}
527
-
528
- **User:** {Example user input}
529
- **Agent:** {Example agent response}
530
-
531
- ## Integration Points
532
-
533
- ### Required Steering Documents
534
- - `{steering-name}.md` - {Why it's required}
535
-
536
- ### Optional Steering Documents
537
- - `{steering-name}.md` - {When to load}
538
-
539
- ## Conflict Priorities
540
-
541
- When conflicts arise, this agent prioritizes:
542
-
543
- 1. User safety and data integrity
544
- 2. Agent mandatory protocols
545
- 3. Project-specific requirements
546
- 4. Performance and efficiency
547
- 5. Code style and conventions
548
-
549
- ## Best Practices
550
-
551
- - {Best practice 1 for using this agent}
552
- - {Best practice 2 for using this agent}
553
- - {Best practice 3 for using this agent}
554
-
555
- ## Advanced Features
556
-
557
- - {Advanced feature 1 description}
558
- - {Advanced feature 2 description}
559
-
560
- ## Error Handling
561
-
562
- - **Syntax errors** - {Approach description}
563
- - **Logic errors** - {Approach description}
564
- - **Ambiguous input** - {Approach description}
565
-
566
- ## Success Metrics
567
-
568
- - {Metric 1 description}
569
- - {Metric 2 description}
570
- ```
571
-
572
- ### Step 4: Validate Agent Definition
573
-
574
- Check that the generated agent file:
575
-
576
- 1. **Has valid YAML frontmatter** with required fields
577
- 2. **Contains all required sections**:
578
- - Core Responsibilities
579
- - Capabilities
580
- - Interaction Protocol
581
- - Mandatory Protocols
582
- - Workflows
583
- - Examples
584
- 3. **Has no syntax errors** in markdown
585
- 4. **Follows naming conventions** (lowercase with hyphens)
586
- 5. **Is unique** (no existing agent with same name)
587
-
588
- ### Step 5: Confirm and Finalize
589
-
590
- Show summary to user:
591
-
592
- ```diff
593
- 👉 Agent creation complete
594
- ✅ Agent definition created
595
- ```
596
-
597
- **Agent Created:** `{agent-name}`
598
-
599
- **Location:** `.kiro/agents/{agent-name}.md`
600
-
601
- **Summary:**
602
- - Type: {type}
603
- - Responsibilities: {count} defined
604
- - Capabilities: {count} defined
605
- - Workflows: {count} defined
606
-
607
- **What would you like to do next?**
608
-
609
- 1. **Activate this agent** - Start using it immediately
610
- 2. **View agent definition** - Review the generated file
611
- 3. **Edit agent** - Make modifications
612
- 4. **Create another agent** - Start new creation wizard
613
- 5. **Return to agent management** - Back to main menu
614
- 6. **Exit** - Return to normal mode
615
-
616
- ### Step 6: Post-Creation Actions
617
-
618
- Based on user choice:
619
-
620
- - **Activate**: Execute `/agents {agent-name}` command
621
- - **View**: Display full agent definition with formatting
622
- - **Edit**: Open agent file for modifications
623
- - **Create another**: Restart creation wizard
624
- - **Return**: Go back to agent management menu
625
- - **Exit**: Return to normal interaction
626
-
627
- ---
628
-
629
- **Agent creation wizard ready. Begin collecting information.**