@su-record/vibe 2.8.53 → 2.9.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/CLAUDE.md +1 -0
- package/README.ko.md +43 -128
- package/README.md +43 -128
- package/agents/teams/debug-team.md +70 -0
- package/agents/teams/dev-team.md +88 -0
- package/agents/teams/docs-team.md +80 -0
- package/agents/teams/figma/figma-analyst.md +52 -0
- package/agents/teams/figma/figma-architect.md +112 -0
- package/agents/teams/figma/figma-auditor.md +82 -0
- package/agents/teams/figma/figma-builder.md +72 -0
- package/agents/teams/figma-team.md +85 -0
- package/agents/teams/fullstack-team.md +83 -0
- package/agents/teams/lite-team.md +69 -0
- package/agents/teams/migration-team.md +78 -0
- package/agents/teams/refactor-team.md +94 -0
- package/agents/teams/research-team.md +86 -0
- package/agents/teams/review-debate-team.md +125 -0
- package/agents/teams/security-team.md +81 -0
- package/commands/vibe.review.md +1 -63
- package/commands/vibe.run.md +8 -376
- package/commands/vibe.spec.md +1 -59
- package/commands/vibe.spec.review.md +1 -45
- package/dist/cli/postinstall/main.d.ts.map +1 -1
- package/dist/cli/postinstall/main.js +40 -66
- package/dist/cli/postinstall/main.js.map +1 -1
- package/dist/infra/lib/CostAccumulator.d.ts +58 -0
- package/dist/infra/lib/CostAccumulator.d.ts.map +1 -0
- package/dist/infra/lib/CostAccumulator.js +131 -0
- package/dist/infra/lib/CostAccumulator.js.map +1 -0
- package/hooks/scripts/figma-refine.js +315 -0
- package/hooks/scripts/figma-to-scss.js +394 -0
- package/hooks/scripts/figma-validate.js +353 -0
- package/package.json +1 -1
- package/skills/vibe.figma/SKILL.md +92 -24
- package/skills/vibe.figma/templates/component-spec.md +168 -0
- package/skills/vibe.figma.convert/SKILL.md +39 -3
- package/skills/vibe.figma.convert/rubrics/conversion-rules.md +12 -0
- package/skills/vibe.figma.extract/SKILL.md +29 -1
- package/skills/vibe.figma.extract/rubrics/image-rules.md +15 -3
package/commands/vibe.run.md
CHANGED
|
@@ -1286,128 +1286,16 @@ Phase N+1 Start (IMMEDIATE - exploration already done!)
|
|
|
1286
1286
|
|
|
1287
1287
|
### Agent Teams — Dev Team
|
|
1288
1288
|
|
|
1289
|
-
>
|
|
1289
|
+
> **팀 정의**: `agents/teams/dev-team.md` 참조
|
|
1290
1290
|
> 설정: `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1` + `teammateMode: in-process` (`~/.claude/settings.json` 전역 — postinstall 자동 설정)
|
|
1291
1291
|
|
|
1292
|
-
**팀 구성:**
|
|
1293
|
-
|
|
1294
|
-
| 팀원 | 역할 |
|
|
1295
|
-
|------|------|
|
|
1296
|
-
| architect (리더) | 설계 결정, 구현 방향 조율, SPEC 준수 검증, 팀 합의 주도 |
|
|
1297
|
-
| implementer | 핵심 비즈니스 로직 구현, architect 설계를 따라 코드 작성 |
|
|
1298
|
-
| tester | 구현 완료 즉시 테스트 작성, 실패 시 implementer에 피드백 |
|
|
1299
|
-
| security-reviewer | 실시간 보안 취약점 검증, 블로킹 이슈 식별 |
|
|
1300
|
-
|
|
1301
|
-
**실행 순서:**
|
|
1302
|
-
|
|
1303
|
-
1. `TeamCreate(team_name="dev-{feature}")` — 팀 + 공유 태스크 리스트 생성
|
|
1304
|
-
2. 4개 팀원 병렬 생성 — 각각 `Task(team_name=..., name=..., subagent_type=...)` 으로 spawn
|
|
1305
|
-
3. architect가 SPEC Phase를 분석하여 구현 계획 수립 → TaskList에 작업 등록
|
|
1306
|
-
4. 팀원들이 TaskList에서 작업을 claim하고, SendMessage로 실시간 협업
|
|
1307
|
-
5. 모든 시나리오 검증 완료 → 팀원 shutdown_request → TeamDelete로 정리
|
|
1308
|
-
|
|
1309
|
-
**팀원 spawn 패턴:**
|
|
1310
|
-
|
|
1311
|
-
```text
|
|
1312
|
-
TeamCreate(team_name="dev-{feature}", description="Implementation team for {feature} Phase {N}")
|
|
1313
|
-
|
|
1314
|
-
# 4개 병렬 spawn
|
|
1315
|
-
Task(team_name="dev-{feature}", name="architect", subagent_type="architect",
|
|
1316
|
-
prompt="구현 팀 리더. Phase {N}의 SPEC을 분석하고 구현 계획을 수립하세요.
|
|
1317
|
-
SPEC: {spec_content}
|
|
1318
|
-
Feature Scenarios: {scenarios}
|
|
1319
|
-
역할: 설계 결정, 구현 방향 조율, 팀원 간 충돌 해결, SPEC 준수 검증.
|
|
1320
|
-
TaskList에 구현 작업을 등록하세요. implementer에게 설계를 SendMessage로 전달하세요.
|
|
1321
|
-
모든 시나리오가 통과할 때까지 팀을 조율하세요.")
|
|
1322
|
-
|
|
1323
|
-
Task(team_name="dev-{feature}", name="implementer", subagent_type="implementer",
|
|
1324
|
-
mode="bypassPermissions",
|
|
1325
|
-
prompt="구현 팀 코드 담당. SPEC: {spec_content}
|
|
1326
|
-
역할: architect의 설계를 따라 프로덕션 코드 작성.
|
|
1327
|
-
architect에게서 설계를 받으면 구현을 시작하세요.
|
|
1328
|
-
컴포넌트 구현 완료 시 tester에게 SendMessage로 테스트 요청하세요.
|
|
1329
|
-
security-reviewer의 블로킹 이슈는 즉시 수정하세요.
|
|
1330
|
-
TaskList에서 구현 작업을 claim하세요.")
|
|
1331
|
-
|
|
1332
|
-
Task(team_name="dev-{feature}", name="tester", subagent_type="tester",
|
|
1333
|
-
mode="bypassPermissions",
|
|
1334
|
-
prompt="구현 팀 테스트 담당. SPEC: {spec_content}
|
|
1335
|
-
역할: implementer가 완료한 컴포넌트부터 즉시 테스트 작성.
|
|
1336
|
-
구현 전체를 기다리지 말고 컴포넌트 단위로 점진적 테스트하세요.
|
|
1337
|
-
테스트 실패 시 implementer에게 SendMessage로 피드백하세요.
|
|
1338
|
-
edge case 발견 시 architect에게 설계 검토를 요청하세요.
|
|
1339
|
-
TaskList에서 테스트 작업을 claim하세요.")
|
|
1340
|
-
|
|
1341
|
-
Task(team_name="dev-{feature}", name="security-reviewer", subagent_type="security-reviewer",
|
|
1342
|
-
mode="bypassPermissions",
|
|
1343
|
-
prompt="구현 팀 보안 담당. SPEC: {spec_content}
|
|
1344
|
-
역할: 구현 코드의 보안 취약점 실시간 검증.
|
|
1345
|
-
보안 이슈는 BLOCKING — implementer에게 SendMessage로 즉시 수정 요청하세요.
|
|
1346
|
-
심각한 설계 결함 발견 시 architect에게 SendMessage로 알리세요.
|
|
1347
|
-
TaskList에서 보안 검증 작업을 claim하세요.")
|
|
1348
|
-
```
|
|
1349
|
-
|
|
1350
|
-
**팀원 간 통신 예시:**
|
|
1351
|
-
|
|
1352
|
-
```text
|
|
1353
|
-
architect → implementer: "Repository 패턴으로 데이터 접근 계층 분리해서 구현해주세요. 인터페이스는 TaskList에 등록했습니다"
|
|
1354
|
-
implementer → tester: "LoginService 구현 완료. 정상/실패/잠금 시나리오 테스트 요청합니다"
|
|
1355
|
-
security-reviewer → implementer: "SQL injection 위험: raw query 사용 감지. parameterized query로 즉시 수정 필요"
|
|
1356
|
-
tester → architect: "edge case 3건 실패 (빈 입력, 특수문자, 동시 요청). 설계 검토 요청합니다"
|
|
1357
|
-
architect → broadcast: "Phase {N} 모든 시나리오 통과 확인. 구현 완료합니다"
|
|
1358
|
-
```
|
|
1359
|
-
|
|
1360
|
-
**팀 모드 vs 기존 병렬 모드 비교:**
|
|
1361
|
-
|
|
1362
|
-
| 측면 | 기존 병렬 모드 | Agent Teams |
|
|
1363
|
-
|------|---------------|-------------|
|
|
1364
|
-
| 통신 | 결과만 수집 | 실시간 상호 피드백 |
|
|
1365
|
-
| 테스트 | 구현 후 별도 단계 | 구현과 동시 진행 |
|
|
1366
|
-
| 보안 | 사후 리뷰 | 실시간 검증 |
|
|
1367
|
-
| 설계 변경 | 메인 에이전트만 결정 | architect 주도 팀 합의 |
|
|
1368
|
-
| 오류 복구 | 재시도 루프 | 팀 내 즉시 피드백 |
|
|
1369
|
-
|
|
1370
1292
|
**활성화 조건 (Dev Team Full — 4명):**
|
|
1371
1293
|
- ULTRAWORK 모드 + 3개 이상 시나리오
|
|
1372
1294
|
- 또는 복잡도 점수 20+ (High)
|
|
1373
1295
|
|
|
1374
1296
|
### Agent Teams — Lite Team (Normal Mode)
|
|
1375
1297
|
|
|
1376
|
-
>
|
|
1377
|
-
> security-reviewer를 제외한 architect + implementer + tester 3명 구성.
|
|
1378
|
-
|
|
1379
|
-
**팀 구성:**
|
|
1380
|
-
|
|
1381
|
-
| 팀원 | 역할 |
|
|
1382
|
-
|------|------|
|
|
1383
|
-
| architect (리더) | 설계 결정, 시나리오 분석, 구현 방향 조율 |
|
|
1384
|
-
| implementer | 핵심 비즈니스 로직 구현 |
|
|
1385
|
-
| tester | 구현 완료 즉시 테스트 작성, 실패 시 피드백 |
|
|
1386
|
-
|
|
1387
|
-
**spawn 패턴:**
|
|
1388
|
-
|
|
1389
|
-
```text
|
|
1390
|
-
TeamCreate(team_name="lite-{feature}", description="Lite implementation team for {feature} Phase {N}")
|
|
1391
|
-
|
|
1392
|
-
Task(team_name="lite-{feature}", name="architect", subagent_type="architect",
|
|
1393
|
-
prompt="Lite 팀 리더. Phase {N}의 SPEC을 분석하고 구현 계획을 수립하세요.
|
|
1394
|
-
SPEC: {spec_content}
|
|
1395
|
-
Feature Scenarios: {scenarios}
|
|
1396
|
-
역할: 설계 결정, 구현 방향 조율. TaskList에 작업을 등록하세요.
|
|
1397
|
-
implementer에게 설계를 SendMessage로 전달하세요.")
|
|
1398
|
-
|
|
1399
|
-
Task(team_name="lite-{feature}", name="implementer", subagent_type="implementer",
|
|
1400
|
-
mode="bypassPermissions",
|
|
1401
|
-
prompt="Lite 팀 코드 담당. SPEC: {spec_content}
|
|
1402
|
-
역할: architect의 설계를 따라 프로덕션 코드 작성.
|
|
1403
|
-
완료 시 tester에게 SendMessage로 테스트 요청하세요.")
|
|
1404
|
-
|
|
1405
|
-
Task(team_name="lite-{feature}", name="tester", subagent_type="tester",
|
|
1406
|
-
mode="bypassPermissions",
|
|
1407
|
-
prompt="Lite 팀 테스트 담당. SPEC: {spec_content}
|
|
1408
|
-
역할: implementer가 완료한 컴포넌트부터 즉시 테스트 작성.
|
|
1409
|
-
테스트 실패 시 implementer에게 SendMessage로 피드백하세요.")
|
|
1410
|
-
```
|
|
1298
|
+
> **팀 정의**: `agents/teams/lite-team.md` 참조
|
|
1411
1299
|
|
|
1412
1300
|
**활성화 조건 (Lite Team — 3명):**
|
|
1413
1301
|
- 일반 모드 + 3개 이상 시나리오
|
|
@@ -1424,58 +1312,7 @@ Task(team_name="lite-{feature}", name="tester", subagent_type="tester",
|
|
|
1424
1312
|
|
|
1425
1313
|
### Agent Teams — Review Team
|
|
1426
1314
|
|
|
1427
|
-
>
|
|
1428
|
-
> `/vibe.review` 시 P1/P2 이슈가 발견되면 자동 활성화.
|
|
1429
|
-
|
|
1430
|
-
**팀 구성:**
|
|
1431
|
-
|
|
1432
|
-
| 팀원 | 역할 |
|
|
1433
|
-
|------|------|
|
|
1434
|
-
| security-reviewer (리더) | 보안 이슈 우선순위 결정, 교차 검증 주도, 오탐 제거 |
|
|
1435
|
-
| architecture-reviewer | 아키텍처 위반 검증, 설계 패턴 평가 |
|
|
1436
|
-
| performance-reviewer | 성능 병목 검증, N+1 쿼리/메모리 누수 확인 |
|
|
1437
|
-
| simplicity-reviewer | 과도한 복잡성 검증, 불필요한 추상화 식별 |
|
|
1438
|
-
|
|
1439
|
-
**spawn 패턴:**
|
|
1440
|
-
|
|
1441
|
-
```text
|
|
1442
|
-
TeamCreate(team_name="review-{feature}", description="Cross-validation review team for {feature}")
|
|
1443
|
-
|
|
1444
|
-
Task(team_name="review-{feature}", name="security-reviewer", subagent_type="security-reviewer",
|
|
1445
|
-
mode="bypassPermissions",
|
|
1446
|
-
prompt="Review team leader. Cross-validate P1/P2 issues found in parallel review.
|
|
1447
|
-
Files: {changed_files}
|
|
1448
|
-
Found issues: {p1_p2_issues}
|
|
1449
|
-
Role: Verify each P1/P2 issue is genuine (not false positive). Prioritize by actual impact.
|
|
1450
|
-
Send disputed findings to relevant reviewer for confirmation via SendMessage.")
|
|
1451
|
-
|
|
1452
|
-
Task(team_name="review-{feature}", name="architecture-reviewer", subagent_type="architecture-reviewer",
|
|
1453
|
-
mode="bypassPermissions",
|
|
1454
|
-
prompt="Review team architecture expert. Validate architecture-related findings.
|
|
1455
|
-
Files: {changed_files}
|
|
1456
|
-
Role: Confirm or dispute architecture violations. Check SOLID principles and layer boundaries.")
|
|
1457
|
-
|
|
1458
|
-
Task(team_name="review-{feature}", name="performance-reviewer", subagent_type="performance-reviewer",
|
|
1459
|
-
mode="bypassPermissions",
|
|
1460
|
-
prompt="Review team performance expert. Validate performance-related findings.
|
|
1461
|
-
Files: {changed_files}
|
|
1462
|
-
Role: Confirm or dispute performance issues. Run complexity analysis on flagged code.")
|
|
1463
|
-
|
|
1464
|
-
Task(team_name="review-{feature}", name="simplicity-reviewer", subagent_type="simplicity-reviewer",
|
|
1465
|
-
mode="bypassPermissions",
|
|
1466
|
-
prompt="Review team simplicity advocate. Challenge over-engineering findings.
|
|
1467
|
-
Files: {changed_files}
|
|
1468
|
-
Role: Verify YAGNI violations. Confirm or dispute unnecessary abstraction flags.")
|
|
1469
|
-
```
|
|
1470
|
-
|
|
1471
|
-
**팀원 간 통신 예시:**
|
|
1472
|
-
|
|
1473
|
-
```text
|
|
1474
|
-
security-reviewer → architecture-reviewer: "SQL injection finding in users.py:42 — is this pattern used elsewhere?"
|
|
1475
|
-
architecture-reviewer → security-reviewer: "Confirmed. Same pattern in orders.py:78. Elevate to P1."
|
|
1476
|
-
performance-reviewer → security-reviewer: "N+1 query finding is false positive — already uses prefetch_related."
|
|
1477
|
-
security-reviewer → broadcast: "Review complete. 2 P1 confirmed, 1 P2 downgraded to P3."
|
|
1478
|
-
```
|
|
1315
|
+
> **팀 정의**: `agents/teams/review-debate-team.md` 참조
|
|
1479
1316
|
|
|
1480
1317
|
**활성화 조건:**
|
|
1481
1318
|
|
|
@@ -1484,42 +1321,7 @@ security-reviewer → broadcast: "Review complete. 2 P1 confirmed, 1 P2 downgrad
|
|
|
1484
1321
|
|
|
1485
1322
|
### Agent Teams — Debug Team
|
|
1486
1323
|
|
|
1487
|
-
>
|
|
1488
|
-
> UltraQA 3회 실패 진입 시 또는 빌드 실패 3회+ 시 자동 활성화.
|
|
1489
|
-
|
|
1490
|
-
**팀 구성:**
|
|
1491
|
-
|
|
1492
|
-
| 팀원 | 역할 |
|
|
1493
|
-
|------|------|
|
|
1494
|
-
| architect (리더) | 근본 원인 진단, 수정 방향 설계, 아키텍처 레벨 문제 식별 |
|
|
1495
|
-
| implementer | architect 진단에 따라 최소 diff 수정 적용 |
|
|
1496
|
-
| tester | 수정 후 즉시 테스트 실행, 회귀 검증 |
|
|
1497
|
-
|
|
1498
|
-
**spawn 패턴:**
|
|
1499
|
-
|
|
1500
|
-
```text
|
|
1501
|
-
TeamCreate(team_name="debug-{feature}", description="Debug team for {feature} build/test failure")
|
|
1502
|
-
|
|
1503
|
-
Task(team_name="debug-{feature}", name="architect", subagent_type="architect",
|
|
1504
|
-
prompt="Debug team leader. Diagnose root cause of build/test failure.
|
|
1505
|
-
Error: {error_output}
|
|
1506
|
-
Failed files: {failed_files}
|
|
1507
|
-
Previous attempts: {attempt_history}
|
|
1508
|
-
Role: Analyze error, identify root cause (not symptoms). Design minimal fix.
|
|
1509
|
-
Send diagnosis to implementer via SendMessage. If same failure 3x, escalate to user.")
|
|
1510
|
-
|
|
1511
|
-
Task(team_name="debug-{feature}", name="implementer", subagent_type="implementer",
|
|
1512
|
-
mode="bypassPermissions",
|
|
1513
|
-
prompt="Debug team fixer. Apply minimal-diff fixes based on architect diagnosis.
|
|
1514
|
-
Role: Wait for architect diagnosis. Apply ONLY the specific fix recommended.
|
|
1515
|
-
Do NOT refactor surrounding code. Notify tester when fix is applied.")
|
|
1516
|
-
|
|
1517
|
-
Task(team_name="debug-{feature}", name="tester", subagent_type="tester",
|
|
1518
|
-
mode="bypassPermissions",
|
|
1519
|
-
prompt="Debug team verifier. Run tests after each fix to verify resolution.
|
|
1520
|
-
Role: Wait for implementer fix notification. Run failing tests.
|
|
1521
|
-
Report results to architect. If still failing, provide detailed error output.")
|
|
1522
|
-
```
|
|
1324
|
+
> **팀 정의**: `agents/teams/debug-team.md` 참조
|
|
1523
1325
|
|
|
1524
1326
|
**활성화 조건:**
|
|
1525
1327
|
|
|
@@ -1528,48 +1330,7 @@ Task(team_name="debug-{feature}", name="tester", subagent_type="tester",
|
|
|
1528
1330
|
|
|
1529
1331
|
### Agent Teams — Research Team
|
|
1530
1332
|
|
|
1531
|
-
>
|
|
1532
|
-
> 리서치 결과 교차 검증 및 충돌 해결.
|
|
1533
|
-
|
|
1534
|
-
**팀 구성:**
|
|
1535
|
-
|
|
1536
|
-
| 팀원 | 역할 |
|
|
1537
|
-
|------|------|
|
|
1538
|
-
| best-practices-agent (리더) | 베스트 프랙티스 수집, 리서치 통합, 충돌 해결 |
|
|
1539
|
-
| security-advisory-agent | 보안 취약점 조사, CVE 확인, 보안 권장사항 |
|
|
1540
|
-
| codebase-patterns-agent | 기존 코드베이스 패턴 분석, 유사 구현 참조 |
|
|
1541
|
-
| framework-docs-agent | 프레임워크 최신 문서 확인, API 변경사항 추적 |
|
|
1542
|
-
|
|
1543
|
-
**spawn 패턴:**
|
|
1544
|
-
|
|
1545
|
-
```text
|
|
1546
|
-
TeamCreate(team_name="research-{feature}", description="Research team for {feature} SPEC")
|
|
1547
|
-
|
|
1548
|
-
Task(team_name="research-{feature}", name="best-practices-agent", subagent_type="best-practices-agent",
|
|
1549
|
-
prompt="Research team leader. Coordinate research for {feature} SPEC.
|
|
1550
|
-
Tech stack: {tech_stack}
|
|
1551
|
-
Requirements: {requirements}
|
|
1552
|
-
Role: Collect best practices. Integrate findings from all researchers.
|
|
1553
|
-
Resolve conflicting recommendations. Produce unified research summary.")
|
|
1554
|
-
|
|
1555
|
-
Task(team_name="research-{feature}", name="security-advisory-agent", subagent_type="security-advisory-agent",
|
|
1556
|
-
prompt="Research team security specialist. Check security advisories for {feature}.
|
|
1557
|
-
Tech stack: {tech_stack}
|
|
1558
|
-
Role: Check CVEs for dependencies. Identify security patterns to follow.
|
|
1559
|
-
Share findings with best-practices-agent for integration.")
|
|
1560
|
-
|
|
1561
|
-
Task(team_name="research-{feature}", name="codebase-patterns-agent", subagent_type="codebase-patterns-agent",
|
|
1562
|
-
prompt="Research team codebase analyst. Analyze existing patterns for {feature}.
|
|
1563
|
-
Project path: {project_path}
|
|
1564
|
-
Role: Find similar implementations in codebase. Extract conventions and patterns.
|
|
1565
|
-
Share findings with best-practices-agent.")
|
|
1566
|
-
|
|
1567
|
-
Task(team_name="research-{feature}", name="framework-docs-agent", subagent_type="framework-docs-agent",
|
|
1568
|
-
prompt="Research team docs specialist. Check latest framework docs for {feature}.
|
|
1569
|
-
Tech stack: {tech_stack}
|
|
1570
|
-
Role: Verify API usage against latest docs. Check for breaking changes.
|
|
1571
|
-
Share findings with best-practices-agent.")
|
|
1572
|
-
```
|
|
1333
|
+
> **팀 정의**: `agents/teams/research-team.md` 참조
|
|
1573
1334
|
|
|
1574
1335
|
**활성화 조건:**
|
|
1575
1336
|
|
|
@@ -1578,50 +1339,7 @@ Task(team_name="research-{feature}", name="framework-docs-agent", subagent_type=
|
|
|
1578
1339
|
|
|
1579
1340
|
### Agent Teams — Security Team
|
|
1580
1341
|
|
|
1581
|
-
>
|
|
1582
|
-
> 인증, 권한, 결제, 개인정보 관련 코드 변경 감지 시 자동 활성화.
|
|
1583
|
-
|
|
1584
|
-
**팀 구성:**
|
|
1585
|
-
|
|
1586
|
-
| 팀원 | 역할 |
|
|
1587
|
-
|------|------|
|
|
1588
|
-
| security-reviewer (리더) | OWASP Top 10 검증, 보안 이슈 우선순위 결정 |
|
|
1589
|
-
| data-integrity-reviewer | 데이터 무결성, 트랜잭션 관리, 입력 검증 |
|
|
1590
|
-
| security-advisory-agent | 사용 라이브러리 CVE 확인, 보안 패치 확인 |
|
|
1591
|
-
| tester | 보안 테스트 케이스 작성, 침투 테스트 시나리오 검증 |
|
|
1592
|
-
|
|
1593
|
-
**spawn 패턴:**
|
|
1594
|
-
|
|
1595
|
-
```text
|
|
1596
|
-
TeamCreate(team_name="security-{feature}", description="Security audit team for {feature}")
|
|
1597
|
-
|
|
1598
|
-
Task(team_name="security-{feature}", name="security-reviewer", subagent_type="security-reviewer",
|
|
1599
|
-
mode="bypassPermissions",
|
|
1600
|
-
prompt="Security team leader. Comprehensive security audit for {feature}.
|
|
1601
|
-
Files: {changed_files}
|
|
1602
|
-
Role: OWASP Top 10 check. XSS, CSRF, SQL injection, auth bypass.
|
|
1603
|
-
Coordinate with data-integrity-reviewer for data flow analysis.
|
|
1604
|
-
Any P1 finding blocks merge — notify team immediately.")
|
|
1605
|
-
|
|
1606
|
-
Task(team_name="security-{feature}", name="data-integrity-reviewer", subagent_type="data-integrity-reviewer",
|
|
1607
|
-
mode="bypassPermissions",
|
|
1608
|
-
prompt="Security team data specialist. Verify data integrity for {feature}.
|
|
1609
|
-
Files: {changed_files}
|
|
1610
|
-
Role: Check transaction management, input validation, data sanitization.
|
|
1611
|
-
Report findings to security-reviewer.")
|
|
1612
|
-
|
|
1613
|
-
Task(team_name="security-{feature}", name="security-advisory-agent", subagent_type="security-advisory-agent",
|
|
1614
|
-
prompt="Security team advisory specialist. Check dependencies for {feature}.
|
|
1615
|
-
Role: Scan for known CVEs in project dependencies. Check security advisories.
|
|
1616
|
-
Report critical findings to security-reviewer.")
|
|
1617
|
-
|
|
1618
|
-
Task(team_name="security-{feature}", name="tester", subagent_type="tester",
|
|
1619
|
-
mode="bypassPermissions",
|
|
1620
|
-
prompt="Security team test specialist. Write security-focused tests for {feature}.
|
|
1621
|
-
Files: {changed_files}
|
|
1622
|
-
Role: Write tests for auth bypass, injection, permission escalation.
|
|
1623
|
-
Report test results to security-reviewer.")
|
|
1624
|
-
```
|
|
1342
|
+
> **팀 정의**: `agents/teams/security-team.md` 참조
|
|
1625
1343
|
|
|
1626
1344
|
**활성화 조건:**
|
|
1627
1345
|
|
|
@@ -1630,48 +1348,7 @@ Task(team_name="security-{feature}", name="tester", subagent_type="tester",
|
|
|
1630
1348
|
|
|
1631
1349
|
### Agent Teams — Migration Team
|
|
1632
1350
|
|
|
1633
|
-
>
|
|
1634
|
-
> 대규모 의존성 업그레이드, 프레임워크 전환 시 활성화.
|
|
1635
|
-
|
|
1636
|
-
**팀 구성:**
|
|
1637
|
-
|
|
1638
|
-
| 팀원 | 역할 |
|
|
1639
|
-
|------|------|
|
|
1640
|
-
| architect (리더) | 마이그레이션 전략 설계, 호환성 분석, 단계별 계획 |
|
|
1641
|
-
| implementer | 코드 변환 실행, API 변경 적용 |
|
|
1642
|
-
| tester | 마이그레이션 후 회귀 테스트, 호환성 검증 |
|
|
1643
|
-
| build-error-resolver | 빌드 에러 즉시 해결, 타입 에러 수정 |
|
|
1644
|
-
|
|
1645
|
-
**spawn 패턴:**
|
|
1646
|
-
|
|
1647
|
-
```text
|
|
1648
|
-
TeamCreate(team_name="migration-{feature}", description="Migration team for {feature}")
|
|
1649
|
-
|
|
1650
|
-
Task(team_name="migration-{feature}", name="architect", subagent_type="architect",
|
|
1651
|
-
prompt="Migration team leader. Plan migration strategy for {feature}.
|
|
1652
|
-
From: {current_version}
|
|
1653
|
-
To: {target_version}
|
|
1654
|
-
Role: Analyze breaking changes. Create step-by-step migration plan.
|
|
1655
|
-
Assign file groups to implementer. Monitor build-error-resolver for blockers.")
|
|
1656
|
-
|
|
1657
|
-
Task(team_name="migration-{feature}", name="implementer", subagent_type="implementer",
|
|
1658
|
-
mode="bypassPermissions",
|
|
1659
|
-
prompt="Migration team implementer. Execute code migration for {feature}.
|
|
1660
|
-
Role: Apply migration changes per architect plan. Work file-by-file.
|
|
1661
|
-
Notify tester after each file group. Report blockers to architect.")
|
|
1662
|
-
|
|
1663
|
-
Task(team_name="migration-{feature}", name="tester", subagent_type="tester",
|
|
1664
|
-
mode="bypassPermissions",
|
|
1665
|
-
prompt="Migration team tester. Verify migration correctness for {feature}.
|
|
1666
|
-
Role: Run existing tests after each migration step. Add new tests for changed APIs.
|
|
1667
|
-
Report regressions to implementer and architect.")
|
|
1668
|
-
|
|
1669
|
-
Task(team_name="migration-{feature}", name="build-error-resolver", subagent_type="build-error-resolver",
|
|
1670
|
-
mode="bypassPermissions",
|
|
1671
|
-
prompt="Migration team build fixer. Resolve build errors during {feature} migration.
|
|
1672
|
-
Role: Monitor build output. Apply minimal-diff type fixes for migration errors.
|
|
1673
|
-
Notify implementer of patterns requiring broader changes.")
|
|
1674
|
-
```
|
|
1351
|
+
> **팀 정의**: `agents/teams/migration-team.md` 참조
|
|
1675
1352
|
|
|
1676
1353
|
**활성화 조건:**
|
|
1677
1354
|
|
|
@@ -1680,52 +1357,7 @@ Task(team_name="migration-{feature}", name="build-error-resolver", subagent_type
|
|
|
1680
1357
|
|
|
1681
1358
|
### Agent Teams — Fullstack Team
|
|
1682
1359
|
|
|
1683
|
-
>
|
|
1684
|
-
> API 엔드포인트 + UI 컴포넌트를 동시에 개발.
|
|
1685
|
-
|
|
1686
|
-
**팀 구성:**
|
|
1687
|
-
|
|
1688
|
-
| 팀원 | 역할 |
|
|
1689
|
-
|------|------|
|
|
1690
|
-
| architect (리더) | API 인터페이스 설계, frontend/backend 분업 조율 |
|
|
1691
|
-
| implementer-backend | Backend API, 데이터베이스, 서비스 로직 구현 |
|
|
1692
|
-
| implementer-frontend | Frontend UI, 상태 관리, API 연동 구현 |
|
|
1693
|
-
| tester | E2E 테스트, API 테스트, 통합 테스트 |
|
|
1694
|
-
|
|
1695
|
-
**spawn 패턴:**
|
|
1696
|
-
|
|
1697
|
-
```text
|
|
1698
|
-
TeamCreate(team_name="fullstack-{feature}", description="Fullstack team for {feature}")
|
|
1699
|
-
|
|
1700
|
-
Task(team_name="fullstack-{feature}", name="architect", subagent_type="architect",
|
|
1701
|
-
prompt="Fullstack team leader. Design API contract for {feature}.
|
|
1702
|
-
SPEC: {spec_content}
|
|
1703
|
-
Role: Define API endpoints (request/response schemas). Design data models.
|
|
1704
|
-
Share API contract with both implementers. Coordinate integration timing.")
|
|
1705
|
-
|
|
1706
|
-
Task(team_name="fullstack-{feature}", name="implementer-backend", subagent_type="implementer",
|
|
1707
|
-
mode="bypassPermissions",
|
|
1708
|
-
prompt="Fullstack team backend developer. Implement API for {feature}.
|
|
1709
|
-
SPEC: {spec_content}
|
|
1710
|
-
Role: Implement API endpoints per architect's contract. Create data models and services.
|
|
1711
|
-
Notify implementer-frontend when endpoints are ready for integration.
|
|
1712
|
-
Share API response samples with tester.")
|
|
1713
|
-
|
|
1714
|
-
Task(team_name="fullstack-{feature}", name="implementer-frontend", subagent_type="implementer",
|
|
1715
|
-
mode="bypassPermissions",
|
|
1716
|
-
prompt="Fullstack team frontend developer. Implement UI for {feature}.
|
|
1717
|
-
SPEC: {spec_content}
|
|
1718
|
-
Role: Build UI components and pages per SPEC. Use architect's API contract for types.
|
|
1719
|
-
Start with mock data, switch to real API when backend notifies readiness.
|
|
1720
|
-
Notify tester when UI is ready for E2E testing.")
|
|
1721
|
-
|
|
1722
|
-
Task(team_name="fullstack-{feature}", name="tester", subagent_type="tester",
|
|
1723
|
-
mode="bypassPermissions",
|
|
1724
|
-
prompt="Fullstack team tester. Write comprehensive tests for {feature}.
|
|
1725
|
-
SPEC: {spec_content}
|
|
1726
|
-
Role: Write API tests (after backend ready). Write E2E tests (after frontend ready).
|
|
1727
|
-
Test API contract conformance. Report integration issues to architect.")
|
|
1728
|
-
```
|
|
1360
|
+
> **팀 정의**: `agents/teams/fullstack-team.md` 참조
|
|
1729
1361
|
|
|
1730
1362
|
**활성화 조건:**
|
|
1731
1363
|
|
package/commands/vibe.spec.md
CHANGED
|
@@ -458,67 +458,9 @@ node "[LLM_SCRIPT]" gemini orchestrate-json "Security advisories for passkey aut
|
|
|
458
458
|
|
|
459
459
|
#### 3.0.1 Agent Teams — Research Collaboration
|
|
460
460
|
|
|
461
|
-
>
|
|
461
|
+
> **팀 정의**: `agents/teams/research-team.md` 참조
|
|
462
462
|
> 설정: `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1` + `teammateMode: in-process` (`~/.claude/settings.json` 전역 — postinstall 자동 설정)
|
|
463
463
|
|
|
464
|
-
**팀 구성:**
|
|
465
|
-
|
|
466
|
-
| 팀원 | 역할 |
|
|
467
|
-
|------|------|
|
|
468
|
-
| best-practices (리더) | 패턴/안티패턴 종합, 충돌 해결, 최종 요약 |
|
|
469
|
-
| security-advisory | 보안 관점 검증, 보안 리스크 식별 |
|
|
470
|
-
| codebase-patterns | 기존 코드와의 일관성 검증 |
|
|
471
|
-
| framework-docs | 최신 문서/API 변경사항 확인 |
|
|
472
|
-
|
|
473
|
-
**실행 순서:**
|
|
474
|
-
|
|
475
|
-
1. `TeamCreate(team_name="research-{feature}")` — 팀 + 공유 태스크 리스트 생성
|
|
476
|
-
2. 4개 팀원 병렬 생성 — 각각 `Task(team_name=..., name=..., subagent_type=...)` 으로 spawn
|
|
477
|
-
3. 팀원들이 공유 TaskList에서 작업을 claim하고, SendMessage로 상호 검증
|
|
478
|
-
4. 리더(best-practices)가 최종 통합 요약 작성 → SPEC Context에 반영
|
|
479
|
-
5. 모든 팀원 shutdown_request → TeamDelete로 정리
|
|
480
|
-
|
|
481
|
-
**팀원 spawn 패턴:**
|
|
482
|
-
|
|
483
|
-
```text
|
|
484
|
-
TeamCreate(team_name="research-{feature}", description="Research collaboration for {feature}")
|
|
485
|
-
|
|
486
|
-
# 4개 병렬 spawn
|
|
487
|
-
Task(team_name="research-{feature}", name="best-practices", subagent_type="best-practices-agent",
|
|
488
|
-
prompt="리서치 팀 리더. 10개 병렬 리서치 결과를 종합하세요.
|
|
489
|
-
리서치 결과: {all_research_results}
|
|
490
|
-
역할: 패턴/안티패턴 종합, 팀원 간 충돌 해결, 최종 통합 요약 작성.
|
|
491
|
-
TaskList를 확인하고 작업을 claim하세요. 팀원에게 SendMessage로 검증을 요청하세요.
|
|
492
|
-
모든 작업 완료 후 최종 요약을 작성하세요.")
|
|
493
|
-
|
|
494
|
-
Task(team_name="research-{feature}", name="security-advisory", subagent_type="security-advisory-agent",
|
|
495
|
-
prompt="리서치 팀 보안 담당. 리서치 결과: {all_research_results}
|
|
496
|
-
역할: 보안 관점에서 모든 권장사항 검증.
|
|
497
|
-
보안 리스크 발견 시 best-practices에게 SendMessage로 알리세요.
|
|
498
|
-
TaskList에서 보안 관련 작업을 claim하세요.")
|
|
499
|
-
|
|
500
|
-
Task(team_name="research-{feature}", name="codebase-patterns", subagent_type="codebase-patterns-agent",
|
|
501
|
-
prompt="리서치 팀 코드베이스 담당. 리서치 결과: {all_research_results}
|
|
502
|
-
역할: 권장사항이 기존 코드 패턴과 호환되는지 검증.
|
|
503
|
-
비호환 발견 시 best-practices에게 SendMessage로 알리세요.
|
|
504
|
-
TaskList에서 호환성 관련 작업을 claim하세요.")
|
|
505
|
-
|
|
506
|
-
Task(team_name="research-{feature}", name="framework-docs", subagent_type="framework-docs-agent",
|
|
507
|
-
prompt="리서치 팀 문서 담당. 리서치 결과: {all_research_results}
|
|
508
|
-
역할: 최신 API/문서와 권장사항 대조 검증.
|
|
509
|
-
폐기/변경된 API 발견 시 best-practices에게 SendMessage로 알리세요.
|
|
510
|
-
TaskList에서 문서 검증 관련 작업을 claim하세요.")
|
|
511
|
-
```
|
|
512
|
-
|
|
513
|
-
**팀원 간 통신 예시:**
|
|
514
|
-
|
|
515
|
-
```text
|
|
516
|
-
security-advisory → best-practices: "JWT 라이브러리 권장사항에 CVE-2024-xxxx 취약점. 대안 필요"
|
|
517
|
-
codebase-patterns → best-practices: "기존 코드가 class 패턴인데 함수형 권장은 비호환. 점진적 마이그레이션 제안"
|
|
518
|
-
framework-docs → best-practices: "React 19에서 useEffect 패턴 변경됨. 리서치 결과의 패턴은 구버전"
|
|
519
|
-
best-practices → broadcast: "최종 합의: JWT는 jose 라이브러리로 교체, 함수형 전환은 신규 파일만 적용"
|
|
520
|
-
```
|
|
521
|
-
|
|
522
464
|
**토론 결과는 SPEC의 Context 섹션에 반영됩니다.**
|
|
523
465
|
|
|
524
466
|
#### 3.1 Result Merge Rules
|
|
@@ -382,17 +382,8 @@ Codex adversarial review는 SPEC의 **설계 결정에 도전**합니다:
|
|
|
382
382
|
|
|
383
383
|
## Step 3.5: Review Debate Team (Agent Teams)
|
|
384
384
|
|
|
385
|
+
> **팀 정의**: `agents/teams/review-debate-team.md` 참조 (SPEC Review 컨텍스트)
|
|
385
386
|
> **조건**: Agent Teams 활성화 + 3라운드 완료 후 P1/P2 이슈 2개 이상 발견 시
|
|
386
|
-
> 여러 관점에서 교차 검증하여 오탐 제거 및 우선순위 조정
|
|
387
|
-
|
|
388
|
-
**팀 구성:**
|
|
389
|
-
|
|
390
|
-
| 팀원 | 역할 |
|
|
391
|
-
|------|------|
|
|
392
|
-
| security-reviewer (리더) | 보안 관점 우선순위 결정, 교차 검증 주도 |
|
|
393
|
-
| architecture-reviewer | 구조적 영향 평가, 설계 일관성 확인 |
|
|
394
|
-
| performance-reviewer | 성능 영향 평가, 불필요한 최적화 식별 |
|
|
395
|
-
| simplicity-reviewer | 과잉 설계 여부, YAGNI 위반 식별 |
|
|
396
387
|
|
|
397
388
|
**활성화 조건:**
|
|
398
389
|
|
|
@@ -402,41 +393,6 @@ Codex adversarial review는 SPEC의 **설계 결정에 도전**합니다:
|
|
|
402
393
|
| P1/P2 이슈 1개 이하 | 스킵 → Step 4로 진행 |
|
|
403
394
|
| Agent Teams 비활성화 | 스킵 → Step 4로 진행 |
|
|
404
395
|
|
|
405
|
-
**spawn 패턴:**
|
|
406
|
-
|
|
407
|
-
```text
|
|
408
|
-
TeamCreate(team_name="spec-debate-{feature}", description="SPEC review debate for {feature}")
|
|
409
|
-
|
|
410
|
-
Task(team_name="spec-debate-{feature}", name="security-reviewer", subagent_type="security-reviewer",
|
|
411
|
-
mode="bypassPermissions",
|
|
412
|
-
prompt="SPEC 리뷰 팀 리더. GPT/Gemini가 발견한 P1/P2 이슈를 교차 검증하세요.
|
|
413
|
-
SPEC: {spec_content}
|
|
414
|
-
발견된 이슈: {p1_p2_issues}
|
|
415
|
-
역할: 각 이슈가 진짜인지(오탐 아닌지) 검증. 실제 영향도 기준으로 우선순위 조정.
|
|
416
|
-
분쟁이 있는 이슈는 해당 리뷰어에게 SendMessage로 확인 요청하세요.")
|
|
417
|
-
|
|
418
|
-
Task(team_name="spec-debate-{feature}", name="architecture-reviewer", subagent_type="architecture-reviewer",
|
|
419
|
-
mode="bypassPermissions",
|
|
420
|
-
prompt="SPEC 리뷰 팀 아키텍처 전문가. 아키텍처 관련 이슈를 검증하세요.
|
|
421
|
-
SPEC: {spec_content}
|
|
422
|
-
역할: 구조적 일관성, SOLID 원칙, 레이어 경계 검증.
|
|
423
|
-
우선순위 변경 필요 시 security-reviewer에게 SendMessage로 알리세요.")
|
|
424
|
-
|
|
425
|
-
Task(team_name="spec-debate-{feature}", name="performance-reviewer", subagent_type="performance-reviewer",
|
|
426
|
-
mode="bypassPermissions",
|
|
427
|
-
prompt="SPEC 리뷰 팀 성능 전문가. 성능 관련 이슈를 검증하세요.
|
|
428
|
-
SPEC: {spec_content}
|
|
429
|
-
역할: 성능 요구사항 현실성 평가, 불필요한 최적화 식별.
|
|
430
|
-
P2→P1 승격이 필요하면 security-reviewer에게 SendMessage로 알리세요.")
|
|
431
|
-
|
|
432
|
-
Task(team_name="spec-debate-{feature}", name="simplicity-reviewer", subagent_type="simplicity-reviewer",
|
|
433
|
-
mode="bypassPermissions",
|
|
434
|
-
prompt="SPEC 리뷰 팀 단순성 전문가. 과잉 설계 여부를 검증하세요.
|
|
435
|
-
SPEC: {spec_content}
|
|
436
|
-
역할: YAGNI 위반, 불필요한 복잡성 식별.
|
|
437
|
-
P1→P2 강등이 필요하면 security-reviewer에게 SendMessage로 알리세요.")
|
|
438
|
-
```
|
|
439
|
-
|
|
440
396
|
**결과 통합:**
|
|
441
397
|
- 팀 합의 결과를 SPEC에 반영 (P1 즉시 적용, P2 노트 추가)
|
|
442
398
|
- 팀원 shutdown_request → TeamDelete로 정리
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/cli/postinstall/main.ts"],"names":[],"mappings":";AACA;;GAEG;AAgCH;;GAEG;AACH,wBAAgB,IAAI,IAAI,IAAI,
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/cli/postinstall/main.ts"],"names":[],"mappings":";AACA;;GAEG;AAgCH;;GAEG;AACH,wBAAgB,IAAI,IAAI,IAAI,CAkK3B"}
|