sdlc-workflow 1.2.1 → 1.2.3
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 +15 -8
- package/bin/cli.js +157 -90
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -5,12 +5,13 @@ Scaffold SDLC workflow docs and templates into your project. Works with **Cursor
|
|
|
5
5
|
## Flow
|
|
6
6
|
|
|
7
7
|
```
|
|
8
|
-
User Request → PO → Business BA → Design (if app/web) → Architect → Technical BA → QE (docs) → Dev → QE (testing + UAT) → Security + PE audit → [fix loop until
|
|
8
|
+
User Request → PO → Business BA → Design (if app/web) → Architect → Technical BA → QE (docs) → Dev → QE (testing + UAT) → [bug-fix loop until 0 bugs] → Security + PE audit → [fix → retest → re-audit loop until 0 issues] → Deploy → Maintenance
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
- **Trigger:** When you send an **idea** or **feature request**, the agent should run the **full pipeline** (PO → … → Deploy) in sequence, one sub-agent/role per phase — not handle everything in one go or stop after one phase. See `docs/sdlc/ORCHESTRATION.md`.
|
|
12
12
|
- **Design (optional):** For app/web projects, after Business BA → create **design specs** (Markdown) + optional **HTML wireframes**; **PO + Business BA review** until approved; then Architect + Technical BA. UX drives technical decisions.
|
|
13
|
-
- **
|
|
13
|
+
- **QE bug-fix loop:** After QE finds bugs → Dev fixes → QE retests → repeat until 0 open bugs.
|
|
14
|
+
- **Security + Principle Engineer:** After QE sign-off (0 bugs) → security + logic audit; **fix → retest → re-audit loop** (Dev fixes → QE retests → re-audit) until 0 issues/vulnerabilities; sign-off before Deploy.
|
|
14
15
|
- **Each role runs as a sub-agent** (see `docs/sdlc/agents/`).
|
|
15
16
|
- **After completion** → deploy immediately with **Docker Compose** (local/staging) and **Kubernetes** (production) — `docs/sdlc/deploy/`.
|
|
16
17
|
- **Maintenance:** After Deploy → monitoring, bug fixes, patches, dependency updates, performance tuning — `docs/sdlc/maintenance/`.
|
|
@@ -20,22 +21,28 @@ User Request → PO → Business BA → Design (if app/web) → Architect → Te
|
|
|
20
21
|
|
|
21
22
|
## Usage
|
|
22
23
|
|
|
24
|
+
### `init` — Project setup
|
|
25
|
+
|
|
23
26
|
In your project directory:
|
|
24
27
|
|
|
25
28
|
```bash
|
|
26
29
|
npx sdlc-workflow init
|
|
27
30
|
```
|
|
28
31
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
**Project:**
|
|
32
|
+
Creates project-level files:
|
|
32
33
|
- `docs/sdlc/` — SDLC docs, templates, and phase folders
|
|
33
|
-
- `AGENTS.md` — Antigravity, Codex (universal project guidance)
|
|
34
|
-
- `.agents/skills/sdlc-workflow/` — Codex repo skill
|
|
35
34
|
- `.cursor/rules/sdlc-workflow.mdc` — Cursor rule
|
|
36
35
|
- `.claude/CLAUDE.md` — Claude Code instructions
|
|
36
|
+
- `AGENTS.md` — Antigravity, Codex (universal project guidance)
|
|
37
|
+
- `.agents/skills/sdlc-workflow/` — Codex repo skill
|
|
38
|
+
|
|
39
|
+
### `install` — Global setup
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
npx sdlc-workflow install
|
|
43
|
+
```
|
|
37
44
|
|
|
38
|
-
|
|
45
|
+
Installs global skills (run once per machine):
|
|
39
46
|
- `~/.cursor/skills/sdlc-workflow/` — Cursor skill
|
|
40
47
|
- `~/.codex/AGENTS.md` — Codex global instructions
|
|
41
48
|
- `~/.agents/skills/sdlc-workflow/` — Codex global skill
|
package/bin/cli.js
CHANGED
|
@@ -21,36 +21,50 @@ async function main() {
|
|
|
21
21
|
process.exit(0);
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
if (command
|
|
25
|
-
console.log("
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
24
|
+
if (command === "init") {
|
|
25
|
+
console.log("Scaffolding SDLC workflow (project)...\n");
|
|
26
|
+
try {
|
|
27
|
+
await scaffold(cwd);
|
|
28
|
+
await installClaudeSkill(cwd);
|
|
29
|
+
await installAgentsMd(cwd);
|
|
30
|
+
console.log("\nDone.");
|
|
31
|
+
console.log(" - Project: docs/sdlc/, .cursor/rules/, .claude/, AGENTS.md, .agents/skills/");
|
|
32
|
+
console.log("\nRun `npx sdlc-workflow install` to set up global skills (Cursor, Codex).");
|
|
33
|
+
} catch (err) {
|
|
34
|
+
console.error("Error:", err.message);
|
|
35
|
+
process.exit(1);
|
|
36
|
+
}
|
|
37
|
+
return;
|
|
35
38
|
}
|
|
36
39
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
console.error("Error:", err.message);
|
|
52
|
-
process.exit(1);
|
|
40
|
+
if (command === "install") {
|
|
41
|
+
console.log("Installing SDLC workflow (global)...\n");
|
|
42
|
+
try {
|
|
43
|
+
const home = homedir();
|
|
44
|
+
await installCursorSkill(home);
|
|
45
|
+
await installCodexSkill(home);
|
|
46
|
+
console.log("\nDone.");
|
|
47
|
+
console.log(" - Cursor: ~/.cursor/skills/sdlc-workflow/");
|
|
48
|
+
console.log(" - Codex: ~/.codex/AGENTS.md, ~/.agents/skills/sdlc-workflow/");
|
|
49
|
+
} catch (err) {
|
|
50
|
+
console.error("Error:", err.message);
|
|
51
|
+
process.exit(1);
|
|
52
|
+
}
|
|
53
|
+
return;
|
|
53
54
|
}
|
|
55
|
+
|
|
56
|
+
console.log("Usage: npx sdlc-workflow <command>");
|
|
57
|
+
console.log("");
|
|
58
|
+
console.log("Commands:");
|
|
59
|
+
console.log(" init Scaffold SDLC docs and templates into current project");
|
|
60
|
+
console.log(" install Install global skills (Cursor, Codex) to home directory");
|
|
61
|
+
console.log(" version Print current version");
|
|
62
|
+
console.log("");
|
|
63
|
+
console.log("Examples:");
|
|
64
|
+
console.log(" npx sdlc-workflow init # project-level setup");
|
|
65
|
+
console.log(" npx sdlc-workflow install # global setup (~/.cursor, ~/.codex, ~/.agents)");
|
|
66
|
+
console.log(" npx sdlc-workflow version");
|
|
67
|
+
process.exit(1);
|
|
54
68
|
}
|
|
55
69
|
|
|
56
70
|
async function installCursorSkill(home) {
|
|
@@ -240,17 +254,19 @@ globs: docs/sdlc/**/*, **/*.md
|
|
|
240
254
|
|
|
241
255
|
**On idea/feature request:** Trigger full pipeline (PO → … → Deploy). One role per phase; run phases in sequence. (Single agent = simulate by switching role each phase.) See docs/sdlc/SDLC-WORKFLOW.md and docs/sdlc/agents/.
|
|
242
256
|
|
|
257
|
+
**Memory requirement:** Before executing any new action, recall relevant memories (project context, user preferences, past decisions) to ensure continuity and avoid repeating mistakes.
|
|
258
|
+
|
|
243
259
|
1. **PO** — PRD, user stories → docs/sdlc/po/{epic-slug}/ (one folder per epic)
|
|
244
260
|
2. **Business BA** — FRS, process flows → docs/sdlc/ba/business/{epic-slug}/ (one folder per epic)
|
|
245
261
|
3. **Design (if app/web)** — Design specs + wireframes → docs/sdlc/design/{epic-slug}/; **PO + BA review** → loop until approved
|
|
246
262
|
4. **Architect** — ADRs, diagrams → docs/sdlc/architecture/
|
|
247
263
|
5. **Technical BA** — API specs, team breakdown → docs/sdlc/ba/technical/
|
|
248
264
|
6. **QE (docs)** — Test plan, test cases → docs/sdlc/qe/{epic-slug}/ (one folder per epic)
|
|
249
|
-
7. **Dev** — After docs phase → **run implementation immediately**. Tech Lead + implementation roles → docs/sdlc/dev/{role}/
|
|
250
|
-
8. **QE (testing + UAT)** — QE Lead
|
|
265
|
+
7. **Dev** — After docs phase → **run implementation immediately**. Tech Lead (highest model: planning, logic, review) + implementation roles (cost-efficient model: code execution) → docs/sdlc/dev/{role}/
|
|
266
|
+
8. **QE (testing + UAT)** — QE Lead + Senior QE + UAT; **bug-fix loop** (bugs → Dev fix → QE retest) until 0 bugs → docs/sdlc/qe/{epic-slug}/
|
|
251
267
|
9. **Security** — Audit security risk → docs/sdlc/security/
|
|
252
268
|
10. **Principle Engineer** — Audit logic, architecture → docs/sdlc/principle-engineer/
|
|
253
|
-
11. **Deploy** — Docker Compose + K8s → docs/sdlc/deploy/ (after Security + PE sign-off; fix loop until
|
|
269
|
+
11. **Deploy** — Docker Compose + K8s → docs/sdlc/deploy/ (after Security + PE sign-off; fix → retest → re-audit loop until 0 issues)
|
|
254
270
|
12. **Maintenance** — Monitoring, bug fixes, patches, dependency updates → docs/sdlc/maintenance/
|
|
255
271
|
|
|
256
272
|
**Each role runs as a sub-agent.** Design before Architect (UX drives tech). See docs/sdlc/agents/
|
|
@@ -269,9 +285,10 @@ Sequential workflow; **each role runs as a sub-agent**. Each phase produces docs
|
|
|
269
285
|
## Trigger and orchestration (mandatory)
|
|
270
286
|
|
|
271
287
|
**When the user sends an idea, feature request, or new requirement:**
|
|
272
|
-
1. **
|
|
273
|
-
2. **
|
|
274
|
-
3. **
|
|
288
|
+
1. **Recall memory** — Before executing any new action, recall relevant memories (project context, user preferences, past decisions) to ensure continuity and avoid repeating mistakes.
|
|
289
|
+
2. **Trigger the pipeline** and run it **continuously through deployment** (Phase 1 → 2 → … → 7).
|
|
290
|
+
3. **One role per phase.** For each phase, act **only** as that role (e.g. only PO in phase 1, only Business BA in phase 2). Produce that phase's outputs into the correct folder, then **continue to the next phase** without waiting for the user.
|
|
291
|
+
3. **Run in order:** PO → Business BA → **Design (if app/web, PO+BA review loop)** → Architect → Technical BA → QE (docs) → Dev → QE (testing + UAT) → **QE bug-fix loop until 0 bugs → Security + Principle Engineer audit → fix → retest → re-audit loop until 0 issues** → Deploy → Maintenance. Do not stop after one phase unless the user explicitly asks to stop.
|
|
275
292
|
|
|
276
293
|
**Note:** In Cursor and similar tools there is a single agent per conversation. "Sub-agent" means **one role per phase** — the same agent must adopt exactly one role per phase and run phases in sequence (do not mix roles in one step). If the platform later supports spawning separate agents per phase, use that; otherwise this single agent simulates the pipeline by switching role each phase.
|
|
277
294
|
|
|
@@ -280,7 +297,7 @@ Sequential workflow; **each role runs as a sub-agent**. Each phase produces docs
|
|
|
280
297
|
## Flow Overview
|
|
281
298
|
|
|
282
299
|
\`\`\`
|
|
283
|
-
User Request → PO → Business BA → Design (if app/web) → Architect → Technical BA → QE (docs) → Dev → QE (testing + UAT) → Security + PE audit → [fix loop until
|
|
300
|
+
User Request → PO → Business BA → Design (if app/web) → Architect → Technical BA → QE (docs) → Dev → QE (testing + UAT) → [bug-fix loop until 0 bugs] → Security + PE audit → [fix → retest → re-audit loop until 0 issues] → Deploy → Maintenance
|
|
284
301
|
\`\`\`
|
|
285
302
|
|
|
286
303
|
**Determine current phase** before acting. If user sent an idea, assume Phase 0 and start from Phase 1.
|
|
@@ -308,7 +325,7 @@ User Request → PO → Business BA → Design (if app/web) → Architect → Te
|
|
|
308
325
|
|
|
309
326
|
**When:** Project has UI (web, mobile app). Skip for API-only, library, CLI, data/ML, platform without UI.
|
|
310
327
|
|
|
311
|
-
**Role**: Create UI/UX design specs (Markdown) and optional HTML wireframes from idea + PO + Business BA docs. Design **before** Architect so UX drives technical decisions.
|
|
328
|
+
**Role**: Create UI/UX design specs (Markdown) and optional HTML wireframes from idea + PO + Business BA docs. Design **before** Architect so UX drives technical decisions. **Anti AI pattern**: designs must NOT look AI-generated.
|
|
312
329
|
**Output**: \`docs/sdlc/design/{epic-slug}/\` — design-spec.md + optional wireframes/.
|
|
313
330
|
|
|
314
331
|
**Review loop:**
|
|
@@ -321,6 +338,7 @@ User Request → PO → Business BA → Design (if app/web) → Architect → Te
|
|
|
321
338
|
|
|
322
339
|
**Role**: Design system architecture and technology choices.
|
|
323
340
|
**Deliverables**: System context, container diagram, ADRs, tech stack, cross-cutting concerns.
|
|
341
|
+
**Engineering principles**: SOLID, DRY, KISS, SoC, High Availability, CQRS, Zero Trust, EDA, Statelessness, Disposability, Backing Services, Config, Codebase, Database Sharding/Partitioning, Logging & Tracing, Monitoring & Alerting.
|
|
324
342
|
**Input**: Business BA + Design (if app/web) — design informs architecture.
|
|
325
343
|
**Output**: \`docs/sdlc/architecture/\` — **Handoff to Technical BA.**
|
|
326
344
|
|
|
@@ -342,8 +360,8 @@ User Request → PO → Business BA → Design (if app/web) → Architect → Te
|
|
|
342
360
|
**Trigger**: After docs are done (Technical BA + QE docs). **Dev runs implementation immediately.**
|
|
343
361
|
|
|
344
362
|
**Roles** (vary by project — use only what applies; see \`docs/sdlc/dev/implementation-roles.template.md\`). All implementation roles are **Senior (10+ yrs)**:
|
|
345
|
-
- **Tech Lead (15+ yrs)
|
|
346
|
-
- **Senior Developer (10+ yrs)
|
|
363
|
+
- **Tech Lead (15+ yrs)** — **highest model** (e.g. Opus): Planning, logic analysis, architecture decisions, tech stack, code review & merge. Docs: \`docs/sdlc/dev/tech-lead/\`
|
|
364
|
+
- **Senior Developer (10+ yrs)** — **cost-efficient model** (e.g. Haiku): Implement per Tech Lead's spec. Docs: \`docs/sdlc/dev/senior-developer/\`
|
|
347
365
|
- **Senior Frontend (10+ yrs)**: Web UI. Docs: \`docs/sdlc/dev/frontend/\`
|
|
348
366
|
- **Senior Backend (10+ yrs)**: API, services. Docs: \`docs/sdlc/dev/backend/\`
|
|
349
367
|
- **Senior Mobile (10+ yrs)**: iOS/Android/cross-platform. Docs: \`docs/sdlc/dev/mobile/\`
|
|
@@ -351,29 +369,32 @@ User Request → PO → Business BA → Design (if app/web) → Architect → Te
|
|
|
351
369
|
- **Senior Data/ML (10+ yrs)**: ETL, models. Docs: \`docs/sdlc/dev/data-ml/\`
|
|
352
370
|
- **Senior Platform (10+ yrs)**: Infra, CI/CD. Docs: \`docs/sdlc/dev/platform/\`
|
|
353
371
|
|
|
354
|
-
**
|
|
372
|
+
**Model optimization**: Tech Lead uses the **highest-tier model** (e.g. Claude Opus) for planning, architecture decisions, logic analysis, and code review. Implementation roles use a **cost-efficient model** (e.g. Claude Haiku) to execute code from Tech Lead's specs. This maximizes quality on critical thinking while reducing cost on execution.
|
|
373
|
+
|
|
374
|
+
**Requirements**: Unit Test coverage **≥ 90%** (TDD/BDD); Clean Code, SOLID, DRY, KISS, SoC, POLS.
|
|
355
375
|
|
|
356
376
|
**Output**: Code + unit tests. **Handoff to QE (testing + UAT).**
|
|
357
377
|
|
|
358
|
-
## Phase 6: QE (Testing phase — automation)
|
|
378
|
+
## Phase 6: QE (Testing phase — automation + UAT) → bug-fix loop
|
|
359
379
|
|
|
360
380
|
**Trigger**: After Dev completes unit tests.
|
|
361
|
-
**Role**: Write and run **automation tests**, sign-off.
|
|
381
|
+
**Role**: Write and run **automation tests** + **UAT**, sign-off.
|
|
362
382
|
|
|
363
383
|
**Roles**:
|
|
364
384
|
- **QE Lead (15+ yrs automation)**: Test strategy, framework choice, automation architecture, review test code. Output per epic: \`docs/sdlc/qe/{epic-slug}/\`
|
|
365
385
|
- **Senior QE (10+ yrs)**: Write automation tests per QE Lead's strategy. Output per epic: \`docs/sdlc/qe/{epic-slug}/\` (e.g. automation/ or test files there)
|
|
386
|
+
- **UAT**: Verify implementation against original user stories and acceptance criteria from PO.
|
|
366
387
|
|
|
367
|
-
**
|
|
388
|
+
**Bug-fix loop**: If QE finds bugs or test failures → **Dev fixes** → **QE retests**. **Repeat until all tests pass and UAT approved (0 open bugs).** Only then → **Handoff to Security + Principle Engineer.**
|
|
368
389
|
|
|
369
|
-
## Phase 8: Security + Principle Engineer (audit → fix loop)
|
|
390
|
+
## Phase 8: Security + Principle Engineer (audit → fix → retest → re-audit loop)
|
|
370
391
|
|
|
371
|
-
**Trigger**: After QE testing sign-off.
|
|
392
|
+
**Trigger**: After QE testing sign-off (0 open bugs).
|
|
372
393
|
**Roles** (can run in parallel):
|
|
373
394
|
- **Security team**: Audit security risk (OWASP, auth, secrets, infra). Output: \`docs/sdlc/security/\`
|
|
374
395
|
- **Principle Engineer**: Audit logic, architecture alignment, correctness. Output: \`docs/sdlc/principle-engineer/\`
|
|
375
396
|
|
|
376
|
-
**Fix loop**: If issues found → **Dev fixes** →
|
|
397
|
+
**Fix → retest → re-audit loop**: If issues/vulnerabilities found → **Dev fixes** → **QE retests** (verify fix, no regression) → **Security + PE re-audit**. **Repeat until 0 issues/vulnerabilities remain.** Only when sign-off → **Handoff to Deploy.**
|
|
377
398
|
|
|
378
399
|
## Phase 9: Deploy
|
|
379
400
|
|
|
@@ -393,8 +414,8 @@ User Request → PO → Business BA → Design (if app/web) → Architect → Te
|
|
|
393
414
|
| 5 | Technical BA | API specs, tech breakdown |
|
|
394
415
|
| 6 | QE (docs) | Test plan, test cases |
|
|
395
416
|
| 7 | Dev | Code, unit tests (≥90%), security shift-left |
|
|
396
|
-
| 8 | QE (testing + UAT) |
|
|
397
|
-
| 9 | Security +
|
|
417
|
+
| 8 | QE (testing + UAT) | Automation, UAT; **bug-fix loop** (QE finds bugs → Dev fix → QE retest) until 0 open bugs |
|
|
418
|
+
| 9 | Security + PE | Audit; **fix → retest → re-audit loop** (Dev fix → QE retest → re-audit) until 0 issues; sign-off → Deploy |
|
|
398
419
|
| 10 | Deploy | Docker Compose + K8s |
|
|
399
420
|
| 11 | Maintenance | Monitoring, bug fixes, patches, dependency updates |
|
|
400
421
|
|
|
@@ -435,14 +456,14 @@ TC-001: [Scenario] — Precondition, Steps, Expected, Links to AC
|
|
|
435
456
|
- Senior QE (10+ yrs): write automation tests → docs/sdlc/qe/{epic-slug}/
|
|
436
457
|
|
|
437
458
|
## Dev Team
|
|
438
|
-
- Tech Lead (15+ yrs):
|
|
439
|
-
- Senior Dev (10+ yrs):
|
|
440
|
-
- By project (all Senior 10+ yrs): Senior Frontend, Backend, Mobile, Embedded, Data/ML, Platform → docs/sdlc/dev/{role}/
|
|
459
|
+
- Tech Lead (15+ yrs) — **highest model** (e.g. Opus): planning, logic, architecture decisions, code review → docs/sdlc/dev/tech-lead/
|
|
460
|
+
- Senior Dev (10+ yrs) — **cost-efficient model** (e.g. Haiku): execute code from Tech Lead specs, Unit Test ≥90% → docs/sdlc/dev/senior-developer/
|
|
461
|
+
- By project (all Senior 10+ yrs, cost-efficient model): Senior Frontend, Backend, Mobile, Embedded, Data/ML, Platform → docs/sdlc/dev/{role}/
|
|
441
462
|
|
|
442
463
|
## Security + Principle Engineer (after implementation)
|
|
443
464
|
- Security team: audit security risk → docs/sdlc/security/
|
|
444
465
|
- Principle Engineer: audit logic, architecture → docs/sdlc/principle-engineer/
|
|
445
|
-
- **Fix loop**: If issues → Dev fixes → re-audit; repeat until
|
|
466
|
+
- **Fix loop**: If issues → Dev fixes → QE retests → re-audit; repeat until 0 issues. Sign-off → Deploy
|
|
446
467
|
|
|
447
468
|
## Deploy
|
|
448
469
|
After Security + Principle Engineer sign-off → Docker Compose + K8s. See docs/sdlc/deploy/
|
|
@@ -455,17 +476,19 @@ const AGENTS_MD_CONTENT = `## SDLC Workflow
|
|
|
455
476
|
|
|
456
477
|
**Trigger:** When the user sends an **idea**, **feature request**, or **requirement**, run the full pipeline (Phase 1 → 7) in sequence. One role (sub-agent) per phase; produce outputs then continue to the next. Do not stop after one phase until deployment unless the user asks to stop.
|
|
457
478
|
|
|
479
|
+
**Memory requirement:** Before executing any new action, recall relevant memories (project context, user preferences, past decisions) to ensure continuity and avoid repeating mistakes.
|
|
480
|
+
|
|
458
481
|
When working on requirements, features, or handoffs, follow these phases:
|
|
459
482
|
|
|
460
483
|
1. **PO** — PRD, user stories → docs/sdlc/po/{epic-slug}/ (one folder per epic)
|
|
461
484
|
2. **Business BA** — FRS, process flows → docs/sdlc/ba/business/{epic-slug}/ (one folder per epic)
|
|
462
|
-
3. **Design (if app/web)** — Design specs + wireframes → docs/sdlc/design/{epic-slug}/; **PO + BA review** until approved
|
|
485
|
+
3. **Design (if app/web)** — Design specs + wireframes (**Anti AI**: no AI-looking designs) → docs/sdlc/design/{epic-slug}/; **PO + BA review** until approved
|
|
463
486
|
4. **Architect** — ADRs, diagrams → docs/sdlc/architecture/
|
|
464
487
|
5. **Technical BA** — API specs, team breakdown → docs/sdlc/ba/technical/
|
|
465
488
|
6. **QE (docs)** — Test plan, test cases → docs/sdlc/qe/{epic-slug}/ (one folder per epic)
|
|
466
|
-
7. **Dev** — After docs phase → **run implementation immediately**. Tech Lead + Senior Dev → docs/sdlc/dev/{role}/
|
|
467
|
-
8. **QE (testing + UAT)** — QE Lead
|
|
468
|
-
9. **Security + Principle Engineer** — Security + logic audit; **fix loop** (Dev fixes → re-audit) until
|
|
489
|
+
7. **Dev** — After docs phase → **run implementation immediately**. Tech Lead (highest model: planning, logic, review) + Senior Dev (cost-efficient model: code execution) → docs/sdlc/dev/{role}/
|
|
490
|
+
8. **QE (testing + UAT)** — QE Lead + Senior QE + UAT; **bug-fix loop** (bugs → Dev fix → QE retest) until 0 bugs → docs/sdlc/qe/{epic-slug}/ (same folder per epic)
|
|
491
|
+
9. **Security + Principle Engineer** — Security + logic audit; **fix → retest → re-audit loop** (Dev fixes → QE retests → re-audit) until 0 issues; sign-off before Deploy
|
|
469
492
|
10. **Deploy** — Docker Compose + K8s → docs/sdlc/deploy/
|
|
470
493
|
11. **Maintenance** — Monitoring, bug fixes, patches, dependency updates → docs/sdlc/maintenance/
|
|
471
494
|
|
|
@@ -476,15 +499,17 @@ const CLAUDE_SDLC_CONTENT = `## SDLC Workflow
|
|
|
476
499
|
|
|
477
500
|
**Trigger on idea:** When the user sends an idea, feature request, or requirement, run the pipeline continuously: Phase 1 (PO) → 2 → … → Deploy → Maintenance. One role per phase (single agent = switch role each phase). Do not stop after one phase unless the user asks.
|
|
478
501
|
|
|
502
|
+
**Memory requirement:** Before executing any new action, recall relevant memories (project context, user preferences, past decisions) to ensure continuity and avoid repeating mistakes.
|
|
503
|
+
|
|
479
504
|
1. **PO** — PRD, user stories, feasibility assessment → docs/sdlc/po/{epic-slug}/ (one folder per epic)
|
|
480
505
|
2. **Business BA** — FRS, NFR, process flows → docs/sdlc/ba/business/{epic-slug}/ (one folder per epic)
|
|
481
|
-
3. **Design (if app/web)** — Design specs + wireframes → docs/sdlc/design/{epic-slug}/; **PO + BA review** until approved
|
|
482
|
-
4. **Architect** — ADRs, diagrams, security by design → docs/sdlc/architecture/
|
|
506
|
+
3. **Design (if app/web)** — Design specs + wireframes (**Anti AI**: no AI-looking designs) → docs/sdlc/design/{epic-slug}/; **PO + BA review** until approved
|
|
507
|
+
4. **Architect** — ADRs, diagrams, security by design, engineering principles (SOLID, DRY, KISS, CQRS, Zero Trust, EDA, HA) → docs/sdlc/architecture/
|
|
483
508
|
5. **Technical BA** — API specs, team breakdown → docs/sdlc/ba/technical/
|
|
484
509
|
6. **QE (docs)** — Test plan, test cases → docs/sdlc/qe/{epic-slug}/ (one folder per epic)
|
|
485
|
-
7. **Dev** — After docs phase → **run implementation immediately**. Tech Lead + Senior Dev → docs/sdlc/dev/{role}/. Security shift-left: OWASP checks, dependency audit in CI
|
|
486
|
-
8. **QE (testing + UAT)** — QE Lead
|
|
487
|
-
9. **Security + Principle Engineer** — Security + logic audit; **fix loop** (Dev fixes → re-audit) until
|
|
510
|
+
7. **Dev** — After docs phase → **run implementation immediately**. Tech Lead (highest model: planning, logic, review) + Senior Dev (cost-efficient model: code execution) → docs/sdlc/dev/{role}/. Clean Code, SOLID, DRY, KISS, TDD/BDD. Security shift-left: OWASP checks, dependency audit in CI
|
|
511
|
+
8. **QE (testing + UAT)** — QE Lead + Senior QE + UAT; **bug-fix loop** (bugs → Dev fix → QE retest) until 0 bugs → docs/sdlc/qe/{epic-slug}/ (same folder per epic)
|
|
512
|
+
9. **Security + Principle Engineer** — Security + logic audit; **fix → retest → re-audit loop** (Dev fixes → QE retests → re-audit) until 0 issues; sign-off before Deploy
|
|
488
513
|
10. **Deploy** — Docker Compose + K8s → docs/sdlc/deploy/
|
|
489
514
|
11. **Maintenance** — Monitoring, bug fixes, patches, dependency updates → docs/sdlc/maintenance/
|
|
490
515
|
|
|
@@ -499,13 +524,14 @@ For Cursor, see .cursor/rules/sdlc-workflow.mdc
|
|
|
499
524
|
## Trigger and orchestration
|
|
500
525
|
|
|
501
526
|
- **When the user sends an idea, feature request, or requirement:** Start the pipeline and run it **continuously through deployment** (Phase 1 → 2 → … → 7). Do not handle everything in one main-agent response.
|
|
527
|
+
- **Memory requirement:** Before executing any new action, recall relevant memories (project context, user preferences, past decisions) to ensure continuity and avoid repeating mistakes.
|
|
502
528
|
- **One role per phase:** Execute each phase as that role only; write artifacts to the right folder; then continue to the next phase. In Cursor there is one agent — it simulates the pipeline by adopting one role per phase in sequence.
|
|
503
529
|
- **Do not stop** after PO or any single phase unless the user explicitly asks to stop. Run through to Deploy.
|
|
504
530
|
|
|
505
531
|
## Flow
|
|
506
532
|
|
|
507
533
|
\`\`\`
|
|
508
|
-
User Request → PO → Business BA → Design (if app/web) → Architect → Technical BA → QE (docs) → Dev → QE (testing + UAT) → Security + PE audit → [fix loop] → Deploy → Maintenance
|
|
534
|
+
User Request → PO → Business BA → Design (if app/web) → Architect → Technical BA → QE (docs) → Dev → QE (testing + UAT) → [bug-fix loop until 0 bugs] → Security + PE audit → [fix → retest → re-audit loop until 0 issues] → Deploy → Maintenance
|
|
509
535
|
\`\`\`
|
|
510
536
|
|
|
511
537
|
## Phase Checklist
|
|
@@ -520,8 +546,8 @@ User Request → PO → Business BA → Design (if app/web) → Architect → Te
|
|
|
520
546
|
| 5 | Technical BA | API specs, tech breakdown |
|
|
521
547
|
| 6 | QE (docs) | Test plan, test cases |
|
|
522
548
|
| 7 | Dev | Code, unit tests (≥90%), security shift-left |
|
|
523
|
-
| 8 | QE (testing + UAT) |
|
|
524
|
-
| 9 | Security +
|
|
549
|
+
| 8 | QE (testing + UAT) | Automation, UAT; **bug-fix loop** (QE finds bugs → Dev fix → QE retest) until 0 open bugs |
|
|
550
|
+
| 9 | Security + PE | Audit; **fix → retest → re-audit loop** (Dev fix → QE retest → re-audit) until 0 issues; sign-off → Deploy |
|
|
525
551
|
| 10 | Deploy | Docker Compose + K8s |
|
|
526
552
|
| 11 | Maintenance | Monitoring, bug fixes, patches, dependency updates |
|
|
527
553
|
|
|
@@ -538,13 +564,13 @@ User Request → PO → Business BA → Design (if app/web) → Architect → Te
|
|
|
538
564
|
- Output: \`docs/sdlc/ba/business/{epic-slug}/\` — **one folder per epic** (same slug as PO); do not merge into one file
|
|
539
565
|
|
|
540
566
|
### Phase 3: Design (optional — app/web only)
|
|
541
|
-
- Create design specs (Markdown) + optional HTML wireframes based on idea + PO + BA docs. **Design before Architect so UX drives tech.**
|
|
567
|
+
- Create design specs (Markdown) + optional HTML wireframes based on idea + PO + BA docs. **Design before Architect so UX drives tech.** **Anti AI pattern**: designs must NOT look AI-generated — prioritize unique, human-feeling aesthetics.
|
|
542
568
|
- Output: \`docs/sdlc/design/{epic-slug}/\` — design-spec.md + optional wireframes/
|
|
543
569
|
- **PO + Business BA review**: Both check design vs epic/FRS; if not aligned → feedback → redesign loop until approved
|
|
544
570
|
- When approved → handoff to Architect
|
|
545
571
|
|
|
546
572
|
### Phase 4: Architect
|
|
547
|
-
- System context, container diagram, ADRs, tech stack, **security by design** (threat model, auth architecture, encryption, secrets mgmt). Input: Business BA (FR + NFR) + Design (if app/web)
|
|
573
|
+
- System context, container diagram, ADRs, tech stack, **security by design** (threat model, auth architecture, encryption, secrets mgmt). **Engineering principles**: SOLID, DRY, KISS, SoC, High Availability, CQRS, Zero Trust, EDA, Statelessness, Backing Services, Config, Logging & Tracing, Monitoring & Alerting. Input: Business BA (FR + NFR) + Design (if app/web)
|
|
548
574
|
- Output: \`docs/sdlc/architecture/\`
|
|
549
575
|
|
|
550
576
|
### Phase 5: Technical BA
|
|
@@ -559,19 +585,20 @@ User Request → PO → Business BA → Design (if app/web) → Architect → Te
|
|
|
559
585
|
### Phase 5b: Dev Teams
|
|
560
586
|
- **Tech Lead (15+ yrs)**: Tech stack, review & merge, **security review (Shift Left)**: OWASP check, dependency audit, SAST in CI. Output: \`docs/sdlc/dev/tech-lead/\`
|
|
561
587
|
- **Implementation roles** (all Senior 10+ yrs; use only what applies): Senior Dev, Senior Frontend, Senior Backend, Senior Mobile, Senior Embedded, Senior Data/ML, Senior Platform → \`docs/sdlc/dev/{role}/\`. See \`implementation-roles.template.md\`.
|
|
562
|
-
- **Requirement**: Unit Test coverage **≥ 90
|
|
588
|
+
- **Requirement**: Unit Test coverage **≥ 90%** (TDD/BDD); Clean Code, SOLID, DRY, KISS, SoC, POLS; security practices (input validation, no hardcoded secrets)
|
|
563
589
|
- **Then**: QE starts testing phase
|
|
564
590
|
|
|
565
|
-
### Phase 6: QE (Testing — automation + UAT)
|
|
591
|
+
### Phase 6: QE (Testing — automation + UAT) → bug-fix loop
|
|
566
592
|
- **QE Lead (15+ yrs automation)**: Test strategy, framework choice, automation architecture; review test code. Output per epic: \`docs/sdlc/qe/{epic-slug}/\`
|
|
567
593
|
- **Senior QE (10+ yrs)**: Write automation tests per QE Lead's strategy. Output per epic: \`docs/sdlc/qe/{epic-slug}/\`
|
|
568
594
|
- **UAT (User Acceptance Testing)**: Verify implementation against original user stories and acceptance criteria from PO; confirm business requirements are met from end-user perspective. Output: \`qe/{epic-slug}/uat-results.md\`
|
|
569
|
-
- **
|
|
595
|
+
- **Bug-fix loop**: If QE finds bugs or test failures → **Dev fixes** → **QE retests**. **Repeat until all tests pass and UAT approved (0 open bugs).** Only then → handoff to Security + PE
|
|
596
|
+
- **Handoff to Security + Principle Engineer** (only after 0 open bugs)
|
|
570
597
|
|
|
571
|
-
### Phase 7: Security + Principle Engineer (audit → fix loop)
|
|
598
|
+
### Phase 7: Security + Principle Engineer (audit → fix → retest loop)
|
|
572
599
|
- **Security team**: Audit security risk (OWASP, auth, secrets, infra). Output: \`docs/sdlc/security/\`
|
|
573
600
|
- **Principle Engineer**: Audit logic, architecture alignment, correctness. Output: \`docs/sdlc/principle-engineer/\`
|
|
574
|
-
- **Fix loop**: If issues found → Dev fixes → Security + PE re-audit
|
|
601
|
+
- **Fix → retest → re-audit loop**: If issues/vulnerabilities found → **Dev fixes** → **QE retests** (verify fix, no regression) → **Security + PE re-audit**. **Repeat until 0 issues/vulnerabilities remain.** Sign-off → **Handoff to Deploy**
|
|
575
602
|
|
|
576
603
|
### Phase 8: Deploy
|
|
577
604
|
- After Security + Principle Engineer sign-off → deploy with **Docker Compose** (local/staging) and **Kubernetes** (production)
|
|
@@ -611,8 +638,8 @@ There is **one agent** per conversation. It simulates the pipeline by **adopting
|
|
|
611
638
|
- [ ] Phase 5 Technical BA: \`docs/sdlc/ba/technical/\`
|
|
612
639
|
- [ ] Phase 6 QE docs: \`docs/sdlc/qe/{epic-slug}/\` (one folder per epic)
|
|
613
640
|
- [ ] Phase 7 Dev: code + unit tests, \`docs/sdlc/dev/\`
|
|
614
|
-
- [ ] Phase 8 QE testing + UAT: automation, UAT
|
|
615
|
-
- [ ] Phase 9 Security + Principle Engineer: \`docs/sdlc/security/\`, \`docs/sdlc/principle-engineer
|
|
641
|
+
- [ ] Phase 8 QE testing + UAT: automation, UAT; **bug-fix loop** (bugs → Dev fix → QE retest) until 0 open bugs → \`docs/sdlc/qe/{epic-slug}/\`
|
|
642
|
+
- [ ] Phase 9 Security + Principle Engineer: audit → **fix → retest → re-audit loop** until 0 issues/vulnerabilities; sign-off → \`docs/sdlc/security/\`, \`docs/sdlc/principle-engineer/\`
|
|
616
643
|
- [ ] Phase 10 Deploy: \`docs/sdlc/deploy/\`, Docker Compose + K8s
|
|
617
644
|
- [ ] Phase 11 Maintenance: monitoring, bug fixes, patches, dependency updates → \`docs/sdlc/maintenance/\`
|
|
618
645
|
`;
|
|
@@ -630,8 +657,8 @@ Deploy: docs/sdlc/deploy/ (Docker Compose + K8s)
|
|
|
630
657
|
- **Business BA**: \`docs/sdlc/ba/business/{epic-slug}/\` — same slug as PO. Files: functional-requirements.md, process-flows.md. Do not merge all epics into one file.
|
|
631
658
|
- **Design (if app/web)**: \`docs/sdlc/design/{epic-slug}/\` — design specs (Markdown) + optional HTML wireframes; PO+BA review until approved.
|
|
632
659
|
- **QE**: \`docs/sdlc/qe/{epic-slug}/\` — same slug as PO/BA. Files: test-plan.md, test-cases.md, automation. Do not put all epics in one file.
|
|
633
|
-
- **Security**: \`docs/sdlc/security/\` — security audit; fix loop until
|
|
634
|
-
- **Principle Engineer**: \`docs/sdlc/principle-engineer/\` — logic audit; fix loop until
|
|
660
|
+
- **Security**: \`docs/sdlc/security/\` — security audit; fix → retest → re-audit loop until 0 issues
|
|
661
|
+
- **Principle Engineer**: \`docs/sdlc/principle-engineer/\` — logic audit; fix → retest → re-audit loop until 0 issues
|
|
635
662
|
- **Maintenance**: \`docs/sdlc/maintenance/\` — monitoring, bug fixes, patches, runbooks
|
|
636
663
|
`;
|
|
637
664
|
|
|
@@ -657,9 +684,9 @@ Every role in the SDLC runs as a **sub-agent**. Each phase is assigned to a corr
|
|
|
657
684
|
| Senior Platform | platform | Infra spec | CI/CD, observability, docs/sdlc/dev/platform/ |
|
|
658
685
|
| QE Lead | qe-lead | Test plan | 15+ yrs automation: strategy, framework, review → docs/sdlc/qe/{epic-slug}/ |
|
|
659
686
|
| Senior QE | senior-qe | Test plan + framework | Automation tests → docs/sdlc/qe/{epic-slug}/ |
|
|
660
|
-
| Security | security | Code, infra | Security audit → docs/sdlc/security/; fix loop until
|
|
661
|
-
| Principle Engineer | principle-engineer | Code, architecture | Logic audit → docs/sdlc/principle-engineer/; fix loop until
|
|
662
|
-
| Deploy | deploy | Security + PE sign-off (after
|
|
687
|
+
| Security | security | Code, infra | Security audit → docs/sdlc/security/; fix → retest → re-audit loop until 0 issues |
|
|
688
|
+
| Principle Engineer | principle-engineer | Code, architecture | Logic audit → docs/sdlc/principle-engineer/; fix → retest → re-audit loop until 0 issues |
|
|
689
|
+
| Deploy | deploy | Security + PE sign-off (after 0 issues) | Docker Compose + K8s, docs/sdlc/deploy/ |
|
|
663
690
|
| Maintenance | maintenance | Live application | Monitoring, bug fixes, patches, docs/sdlc/maintenance/ |
|
|
664
691
|
|
|
665
692
|
Orchestrator: run each sub-agent in order; hand off output → input of the next sub-agent.
|
|
@@ -669,11 +696,11 @@ Orchestrator: run each sub-agent in order; hand off output → input of the next
|
|
|
669
696
|
|
|
670
697
|
const SECURITY_README = `# Security Team
|
|
671
698
|
|
|
672
|
-
**When:** After implementation (Dev) and QE testing. **Before** Deploy.
|
|
699
|
+
**When:** After implementation (Dev) and QE testing (0 open bugs). **Before** Deploy.
|
|
673
700
|
|
|
674
701
|
**Role:** Audit security risk in code, APIs, infra, and configuration. Identify vulnerabilities and recommend mitigations.
|
|
675
702
|
|
|
676
|
-
**Fix loop:** If issues found → Dev fixes → re-audit
|
|
703
|
+
**Fix → retest → re-audit loop:** If issues/vulnerabilities found → **Dev fixes** → **QE retests** (verify fix, no regression) → **Security re-audit**. Repeat until 0 issues/vulnerabilities remain; then sign-off to Deploy.
|
|
677
704
|
|
|
678
705
|
## Detailed tasks
|
|
679
706
|
|
|
@@ -681,16 +708,16 @@ const SECURITY_README = `# Security Team
|
|
|
681
708
|
- [ ] **Security audit**: OWASP Top 10, auth/authz, injection, XSS, CSRF, secrets exposure, dependency vulns
|
|
682
709
|
- [ ] **Infra/ops security**: Network, TLS, RBAC, secrets management
|
|
683
710
|
- [ ] **Report**: Findings, severity, remediation; output to \`docs/sdlc/security/\`
|
|
684
|
-
- [ ] **Fix loop**: If
|
|
711
|
+
- [ ] **Fix → retest → re-audit loop**: If issues found → Dev fixes → **QE retests** (confirm fix, no regression) → Security re-audit. **Repeat until 0 issues/vulnerabilities remain**; then sign-off to Deploy.
|
|
685
712
|
`;
|
|
686
713
|
|
|
687
714
|
const PRINCIPLE_ENGINEER_README = `# Principle Engineer
|
|
688
715
|
|
|
689
|
-
**When:** After implementation (Dev) and QE testing. **Before** Deploy.
|
|
716
|
+
**When:** After implementation (Dev) and QE testing (0 open bugs). **Before** Deploy.
|
|
690
717
|
|
|
691
718
|
**Role:** Audit logic, architecture alignment, design decisions, and technical quality. Ensure correctness and consistency with specs.
|
|
692
719
|
|
|
693
|
-
**Fix loop:** If issues found → Dev fixes → re-audit
|
|
720
|
+
**Fix → retest → re-audit loop:** If issues found → **Dev fixes** → **QE retests** (verify fix, no regression) → **PE re-audit**. Repeat until 0 issues remain; then sign-off to Deploy.
|
|
694
721
|
|
|
695
722
|
## Detailed tasks
|
|
696
723
|
|
|
@@ -698,12 +725,12 @@ const PRINCIPLE_ENGINEER_README = `# Principle Engineer
|
|
|
698
725
|
- [ ] **Logic audit**: Business logic correctness, edge cases, error handling, data flow
|
|
699
726
|
- [ ] **Architecture audit**: Alignment with ADRs, patterns, scalability, maintainability
|
|
700
727
|
- [ ] **Report**: Findings, recommendations; output to \`docs/sdlc/principle-engineer/\`
|
|
701
|
-
- [ ] **Fix loop**: If
|
|
728
|
+
- [ ] **Fix → retest → re-audit loop**: If logic/arch issues found → Dev fixes → **QE retests** (confirm fix, no regression) → PE re-audit. **Repeat until 0 issues remain**; then sign-off to Deploy.
|
|
702
729
|
`;
|
|
703
730
|
|
|
704
731
|
const DEPLOY_README = `# Deploy
|
|
705
732
|
|
|
706
|
-
After the pipeline completes (Security + Principle Engineer sign-off, after fix loop until
|
|
733
|
+
After the pipeline completes (Security + Principle Engineer sign-off, after fix → retest → re-audit loop until 0 issues), deploy immediately with:
|
|
707
734
|
|
|
708
735
|
**After Deploy → Maintenance phase**: monitoring, bug fixes, patches, dependency updates.
|
|
709
736
|
|
|
@@ -1059,6 +1086,7 @@ Use adr.template.md for new ADRs.
|
|
|
1059
1086
|
- [ ] **ADR per decision**: Context, decision, consequences (scope: backend, frontend, mobile, etc.)
|
|
1060
1087
|
- [ ] **Non-functional alignment**: Performance, security, scalability, compliance — reference NFRs from Business BA
|
|
1061
1088
|
- [ ] **Security by design (Shift Left)**: Threat model (STRIDE/attack surface), auth/authz architecture, data encryption at rest/transit, secrets management approach, dependency security policy. Document in ADR
|
|
1089
|
+
- [ ] **Engineering principles alignment**: Verify architecture follows — SOLID, DRY, KISS, SoC, LoD, CoI, GRASP, High Availability, CQRS (if applicable), Zero Trust, EDA (if applicable), Statelessness, Disposability, Backing Services, Config (externalize), Database Sharding/Partitioning (if applicable), Codebase (single per service), Logging & Tracing, Monitoring & Alerting
|
|
1062
1090
|
- [ ] **Handoff to Technical BA**: Architecture docs, ADRs in \`architecture/\`
|
|
1063
1091
|
`;
|
|
1064
1092
|
|
|
@@ -1100,7 +1128,8 @@ const QE_README = `# QE (Quality Engineering)
|
|
|
1100
1128
|
- [ ] **QE Lead**: Test strategy, framework, review test code
|
|
1101
1129
|
- [ ] **Senior QE**: Write automation tests per test plan
|
|
1102
1130
|
- [ ] **UAT (User Acceptance Testing)**: Verify against original user stories and acceptance criteria from PO; confirm business requirements are met from end-user perspective. Document UAT results in \`qe/{epic-slug}/uat-results.md\`
|
|
1103
|
-
- [ ] **
|
|
1131
|
+
- [ ] **Bug-fix loop**: If bugs or test failures found → **Dev fixes** → **QE retests**. **Repeat until all tests pass and UAT approved (0 open bugs)**. Only then → handoff to Security + PE
|
|
1132
|
+
- [ ] **Sign-off**: Regression pass, coverage met, UAT approved, 0 open bugs → release readiness in \`qe/{epic-slug}/\`
|
|
1104
1133
|
|
|
1105
1134
|
Example:
|
|
1106
1135
|
\`\`\`
|
|
@@ -1167,6 +1196,8 @@ const DESIGN_README = `# Design (optional — app/web projects only)
|
|
|
1167
1196
|
|
|
1168
1197
|
**Why before Architect:** UX drives technical decisions — design informs architecture and API specs.
|
|
1169
1198
|
|
|
1199
|
+
**Anti AI pattern:** Designs must NOT look like they were generated by AI. Avoid generic, templated, overly symmetric, cookie-cutter layouts. Prioritize personality, asymmetry, intentional whitespace, brand-specific visual language, and human-feeling aesthetics.
|
|
1200
|
+
|
|
1170
1201
|
**One folder per epic:** \`docs/sdlc/design/{epic-slug}/\` — same slug as PO/BA. Store design specs and wireframes there.
|
|
1171
1202
|
|
|
1172
1203
|
## Output format
|
|
@@ -1183,6 +1214,7 @@ const DESIGN_README = `# Design (optional — app/web projects only)
|
|
|
1183
1214
|
|
|
1184
1215
|
## Detailed tasks
|
|
1185
1216
|
|
|
1217
|
+
- [ ] **Anti AI check**: Ensure design does NOT look AI-generated — no generic hero sections, stock illustrations, perfectly symmetric grids, or bland templates. Aim for unique, human-feeling aesthetics
|
|
1186
1218
|
- [ ] **Gather context**: Read PO epic brief, BA FRS, user stories as input
|
|
1187
1219
|
- [ ] **Screen inventory**: List all screens/pages with purpose and key elements
|
|
1188
1220
|
- [ ] **Component hierarchy**: Define reusable components, layout structure, navigation
|
|
@@ -1254,14 +1286,24 @@ App
|
|
|
1254
1286
|
- **Typography:** ...
|
|
1255
1287
|
- **Spacing:** ...
|
|
1256
1288
|
|
|
1289
|
+
## Anti AI Checklist
|
|
1290
|
+
- [ ] No generic/templated layouts — design feels unique and intentional
|
|
1291
|
+
- [ ] No stock AI illustrations — use real or custom imagery
|
|
1292
|
+
- [ ] Asymmetry and visual interest — not perfectly symmetric grids
|
|
1293
|
+
- [ ] Brand-specific colors, typography, spacing — not default palettes
|
|
1294
|
+
- [ ] Human-feeling micro-interactions and copy
|
|
1295
|
+
|
|
1257
1296
|
## Notes
|
|
1258
1297
|
[Any additional context, constraints, or decisions]
|
|
1259
1298
|
`;
|
|
1260
1299
|
|
|
1261
1300
|
const DEV_TECH_LEAD_README = `# Tech Lead (15+ years exp)
|
|
1262
1301
|
|
|
1302
|
+
> **Model**: Use the **highest-tier model** (e.g. Claude Opus) for this role. Tech Lead handles planning, logic analysis, architecture decisions, and code review — tasks that require maximum reasoning capability.
|
|
1303
|
+
|
|
1263
1304
|
**Responsibilities**:
|
|
1264
1305
|
- Decide tech stack, frameworks, libraries
|
|
1306
|
+
- Define implementation plan, critical logic, and technical specs for implementation roles
|
|
1265
1307
|
- Review and merge code
|
|
1266
1308
|
- Ensure architecture alignment
|
|
1267
1309
|
|
|
@@ -1269,27 +1311,31 @@ const DEV_TECH_LEAD_README = `# Tech Lead (15+ years exp)
|
|
|
1269
1311
|
|
|
1270
1312
|
- [ ] **Read architecture and Technical BA spec**: ADRs, API spec, team breakdown
|
|
1271
1313
|
- [ ] **Tech stack decision**: Languages, frameworks, libraries; document in ADR
|
|
1314
|
+
- [ ] **Implementation plan**: Define step-by-step tasks, critical logic, edge cases, and technical specs that implementation roles will execute
|
|
1272
1315
|
- [ ] **Project setup**: Repo structure, tooling, lint, format, CI baseline
|
|
1273
1316
|
- [ ] **Code review**: Architecture alignment, patterns, test coverage, security
|
|
1274
1317
|
- [ ] **Security review (Shift Left)**: OWASP Top 10 check, input validation, auth/authz, secrets not hardcoded, dependency audit (npm audit / pip audit / etc.), SAST scan in CI
|
|
1275
1318
|
- [ ] **Merge approval**: Enforce quality gates before merge (tests, coverage, security scan pass)
|
|
1276
1319
|
- [ ] **Tech guidance**: Resolve technical disputes; mentor team
|
|
1320
|
+
- [ ] **Engineering principles enforcement**: Code review must verify — Clean Code, SOLID, DRY, KISS, SoC, LoD, CoI, GRASP, POLS, TDD/BDD. Architecture patterns: Statelessness, Disposability, Backing Services, Config externalization, Logging & Tracing, Monitoring & Alerting
|
|
1277
1321
|
- [ ] **Output**: ADRs, review checklist in \`dev/tech-lead/\`
|
|
1278
1322
|
`;
|
|
1279
1323
|
|
|
1280
1324
|
const DEV_SENIOR_README = `# Senior Developer (10+ years exp)
|
|
1281
1325
|
|
|
1326
|
+
> **Model**: Use a **cost-efficient model** (e.g. Claude Haiku) for this role. Implementation is executed from Tech Lead's detailed specs — optimizing cost while maintaining quality through clear instructions.
|
|
1327
|
+
|
|
1282
1328
|
**Responsibilities**:
|
|
1283
|
-
- Implement features per Technical BA spec
|
|
1329
|
+
- Implement features per Tech Lead's implementation plan and Technical BA spec
|
|
1284
1330
|
- Write code with Unit Test coverage **≥ 90%**
|
|
1285
1331
|
- Follow Tech Lead's tech decisions
|
|
1286
1332
|
|
|
1287
1333
|
## Detailed tasks
|
|
1288
1334
|
|
|
1289
1335
|
- [ ] **Read Technical BA spec**: API, schema, team breakdown
|
|
1290
|
-
- [ ] **Implement feature**: Code per spec; follow Tech Lead stack
|
|
1336
|
+
- [ ] **Implement feature**: Code per spec; follow Tech Lead stack. Adhere to: Clean Code, SOLID, DRY, KISS, SoC, LoD, CoI, GRASP, POLS
|
|
1291
1337
|
- [ ] **Security practices (Shift Left)**: Input validation, parameterized queries, no hardcoded secrets, follow Architect's security ADR
|
|
1292
|
-
- [ ] **Unit tests**: Coverage **≥ 90%**; edge cases, error paths
|
|
1338
|
+
- [ ] **Unit tests (TDD/BDD)**: Coverage **≥ 90%**; TDD (write tests first) or BDD (behavior specs); edge cases, error paths, BSR (Behavior-Structure-Result)
|
|
1293
1339
|
- [ ] **PR**: Lint, tests, security scan passing; request Tech Lead review
|
|
1294
1340
|
- [ ] **Output**: Code + implementation notes in \`dev/senior-developer/\`
|
|
1295
1341
|
`;
|
|
@@ -1298,6 +1344,15 @@ const DEV_IMPLEMENTATION_ROLES_TEMPLATE = `# Implementation roles by project typ
|
|
|
1298
1344
|
|
|
1299
1345
|
Use only the roles that apply. Remove or ignore the rest. Tech Lead is cross-cutting; add discipline roles as needed.
|
|
1300
1346
|
|
|
1347
|
+
## Model optimization strategy
|
|
1348
|
+
|
|
1349
|
+
| Role | Model tier | Why |
|
|
1350
|
+
|------|-----------|-----|
|
|
1351
|
+
| Tech Lead | **Highest** (e.g. Opus) | Planning, logic analysis, architecture decisions, code review |
|
|
1352
|
+
| All implementation roles | **Cost-efficient** (e.g. Haiku) | Execute code from Tech Lead's detailed specs |
|
|
1353
|
+
|
|
1354
|
+
Tech Lead defines all critical steps, logic, and specs first → implementation roles execute them. This maximizes quality on thinking while reducing cost on execution.
|
|
1355
|
+
|
|
1301
1356
|
## By project type
|
|
1302
1357
|
|
|
1303
1358
|
| Project type | Roles to use (all Senior 10+ except Tech Lead 15+) |
|
|
@@ -1326,6 +1381,8 @@ Use only the roles that apply. Remove or ignore the rest. Tech Lead is cross-cut
|
|
|
1326
1381
|
|
|
1327
1382
|
const DEV_FRONTEND_README = `# Senior Frontend (10+ years exp) — Web UI
|
|
1328
1383
|
|
|
1384
|
+
> **Model**: Use a **cost-efficient model** (e.g. Claude Haiku). Execute from Tech Lead's specs.
|
|
1385
|
+
|
|
1329
1386
|
**Responsibilities**:
|
|
1330
1387
|
- Implement web UI per design and API contract
|
|
1331
1388
|
- Unit Test coverage **≥ 90%**
|
|
@@ -1336,13 +1393,15 @@ const DEV_FRONTEND_README = `# Senior Frontend (10+ years exp) — Web UI
|
|
|
1336
1393
|
- [ ] **Read Technical BA spec**: API contract, design (if any)
|
|
1337
1394
|
- [ ] **Implement components/screens**: Per spec; responsive, accessible
|
|
1338
1395
|
- [ ] **API integration**: Fetch, state, error handling
|
|
1339
|
-
- [ ] **Unit tests**: Components, hooks, utils — coverage **≥ 90
|
|
1396
|
+
- [ ] **Unit tests (TDD/BDD)**: Components, hooks, utils — coverage **≥ 90%**; follow Clean Code, SOLID, DRY, KISS
|
|
1340
1397
|
- [ ] **PR**: Lint, tests; Tech Lead review
|
|
1341
1398
|
- [ ] **Output**: Code + component/integration docs in \`dev/frontend/\`
|
|
1342
1399
|
`;
|
|
1343
1400
|
|
|
1344
1401
|
const DEV_BACKEND_README = `# Senior Backend (10+ years exp) — API, services
|
|
1345
1402
|
|
|
1403
|
+
> **Model**: Use a **cost-efficient model** (e.g. Claude Haiku). Execute from Tech Lead's specs.
|
|
1404
|
+
|
|
1346
1405
|
**Responsibilities**:
|
|
1347
1406
|
- Implement API, services, DB layer per Technical BA spec
|
|
1348
1407
|
- Unit Test coverage **≥ 90%**
|
|
@@ -1353,13 +1412,15 @@ const DEV_BACKEND_README = `# Senior Backend (10+ years exp) — API, services
|
|
|
1353
1412
|
- [ ] **Read Technical BA spec**: API spec, DB schema
|
|
1354
1413
|
- [ ] **Implement endpoints**: Per spec; validation, auth, error responses
|
|
1355
1414
|
- [ ] **Implement DB layer**: Migrations, queries, transactions
|
|
1356
|
-
- [ ] **Unit tests**: Services, controllers, DB — coverage **≥ 90
|
|
1415
|
+
- [ ] **Unit tests (TDD/BDD)**: Services, controllers, DB — coverage **≥ 90%**; follow Clean Code, SOLID, DRY, KISS
|
|
1357
1416
|
- [ ] **PR**: Lint, tests; Tech Lead review
|
|
1358
1417
|
- [ ] **Output**: Code + API/DB implementation notes in \`dev/backend/\`
|
|
1359
1418
|
`;
|
|
1360
1419
|
|
|
1361
1420
|
const DEV_MOBILE_README = `# Senior Mobile (10+ years exp) — iOS / Android / cross-platform
|
|
1362
1421
|
|
|
1422
|
+
> **Model**: Use a **cost-efficient model** (e.g. Claude Haiku). Execute from Tech Lead's specs.
|
|
1423
|
+
|
|
1363
1424
|
**Responsibilities**:
|
|
1364
1425
|
- Implement app UI and API integration per spec
|
|
1365
1426
|
- Unit Test coverage **≥ 90%**
|
|
@@ -1370,13 +1431,15 @@ const DEV_MOBILE_README = `# Senior Mobile (10+ years exp) — iOS / Android / c
|
|
|
1370
1431
|
- [ ] **Read Technical BA spec**: API contract, screen flows
|
|
1371
1432
|
- [ ] **Implement screens/modules**: Per spec; platform parity (iOS/Android)
|
|
1372
1433
|
- [ ] **API integration**: Auth, state, offline (if required)
|
|
1373
|
-
- [ ] **Unit tests**: Components, logic — coverage **≥ 90
|
|
1434
|
+
- [ ] **Unit tests (TDD/BDD)**: Components, logic — coverage **≥ 90%**; follow Clean Code, SOLID, DRY, KISS
|
|
1374
1435
|
- [ ] **PR**: Lint, tests; Tech Lead review
|
|
1375
1436
|
- [ ] **Output**: Code + screen/module docs in \`dev/mobile/\`
|
|
1376
1437
|
`;
|
|
1377
1438
|
|
|
1378
1439
|
const DEV_EMBEDDED_README = `# Senior Embedded (10+ years exp) — firmware, IoT
|
|
1379
1440
|
|
|
1441
|
+
> **Model**: Use a **cost-efficient model** (e.g. Claude Haiku). Execute from Tech Lead's specs.
|
|
1442
|
+
|
|
1380
1443
|
**Responsibilities**:
|
|
1381
1444
|
- Implement firmware, drivers, hardware interfaces per spec
|
|
1382
1445
|
- Tests as appropriate for target (unit, HW-in-loop)
|
|
@@ -1393,6 +1456,8 @@ const DEV_EMBEDDED_README = `# Senior Embedded (10+ years exp) — firmware, IoT
|
|
|
1393
1456
|
|
|
1394
1457
|
const DEV_DATA_ML_README = `# Senior Data/ML (10+ years exp)
|
|
1395
1458
|
|
|
1459
|
+
> **Model**: Use a **cost-efficient model** (e.g. Claude Haiku). Execute from Tech Lead's specs.
|
|
1460
|
+
|
|
1396
1461
|
**Responsibilities**:
|
|
1397
1462
|
- Implement ETL, models, analytics pipelines per spec
|
|
1398
1463
|
- Tests and validation for data and model quality
|
|
@@ -1410,6 +1475,8 @@ const DEV_DATA_ML_README = `# Senior Data/ML (10+ years exp)
|
|
|
1410
1475
|
|
|
1411
1476
|
const DEV_PLATFORM_README = `# Senior Platform (10+ years exp) — infra, CI/CD
|
|
1412
1477
|
|
|
1478
|
+
> **Model**: Use a **cost-efficient model** (e.g. Claude Haiku). Execute from Tech Lead's specs.
|
|
1479
|
+
|
|
1413
1480
|
**Responsibilities**:
|
|
1414
1481
|
- Implement CI/CD, infra as code, observability per spec
|
|
1415
1482
|
- Follow Tech Lead's stack and security requirements
|