cursor-ai-toolkit 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/README.md +148 -0
- package/bin/cli.js +304 -0
- package/commands/context/ask-clarification.md +215 -0
- package/commands/context/context-prune.md +201 -0
- package/commands/context/orchestrate.md +279 -0
- package/commands/context/smart-detection.md +272 -0
- package/commands/learning/generate-memories.md +270 -0
- package/commands/learning/generate-rules.md +175 -0
- package/commands/learning/self-heal.md +233 -0
- package/commands/learning/self-improve.md +229 -0
- package/package.json +35 -0
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Summarize session progress, clean context, prevent AI drift in long chats
|
|
3
|
+
category: Context & Analysis
|
|
4
|
+
aliases: [prune, summarize, cleanup]
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Context Prune - Manage Context Window & Prevent Drift
|
|
8
|
+
|
|
9
|
+
Clean chat history and summarize progress to maintain AI performance.
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```
|
|
14
|
+
/context-prune
|
|
15
|
+
/context-prune --summarize # Save progress summary
|
|
16
|
+
/context-prune --fresh # Start clean with context
|
|
17
|
+
/context-prune --checkpoint {NAME} # Named checkpoint
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Why This Matters
|
|
21
|
+
|
|
22
|
+
In 2025, **context window management is the #1 performance bottleneck**:
|
|
23
|
+
|
|
24
|
+
- Long conversations cause "context drift"
|
|
25
|
+
- AI forgets earlier decisions
|
|
26
|
+
- Response quality degrades over time
|
|
27
|
+
- Hallucinations increase
|
|
28
|
+
|
|
29
|
+
## What This Does
|
|
30
|
+
|
|
31
|
+
1. **Analyzes current context** - Measures token usage, key decisions
|
|
32
|
+
2. **Creates checkpoint** - Saves essential state
|
|
33
|
+
3. **Prunes irrelevant** - Removes debug output, repeated content
|
|
34
|
+
4. **Generates summary** - Compressed handoff for fresh session
|
|
35
|
+
5. **Restores critical** - Ensures key context is preserved
|
|
36
|
+
|
|
37
|
+
## Context Health Indicators
|
|
38
|
+
|
|
39
|
+
| Indicator | Healthy | Warning | Critical |
|
|
40
|
+
| ------------------ | ------- | --------- | --------- |
|
|
41
|
+
| Token usage | < 50% | 50-80% | > 80% |
|
|
42
|
+
| Conversation turns | < 20 | 20-40 | > 40 |
|
|
43
|
+
| Files discussed | < 15 | 15-30 | > 30 |
|
|
44
|
+
| Decisions made | Tracked | Some lost | Forgotten |
|
|
45
|
+
|
|
46
|
+
## Output Format
|
|
47
|
+
|
|
48
|
+
````
|
|
49
|
+
๐ Context Analysis...
|
|
50
|
+
|
|
51
|
+
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
52
|
+
CONTEXT HEALTH
|
|
53
|
+
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
54
|
+
|
|
55
|
+
## Current State
|
|
56
|
+
|
|
57
|
+
| Metric | Value | Status |
|
|
58
|
+
|--------|-------|--------|
|
|
59
|
+
| Estimated tokens | 45,000 | ๐ก 56% used |
|
|
60
|
+
| Conversation turns | 28 | ๐ก Warning |
|
|
61
|
+
| Files discussed | 12 | โ
Healthy |
|
|
62
|
+
| Tools invoked | 67 | Normal |
|
|
63
|
+
|
|
64
|
+
## Drift Detection
|
|
65
|
+
|
|
66
|
+
โ ๏ธ Potential drift detected:
|
|
67
|
+
- Turn 5: Decided to use `useWatch` over `watch()`
|
|
68
|
+
- Turn 23: Used `watch()` (inconsistent)
|
|
69
|
+
|
|
70
|
+
โ ๏ธ Forgotten context:
|
|
71
|
+
- Original goal: "Implement TICKET-123"
|
|
72
|
+
- Current focus: Debugging unrelated styling
|
|
73
|
+
|
|
74
|
+
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
75
|
+
CHECKPOINT CREATED
|
|
76
|
+
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
77
|
+
|
|
78
|
+
## Session Summary (for handoff)
|
|
79
|
+
|
|
80
|
+
### Original Goal
|
|
81
|
+
Implement marketing texts for protection packages (TICKET-123)
|
|
82
|
+
|
|
83
|
+
### Key Decisions Made
|
|
84
|
+
1. Use `display_name` from backend with Statsig fallback
|
|
85
|
+
2. Prevent duplicate titles using `useOXBreakpoint`
|
|
86
|
+
3. Keep `originalName` for modal title preservation
|
|
87
|
+
|
|
88
|
+
### Files Modified
|
|
89
|
+
- LineItems.tsx - Added conditional TooltipTitle
|
|
90
|
+
- ProtectionPackageCard.styled.ts - Added TooltipTitle component
|
|
91
|
+
- helpers.ts - Updated getModifiedLineItems logic
|
|
92
|
+
- PackagesV2.tsx - Removed duplicate function
|
|
93
|
+
|
|
94
|
+
### Current State
|
|
95
|
+
- [x] Implementation complete
|
|
96
|
+
- [x] Tests passing
|
|
97
|
+
- [ ] PR not created
|
|
98
|
+
- [ ] How to Test not added
|
|
99
|
+
|
|
100
|
+
### Next Steps
|
|
101
|
+
1. Create PR with `/jira-pr TICKET-123`
|
|
102
|
+
2. Add How to Test with `/jira-test TICKET-123`
|
|
103
|
+
|
|
104
|
+
### Context to Preserve
|
|
105
|
+
```typescript
|
|
106
|
+
// Key pattern established
|
|
107
|
+
const { biggerThanSmall } = useOXBreakpoint();
|
|
108
|
+
{biggerThanSmall && originalName && <TooltipTitle ... />}
|
|
109
|
+
````
|
|
110
|
+
|
|
111
|
+
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
112
|
+
RECOMMENDATIONS
|
|
113
|
+
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
114
|
+
|
|
115
|
+
Option A: Continue in current session
|
|
116
|
+
|
|
117
|
+
- Risk: Moderate context drift
|
|
118
|
+
- Token headroom: 44% remaining
|
|
119
|
+
|
|
120
|
+
Option B: Start fresh session (Recommended)
|
|
121
|
+
|
|
122
|
+
- Copy the summary above
|
|
123
|
+
- Paste at start of new conversation
|
|
124
|
+
- Full context restoration guaranteed
|
|
125
|
+
|
|
126
|
+
Checkpoint saved as: `TICKET-123-checkpoint-2024-12-23`
|
|
127
|
+
|
|
128
|
+
````
|
|
129
|
+
|
|
130
|
+
## Checkpoint File Format
|
|
131
|
+
|
|
132
|
+
When `--checkpoint` is used, creates:
|
|
133
|
+
|
|
134
|
+
```markdown
|
|
135
|
+
# Context Checkpoint: {NAME}
|
|
136
|
+
|
|
137
|
+
**Created:** {timestamp}
|
|
138
|
+
**Session ID:** {id}
|
|
139
|
+
**Tokens used:** {count}
|
|
140
|
+
|
|
141
|
+
## Goal
|
|
142
|
+
{original goal}
|
|
143
|
+
|
|
144
|
+
## Decisions
|
|
145
|
+
{numbered list}
|
|
146
|
+
|
|
147
|
+
## State
|
|
148
|
+
{current progress}
|
|
149
|
+
|
|
150
|
+
## Files
|
|
151
|
+
{list of modified files}
|
|
152
|
+
|
|
153
|
+
## Resume Instructions
|
|
154
|
+
Paste this into a new chat to continue:
|
|
155
|
+
|
|
156
|
+
---
|
|
157
|
+
{compressed context for handoff}
|
|
158
|
+
---
|
|
159
|
+
````
|
|
160
|
+
|
|
161
|
+
## Auto-Prune Triggers
|
|
162
|
+
|
|
163
|
+
Consider running `/context-prune` when:
|
|
164
|
+
|
|
165
|
+
- Conversation exceeds 30 turns
|
|
166
|
+
- AI starts repeating itself
|
|
167
|
+
- AI forgets earlier decisions
|
|
168
|
+
- Response quality noticeably drops
|
|
169
|
+
- Switching to a different task
|
|
170
|
+
|
|
171
|
+
## Context Preservation Strategies
|
|
172
|
+
|
|
173
|
+
### Essential (Always Preserve)
|
|
174
|
+
|
|
175
|
+
- Original goal/ticket
|
|
176
|
+
- Key architectural decisions
|
|
177
|
+
- File paths modified
|
|
178
|
+
- Patterns established
|
|
179
|
+
|
|
180
|
+
### Prunable (Safe to Drop)
|
|
181
|
+
|
|
182
|
+
- Debug output
|
|
183
|
+
- Error messages (once resolved)
|
|
184
|
+
- Exploratory searches
|
|
185
|
+
- Redundant explanations
|
|
186
|
+
|
|
187
|
+
### Compressible
|
|
188
|
+
|
|
189
|
+
- Long code blocks โ File references
|
|
190
|
+
- Repeated patterns โ Single example
|
|
191
|
+
- Discussion โ Decision summary
|
|
192
|
+
|
|
193
|
+
## AI Execution
|
|
194
|
+
|
|
195
|
+
When user runs `/context-prune`:
|
|
196
|
+
|
|
197
|
+
1. **Analyze context** - Token count, turn count, drift indicators
|
|
198
|
+
2. **Identify decisions** - Extract key choices made
|
|
199
|
+
3. **Summarize state** - Current progress and next steps
|
|
200
|
+
4. **Create checkpoint** - Portable summary for handoff
|
|
201
|
+
5. **Recommend action** - Continue or fresh session
|
|
@@ -0,0 +1,279 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Spawn specialized sub-agents for parallel task execution (multi-agent)
|
|
3
|
+
category: Workflow Orchestration
|
|
4
|
+
aliases: [multi-agent, spawn, coordinate]
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Orchestrate - Multi-Agent Coordination
|
|
8
|
+
|
|
9
|
+
Spawn specialized sub-agents for parallel task execution.
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```
|
|
14
|
+
/orchestrate {GOAL}
|
|
15
|
+
/orchestrate --ticket {TICKET_ID}
|
|
16
|
+
/orchestrate --pr {PR_NUMBER} --mode review
|
|
17
|
+
/orchestrate --feature "Add loyalty program"
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## What This Does
|
|
21
|
+
|
|
22
|
+
1. **Parses goal** - Breaks down into specialized tasks
|
|
23
|
+
2. **Spawns agents** - Each agent handles specific domain
|
|
24
|
+
3. **Parallel execution** - Tasks run simultaneously
|
|
25
|
+
4. **Coordination** - Merges results, resolves conflicts
|
|
26
|
+
5. **Final synthesis** - Unified output
|
|
27
|
+
|
|
28
|
+
## Available Agents
|
|
29
|
+
|
|
30
|
+
| Agent | Role | Specialization |
|
|
31
|
+
| -------------------- | ------------------ | -------------------------------- |
|
|
32
|
+
| ๐๏ธ **Architect** | System design | Validates patterns, dependencies |
|
|
33
|
+
| ๐ **Security** | Vulnerability scan | Secrets, SAST, dependencies |
|
|
34
|
+
| ๐ **Documentation** | Docs update | README, Confluence, JSDoc |
|
|
35
|
+
| ๐งช **Testing** | Test generation | Unit, integration, E2E |
|
|
36
|
+
| ๐จ **Styling** | Design compliance | Token usage, responsive |
|
|
37
|
+
| ๐ **Analytics** | Tracking | Events, metrics, logging |
|
|
38
|
+
| โก **Performance** | Optimization | Bundle, runtime, memory |
|
|
39
|
+
|
|
40
|
+
## Orchestration Flow
|
|
41
|
+
|
|
42
|
+
```
|
|
43
|
+
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
44
|
+
โ /orchestrate "Implement TICKET-123" โ
|
|
45
|
+
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
46
|
+
โ
|
|
47
|
+
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
48
|
+
โ GOAL DECOMPOSITION โ
|
|
49
|
+
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
|
|
50
|
+
โ 1. Understand requirements (Architect) โ
|
|
51
|
+
โ 2. Implement feature (Main Agent) โ
|
|
52
|
+
โ 3. Check security (Security Agent) โ
|
|
53
|
+
โ 4. Generate tests (Testing Agent) โ
|
|
54
|
+
โ 5. Update docs (Documentation Agent) โ
|
|
55
|
+
โ 6. Verify styling (Styling Agent) โ
|
|
56
|
+
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
57
|
+
โ
|
|
58
|
+
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
59
|
+
โ PARALLEL EXECUTION โ
|
|
60
|
+
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
|
|
61
|
+
โ โ
|
|
62
|
+
โ โโโโโโโโโโโโ โโโโโโโโโโโโ โโโโโโโโโโโโ โ
|
|
63
|
+
โ โ Security โ โ Testing โ โ Docs โ โ
|
|
64
|
+
โ โ Agent โ โ Agent โ โ Agent โ โ
|
|
65
|
+
โ โโโโโโฌโโโโโโ โโโโโโฌโโโโโโ โโโโโโฌโโโโโโ โ
|
|
66
|
+
โ โ โ โ โ
|
|
67
|
+
โ โโโโโโผโโโโโโโโโโโโโโผโโโโโโโโโโโโโโผโโโโโ โ
|
|
68
|
+
โ โ COORDINATION LAYER โ โ
|
|
69
|
+
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
|
|
70
|
+
โ โ
|
|
71
|
+
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
72
|
+
โ
|
|
73
|
+
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
74
|
+
โ SYNTHESIS & OUTPUT โ
|
|
75
|
+
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
|
|
76
|
+
โ โข Merge all agent outputs โ
|
|
77
|
+
โ โข Resolve any conflicts โ
|
|
78
|
+
โ โข Generate unified report โ
|
|
79
|
+
โ โข Apply all changes atomically โ
|
|
80
|
+
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
## Output Format
|
|
84
|
+
|
|
85
|
+
````
|
|
86
|
+
๐ Orchestrating: Implement TICKET-123...
|
|
87
|
+
|
|
88
|
+
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
89
|
+
GOAL DECOMPOSITION
|
|
90
|
+
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
91
|
+
|
|
92
|
+
Feature: Marketing texts for protection packages
|
|
93
|
+
Ticket: TICKET-123
|
|
94
|
+
Complexity: Medium
|
|
95
|
+
|
|
96
|
+
Tasks identified:
|
|
97
|
+
1. [MAIN] Implement display_name support in LineItems
|
|
98
|
+
2. [SECURITY] Validate input sanitization for marketing texts
|
|
99
|
+
3. [TESTING] Generate tests for new display logic
|
|
100
|
+
4. [DOCS] Update component documentation
|
|
101
|
+
5. [STYLING] Verify TooltipTitle spacing
|
|
102
|
+
|
|
103
|
+
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
104
|
+
AGENT EXECUTION
|
|
105
|
+
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
106
|
+
|
|
107
|
+
## ๐๏ธ Architect Agent
|
|
108
|
+
|
|
109
|
+
Status: โ
Complete
|
|
110
|
+
|
|
111
|
+
Analysis:
|
|
112
|
+
- Pattern: Consistent with existing tooltip implementation
|
|
113
|
+
- Dependencies: No new external dependencies
|
|
114
|
+
- Breaking changes: None
|
|
115
|
+
- Recommendation: โ
Proceed with implementation
|
|
116
|
+
|
|
117
|
+
## ๐ Security Agent
|
|
118
|
+
|
|
119
|
+
Status: โ
Complete
|
|
120
|
+
|
|
121
|
+
Scanned:
|
|
122
|
+
- [ ] Hardcoded secrets: None found
|
|
123
|
+
- [ ] XSS vectors: `display_name` passed through OXRichTextBlock (sanitized) โ
|
|
124
|
+
- [ ] Injection risks: None detected
|
|
125
|
+
- [ ] Dependency vulnerabilities: None new
|
|
126
|
+
|
|
127
|
+
Result: โ
No security issues
|
|
128
|
+
|
|
129
|
+
## ๐งช Testing Agent
|
|
130
|
+
|
|
131
|
+
Status: โ
Complete
|
|
132
|
+
|
|
133
|
+
Generated:
|
|
134
|
+
```typescript
|
|
135
|
+
// LineItems.test.tsx
|
|
136
|
+
describe('LineItems', () => {
|
|
137
|
+
it('should render display_name when available', () => { ... });
|
|
138
|
+
it('should fallback to name when display_name missing', () => { ... });
|
|
139
|
+
it('should show title only on desktop', () => { ... });
|
|
140
|
+
});
|
|
141
|
+
````
|
|
142
|
+
|
|
143
|
+
Files created:
|
|
144
|
+
|
|
145
|
+
- LineItems.test.tsx (3 test cases)
|
|
146
|
+
- helpers.test.ts (5 test cases)
|
|
147
|
+
|
|
148
|
+
## ๐ Documentation Agent
|
|
149
|
+
|
|
150
|
+
Status: โ
Complete
|
|
151
|
+
|
|
152
|
+
Updated:
|
|
153
|
+
|
|
154
|
+
- [ ] Component JSDoc comments
|
|
155
|
+
- [ ] Type definitions (ILineItemInfo.originalName)
|
|
156
|
+
- [ ] README section on marketing texts
|
|
157
|
+
|
|
158
|
+
Confluence page created:
|
|
159
|
+
|
|
160
|
+
- "Protection Package Display Names" (875167748)
|
|
161
|
+
|
|
162
|
+
## ๐จ Styling Agent
|
|
163
|
+
|
|
164
|
+
Status: โ
Complete
|
|
165
|
+
|
|
166
|
+
Verified:
|
|
167
|
+
|
|
168
|
+
- [ ] TooltipTitle uses spacing('xs') โ
|
|
169
|
+
- [ ] Responsive breakpoint (useOXBreakpoint) โ
|
|
170
|
+
- [ ] No hardcoded values โ
|
|
171
|
+
- [ ] Design token compliance โ
|
|
172
|
+
|
|
173
|
+
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
174
|
+
SYNTHESIS
|
|
175
|
+
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
176
|
+
|
|
177
|
+
## Changes Summary
|
|
178
|
+
|
|
179
|
+
| Agent | Files Modified | Files Created |
|
|
180
|
+
| ------- | -------------- | -------------- |
|
|
181
|
+
| Main | 5 | 0 |
|
|
182
|
+
| Testing | 0 | 2 |
|
|
183
|
+
| Docs | 1 | 1 (Confluence) |
|
|
184
|
+
|
|
185
|
+
## Conflict Resolution
|
|
186
|
+
|
|
187
|
+
No conflicts detected between agents.
|
|
188
|
+
|
|
189
|
+
## Final Checklist
|
|
190
|
+
|
|
191
|
+
โ
Implementation complete
|
|
192
|
+
โ
Security verified
|
|
193
|
+
โ
Tests generated
|
|
194
|
+
โ
Documentation updated
|
|
195
|
+
โ
Styling validated
|
|
196
|
+
โ
All agents agree
|
|
197
|
+
|
|
198
|
+
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
199
|
+
NEXT STEPS
|
|
200
|
+
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
201
|
+
|
|
202
|
+
Ready to:
|
|
203
|
+
|
|
204
|
+
1. Create PR with all changes
|
|
205
|
+
2. Run full test suite
|
|
206
|
+
3. Request review
|
|
207
|
+
|
|
208
|
+
Run: /jira-pr TICKET-123 to create PR
|
|
209
|
+
|
|
210
|
+
````
|
|
211
|
+
|
|
212
|
+
## Agent Configurations
|
|
213
|
+
|
|
214
|
+
### Architect Agent
|
|
215
|
+
```yaml
|
|
216
|
+
focus:
|
|
217
|
+
- System design patterns
|
|
218
|
+
- Dependency analysis
|
|
219
|
+
- Breaking change detection
|
|
220
|
+
- Architecture compliance
|
|
221
|
+
tools:
|
|
222
|
+
- Dependency graph analysis
|
|
223
|
+
- Pattern matching
|
|
224
|
+
- CODEOWNERS lookup
|
|
225
|
+
````
|
|
226
|
+
|
|
227
|
+
### Security Agent
|
|
228
|
+
|
|
229
|
+
```yaml
|
|
230
|
+
focus:
|
|
231
|
+
- Secret scanning
|
|
232
|
+
- XSS/injection detection
|
|
233
|
+
- Dependency CVEs
|
|
234
|
+
- Auth/authz checks
|
|
235
|
+
tools:
|
|
236
|
+
- gitleaks (secrets)
|
|
237
|
+
- semgrep (SAST)
|
|
238
|
+
- npm audit (deps)
|
|
239
|
+
```
|
|
240
|
+
|
|
241
|
+
### Testing Agent
|
|
242
|
+
|
|
243
|
+
```yaml
|
|
244
|
+
focus:
|
|
245
|
+
- Unit test generation
|
|
246
|
+
- Integration tests
|
|
247
|
+
- Edge case coverage
|
|
248
|
+
- Mock generation
|
|
249
|
+
tools:
|
|
250
|
+
- /risk-test-gen
|
|
251
|
+
- /mutation-audit
|
|
252
|
+
- Jest templates
|
|
253
|
+
```
|
|
254
|
+
|
|
255
|
+
### Documentation Agent
|
|
256
|
+
|
|
257
|
+
```yaml
|
|
258
|
+
focus:
|
|
259
|
+
- JSDoc updates
|
|
260
|
+
- README maintenance
|
|
261
|
+
- Confluence sync
|
|
262
|
+
- Type documentation
|
|
263
|
+
tools:
|
|
264
|
+
- /jira-docs
|
|
265
|
+
- JSDoc generator
|
|
266
|
+
- Confluence API
|
|
267
|
+
```
|
|
268
|
+
|
|
269
|
+
## AI Execution
|
|
270
|
+
|
|
271
|
+
When user runs `/orchestrate {GOAL}`:
|
|
272
|
+
|
|
273
|
+
1. **Parse goal** - Break into domain-specific tasks
|
|
274
|
+
2. **Assign agents** - Map tasks to specialized agents
|
|
275
|
+
3. **Execute parallel** - Run agents simultaneously
|
|
276
|
+
4. **Collect results** - Gather outputs from each agent
|
|
277
|
+
5. **Resolve conflicts** - Handle overlapping changes
|
|
278
|
+
6. **Synthesize** - Merge into unified output
|
|
279
|
+
7. **Report** - Summary of all agent actions
|