kiro-agent-team 1.0.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/.kiro/README.md +228 -0
- package/.kiro/agents/backend-engineer.json +6 -0
- package/.kiro/agents/backend-engineer.md +643 -0
- package/.kiro/agents/database-specialist.json +6 -0
- package/.kiro/agents/database-specialist.md +390 -0
- package/.kiro/agents/development-logger.json +6 -0
- package/.kiro/agents/development-logger.md +265 -0
- package/.kiro/agents/devops-engineer.json +6 -0
- package/.kiro/agents/devops-engineer.md +287 -0
- package/.kiro/agents/frontend-architect.json +6 -0
- package/.kiro/agents/frontend-architect.md +1032 -0
- package/.kiro/agents/hooks/backend-engineer-hooks.yaml +540 -0
- package/.kiro/agents/hooks/database-specialist-hooks.yaml +488 -0
- package/.kiro/agents/hooks/development-logger-hooks.yaml +361 -0
- package/.kiro/agents/hooks/devops-engineer-hooks.yaml +345 -0
- package/.kiro/agents/hooks/frontend-architect-hooks.yaml +521 -0
- package/.kiro/agents/hooks/project-manager-hooks.yaml +513 -0
- package/.kiro/agents/hooks/security-specialist-hooks.yaml +358 -0
- package/.kiro/agents/hooks/test-orchestrator-hooks.yaml +380 -0
- package/.kiro/agents/hooks/ui-ux-designer-hooks.yaml +353 -0
- package/.kiro/agents/project-manager.json +6 -0
- package/.kiro/agents/project-manager.md +344 -0
- package/.kiro/agents/prompts/backend-engineer-system.md +815 -0
- package/.kiro/agents/prompts/database-specialist-system.md +332 -0
- package/.kiro/agents/prompts/development-logger-system.md +232 -0
- package/.kiro/agents/prompts/devops-engineer-system.md +260 -0
- package/.kiro/agents/prompts/frontend-architect-system.md +305 -0
- package/.kiro/agents/prompts/project-manager-system.md +285 -0
- package/.kiro/agents/prompts/security-specialist-system.md +231 -0
- package/.kiro/agents/prompts/test-orchestrator-system.md +214 -0
- package/.kiro/agents/prompts/ui-ux-designer-system.md +270 -0
- package/.kiro/agents/security-specialist.json +6 -0
- package/.kiro/agents/security-specialist.md +277 -0
- package/.kiro/agents/test-orchestrator.json +6 -0
- package/.kiro/agents/test-orchestrator.md +266 -0
- package/.kiro/agents/ui-ux-designer.json +6 -0
- package/.kiro/agents/ui-ux-designer.md +284 -0
- package/.kiro/devlog/00-START-HERE.md +444 -0
- package/.kiro/devlog/COMPLETE-WORKFLOW.md +553 -0
- package/.kiro/devlog/DEVLOG-INTEGRATION.md +413 -0
- package/.kiro/devlog/DEVLOG-PROCESS-FLOWS.md +484 -0
- package/.kiro/devlog/DEVLOG-QUICK-REF.md +299 -0
- package/.kiro/devlog/DEVLOG.md +22 -0
- package/.kiro/devlog/IMPLEMENTATION-COMPLETE.txt +434 -0
- package/.kiro/devlog/IMPLEMENTATION-SUMMARY.md +358 -0
- package/.kiro/devlog/README.md +363 -0
- package/.kiro/devlog/devlog-update.bat +136 -0
- package/.kiro/devlog/devlog-update.sh +275 -0
- package/.kiro/devlog/feature-completion-hook.bat +78 -0
- package/.kiro/devlog/feature-completion-hook.sh +84 -0
- package/.kiro/documentation/cli.md +31 -0
- package/.kiro/documentation/docs_cli.md +41 -0
- package/.kiro/documentation/docs_cli_authentication.md +43 -0
- package/.kiro/documentation/docs_cli_autocomplete.md +132 -0
- package/.kiro/documentation/docs_cli_billing.md +31 -0
- package/.kiro/documentation/docs_cli_billing_contact-support.md +43 -0
- package/.kiro/documentation/docs_cli_billing_managing-taxes.md +67 -0
- package/.kiro/documentation/docs_cli_billing_related-questions.md +49 -0
- package/.kiro/documentation/docs_cli_billing_subscription-portal.md +31 -0
- package/.kiro/documentation/docs_cli_chat.md +84 -0
- package/.kiro/documentation/docs_cli_chat_configuration.md +40 -0
- package/.kiro/documentation/docs_cli_chat_context.md +258 -0
- package/.kiro/documentation/docs_cli_chat_git-aware-selection.md +41 -0
- package/.kiro/documentation/docs_cli_chat_images.md +53 -0
- package/.kiro/documentation/docs_cli_chat_manage-prompts.md +216 -0
- package/.kiro/documentation/docs_cli_chat_model-selection.md +153 -0
- package/.kiro/documentation/docs_cli_chat_permissions.md +68 -0
- package/.kiro/documentation/docs_cli_chat_planning-agent.md +230 -0
- package/.kiro/documentation/docs_cli_chat_responding.md +123 -0
- package/.kiro/documentation/docs_cli_chat_security.md +87 -0
- package/.kiro/documentation/docs_cli_chat_subagents.md +77 -0
- package/.kiro/documentation/docs_cli_code-intelligence.md +251 -0
- package/.kiro/documentation/docs_cli_custom-agents.md +37 -0
- package/.kiro/documentation/docs_cli_custom-agents_configuration-reference.md +941 -0
- package/.kiro/documentation/docs_cli_custom-agents_creating.md +93 -0
- package/.kiro/documentation/docs_cli_custom-agents_examples.md +360 -0
- package/.kiro/documentation/docs_cli_custom-agents_troubleshooting.md +180 -0
- package/.kiro/documentation/docs_cli_enterprise_billing.md +33 -0
- package/.kiro/documentation/docs_cli_enterprise_concepts.md +34 -0
- package/.kiro/documentation/docs_cli_enterprise_getting-started.md +19 -0
- package/.kiro/documentation/docs_cli_enterprise_iam.md +251 -0
- package/.kiro/documentation/docs_cli_enterprise_monitor-and-track.md +15 -0
- package/.kiro/documentation/docs_cli_enterprise_monitor-and-track_dashboard.md +62 -0
- package/.kiro/documentation/docs_cli_enterprise_monitor-and-track_prompt-logging.md +165 -0
- package/.kiro/documentation/docs_cli_enterprise_monitor-and-track_user-activity.md +123 -0
- package/.kiro/documentation/docs_cli_enterprise_settings.md +15 -0
- package/.kiro/documentation/docs_cli_enterprise_subscribe.md +36 -0
- package/.kiro/documentation/docs_cli_enterprise_subscription-management.md +55 -0
- package/.kiro/documentation/docs_cli_enterprise_supported-regions.md +39 -0
- package/.kiro/documentation/docs_cli_experimental.md +282 -0
- package/.kiro/documentation/docs_cli_experimental_checkpointing.md +439 -0
- package/.kiro/documentation/docs_cli_experimental_delegate.md +422 -0
- package/.kiro/documentation/docs_cli_experimental_knowledge-management.md +449 -0
- package/.kiro/documentation/docs_cli_experimental_tangent-mode.md +357 -0
- package/.kiro/documentation/docs_cli_experimental_thinking.md +331 -0
- package/.kiro/documentation/docs_cli_experimental_todo-lists.md +385 -0
- package/.kiro/documentation/docs_cli_hooks.md +207 -0
- package/.kiro/documentation/docs_cli_installation.md +235 -0
- package/.kiro/documentation/docs_cli_mcp.md +106 -0
- package/.kiro/documentation/docs_cli_mcp_configuration.md +294 -0
- package/.kiro/documentation/docs_cli_mcp_examples.md +273 -0
- package/.kiro/documentation/docs_cli_mcp_governance.md +436 -0
- package/.kiro/documentation/docs_cli_mcp_security.md +77 -0
- package/.kiro/documentation/docs_cli_migrating-from-q.md +129 -0
- package/.kiro/documentation/docs_cli_privacy-and-security.md +83 -0
- package/.kiro/documentation/docs_cli_privacy-and-security_compliance-validation.md +17 -0
- package/.kiro/documentation/docs_cli_privacy-and-security_data-protection.md +104 -0
- package/.kiro/documentation/docs_cli_privacy-and-security_firewalls.md +26 -0
- package/.kiro/documentation/docs_cli_privacy-and-security_infrastructure-security.md +10 -0
- package/.kiro/documentation/docs_cli_privacy-and-security_vpc-endpoints.md +41 -0
- package/.kiro/documentation/docs_cli_reference_built-in-tools.md +624 -0
- package/.kiro/documentation/docs_cli_reference_cli-commands.md +689 -0
- package/.kiro/documentation/docs_cli_reference_settings.md +294 -0
- package/.kiro/documentation/docs_cli_reference_slash-commands.md +559 -0
- package/.kiro/documentation/docs_cli_steering.md +84 -0
- package/.kiro/guides/AGENT_WORKFLOW_GUIDE.md +294 -0
- package/.kiro/guides/DEVLOG.md +882 -0
- package/.kiro/guides/IMPLEMENTATION_EXAMPLES.md +611 -0
- package/.kiro/guides/PIV Loop.md +122 -0
- package/.kiro/guides/PIV Loop.png +0 -0
- package/.kiro/guides/PIVLoop.png +0 -0
- package/.kiro/guides/QUICK_REFERENCE.md +202 -0
- package/.kiro/guides/README.md +149 -0
- package/.kiro/guides/advanced-patterns.md +514 -0
- package/.kiro/guides/agent-coordination.md +434 -0
- package/.kiro/guides/core-workflows.md +409 -0
- package/.kiro/guides/emergency-procedures.md +414 -0
- package/.kiro/guides/project-evaluation.md +534 -0
- package/.kiro/guides/quality-assurance.md +431 -0
- package/.kiro/guides/quick-start.md +235 -0
- package/.kiro/guides/troubleshooting.md +575 -0
- package/.kiro/guides/walkthroughs.md +711 -0
- package/.kiro/prompts/add-to-devlog.md +263 -0
- package/.kiro/prompts/code-review-fix.md +18 -0
- package/.kiro/prompts/code-review-hackathon.md +167 -0
- package/.kiro/prompts/code-review-security.md +454 -0
- package/.kiro/prompts/code-review.md +113 -0
- package/.kiro/prompts/create-prd.md +151 -0
- package/.kiro/prompts/execute-backend.md +257 -0
- package/.kiro/prompts/execute-frontend.md +438 -0
- package/.kiro/prompts/execute-logging.md +491 -0
- package/.kiro/prompts/execute-security.md +482 -0
- package/.kiro/prompts/execute-testing.md +528 -0
- package/.kiro/prompts/execute.md +101 -0
- package/.kiro/prompts/execution-report.md +72 -0
- package/.kiro/prompts/implement-fix.md +228 -0
- package/.kiro/prompts/plan-feature.md +433 -0
- package/.kiro/prompts/prime.md +73 -0
- package/.kiro/prompts/quality-metrics.md +622 -0
- package/.kiro/prompts/quickstart.md +318 -0
- package/.kiro/prompts/rca.md +220 -0
- package/.kiro/prompts/system-review.md +189 -0
- package/README.md +32 -0
- package/bin/cli.js +97 -0
- package/package.json +33 -0
|
@@ -0,0 +1,540 @@
|
|
|
1
|
+
# Backend Engineer Agent - Hook Configurations
|
|
2
|
+
|
|
3
|
+
# Initial Backend Consultation
|
|
4
|
+
consultation:
|
|
5
|
+
- name: "backend_consultation"
|
|
6
|
+
description: "Initiate backend development consultation for new projects"
|
|
7
|
+
trigger:
|
|
8
|
+
type: "message_pattern"
|
|
9
|
+
pattern: "(?i)(backend|api|server|node|express|rest|graphql)"
|
|
10
|
+
action:
|
|
11
|
+
type: "send_message"
|
|
12
|
+
message: |
|
|
13
|
+
🚀 **Backend Engineer Consultation Started**
|
|
14
|
+
|
|
15
|
+
I'll help you design the optimal backend solution for your specific needs:
|
|
16
|
+
|
|
17
|
+
**🔧 API Requirements Questions:**
|
|
18
|
+
- What type of application are we building?
|
|
19
|
+
• REST API with standard endpoints
|
|
20
|
+
• GraphQL API with flexible queries
|
|
21
|
+
• Microservices architecture
|
|
22
|
+
• Monolithic application
|
|
23
|
+
• Hybrid approach
|
|
24
|
+
|
|
25
|
+
- What are the core features and business logic requirements?
|
|
26
|
+
- Who will be consuming the APIs? (Web frontend, mobile apps, third-party)
|
|
27
|
+
- What data operations are needed? (CRUD, complex queries, real-time updates)
|
|
28
|
+
|
|
29
|
+
**⚡ Performance & Scalability Questions:**
|
|
30
|
+
- What are your expected traffic patterns?
|
|
31
|
+
• Users: 10s, 100s, 1000s+
|
|
32
|
+
• Requests per second: Low, medium, high volume
|
|
33
|
+
• Peak load expectations
|
|
34
|
+
|
|
35
|
+
- Performance requirements?
|
|
36
|
+
• Response times (< 100ms, < 500ms, < 1s)
|
|
37
|
+
• Throughput needs
|
|
38
|
+
• Real-time features needed?
|
|
39
|
+
|
|
40
|
+
**🔒 Security & Compliance Questions:**
|
|
41
|
+
- What authentication methods do you need?
|
|
42
|
+
• JWT tokens
|
|
43
|
+
• OAuth (Google, GitHub, etc.)
|
|
44
|
+
• Session-based authentication
|
|
45
|
+
• API keys
|
|
46
|
+
|
|
47
|
+
- Authorization patterns required?
|
|
48
|
+
• Role-based access control (RBAC)
|
|
49
|
+
• Simple user permissions
|
|
50
|
+
• Complex business rules
|
|
51
|
+
|
|
52
|
+
- Any compliance requirements? (GDPR, HIPAA, SOX)
|
|
53
|
+
|
|
54
|
+
**🏗️ Technology & Infrastructure Questions:**
|
|
55
|
+
- Do you have existing backend infrastructure or preferences?
|
|
56
|
+
- Deployment environment? (Cloud, containers, serverless)
|
|
57
|
+
- Any technology constraints or organizational standards?
|
|
58
|
+
- Monitoring and logging requirements?
|
|
59
|
+
|
|
60
|
+
Based on your answers, I'll design a tailored backend architecture with optimal API design, security implementation, and performance optimization!
|
|
61
|
+
agent: "backend-engineer"
|
|
62
|
+
|
|
63
|
+
# API Development Hooks
|
|
64
|
+
api_development:
|
|
65
|
+
- name: "systematic_api_implementation"
|
|
66
|
+
description: "Execute systematic API development using standardized framework"
|
|
67
|
+
trigger:
|
|
68
|
+
type: "user_command"
|
|
69
|
+
conditions:
|
|
70
|
+
- command: "execute"
|
|
71
|
+
- agent: "backend-engineer"
|
|
72
|
+
action:
|
|
73
|
+
type: "execute_prompt"
|
|
74
|
+
prompt: "execute.md"
|
|
75
|
+
message: "Executing systematic API development with comprehensive validation and quality assurance..."
|
|
76
|
+
agent: "backend-engineer"
|
|
77
|
+
include_context:
|
|
78
|
+
- api_requirements: true
|
|
79
|
+
- database_schema: true
|
|
80
|
+
- security_standards: true
|
|
81
|
+
- performance_targets: true
|
|
82
|
+
|
|
83
|
+
- name: "api_endpoint_creation"
|
|
84
|
+
description: "Handle new API endpoint development tasks"
|
|
85
|
+
trigger:
|
|
86
|
+
type: "task_assignment"
|
|
87
|
+
conditions:
|
|
88
|
+
- assignee: "Backend Engineer"
|
|
89
|
+
- keywords: ["api", "endpoint", "route", "controller"]
|
|
90
|
+
- task_type: ["feature", "enhancement"]
|
|
91
|
+
action:
|
|
92
|
+
type: "send_message"
|
|
93
|
+
message: "API endpoint development task assigned. Use @execute for systematic implementation with comprehensive validation and testing."
|
|
94
|
+
agent: "backend-engineer"
|
|
95
|
+
include_context:
|
|
96
|
+
- api_requirements: true
|
|
97
|
+
- database_schema: true
|
|
98
|
+
- authentication_needs: true
|
|
99
|
+
|
|
100
|
+
- name: "authentication_implementation"
|
|
101
|
+
description: "Implement authentication and authorization systems"
|
|
102
|
+
trigger:
|
|
103
|
+
type: "task_assignment"
|
|
104
|
+
conditions:
|
|
105
|
+
- assignee: "Backend Engineer"
|
|
106
|
+
- keywords: ["auth", "authentication", "login", "jwt", "security"]
|
|
107
|
+
- priority: ["high", "critical"]
|
|
108
|
+
action:
|
|
109
|
+
type: "send_message"
|
|
110
|
+
message: "Authentication system task assigned. Implement JWT-based authentication, password hashing, role-based access control, and security middleware. Coordinate with Database Specialist on user schema."
|
|
111
|
+
agent: "backend-engineer"
|
|
112
|
+
include_context:
|
|
113
|
+
- security_requirements: true
|
|
114
|
+
- user_schema: true
|
|
115
|
+
- frontend_integration: true
|
|
116
|
+
|
|
117
|
+
- name: "business_logic_implementation"
|
|
118
|
+
description: "Implement complex business logic and validation"
|
|
119
|
+
trigger:
|
|
120
|
+
type: "task_assignment"
|
|
121
|
+
conditions:
|
|
122
|
+
- assignee: "Backend Engineer"
|
|
123
|
+
- keywords: ["business logic", "validation", "workflow", "rules"]
|
|
124
|
+
- complexity: ">= 3"
|
|
125
|
+
action:
|
|
126
|
+
type: "send_message"
|
|
127
|
+
message: "Business logic implementation task assigned. Design service layer, implement validation rules, handle complex workflows, and ensure data integrity. Create comprehensive unit tests."
|
|
128
|
+
agent: "backend-engineer"
|
|
129
|
+
include_context:
|
|
130
|
+
- business_requirements: true
|
|
131
|
+
- data_relationships: true
|
|
132
|
+
- validation_rules: true
|
|
133
|
+
|
|
134
|
+
# Database Integration Hooks
|
|
135
|
+
database_integration:
|
|
136
|
+
- name: "database_schema_change_adaptation"
|
|
137
|
+
description: "Adapt APIs to database schema changes"
|
|
138
|
+
trigger:
|
|
139
|
+
type: "agent_notification"
|
|
140
|
+
conditions:
|
|
141
|
+
- source_agent: "Database Specialist"
|
|
142
|
+
- notification_type: "schema_change"
|
|
143
|
+
- impact_level: ["medium", "high"]
|
|
144
|
+
action:
|
|
145
|
+
type: "send_message"
|
|
146
|
+
message: "Database schema changes detected. Review schema modifications, update ORM models, adapt API endpoints, modify validation rules, and test database integration."
|
|
147
|
+
agent: "backend-engineer"
|
|
148
|
+
include_context:
|
|
149
|
+
- schema_changes: true
|
|
150
|
+
- affected_endpoints: true
|
|
151
|
+
- migration_details: true
|
|
152
|
+
|
|
153
|
+
- name: "query_optimization_request"
|
|
154
|
+
description: "Optimize database queries for performance"
|
|
155
|
+
trigger:
|
|
156
|
+
type: "performance_alert"
|
|
157
|
+
conditions:
|
|
158
|
+
- metric_type: "database_query_time"
|
|
159
|
+
- threshold: "> 500ms"
|
|
160
|
+
- frequency: "> 10 occurrences/hour"
|
|
161
|
+
action:
|
|
162
|
+
type: "send_message"
|
|
163
|
+
message: "Slow database queries detected in API endpoints. Analyze query performance, optimize ORM queries, implement caching strategies, and coordinate with Database Specialist for index optimization."
|
|
164
|
+
agent: "backend-engineer"
|
|
165
|
+
include_context:
|
|
166
|
+
- slow_queries: true
|
|
167
|
+
- performance_metrics: true
|
|
168
|
+
- optimization_opportunities: true
|
|
169
|
+
|
|
170
|
+
- name: "data_integrity_validation"
|
|
171
|
+
description: "Ensure API operations maintain data integrity"
|
|
172
|
+
trigger:
|
|
173
|
+
type: "data_integrity_alert"
|
|
174
|
+
conditions:
|
|
175
|
+
- alert_type: "constraint_violation"
|
|
176
|
+
- source: "api_operations"
|
|
177
|
+
- severity: ["medium", "high"]
|
|
178
|
+
action:
|
|
179
|
+
type: "send_message"
|
|
180
|
+
message: "Data integrity issues detected in API operations. Review validation logic, strengthen input sanitization, implement proper transaction handling, and coordinate with Database Specialist."
|
|
181
|
+
agent: "backend-engineer"
|
|
182
|
+
include_context:
|
|
183
|
+
- integrity_violations: true
|
|
184
|
+
- affected_endpoints: true
|
|
185
|
+
- validation_gaps: true
|
|
186
|
+
|
|
187
|
+
# API Performance Monitoring
|
|
188
|
+
performance_monitoring:
|
|
189
|
+
- name: "api_performance_degradation"
|
|
190
|
+
description: "Handle API performance issues"
|
|
191
|
+
trigger:
|
|
192
|
+
type: "performance_threshold"
|
|
193
|
+
conditions:
|
|
194
|
+
- metric_type: "api_response_time"
|
|
195
|
+
- threshold: "> 1000ms"
|
|
196
|
+
- duration: "> 5 minutes"
|
|
197
|
+
action:
|
|
198
|
+
type: "send_message"
|
|
199
|
+
message: "API performance degradation detected. Analyze slow endpoints, identify bottlenecks, implement caching strategies, optimize database queries, and improve response times."
|
|
200
|
+
agent: "backend-engineer"
|
|
201
|
+
include_context:
|
|
202
|
+
- performance_metrics: true
|
|
203
|
+
- slow_endpoints: true
|
|
204
|
+
- resource_usage: true
|
|
205
|
+
|
|
206
|
+
- name: "high_error_rate_alert"
|
|
207
|
+
description: "Address high API error rates"
|
|
208
|
+
trigger:
|
|
209
|
+
type: "error_rate_threshold"
|
|
210
|
+
conditions:
|
|
211
|
+
- metric_type: "api_error_rate"
|
|
212
|
+
- threshold: "> 5%"
|
|
213
|
+
- time_window: "15 minutes"
|
|
214
|
+
action:
|
|
215
|
+
type: "send_message"
|
|
216
|
+
message: "High API error rate detected. Investigate error patterns, fix critical bugs, improve error handling, strengthen input validation, and implement better monitoring."
|
|
217
|
+
agent: "backend-engineer"
|
|
218
|
+
include_context:
|
|
219
|
+
- error_logs: true
|
|
220
|
+
- error_patterns: true
|
|
221
|
+
- affected_endpoints: true
|
|
222
|
+
|
|
223
|
+
- name: "resource_usage_optimization"
|
|
224
|
+
description: "Optimize API resource usage"
|
|
225
|
+
trigger:
|
|
226
|
+
type: "resource_threshold"
|
|
227
|
+
conditions:
|
|
228
|
+
- metric_type: ["memory_usage", "cpu_usage"]
|
|
229
|
+
- threshold: "> 80%"
|
|
230
|
+
- duration: "> 10 minutes"
|
|
231
|
+
action:
|
|
232
|
+
type: "send_message"
|
|
233
|
+
message: "High resource usage detected in API services. Analyze resource consumption, optimize memory usage, improve algorithm efficiency, and implement resource monitoring."
|
|
234
|
+
agent: "backend-engineer"
|
|
235
|
+
include_context:
|
|
236
|
+
- resource_metrics: true
|
|
237
|
+
- performance_profiles: true
|
|
238
|
+
- optimization_opportunities: true
|
|
239
|
+
|
|
240
|
+
# Security Monitoring
|
|
241
|
+
security_monitoring:
|
|
242
|
+
- name: "security_vulnerability_detection"
|
|
243
|
+
description: "Address security vulnerabilities in APIs"
|
|
244
|
+
trigger:
|
|
245
|
+
type: "security_alert"
|
|
246
|
+
conditions:
|
|
247
|
+
- alert_type: ["injection_attempt", "unauthorized_access", "brute_force"]
|
|
248
|
+
- severity: ["medium", "high", "critical"]
|
|
249
|
+
action:
|
|
250
|
+
type: "send_message"
|
|
251
|
+
message: "Security vulnerability detected in API endpoints. Investigate security breach, strengthen input validation, improve authentication, implement rate limiting, and enhance security monitoring."
|
|
252
|
+
agent: "backend-engineer"
|
|
253
|
+
include_context:
|
|
254
|
+
- security_logs: true
|
|
255
|
+
- attack_patterns: true
|
|
256
|
+
- vulnerable_endpoints: true
|
|
257
|
+
|
|
258
|
+
- name: "authentication_failure_spike"
|
|
259
|
+
description: "Handle authentication failure spikes"
|
|
260
|
+
trigger:
|
|
261
|
+
type: "authentication_alert"
|
|
262
|
+
conditions:
|
|
263
|
+
- metric_type: "auth_failure_rate"
|
|
264
|
+
- threshold: "> 20%"
|
|
265
|
+
- time_window: "10 minutes"
|
|
266
|
+
action:
|
|
267
|
+
type: "send_message"
|
|
268
|
+
message: "High authentication failure rate detected. Investigate authentication issues, check token validation, review security policies, and implement additional security measures."
|
|
269
|
+
agent: "backend-engineer"
|
|
270
|
+
include_context:
|
|
271
|
+
- auth_logs: true
|
|
272
|
+
- failure_patterns: true
|
|
273
|
+
- security_metrics: true
|
|
274
|
+
|
|
275
|
+
- name: "rate_limit_exceeded"
|
|
276
|
+
description: "Handle rate limiting and API abuse"
|
|
277
|
+
trigger:
|
|
278
|
+
type: "rate_limit_alert"
|
|
279
|
+
conditions:
|
|
280
|
+
- alert_type: "rate_limit_exceeded"
|
|
281
|
+
- frequency: "> 100 occurrences/hour"
|
|
282
|
+
action:
|
|
283
|
+
type: "send_message"
|
|
284
|
+
message: "Rate limiting frequently triggered. Analyze usage patterns, adjust rate limits, implement more sophisticated throttling, and investigate potential API abuse."
|
|
285
|
+
agent: "backend-engineer"
|
|
286
|
+
include_context:
|
|
287
|
+
- usage_patterns: true
|
|
288
|
+
- rate_limit_logs: true
|
|
289
|
+
- client_behavior: true
|
|
290
|
+
|
|
291
|
+
# Team Collaboration Hooks
|
|
292
|
+
team_collaboration:
|
|
293
|
+
- name: "frontend_integration_support"
|
|
294
|
+
description: "Support Frontend Architect with API integration"
|
|
295
|
+
trigger:
|
|
296
|
+
type: "agent_request"
|
|
297
|
+
conditions:
|
|
298
|
+
- requesting_agent: "Frontend Architect"
|
|
299
|
+
- request_type: ["api_integration", "endpoint_modification", "data_format"]
|
|
300
|
+
action:
|
|
301
|
+
type: "send_message"
|
|
302
|
+
message: "Frontend Architect requesting API support. Analyze integration requirements, modify endpoints if needed, improve response formats, add new endpoints, and provide integration documentation."
|
|
303
|
+
agent: "backend-engineer"
|
|
304
|
+
include_context:
|
|
305
|
+
- integration_requirements: true
|
|
306
|
+
- current_api_spec: true
|
|
307
|
+
- frontend_needs: true
|
|
308
|
+
|
|
309
|
+
- name: "database_coordination"
|
|
310
|
+
description: "Coordinate with Database Specialist on schema and queries"
|
|
311
|
+
trigger:
|
|
312
|
+
type: "agent_request"
|
|
313
|
+
conditions:
|
|
314
|
+
- requesting_agent: "Database Specialist"
|
|
315
|
+
- request_type: ["query_optimization", "schema_feedback", "performance_analysis"]
|
|
316
|
+
action:
|
|
317
|
+
type: "send_message"
|
|
318
|
+
message: "Database Specialist requesting coordination. Review database queries, provide API usage patterns, optimize query performance, and coordinate on schema changes."
|
|
319
|
+
agent: "backend-engineer"
|
|
320
|
+
include_context:
|
|
321
|
+
- query_patterns: true
|
|
322
|
+
- performance_requirements: true
|
|
323
|
+
- api_usage_data: true
|
|
324
|
+
|
|
325
|
+
- name: "testing_support"
|
|
326
|
+
description: "Support Test Orchestrator with API testing"
|
|
327
|
+
trigger:
|
|
328
|
+
type: "agent_request"
|
|
329
|
+
conditions:
|
|
330
|
+
- requesting_agent: "Test Orchestrator"
|
|
331
|
+
- request_type: ["test_data", "api_documentation", "test_endpoints"]
|
|
332
|
+
action:
|
|
333
|
+
type: "send_message"
|
|
334
|
+
message: "Test Orchestrator requesting testing support. Provide API documentation, create test endpoints, generate test data, and ensure APIs are testable."
|
|
335
|
+
agent: "backend-engineer"
|
|
336
|
+
include_context:
|
|
337
|
+
- api_documentation: true
|
|
338
|
+
- test_requirements: true
|
|
339
|
+
- endpoint_specifications: true
|
|
340
|
+
|
|
341
|
+
# Development Lifecycle Hooks
|
|
342
|
+
development_lifecycle:
|
|
343
|
+
- name: "code_review_request"
|
|
344
|
+
description: "Handle code review requests for API changes"
|
|
345
|
+
trigger:
|
|
346
|
+
type: "code_review"
|
|
347
|
+
conditions:
|
|
348
|
+
- review_type: "api_changes"
|
|
349
|
+
- files_changed: ["*.ts", "*.js"]
|
|
350
|
+
- scope: ["routes", "controllers", "services"]
|
|
351
|
+
action:
|
|
352
|
+
type: "send_message"
|
|
353
|
+
message: "Code review requested for API changes. Review code quality, check security implementations, validate business logic, ensure proper error handling, and verify test coverage."
|
|
354
|
+
agent: "backend-engineer"
|
|
355
|
+
include_context:
|
|
356
|
+
- code_changes: true
|
|
357
|
+
- review_checklist: true
|
|
358
|
+
- quality_standards: true
|
|
359
|
+
|
|
360
|
+
- name: "deployment_preparation"
|
|
361
|
+
description: "Prepare APIs for deployment"
|
|
362
|
+
trigger:
|
|
363
|
+
type: "pre_deployment"
|
|
364
|
+
conditions:
|
|
365
|
+
- deployment_type: ["staging", "production"]
|
|
366
|
+
- api_changes: true
|
|
367
|
+
action:
|
|
368
|
+
type: "send_message"
|
|
369
|
+
message: "API deployment preparation required. Verify all tests pass, check environment configurations, validate database migrations, ensure proper logging, and coordinate with DevOps Assistant."
|
|
370
|
+
agent: "backend-engineer"
|
|
371
|
+
include_context:
|
|
372
|
+
- deployment_checklist: true
|
|
373
|
+
- environment_configs: true
|
|
374
|
+
- migration_status: true
|
|
375
|
+
|
|
376
|
+
- name: "post_deployment_monitoring"
|
|
377
|
+
description: "Monitor APIs after deployment"
|
|
378
|
+
trigger:
|
|
379
|
+
type: "post_deployment"
|
|
380
|
+
conditions:
|
|
381
|
+
- deployment_type: ["staging", "production"]
|
|
382
|
+
- api_changes: true
|
|
383
|
+
- monitoring_duration: "30 minutes"
|
|
384
|
+
action:
|
|
385
|
+
type: "send_message"
|
|
386
|
+
message: "Post-deployment API monitoring required. Check API health, monitor error rates, verify performance metrics, validate functionality, and address any deployment issues."
|
|
387
|
+
agent: "backend-engineer"
|
|
388
|
+
include_context:
|
|
389
|
+
- deployment_results: true
|
|
390
|
+
- health_metrics: true
|
|
391
|
+
- error_logs: true
|
|
392
|
+
|
|
393
|
+
# API Documentation Hooks
|
|
394
|
+
documentation_management:
|
|
395
|
+
- name: "api_documentation_update"
|
|
396
|
+
description: "Update API documentation when endpoints change"
|
|
397
|
+
trigger:
|
|
398
|
+
type: "api_change"
|
|
399
|
+
conditions:
|
|
400
|
+
- change_type: ["new_endpoint", "modified_endpoint", "deprecated_endpoint"]
|
|
401
|
+
- documentation_required: true
|
|
402
|
+
action:
|
|
403
|
+
type: "send_message"
|
|
404
|
+
message: "API changes require documentation updates. Update OpenAPI/Swagger specs, create endpoint documentation, provide usage examples, and ensure documentation accuracy."
|
|
405
|
+
agent: "backend-engineer"
|
|
406
|
+
include_context:
|
|
407
|
+
- api_changes: true
|
|
408
|
+
- current_documentation: true
|
|
409
|
+
- documentation_standards: true
|
|
410
|
+
|
|
411
|
+
- name: "api_versioning_management"
|
|
412
|
+
description: "Handle API versioning and backward compatibility"
|
|
413
|
+
trigger:
|
|
414
|
+
type: "api_version_change"
|
|
415
|
+
conditions:
|
|
416
|
+
- version_type: ["major", "minor"]
|
|
417
|
+
- breaking_changes: true
|
|
418
|
+
action:
|
|
419
|
+
type: "send_message"
|
|
420
|
+
message: "API versioning required due to breaking changes. Implement version management, maintain backward compatibility, create migration guides, and coordinate with Frontend Architect."
|
|
421
|
+
agent: "backend-engineer"
|
|
422
|
+
include_context:
|
|
423
|
+
- breaking_changes: true
|
|
424
|
+
- version_strategy: true
|
|
425
|
+
- migration_requirements: true
|
|
426
|
+
|
|
427
|
+
# Error Handling and Recovery
|
|
428
|
+
error_management:
|
|
429
|
+
- name: "critical_api_error"
|
|
430
|
+
description: "Handle critical API errors and outages"
|
|
431
|
+
trigger:
|
|
432
|
+
type: "critical_error"
|
|
433
|
+
conditions:
|
|
434
|
+
- error_type: "api_outage"
|
|
435
|
+
- severity: "critical"
|
|
436
|
+
- affected_users: "> 100"
|
|
437
|
+
action:
|
|
438
|
+
type: "send_message"
|
|
439
|
+
message: "Critical API error detected. Immediately investigate root cause, implement emergency fixes, restore service availability, and coordinate incident response."
|
|
440
|
+
agent: "backend-engineer"
|
|
441
|
+
include_context:
|
|
442
|
+
- error_details: true
|
|
443
|
+
- system_status: true
|
|
444
|
+
- incident_procedures: true
|
|
445
|
+
|
|
446
|
+
- name: "data_corruption_prevention"
|
|
447
|
+
description: "Prevent and handle data corruption in APIs"
|
|
448
|
+
trigger:
|
|
449
|
+
type: "data_integrity_alert"
|
|
450
|
+
conditions:
|
|
451
|
+
- alert_type: "potential_corruption"
|
|
452
|
+
- source: "api_operations"
|
|
453
|
+
- risk_level: "high"
|
|
454
|
+
action:
|
|
455
|
+
type: "send_message"
|
|
456
|
+
message: "Potential data corruption detected in API operations. Immediately halt risky operations, investigate data integrity, implement safeguards, and coordinate with Database Specialist."
|
|
457
|
+
agent: "backend-engineer"
|
|
458
|
+
include_context:
|
|
459
|
+
- corruption_indicators: true
|
|
460
|
+
- affected_data: true
|
|
461
|
+
- recovery_procedures: true
|
|
462
|
+
|
|
463
|
+
# Manual Control Hooks
|
|
464
|
+
manual_controls:
|
|
465
|
+
- name: "manual_api_analysis"
|
|
466
|
+
description: "Perform comprehensive API analysis on demand"
|
|
467
|
+
trigger:
|
|
468
|
+
type: "user_command"
|
|
469
|
+
conditions:
|
|
470
|
+
- command: "analyze-api"
|
|
471
|
+
action:
|
|
472
|
+
type: "send_message"
|
|
473
|
+
message: "Manual API analysis requested. Perform comprehensive API review: endpoint performance, security analysis, code quality assessment, documentation completeness, and optimization recommendations."
|
|
474
|
+
agent: "backend-engineer"
|
|
475
|
+
|
|
476
|
+
- name: "manual_performance_optimization"
|
|
477
|
+
description: "Optimize API performance on demand"
|
|
478
|
+
trigger:
|
|
479
|
+
type: "user_command"
|
|
480
|
+
conditions:
|
|
481
|
+
- command: "optimize-api-performance"
|
|
482
|
+
action:
|
|
483
|
+
type: "send_message"
|
|
484
|
+
message: "Manual API performance optimization requested. Analyze performance bottlenecks, optimize slow endpoints, implement caching strategies, and improve overall API efficiency."
|
|
485
|
+
agent: "backend-engineer"
|
|
486
|
+
|
|
487
|
+
- name: "emergency_api_maintenance"
|
|
488
|
+
description: "Perform emergency API maintenance"
|
|
489
|
+
trigger:
|
|
490
|
+
type: "user_command"
|
|
491
|
+
conditions:
|
|
492
|
+
- command: "emergency-api-maintenance"
|
|
493
|
+
- priority: "critical"
|
|
494
|
+
action:
|
|
495
|
+
type: "send_message"
|
|
496
|
+
message: "Emergency API maintenance requested. Assess critical issues, implement immediate fixes, ensure service stability, and coordinate with team for resolution."
|
|
497
|
+
agent: "backend-engineer"
|
|
498
|
+
|
|
499
|
+
- name: "quality_metrics_collection"
|
|
500
|
+
description: "Collect backend-specific quality metrics and performance data"
|
|
501
|
+
trigger:
|
|
502
|
+
type: "api_deployment"
|
|
503
|
+
conditions:
|
|
504
|
+
- deployment_type: ["staging", "production"]
|
|
505
|
+
action:
|
|
506
|
+
type: "execute_prompt"
|
|
507
|
+
prompt: "quality-metrics.md"
|
|
508
|
+
message: "Collecting backend quality metrics: API performance, security compliance, and code quality..."
|
|
509
|
+
agent: "backend-engineer"
|
|
510
|
+
include_context:
|
|
511
|
+
- api_metrics: true
|
|
512
|
+
- security_scan_results: true
|
|
513
|
+
- performance_benchmarks: true
|
|
514
|
+
|
|
515
|
+
# Configuration
|
|
516
|
+
hook_settings:
|
|
517
|
+
global:
|
|
518
|
+
enabled: true
|
|
519
|
+
log_level: "info"
|
|
520
|
+
performance_monitoring: true
|
|
521
|
+
|
|
522
|
+
api_development:
|
|
523
|
+
auto_testing: true
|
|
524
|
+
documentation_generation: true
|
|
525
|
+
security_validation: true
|
|
526
|
+
|
|
527
|
+
performance_monitoring:
|
|
528
|
+
response_time_threshold: "1000ms"
|
|
529
|
+
error_rate_threshold: "5%"
|
|
530
|
+
resource_usage_threshold: "80%"
|
|
531
|
+
|
|
532
|
+
security_monitoring:
|
|
533
|
+
vulnerability_scanning: true
|
|
534
|
+
authentication_monitoring: true
|
|
535
|
+
rate_limiting: true
|
|
536
|
+
|
|
537
|
+
team_collaboration:
|
|
538
|
+
integration_support: true
|
|
539
|
+
documentation_sharing: true
|
|
540
|
+
coordination_alerts: true
|