opencode-agile-agent 1.0.1 → 1.0.2
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 +61 -71
- package/bin/cli.js +344 -434
- package/bin/sync-templates.js +45 -0
- package/bin/validate-templates.js +44 -6
- package/package.json +2 -1
- package/templates/.opencode/ARCHITECTURE.md +82 -368
- package/templates/.opencode/README.md +110 -391
- package/templates/.opencode/agents/api-designer.md +45 -312
- package/templates/.opencode/agents/backend-specialist.md +46 -214
- package/templates/.opencode/agents/code-archaeologist.md +45 -260
- package/templates/.opencode/agents/context-gatherer.md +51 -0
- package/templates/.opencode/agents/database-architect.md +45 -212
- package/templates/.opencode/agents/debugger.md +45 -302
- package/templates/.opencode/agents/developer.md +45 -523
- package/templates/.opencode/agents/devops-engineer.md +45 -253
- package/templates/.opencode/agents/documentation-writer.md +45 -247
- package/templates/.opencode/agents/explorer-agent.md +49 -233
- package/templates/.opencode/agents/feature-lead.md +62 -302
- package/templates/.opencode/agents/frontend-specialist.md +46 -186
- package/templates/.opencode/agents/game-developer.md +45 -391
- package/templates/.opencode/agents/mobile-developer.md +45 -264
- package/templates/.opencode/agents/orchestrator.md +48 -463
- package/templates/.opencode/agents/penetration-tester.md +44 -254
- package/templates/.opencode/agents/performance-optimizer.md +45 -292
- package/templates/.opencode/agents/pr-reviewer.md +45 -468
- package/templates/.opencode/agents/product-manager.md +46 -225
- package/templates/.opencode/agents/project-planner.md +45 -248
- package/templates/.opencode/agents/qa-automation-engineer.md +45 -275
- package/templates/.opencode/agents/security-auditor.md +44 -258
- package/templates/.opencode/agents/seo-specialist.md +45 -266
- package/templates/.opencode/agents/system-analyst.md +48 -428
- package/templates/.opencode/agents/test-engineer.md +45 -229
- package/templates/.opencode/archive/README.md +24 -0
- package/templates/.opencode/commands/brainstorm.md +10 -0
- package/templates/.opencode/commands/create.md +11 -0
- package/templates/.opencode/commands/debug.md +10 -0
- package/templates/.opencode/commands/plan.md +9 -0
- package/templates/.opencode/commands/review.md +11 -0
- package/templates/.opencode/commands/status.md +9 -0
- package/templates/.opencode/commands/test.md +10 -0
- package/templates/.opencode/skills/api-patterns/SKILL.md +25 -149
- package/templates/.opencode/skills/brainstorming/SKILL.md +26 -242
- package/templates/.opencode/skills/clean-code/SKILL.md +27 -339
- package/templates/.opencode/skills/code-philosophy/SKILL.md +27 -499
- package/templates/.opencode/skills/context-archive/SKILL.md +47 -0
- package/templates/.opencode/skills/context-gathering/SKILL.md +51 -0
- package/templates/.opencode/skills/frontend-design/SKILL.md +26 -224
- package/templates/.opencode/skills/intelligent-routing/SKILL.md +25 -182
- package/templates/.opencode/skills/parallel-agents/SKILL.md +25 -261
- package/templates/.opencode/skills/plan-writing/SKILL.md +28 -238
- package/templates/.opencode/skills/redteam-validation/SKILL.md +33 -0
- package/templates/.opencode/skills/security-gate/SKILL.md +33 -0
- package/templates/.opencode/skills/systematic-debugging/SKILL.md +25 -197
- package/templates/.opencode/skills/testing-patterns/SKILL.md +25 -238
- package/templates/AGENTS.template.md +300 -426
- package/templates/.opencode/agents/product-owner.md +0 -264
- package/templates/.opencode/workflows/brainstorm.md +0 -110
- package/templates/.opencode/workflows/create.md +0 -108
- package/templates/.opencode/workflows/debug.md +0 -128
- package/templates/.opencode/workflows/deploy.md +0 -160
- package/templates/.opencode/workflows/enhance.md +0 -253
- package/templates/.opencode/workflows/orchestrate.md +0 -130
- package/templates/.opencode/workflows/plan.md +0 -163
- package/templates/.opencode/workflows/review.md +0 -135
- package/templates/.opencode/workflows/status.md +0 -102
- package/templates/.opencode/workflows/test.md +0 -146
|
@@ -1,274 +1,38 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: parallel-agents
|
|
3
|
-
description:
|
|
4
|
-
version: 1.0.0
|
|
3
|
+
description: Split independent work across agents, share compact context, and merge at a clear gate.
|
|
5
4
|
---
|
|
6
5
|
|
|
7
6
|
# Parallel Agents
|
|
8
7
|
|
|
9
|
-
|
|
8
|
+
## Philosophy
|
|
9
|
+
Parallel work only helps when the pieces can truly move independently.
|
|
10
10
|
|
|
11
|
-
##
|
|
11
|
+
## Use When
|
|
12
|
+
- The task can be split by domain, file type, or review perspective.
|
|
13
|
+
- You need speed without losing ownership or clarity.
|
|
14
|
+
- A single agent would be forced to bounce between unrelated concerns.
|
|
12
15
|
|
|
13
|
-
|
|
16
|
+
## Core Moves
|
|
17
|
+
- Define dependencies before splitting work.
|
|
18
|
+
- Keep each agent's ownership narrow.
|
|
19
|
+
- Share a compact context bundle, not a dump.
|
|
20
|
+
- Synthesize once at the end instead of merging constantly.
|
|
14
21
|
|
|
15
|
-
|
|
16
|
-
-
|
|
17
|
-
-
|
|
18
|
-
-
|
|
19
|
-
- Comprehensive reviews
|
|
22
|
+
## Default Moves
|
|
23
|
+
- Foundation -> core build -> quality/polish.
|
|
24
|
+
- Use wave planning when dependencies are not fully parallel.
|
|
25
|
+
- Keep the merge point explicit and owned.
|
|
20
26
|
|
|
21
|
-
|
|
27
|
+
## Anti-Patterns
|
|
28
|
+
- Parallelizing dependent work, shared mutable state, conflicting file edits, and no synthesis step.
|
|
22
29
|
|
|
23
|
-
|
|
24
|
-
-
|
|
25
|
-
-
|
|
26
|
-
- Tasks requiring full context from previous step
|
|
30
|
+
## Variation
|
|
31
|
+
- Use domain split, review split, or file-type split depending on the task.
|
|
32
|
+
- Choose wave size by coupling, not by how many agents exist.
|
|
27
33
|
|
|
28
|
-
##
|
|
34
|
+
## Output
|
|
35
|
+
- Return the wave plan, the dependency order, and the merge strategy.
|
|
29
36
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
```
|
|
33
|
-
Task: "Build user management feature"
|
|
34
|
-
|
|
35
|
-
┌─────────────────────────────────────┐
|
|
36
|
-
│ Orchestrator │
|
|
37
|
-
└──────────────┬──────────────────────┘
|
|
38
|
-
│
|
|
39
|
-
┌───────┴───────┐
|
|
40
|
-
│ │
|
|
41
|
-
▼ ▼
|
|
42
|
-
┌─────────────┐ ┌─────────────┐
|
|
43
|
-
│ Frontend │ │ Backend │
|
|
44
|
-
│ Specialist │ │ Specialist │
|
|
45
|
-
│ │ │ │
|
|
46
|
-
│ Components │ │ APIs │
|
|
47
|
-
│ Pages │ │ Services │
|
|
48
|
-
│ State │ │ Database │
|
|
49
|
-
└─────────────┘ └─────────────┘
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
### Pattern 2: Multi-Perspective Review
|
|
53
|
-
|
|
54
|
-
```
|
|
55
|
-
Task: "Review authentication system"
|
|
56
|
-
|
|
57
|
-
┌─────────────────────────────────────┐
|
|
58
|
-
│ Orchestrator │
|
|
59
|
-
└──────────────┬──────────────────────┘
|
|
60
|
-
│
|
|
61
|
-
┌───────────┼───────────┐
|
|
62
|
-
│ │ │
|
|
63
|
-
▼ ▼ ▼
|
|
64
|
-
┌───────┐ ┌───────┐ ┌───────┐
|
|
65
|
-
│Security│ │Backend│ │ Test │
|
|
66
|
-
│Auditor │ │Special│ │Engine │
|
|
67
|
-
└───────┘ └───────┘ └───────┘
|
|
68
|
-
│ │ │
|
|
69
|
-
└───────────┼───────────┘
|
|
70
|
-
▼
|
|
71
|
-
Synthesis Report
|
|
72
|
-
```
|
|
73
|
-
|
|
74
|
-
### Pattern 3: File Type Distribution
|
|
75
|
-
|
|
76
|
-
```
|
|
77
|
-
Task: "Implement feature with tests"
|
|
78
|
-
|
|
79
|
-
┌─────────────────────────────────────┐
|
|
80
|
-
│ Orchestrator │
|
|
81
|
-
└──────────────┬──────────────────────┘
|
|
82
|
-
│
|
|
83
|
-
┌───────┴───────┐
|
|
84
|
-
│ │
|
|
85
|
-
▼ ▼
|
|
86
|
-
┌─────────────┐ ┌─────────────┐
|
|
87
|
-
│ Developer │ │ Test │
|
|
88
|
-
│ (Code) │ │ Engineer │
|
|
89
|
-
│ │ │ (Tests) │
|
|
90
|
-
└─────────────┘ └─────────────┘
|
|
91
|
-
```
|
|
92
|
-
|
|
93
|
-
## Agent Groups
|
|
94
|
-
|
|
95
|
-
### Foundation Group
|
|
96
|
-
|
|
97
|
-
For establishing core infrastructure:
|
|
98
|
-
|
|
99
|
-
| Agent | Responsibility |
|
|
100
|
-
|-------|----------------|
|
|
101
|
-
| `database-architect` | Schema, migrations |
|
|
102
|
-
| `security-auditor` | Security baseline |
|
|
103
|
-
| `devops-engineer` | CI/CD setup |
|
|
104
|
-
|
|
105
|
-
### Core Development Group
|
|
106
|
-
|
|
107
|
-
For building features:
|
|
108
|
-
|
|
109
|
-
| Agent | Responsibility |
|
|
110
|
-
|-------|----------------|
|
|
111
|
-
| `frontend-specialist` | UI components |
|
|
112
|
-
| `backend-specialist` | APIs, services |
|
|
113
|
-
| `database-architect` | Data layer |
|
|
114
|
-
|
|
115
|
-
### Quality Group
|
|
116
|
-
|
|
117
|
-
For ensuring quality:
|
|
118
|
-
|
|
119
|
-
| Agent | Responsibility |
|
|
120
|
-
|-------|----------------|
|
|
121
|
-
| `test-engineer` | Test coverage |
|
|
122
|
-
| `security-auditor` | Security check |
|
|
123
|
-
| `performance-optimizer` | Performance audit |
|
|
124
|
-
|
|
125
|
-
### Documentation Group
|
|
126
|
-
|
|
127
|
-
For documentation:
|
|
128
|
-
|
|
129
|
-
| Agent | Responsibility |
|
|
130
|
-
|-------|----------------|
|
|
131
|
-
| `documentation-writer` | Docs |
|
|
132
|
-
| `api-designer` | API docs |
|
|
133
|
-
| `seo-specialist` | Meta, sitemap |
|
|
134
|
-
|
|
135
|
-
## Coordination Protocol
|
|
136
|
-
|
|
137
|
-
### Step 1: Task Decomposition
|
|
138
|
-
|
|
139
|
-
```markdown
|
|
140
|
-
Original: "Build user dashboard"
|
|
141
|
-
|
|
142
|
-
Decomposed:
|
|
143
|
-
1. [Frontend] Dashboard UI components
|
|
144
|
-
2. [Backend] Dashboard API endpoints
|
|
145
|
-
3. [Database] Dashboard data queries
|
|
146
|
-
4. [Test] Dashboard E2E tests
|
|
147
|
-
```
|
|
148
|
-
|
|
149
|
-
### Step 2: Agent Assignment
|
|
150
|
-
|
|
151
|
-
```markdown
|
|
152
|
-
Assignments:
|
|
153
|
-
- frontend-specialist → Dashboard components
|
|
154
|
-
- backend-specialist → API endpoints
|
|
155
|
-
- database-architect → Queries
|
|
156
|
-
- test-engineer → E2E tests
|
|
157
|
-
```
|
|
158
|
-
|
|
159
|
-
### Step 3: Dependency Analysis
|
|
160
|
-
|
|
161
|
-
```markdown
|
|
162
|
-
Dependencies:
|
|
163
|
-
- Backend API depends on Database queries
|
|
164
|
-
- Frontend depends on Backend API
|
|
165
|
-
- Tests depend on Frontend + Backend
|
|
166
|
-
|
|
167
|
-
Execution Order:
|
|
168
|
-
1. Database (independent)
|
|
169
|
-
2. Backend (depends on 1)
|
|
170
|
-
3. Frontend (depends on 2)
|
|
171
|
-
4. Tests (depends on 3)
|
|
172
|
-
```
|
|
173
|
-
|
|
174
|
-
### Step 4: Parallel Execution
|
|
175
|
-
|
|
176
|
-
```markdown
|
|
177
|
-
Wave 1: database-architect (parallel with nothing)
|
|
178
|
-
Wave 2: backend-specialist (after Wave 1)
|
|
179
|
-
Wave 3: frontend-specialist (parallel with Wave 2)
|
|
180
|
-
Wave 4: test-engineer (after Waves 2, 3)
|
|
181
|
-
```
|
|
182
|
-
|
|
183
|
-
## Context Sharing
|
|
184
|
-
|
|
185
|
-
### Shared Context Object
|
|
186
|
-
|
|
187
|
-
```typescript
|
|
188
|
-
interface SharedContext {
|
|
189
|
-
// Original request
|
|
190
|
-
userRequest: string;
|
|
191
|
-
|
|
192
|
-
// Decisions made
|
|
193
|
-
decisions: Decision[];
|
|
194
|
-
|
|
195
|
-
// Work completed
|
|
196
|
-
completedWork: WorkItem[];
|
|
197
|
-
|
|
198
|
-
// Files created/modified
|
|
199
|
-
files: FileInfo[];
|
|
200
|
-
|
|
201
|
-
// Open questions
|
|
202
|
-
openQuestions: Question[];
|
|
203
|
-
}
|
|
204
|
-
```
|
|
205
|
-
|
|
206
|
-
### Context Passing
|
|
207
|
-
|
|
208
|
-
```typescript
|
|
209
|
-
// Pass context to each agent
|
|
210
|
-
invokeAgent('frontend-specialist', {
|
|
211
|
-
task: 'Build dashboard UI',
|
|
212
|
-
context: sharedContext
|
|
213
|
-
});
|
|
214
|
-
|
|
215
|
-
invokeAgent('backend-specialist', {
|
|
216
|
-
task: 'Build dashboard API',
|
|
217
|
-
context: sharedContext
|
|
218
|
-
});
|
|
219
|
-
```
|
|
220
|
-
|
|
221
|
-
## Conflict Resolution
|
|
222
|
-
|
|
223
|
-
### File Conflicts
|
|
224
|
-
|
|
225
|
-
```
|
|
226
|
-
If multiple agents modify the same file:
|
|
227
|
-
1. Detect conflict
|
|
228
|
-
2. Merge changes if possible
|
|
229
|
-
3. Flag for human review if conflict
|
|
230
|
-
```
|
|
231
|
-
|
|
232
|
-
### API Contract Conflicts
|
|
233
|
-
|
|
234
|
-
```
|
|
235
|
-
If frontend and backend disagree on API:
|
|
236
|
-
1. Use API designer as mediator
|
|
237
|
-
2. Document contract
|
|
238
|
-
3. Both agents follow contract
|
|
239
|
-
```
|
|
240
|
-
|
|
241
|
-
## Synthesis Report
|
|
242
|
-
|
|
243
|
-
After parallel execution, synthesize results:
|
|
244
|
-
|
|
245
|
-
```markdown
|
|
246
|
-
## Orchestration Report
|
|
247
|
-
|
|
248
|
-
### Agents Invoked
|
|
249
|
-
| Agent | Status | Files Modified |
|
|
250
|
-
|-------|--------|----------------|
|
|
251
|
-
| frontend-specialist | ✅ Complete | 5 files |
|
|
252
|
-
| backend-specialist | ✅ Complete | 3 files |
|
|
253
|
-
| test-engineer | ✅ Complete | 2 files |
|
|
254
|
-
|
|
255
|
-
### Combined Findings
|
|
256
|
-
- [Finding from Agent 1]
|
|
257
|
-
- [Finding from Agent 2]
|
|
258
|
-
- [Finding from Agent 3]
|
|
259
|
-
|
|
260
|
-
### Integration Notes
|
|
261
|
-
- [How agents' work integrates]
|
|
262
|
-
|
|
263
|
-
### Recommendations
|
|
264
|
-
1. [Combined recommendation]
|
|
265
|
-
2. [Combined recommendation]
|
|
266
|
-
|
|
267
|
-
### Next Steps
|
|
268
|
-
- [ ] [Action item]
|
|
269
|
-
- [ ] [Action item]
|
|
270
|
-
```
|
|
271
|
-
|
|
272
|
-
---
|
|
273
|
-
|
|
274
|
-
**Parallel agents multiply productivity when tasks are independent.**
|
|
37
|
+
## Remember
|
|
38
|
+
Parallelism is a coordination problem first and a speed problem second.
|
|
@@ -1,251 +1,41 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: plan-writing
|
|
3
|
-
description:
|
|
4
|
-
version: 1.0.0
|
|
3
|
+
description: Turn ambiguous requests into a compact planning bundle with proposal, goal, spec, task, and important notes.
|
|
5
4
|
---
|
|
6
5
|
|
|
7
6
|
# Plan Writing
|
|
8
7
|
|
|
9
|
-
|
|
8
|
+
## Philosophy
|
|
9
|
+
Planning is compression: make the next agent's job obvious without wasting context.
|
|
10
10
|
|
|
11
|
-
##
|
|
11
|
+
## Use When
|
|
12
|
+
- You are starting complex work or breaking down a request.
|
|
13
|
+
- You need a compact bundle for the spec-driven flow.
|
|
14
|
+
- The team needs dependencies, success criteria, or open questions recorded clearly.
|
|
12
15
|
|
|
13
|
-
|
|
16
|
+
## Core Moves
|
|
17
|
+
- Write for the next agent, not for yourself.
|
|
18
|
+
- Keep each task atomic and dependency-aware.
|
|
19
|
+
- Make success measurable and risks explicit.
|
|
20
|
+
- Capture only the facts that matter for execution.
|
|
14
21
|
|
|
15
|
-
|
|
16
|
-
|
|
22
|
+
## Default Moves
|
|
23
|
+
- Use the compact bundle: proposal.md, goal.md, spec.md, task.md, important.md.
|
|
24
|
+
- proposal = why, value, scope.
|
|
25
|
+
- goal = outcome, constraints, default choice.
|
|
26
|
+
- spec = contracts, flow, edge cases, risks.
|
|
27
|
+
- task = ordered checklist and dependencies.
|
|
28
|
+
- important = facts, owners, links, blockers.
|
|
17
29
|
|
|
18
|
-
##
|
|
19
|
-
|
|
30
|
+
## Anti-Patterns
|
|
31
|
+
- Monolithic tasks, long prose, hidden assumptions, single-point estimates, and unresolved questions with no owner.
|
|
20
32
|
|
|
21
|
-
##
|
|
22
|
-
|
|
33
|
+
## Variation
|
|
34
|
+
- Keep the bundle minimal for small tasks.
|
|
35
|
+
- Add more technical detail only when the system has real branching risk.
|
|
23
36
|
|
|
24
|
-
##
|
|
25
|
-
|
|
37
|
+
## Output
|
|
38
|
+
- Return the compact bundle, a short dependency map, and the success criteria.
|
|
26
39
|
|
|
27
|
-
##
|
|
28
|
-
|
|
29
|
-
- [ ] Task 2
|
|
30
|
-
- [ ] Task 3
|
|
31
|
-
|
|
32
|
-
## Success Criteria
|
|
33
|
-
- [ ] Criterion 1
|
|
34
|
-
- [ ] Criterion 2
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
### Comprehensive Plan Template
|
|
38
|
-
|
|
39
|
-
```markdown
|
|
40
|
-
# PLAN: [Feature Name]
|
|
41
|
-
|
|
42
|
-
## Executive Summary
|
|
43
|
-
One paragraph overview.
|
|
44
|
-
|
|
45
|
-
## Problem Statement
|
|
46
|
-
What problem are we solving?
|
|
47
|
-
|
|
48
|
-
## Proposed Solution
|
|
49
|
-
How will we solve it?
|
|
50
|
-
|
|
51
|
-
## User Stories
|
|
52
|
-
1. As a [user], I want [goal] so that [benefit]
|
|
53
|
-
2. ...
|
|
54
|
-
|
|
55
|
-
## Technical Design
|
|
56
|
-
### Architecture
|
|
57
|
-
[Diagram or description]
|
|
58
|
-
|
|
59
|
-
### API Design
|
|
60
|
-
[Endpoints/contracts]
|
|
61
|
-
|
|
62
|
-
### Data Model
|
|
63
|
-
[Schema/ERD]
|
|
64
|
-
|
|
65
|
-
## Implementation Plan
|
|
66
|
-
### Phase 1: Foundation
|
|
67
|
-
- [ ] Task 1.1
|
|
68
|
-
- [ ] Task 1.2
|
|
69
|
-
|
|
70
|
-
### Phase 2: Core Features
|
|
71
|
-
- [ ] Task 2.1
|
|
72
|
-
- [ ] Task 2.2
|
|
73
|
-
|
|
74
|
-
### Phase 3: Polish
|
|
75
|
-
- [ ] Task 3.1
|
|
76
|
-
- [ ] Task 3.2
|
|
77
|
-
|
|
78
|
-
## Dependencies
|
|
79
|
-
- Dependency 1
|
|
80
|
-
- Dependency 2
|
|
81
|
-
|
|
82
|
-
## Risks & Mitigations
|
|
83
|
-
| Risk | Likelihood | Impact | Mitigation |
|
|
84
|
-
|------|------------|--------|------------|
|
|
85
|
-
| ... | ... | ... | ... |
|
|
86
|
-
|
|
87
|
-
## Success Metrics
|
|
88
|
-
| Metric | Target | How Measured |
|
|
89
|
-
|--------|--------|--------------|
|
|
90
|
-
| ... | ... | ... |
|
|
91
|
-
|
|
92
|
-
## Timeline
|
|
93
|
-
- Phase 1: [dates]
|
|
94
|
-
- Phase 2: [dates]
|
|
95
|
-
- Phase 3: [dates]
|
|
96
|
-
|
|
97
|
-
## Open Questions
|
|
98
|
-
1. [Question] - Owner: [name]
|
|
99
|
-
2. [Question] - Owner: [name]
|
|
100
|
-
|
|
101
|
-
## Appendix
|
|
102
|
-
- [Supporting documents]
|
|
103
|
-
- [Research notes]
|
|
104
|
-
```
|
|
105
|
-
|
|
106
|
-
## Task Breakdown
|
|
107
|
-
|
|
108
|
-
### WBS (Work Breakdown Structure)
|
|
109
|
-
|
|
110
|
-
```
|
|
111
|
-
Feature: User Authentication
|
|
112
|
-
├── 1. Registration
|
|
113
|
-
│ ├── 1.1 Registration form UI
|
|
114
|
-
│ ├── 1.2 Form validation
|
|
115
|
-
│ ├── 1.3 API endpoint
|
|
116
|
-
│ ├── 1.4 Email verification
|
|
117
|
-
│ └── 1.5 Password hashing
|
|
118
|
-
├── 2. Login
|
|
119
|
-
│ ├── 2.1 Login form UI
|
|
120
|
-
│ ├── 2.2 JWT generation
|
|
121
|
-
│ ├── 2.3 Session management
|
|
122
|
-
│ └── 2.4 Logout flow
|
|
123
|
-
└── 3. Password Reset
|
|
124
|
-
├── 3.1 Forgot password form
|
|
125
|
-
├── 3.2 Reset token generation
|
|
126
|
-
└── 3.3 Reset password form
|
|
127
|
-
```
|
|
128
|
-
|
|
129
|
-
### Task Sizing
|
|
130
|
-
|
|
131
|
-
| Size | Duration | Characteristics |
|
|
132
|
-
|------|----------|-----------------|
|
|
133
|
-
| **XS** | < 1 hour | Typo fix, config change |
|
|
134
|
-
| **S** | 1-4 hours | Simple component, small fix |
|
|
135
|
-
| **M** | 4-8 hours | Feature with multiple parts |
|
|
136
|
-
| **L** | 1-2 days | Complex feature, multiple files |
|
|
137
|
-
| **XL** | 2-5 days | Major feature, needs breakdown |
|
|
138
|
-
|
|
139
|
-
### Dependency Mapping
|
|
140
|
-
|
|
141
|
-
```markdown
|
|
142
|
-
Task Dependencies:
|
|
143
|
-
|
|
144
|
-
A ─────► B ─────► D
|
|
145
|
-
│
|
|
146
|
-
└───────► C ─────► E
|
|
147
|
-
|
|
148
|
-
Execution Order:
|
|
149
|
-
1. A (no dependencies)
|
|
150
|
-
2. B (depends on A)
|
|
151
|
-
3. C (depends on B)
|
|
152
|
-
4. D (depends on B)
|
|
153
|
-
5. E (depends on C)
|
|
154
|
-
```
|
|
155
|
-
|
|
156
|
-
## Success Criteria
|
|
157
|
-
|
|
158
|
-
### SMART Criteria
|
|
159
|
-
|
|
160
|
-
| Letter | Meaning | Example |
|
|
161
|
-
|--------|---------|---------|
|
|
162
|
-
| **S**pecific | Clear and precise | "Reduce load time" → "Reduce LCP to < 2.5s" |
|
|
163
|
-
| **M**easurable | Quantifiable | "Improve UX" → "Increase conversion by 10%" |
|
|
164
|
-
| **A**chievable | Realistic | Based on resources and constraints |
|
|
165
|
-
| **R**elevant | Aligned with goals | Supports business objectives |
|
|
166
|
-
| **T**ime-bound | Has deadline | "Complete by Q2" |
|
|
167
|
-
|
|
168
|
-
### Acceptance Criteria Template
|
|
169
|
-
|
|
170
|
-
```markdown
|
|
171
|
-
## User Story
|
|
172
|
-
As a [user type], I want [goal] so that [benefit]
|
|
173
|
-
|
|
174
|
-
## Acceptance Criteria
|
|
175
|
-
- [ ] Given [context], when [action], then [outcome]
|
|
176
|
-
- [ ] Given [context], when [action], then [outcome]
|
|
177
|
-
- [ ] Given [context], when [action], then [outcome]
|
|
178
|
-
|
|
179
|
-
## Edge Cases
|
|
180
|
-
- [ ] Handle [edge case]
|
|
181
|
-
- [ ] Handle [edge case]
|
|
182
|
-
|
|
183
|
-
## Non-Functional
|
|
184
|
-
- [ ] Performance: [requirement]
|
|
185
|
-
- [ ] Security: [requirement]
|
|
186
|
-
- [ ] Accessibility: [requirement]
|
|
187
|
-
```
|
|
188
|
-
|
|
189
|
-
## Risk Assessment
|
|
190
|
-
|
|
191
|
-
### Risk Matrix
|
|
192
|
-
|
|
193
|
-
```
|
|
194
|
-
IMPACT
|
|
195
|
-
Low Med High
|
|
196
|
-
┌──────┬──────┬──────┐
|
|
197
|
-
High │Monitor│Plan │Act │
|
|
198
|
-
LIK ├──────┼──────┼──────┤
|
|
199
|
-
Med │Accept │Monitor│Plan │
|
|
200
|
-
├──────┼──────┼──────┤
|
|
201
|
-
Low │Accept │Accept │Monitor│
|
|
202
|
-
└──────┴──────┴──────┘
|
|
203
|
-
```
|
|
204
|
-
|
|
205
|
-
### Risk Register Template
|
|
206
|
-
|
|
207
|
-
```markdown
|
|
208
|
-
| ID | Risk | Likelihood | Impact | Score | Mitigation | Owner |
|
|
209
|
-
|----|------|------------|--------|-------|------------|-------|
|
|
210
|
-
| R1 | API changes | Medium | High | 6 | Version lock | Dev |
|
|
211
|
-
| R2 | Staff change | Low | High | 3 | Documentation | PM |
|
|
212
|
-
```
|
|
213
|
-
|
|
214
|
-
## Estimation Techniques
|
|
215
|
-
|
|
216
|
-
### Planning Poker
|
|
217
|
-
|
|
218
|
-
```
|
|
219
|
-
Team members estimate:
|
|
220
|
-
- Developer A: 5
|
|
221
|
-
- Developer B: 8
|
|
222
|
-
- Developer C: 5
|
|
223
|
-
- Developer D: 13
|
|
224
|
-
|
|
225
|
-
Discuss high/low outliers, reach consensus.
|
|
226
|
-
```
|
|
227
|
-
|
|
228
|
-
### Three-Point Estimation
|
|
229
|
-
|
|
230
|
-
```
|
|
231
|
-
Optimistic (O): 2 days
|
|
232
|
-
Most Likely (M): 4 days
|
|
233
|
-
Pessimistic (P): 8 days
|
|
234
|
-
|
|
235
|
-
Expected = (O + 4M + P) / 6 = (2 + 16 + 8) / 6 = 4.33 days
|
|
236
|
-
```
|
|
237
|
-
|
|
238
|
-
## Plan Review Checklist
|
|
239
|
-
|
|
240
|
-
- [ ] **Clear Objective**: What and why are clear
|
|
241
|
-
- [ ] **Complete Breakdown**: All tasks identified
|
|
242
|
-
- [ ] **Dependencies Mapped**: Order is logical
|
|
243
|
-
- [ ] **Sized Appropriately**: Tasks are achievable
|
|
244
|
-
- [ ] **Success Criteria**: Measurable outcomes defined
|
|
245
|
-
- [ ] **Risks Identified**: Major risks documented
|
|
246
|
-
- [ ] **Timeline Realistic**: Based on estimates
|
|
247
|
-
- [ ] **Stakeholders Aligned**: Key people approve
|
|
248
|
-
|
|
249
|
-
---
|
|
250
|
-
|
|
251
|
-
**A good plan eliminates ambiguity and enables execution.**
|
|
40
|
+
## Remember
|
|
41
|
+
A short plan that can be executed beats a perfect plan that nobody reads.
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: redteam-validation
|
|
3
|
+
description: Simulate attacker behavior and validate exploitability on sensitive paths.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Redteam Validation
|
|
7
|
+
|
|
8
|
+
## Philosophy
|
|
9
|
+
Do not guess whether a weakness is real. Prove the attack path, the impact, and the containment. This skill turns security concern into evidence.
|
|
10
|
+
|
|
11
|
+
## Use When
|
|
12
|
+
- `@security-auditor` found a likely issue and needs hostile simulation.
|
|
13
|
+
- A feature changes attack surface on auth, tenancy, uploads, secrets, or public endpoints.
|
|
14
|
+
- You need to validate abuse, escalation, enumeration, replay, or exfiltration paths.
|
|
15
|
+
|
|
16
|
+
## Core Moves
|
|
17
|
+
- Map the attacker goal and required prerequisites.
|
|
18
|
+
- Try the smallest reproducible exploit path.
|
|
19
|
+
- Record the exact conditions that make the issue possible.
|
|
20
|
+
- Measure impact and blast radius.
|
|
21
|
+
- Verify that the proposed fix actually closes the path.
|
|
22
|
+
|
|
23
|
+
## Output
|
|
24
|
+
- Validated attack path
|
|
25
|
+
- Impact and blast radius
|
|
26
|
+
- Reproduction notes
|
|
27
|
+
- Fix verification notes
|
|
28
|
+
- Follow-up owner
|
|
29
|
+
|
|
30
|
+
## Anti-Patterns
|
|
31
|
+
- Speculating without proof.
|
|
32
|
+
- Changing production code while investigating.
|
|
33
|
+
- Reporting findings without a concrete path to reproduce them.
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: security-gate
|
|
3
|
+
description: Decide when a change needs security review, redteam validation, or escalation.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Security Gate
|
|
7
|
+
|
|
8
|
+
## Philosophy
|
|
9
|
+
Security is a gate that keeps unsafe behavior from becoming the default path. Use this skill to classify risk early, choose the right reviewers, and keep the system operable.
|
|
10
|
+
|
|
11
|
+
## Use When
|
|
12
|
+
- A request touches auth, permissions, secrets, uploads, billing, webhooks, or public data surfaces.
|
|
13
|
+
- You need to decide whether `@security-auditor` alone is enough or whether a redteam phase is required.
|
|
14
|
+
- The blast radius or trust boundary is unclear.
|
|
15
|
+
|
|
16
|
+
## Core Moves
|
|
17
|
+
- Identify the trust boundary and the asset at risk.
|
|
18
|
+
- Classify the likely impact: exposure, takeover, privilege escalation, abuse, or denial.
|
|
19
|
+
- Pick the lightest safe path: no gate, security review, or full redteam validation.
|
|
20
|
+
- Define the proof required before approval.
|
|
21
|
+
- Keep the result short enough for `feature-lead` to act on immediately.
|
|
22
|
+
|
|
23
|
+
## Output
|
|
24
|
+
- Risk level
|
|
25
|
+
- Required reviewers
|
|
26
|
+
- Redteam needed or not
|
|
27
|
+
- Validation checklist
|
|
28
|
+
- Escalation path
|
|
29
|
+
|
|
30
|
+
## Anti-Patterns
|
|
31
|
+
- Treating all sensitive work as the same risk.
|
|
32
|
+
- Asking for redteam when a simple review is enough.
|
|
33
|
+
- Letting security checks become vague or endless.
|