agentic-sdlc 1.6.0 → 1.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (144) hide show
  1. package/.agent/rules/agent-execution.md +55 -0
  2. package/.agent/rules/ai-enforcement.md +4 -3
  3. package/.agent/rules/artifacts.md +1 -1
  4. package/.agent/rules/auto-learning.md +78 -0
  5. package/.agent/rules/code-quality.md +40 -0
  6. package/.agent/rules/global.md +2 -2
  7. package/.agent/rules/naming-conventions.md +55 -0
  8. package/.agent/skills/role-ba.md +6 -2
  9. package/.agent/skills/role-brain.md +5 -1
  10. package/.agent/skills/role-cloud.md +38 -0
  11. package/.agent/skills/role-dev.md +22 -1
  12. package/.agent/skills/role-devops.md +4 -0
  13. package/.agent/skills/role-game.md +35 -0
  14. package/.agent/skills/role-mobile.md +55 -0
  15. package/.agent/skills/role-orchestrator.md +4 -0
  16. package/.agent/skills/role-pm.md +4 -0
  17. package/.agent/skills/role-po.md +4 -0
  18. package/.agent/skills/role-reporter.md +4 -0
  19. package/.agent/skills/role-research.md +78 -0
  20. package/.agent/skills/role-sa.md +4 -0
  21. package/.agent/skills/role-seca.md +4 -0
  22. package/.agent/skills/role-stakeholder.md +4 -0
  23. package/.agent/skills/role-tester.md +4 -0
  24. package/.agent/skills/role-uiux.md +4 -0
  25. package/.agent/templates/Specification-Template.md +38 -0
  26. package/.agent/templates/ab-comparison-report.md +175 -0
  27. package/.agent/templates/observer-report.md +131 -0
  28. package/.agent/templates/quality-score-report.md +197 -0
  29. package/.agent/templates/self-learning-digest.md +268 -0
  30. package/.agent/templates/system-health-report.md +330 -0
  31. package/.agent/workflows/ab.md +101 -0
  32. package/.agent/workflows/autogen.md +65 -0
  33. package/.agent/workflows/brain.md +48 -37
  34. package/.agent/workflows/commit.md +67 -0
  35. package/.agent/workflows/cycle.md +32 -11
  36. package/.agent/workflows/debug.md +123 -0
  37. package/.agent/workflows/deep-search.md +82 -0
  38. package/.agent/workflows/docs.md +144 -0
  39. package/.agent/workflows/emergency.md +17 -15
  40. package/.agent/workflows/explore.md +15 -9
  41. package/.agent/workflows/housekeeping.md +24 -11
  42. package/.agent/workflows/metrics.md +14 -12
  43. package/.agent/workflows/monitor.md +98 -0
  44. package/.agent/workflows/observe.md +84 -0
  45. package/.agent/workflows/onboarding.md +135 -0
  46. package/.agent/workflows/orchestrator.md +12 -5
  47. package/.agent/workflows/planning.md +126 -0
  48. package/.agent/workflows/refactor.md +132 -0
  49. package/.agent/workflows/release.md +23 -12
  50. package/.agent/workflows/review.md +99 -0
  51. package/.agent/workflows/score.md +104 -0
  52. package/.agent/workflows/sprint.md +16 -14
  53. package/.agent/workflows/validate.md +13 -11
  54. package/.agent/workflows/worktree.md +154 -0
  55. package/CHANGELOG.md +82 -0
  56. package/README.md +42 -12
  57. package/bin/cli.js +142 -16
  58. package/docs/.brain-health-history.json +42 -0
  59. package/docs/.brain-improvements.json +53 -0
  60. package/docs/.brain-learner-log.json +27 -0
  61. package/docs/.brain-scores.json +310 -0
  62. package/docs/architecture/system-flow.mermaid +81 -0
  63. package/docs/artifacts/2026-01-05-enforcement-gates-plan.md +80 -0
  64. package/docs/artifacts/2026-01-05-workflow-analysis.md +231 -0
  65. package/docs/artifacts/README.md +26 -0
  66. package/docs/guides/MCP-GUIDE.md +1 -0
  67. package/docs/reports/2026-01-05-autogen-evaluation.md +64 -0
  68. package/docs/reports/2026-01-05-brain-layer-analysis.md +109 -0
  69. package/docs/reports/2026-01-05-repository-audit.md +253 -0
  70. package/docs/reports/Metrics-Dashboard-2026-01-08.md +29 -0
  71. package/docs/reports/Metrics-Dashboard-Final.md +29 -0
  72. package/docs/reports/Validation-Report-2026-01-05.md +40 -0
  73. package/docs/reports/Validation-Report-2026-01-08.md +40 -0
  74. package/docs/reports/worktrunk-audit.md +94 -0
  75. package/docs/solutions/README.md +96 -0
  76. package/docs/walkthroughs/2026-01-05-audit-implementation.md +36 -0
  77. package/docs/walkthroughs/2026-01-05-autonomy-release.md +54 -0
  78. package/docs/walkthroughs/2026-01-05-enforcement-gates.md +33 -0
  79. package/docs/walkthroughs/2026-01-05-judge-enhancement.md +30 -0
  80. package/docs/walkthroughs/2026-01-05-landing-page-orchestrator.md +52 -0
  81. package/docs/walkthroughs/2026-01-05-validation.md +32 -0
  82. package/docs/walkthroughs/2026-01-05-workflow-audit.md +89 -0
  83. package/docs/walkthroughs/2026-01-05-workflow-refactoring.md +44 -0
  84. package/docs/walkthroughs/2026-01-06-worktrunk-integration.md +41 -0
  85. package/docs/walkthroughs/README.md +25 -0
  86. package/package.json +34 -20
  87. package/.agent/knowledge-base/AUTO-LEARNING-GUIDE.md +0 -327
  88. package/.agent/knowledge-base/HOW-IT-WORKS.md +0 -365
  89. package/.agent/knowledge-base/INDEX.md +0 -43
  90. package/.agent/knowledge-base/README.md +0 -242
  91. package/.agent/knowledge-base/architecture/.gitkeep +0 -1
  92. package/.agent/knowledge-base/architecture/KB-2026-01-01-003-neo4j-graph-database-skills.md +0 -1146
  93. package/.agent/knowledge-base/architecture/README.md +0 -98
  94. package/.agent/knowledge-base/bugs/.gitkeep +0 -1
  95. package/.agent/knowledge-base/bugs/KB-2026-01-02-yaml-special-character-escaping.md +0 -56
  96. package/.agent/knowledge-base/bugs/medium/KB-2026-01-01-001-example-auto-learned.md +0 -198
  97. package/.agent/knowledge-base/features/.gitkeep +0 -1
  98. package/.agent/knowledge-base/features/KB-2026-01-01-001-landing-page-design-trends-2026.md +0 -646
  99. package/.agent/knowledge-base/features/KB-2026-01-01-004-uiux-design-skills-2026.md +0 -945
  100. package/.agent/knowledge-base/features/KB-2026-01-01-005-modern-ai-landing-page-ui.md +0 -310
  101. package/.agent/knowledge-base/features/KB-2026-01-01-006-award-winning-landing-page-patterns.md +0 -324
  102. package/.agent/knowledge-base/features/KB-2026-01-02-001-cleanup-workflow.md +0 -242
  103. package/.agent/knowledge-base/features/KB-2026-01-02-002-landing-page-monorepo-architecture.md +0 -148
  104. package/.agent/knowledge-base/features/KB-2026-01-02-003-premium-glassmorphism-patterns.md +0 -58
  105. package/.agent/knowledge-base/features/KB-2026-01-04-ai-agent-enforcement.md +0 -46
  106. package/.agent/knowledge-base/features/README.md +0 -83
  107. package/.agent/knowledge-base/features/figma-landing-page-workflow.md +0 -311
  108. package/.agent/knowledge-base/features/figma-mcp-sa-guide.md +0 -673
  109. package/.agent/knowledge-base/features/figma-mcp-uiux-guide.md +0 -459
  110. package/.agent/knowledge-base/performance/.gitkeep +0 -1
  111. package/.agent/knowledge-base/performance/KB-2026-01-02-lazy-loading-optimization.md +0 -80
  112. package/.agent/knowledge-base/platform-specific/.gitkeep +0 -1
  113. package/.agent/knowledge-base/platform-specific/KB-2026-01-02-windows-console-encoding.md +0 -56
  114. package/.agent/knowledge-base/role-guides/DEV-KB-Guide.md +0 -527
  115. package/.agent/knowledge-base/role-guides/DEVOPS-KB-Guide.md +0 -491
  116. package/.agent/knowledge-base/role-guides/PM-KB-Guide.md +0 -299
  117. package/.agent/knowledge-base/role-guides/SECA-KB-Guide.md +0 -555
  118. package/.agent/knowledge-base/role-guides/TESTER-KB-Guide.md +0 -519
  119. package/.agent/knowledge-base/security/.gitkeep +0 -1
  120. package/.agent/knowledge-base/security/KB-2026-01-02-input-validation-sanitization.md +0 -74
  121. package/.agent/rules/AUTO-LEARNING.md +0 -418
  122. package/.agent/rules/KNOWLEDGE-BASE.md +0 -45
  123. package/.agent/workflows/compound.md +0 -51
  124. package/.agent/workflows/preflight.md +0 -35
  125. package/.agent/workflows/route.md +0 -160
  126. package/bin/kb +0 -34
  127. package/bin/kb.bat +0 -28
  128. package/bin/kb_cli.py +0 -226
  129. package/bin/lib/README.md +0 -411
  130. package/bin/lib/__init__.py +0 -7
  131. package/bin/lib/__pycache__/kb_add.cpython-313.pyc +0 -0
  132. package/bin/lib/__pycache__/kb_common.cpython-313.pyc +0 -0
  133. package/bin/lib/__pycache__/kb_compound.cpython-313.pyc +0 -0
  134. package/bin/lib/__pycache__/kb_index.cpython-313.pyc +0 -0
  135. package/bin/lib/__pycache__/kb_list.cpython-313.pyc +0 -0
  136. package/bin/lib/__pycache__/kb_search.cpython-313.pyc +0 -0
  137. package/bin/lib/__pycache__/kb_stats.cpython-313.pyc +0 -0
  138. package/bin/lib/kb_add.py +0 -203
  139. package/bin/lib/kb_common.py +0 -224
  140. package/bin/lib/kb_compound.py +0 -250
  141. package/bin/lib/kb_index.py +0 -193
  142. package/bin/lib/kb_list.py +0 -144
  143. package/bin/lib/kb_search.py +0 -121
  144. package/bin/lib/kb_stats.py +0 -153
@@ -0,0 +1,132 @@
1
+ ---
2
+ description: Process - Safe Refactoring Workflow
3
+ ---
4
+
5
+ # /refactor - Safe Refactoring Workflow
6
+
7
+ ## ⚠️ PURPOSE
8
+ Systematic approach to refactoring code safely without breaking existing functionality.
9
+
10
+ // turbo-all
11
+
12
+ ## When to Use
13
+
14
+ - Improving code structure
15
+ - Reducing technical debt
16
+ - Extracting reusable components
17
+ - Renaming/reorganizing files
18
+
19
+ ## Golden Rule
20
+ > **Tests MUST pass before AND after refactoring.**
21
+
22
+ ## Quick Commands
23
+
24
+ ```bash
25
+ # Run tests before starting
26
+ bun test
27
+
28
+ # Check current coverage
29
+ bun test --coverage
30
+ ```
31
+
32
+ ## Workflow Steps
33
+
34
+ ### 1. Define Scope
35
+ - [ ] What exactly will be refactored?
36
+ - [ ] What will NOT be touched?
37
+ - [ ] Expected outcome (cleaner code, better performance, etc.)
38
+
39
+ ### 2. Verify Test Coverage
40
+ ```bash
41
+ # Ensure code is covered by tests
42
+ bun test --coverage
43
+
44
+ # If coverage is low, add tests FIRST
45
+ ```
46
+
47
+ **Critical:** If no tests exist for the code being refactored, write tests first!
48
+
49
+ ### 3. Create Feature Branch
50
+ ```bash
51
+ git checkout -b refactor/[description]
52
+ ```
53
+
54
+ ### 4. Run Tests (Baseline)
55
+ ```bash
56
+ # All tests must pass before refactoring
57
+ bun test
58
+ ```
59
+
60
+ ### 5. Refactor in Small Steps
61
+ - [ ] Make ONE small change
62
+ - [ ] Run tests
63
+ - [ ] Commit if green
64
+ - [ ] Repeat
65
+
66
+ ```bash
67
+ # Atomic commits
68
+ git commit -m "refactor: extract [function] from [module]"
69
+ ```
70
+
71
+ ### 6. Run Full Test Suite
72
+ ```bash
73
+ # Verify no regressions
74
+ bun test
75
+
76
+ # Check types
77
+ bun run typecheck
78
+
79
+ # Lint check
80
+ bun run lint
81
+ ```
82
+
83
+ ### 7. Code Review
84
+ ```bash
85
+ # Create PR for review
86
+ gh pr create --title "refactor: [description]"
87
+ ```
88
+
89
+ Invoke `/review` workflow for PR.
90
+
91
+ ### 8. Self-Learning
92
+ ```bash
93
+ # Document refactoring pattern
94
+ agentic-sdlc kb compound sync
95
+ ```
96
+
97
+ ## Refactoring Patterns
98
+
99
+ | Pattern | Description | Risk |
100
+ |---------|-------------|------|
101
+ | **Extract Function** | Move code to reusable function | Low |
102
+ | **Rename** | Improve naming | Low |
103
+ | **Move File** | Reorganize structure | Medium |
104
+ | **Extract Module** | Split large file | Medium |
105
+ | **Change Signature** | Update function parameters | High |
106
+ | **Replace Algorithm** | New implementation | High |
107
+
108
+ ## Anti-Patterns (Don't Do)
109
+
110
+ - ❌ Refactor AND add features at same time
111
+ - ❌ Refactor without tests
112
+ - ❌ Large refactoring without incremental commits
113
+ - ❌ Skip code review for "safe" refactoring
114
+
115
+ ## Integration
116
+
117
+ - **@DEV** - Primary refactorer
118
+ - **@TESTER** - Verify test coverage
119
+ - **/review** - Code review after refactoring
120
+ - **/cycle** - Standard task lifecycle
121
+
122
+ #refactor #code-quality #technical-debt #cleanup
123
+
124
+ ## ⏭️ Next Steps
125
+ - **If Tests Pass:** Trigger `/review` for code review
126
+ - **If Tests Fail:** Fix regressions (do not merge)
127
+ - **If Verified:** Trigger `/release` (if applicable)
128
+
129
+ ---
130
+
131
+ ## ENFORCEMENT REMINDER
132
+ Tests MUST pass before AND after refactoring.
@@ -1,5 +1,5 @@
1
1
  ---
2
- description: [Support] Release Management Workflow
2
+ description: Support - Release Management Workflow
3
3
  ---
4
4
 
5
5
  # /release - Changelog and Version Management
@@ -13,16 +13,16 @@ description: [Support] Release Management Workflow
13
13
 
14
14
  ```bash
15
15
  # Preview changes (dry run)
16
- python tools/release/release.py preview
16
+ python tools/infrastructure/release/release.py preview
17
17
 
18
18
  # Generate changelog only
19
- python tools/release/release.py changelog --sprint 6
19
+ python tools/infrastructure/release/release.py changelog --sprint 6
20
20
 
21
21
  # Bump version only
22
- python tools/release/release.py version --auto
22
+ python tools/infrastructure/release/release.py version --auto
23
23
 
24
24
  # Full release cycle
25
- python tools/release/release.py release --commit --tag --push --publish
25
+ python tools/infrastructure/release/release.py release --commit --tag --push --publish
26
26
  ```
27
27
 
28
28
  ## Conventional Commit Format
@@ -65,7 +65,7 @@ refactor(core): extract utility functions
65
65
 
66
66
  ### 1. Preview Changes
67
67
  ```bash
68
- python tools/release/release.py preview --sprint 6
68
+ python tools/infrastructure/release/release.py preview --sprint 6
69
69
  ```
70
70
  Shows:
71
71
  - Last git tag
@@ -76,7 +76,7 @@ Shows:
76
76
 
77
77
  ### 2. Generate Changelog
78
78
  ```bash
79
- python tools/release/release.py changelog --sprint 6 --dry-run
79
+ python tools/infrastructure/release/release.py changelog --sprint 6 --dry-run
80
80
  ```
81
81
  - Parses commits since last tag
82
82
  - Categorizes by type
@@ -86,16 +86,16 @@ python tools/release/release.py changelog --sprint 6 --dry-run
86
86
  ### 3. Bump Version
87
87
  ```bash
88
88
  # Auto-detect based on commits
89
- python tools/release/release.py version --auto
89
+ python tools/infrastructure/release/release.py version --auto
90
90
 
91
91
  # Explicit bump type
92
- python tools/release/release.py version --bump minor
92
+ python tools/infrastructure/release/release.py version --bump minor
93
93
  ```
94
94
  Updates `package.json` version.
95
95
 
96
96
  ### 4. Full Release
97
97
  ```bash
98
- python tools/release/release.py release --sprint 6 --commit --tag --push --publish
98
+ python tools/infrastructure/release/release.py release --sprint 6 --commit --tag --push --publish
99
99
  ```
100
100
  Executes:
101
101
  1. Parse commits
@@ -141,13 +141,24 @@ git push && git push --tags
141
141
  bun run release # Full release
142
142
  ```
143
143
 
144
+ - **Update Methods:**
145
+ - **NPM Update:** `npm update -g agentic-sdlc`
146
+ - **Source Update:** `python tools/infrastructure/update/updater.py`
147
+
144
148
  - **CI/CD:** Can be triggered in GitHub Actions
145
149
 
150
+ - **Publish to NPM:** To publish to NPM, ensure you are logged in using `npm login` then run the release command with the --publish flag.
151
+ ```bash
152
+ python tools/infrastructure/release/release.py release --publish
153
+ ```
154
+
146
155
  #release #versioning #changelog #semver #git-tags
147
156
 
157
+ ## ⏭️ Next Steps
158
+ - **If Release Successful:** Trigger `/housekeeping`
159
+ - **If Changelog Updated:** Notify stakeholders via `@REPORTER`
148
160
 
149
161
  ---
150
162
 
151
163
  ## ENFORCEMENT REMINDER
152
- Before executing, complete /preflight checks.
153
-
164
+ Ensure all tests pass before releasing.
@@ -0,0 +1,99 @@
1
+ ---
2
+ description: Process - Code Review Workflow for PRs
3
+ ---
4
+
5
+ # /review - Code Review Workflow
6
+
7
+ ## ⚠️ PURPOSE
8
+ Systematic code review process for Pull Requests. Ensures code quality, security, and consistency.
9
+
10
+ // turbo-all
11
+
12
+ ## Quick Commands
13
+
14
+ ```bash
15
+ # Review a specific PR
16
+ agentic-sdlc review --pr 123
17
+
18
+ # Review current branch changes
19
+ git diff main...HEAD --stat
20
+ ```
21
+
22
+ ## Workflow Steps
23
+
24
+ ### 1. Context Gathering
25
+ ```bash
26
+ # Search KB for similar implementations
27
+ agentic-sdlc kb search "[feature/module]"
28
+
29
+ # View PR diff
30
+ git diff main...HEAD
31
+ ```
32
+
33
+ ### 2. Code Quality Checklist
34
+ - [ ] **Readability:** Clear naming, comments where needed
35
+ - [ ] **Structure:** Follows project patterns
36
+ - [ ] **DRY:** No unnecessary duplication
37
+ - [ ] **SOLID:** Single responsibility, clean interfaces
38
+
39
+ ### 3. Security Review (@SECA)
40
+ - [ ] No hardcoded secrets
41
+ - [ ] Input validation present
42
+ - [ ] No SQL injection vulnerabilities
43
+ - [ ] Proper error handling (no sensitive data in errors)
44
+
45
+ ### 4. Test Coverage (@TESTER)
46
+ - [ ] Unit tests added for new code
47
+ - [ ] Edge cases covered
48
+ - [ ] Integration tests if needed
49
+ - [ ] All tests passing
50
+
51
+ ### 5. Documentation
52
+ - [ ] Code comments for complex logic
53
+ - [ ] API docs updated if applicable
54
+ - [ ] README updated if needed
55
+
56
+ ### 6. Provide Feedback
57
+ ```bash
58
+ # Comment on PR (via GitHub CLI)
59
+ gh pr comment 123 --body "LGTM with suggestions: ..."
60
+
61
+ # Request changes
62
+ gh pr review 123 --request-changes --body "Please fix: ..."
63
+
64
+ # Approve
65
+ gh pr review 123 --approve
66
+ ```
67
+
68
+ ### 7. Self-Learning
69
+ ```bash
70
+ # Record review patterns for future reference
71
+ agentic-sdlc kb compound sync
72
+ ```
73
+
74
+ ## Review Severity Levels
75
+
76
+ | Level | Action | Examples |
77
+ |-------|--------|----------|
78
+ | 🔴 Blocker | Must fix before merge | Security issue, breaks build |
79
+ | 🟠 Major | Should fix | Performance issue, wrong pattern |
80
+ | 🟡 Minor | Nice to fix | Naming, style inconsistency |
81
+ | 🟢 Nitpick | Optional | Personal preference |
82
+
83
+ ## Integration
84
+
85
+ - **@TESTER** - Test coverage review
86
+ - **@SECA** - Security review
87
+ - **@DEV** - Code implementation review
88
+ - **/cycle** - Part of standard task lifecycle
89
+
90
+ #review #pr #code-quality #security
91
+
92
+ ## ⏭️ Next Steps
93
+ - **If Approved:** Trigger `/release` (if ready) or Merger
94
+ - **If Changes Requested:** Return to `@DEV` for fixes
95
+
96
+ ---
97
+
98
+ ## ENFORCEMENT REMINDER
99
+ Search KB for similar patterns before commenting.
@@ -0,0 +1,104 @@
1
+ ---
2
+ description: Intelligence - Score - Quality Scoring with Judge
3
+ ---
4
+
5
+ # /score - Quality Scoring Workflow
6
+
7
+ ## ⚠️ PURPOSE
8
+ Score code, reports, or artifacts using the Judge agent to assess quality and get improvement suggestions.
9
+
10
+ // turbo-all
11
+
12
+ ## Quick Commands
13
+
14
+ ```bash
15
+ # Score a code file
16
+ python tools/intelligence/judge/scorer.py --code src/app.py
17
+
18
+ # Score a report or document
19
+ python tools/intelligence/judge/scorer.py --report docs/walkthroughs/latest.md
20
+
21
+ # Score via Brain CLI
22
+ python tools/core/brain/brain_cli.py score "path/to/file.py"
23
+
24
+ # Score A/B test alternatives
25
+ python tools/intelligence/judge/scorer.py --ab-test docs/reports/ab_tests/YYYY-MM-DD-auth.md
26
+ ```
27
+
28
+ ## When to Use
29
+
30
+ - After completing implementation
31
+ - Before submitting PR
32
+ - During code review
33
+ - To validate documentation quality
34
+
35
+ ## Workflow Steps
36
+
37
+ ### 1. Identify Target
38
+ Determine what you want to score:
39
+ - Code file
40
+ - Documentation
41
+ - Report
42
+ - A/B test result
43
+
44
+ ### 2. Run Scoring
45
+ ```bash
46
+ python tools/intelligence/judge/scorer.py --code [file_path]
47
+ ```
48
+
49
+ ### 3. Review Score
50
+
51
+ **Code Scoring (0-100):**
52
+ | Dimension | Description |
53
+ |-----------|-------------|
54
+ | Complexity | Cyclomatic complexity, nesting depth |
55
+ | Readability | Naming, comments, structure |
56
+ | Security | Vulnerabilities, best practices |
57
+ | Performance | Efficiency, optimization |
58
+ | Maintainability | Modularity, DRY, SOLID |
59
+
60
+ **Report Scoring (0-100):**
61
+ | Dimension | Description |
62
+ |-----------|-------------|
63
+ | Completeness | All sections present |
64
+ | Clarity | Well-written, understandable |
65
+ | Accuracy | Correct information |
66
+ | Actionability | Clear next steps |
67
+
68
+ ### 4. Address Issues
69
+ If score < 80:
70
+ - Review improvement suggestions
71
+ - Make necessary changes
72
+ - Re-score to verify
73
+
74
+ ### 5. Document Result
75
+ ```bash
76
+ python tools/core/brain/brain_cli.py learn "Improved [file] quality from X to Y"
77
+ ```
78
+
79
+ ## Score Thresholds
80
+
81
+ | Score | Status | Action |
82
+ |-------|--------|--------|
83
+ | 90-100 | ✅ Excellent | Ship it |
84
+ | 70-89 | 🟡 Good | Minor improvements optional |
85
+ | 50-69 | 🟠 Needs Work | Address issues before PR |
86
+ | 0-49 | 🔴 Critical | Major refactoring needed |
87
+
88
+ ## Integration
89
+
90
+ - **@TESTER** - Quality assurance
91
+ - **/cycle** - Pre-PR scoring
92
+ - **/review** - Code review support
93
+ - **/commit** - Score before commit
94
+
95
+ #score #quality #judge #metrics
96
+
97
+ ## ⏭️ Next Steps
98
+ - **If Score ≥ 80:** Proceed with `/commit` or `/review`
99
+ - **If Score < 80:** Fix issues and re-score
100
+
101
+ ---
102
+
103
+ ## ENFORCEMENT REMINDER
104
+ Target score of 80+ before committing code.
@@ -1,5 +1,5 @@
1
1
  ---
2
- description: [Process] Sprint Management Workflow
2
+ description: Process - Sprint Management Workflow
3
3
  ---
4
4
 
5
5
  # /sprint - Sprint Lifecycle Management
@@ -13,13 +13,13 @@ description: [Process] Sprint Management Workflow
13
13
 
14
14
  ```bash
15
15
  # Start a new sprint
16
- python tools/workflows/sprint.py start 6
16
+ python tools/infrastructure/workflows/sprint.py start 6
17
17
 
18
18
  # Check current sprint status
19
- python tools/workflows/sprint.py status
19
+ python tools/infrastructure/workflows/sprint.py status
20
20
 
21
21
  # Close a sprint
22
- python tools/workflows/sprint.py close 5
22
+ python tools/infrastructure/workflows/sprint.py close 5
23
23
  ```
24
24
 
25
25
  ## Sprint Start
@@ -40,7 +40,7 @@ python tools/workflows/sprint.py close 5
40
40
 
41
41
  ### Usage
42
42
  ```bash
43
- python tools/workflows/sprint.py start 6
43
+ python tools/infrastructure/workflows/sprint.py start 6
44
44
  ```
45
45
 
46
46
  ### Next Steps After Start
@@ -58,7 +58,7 @@ python tools/workflows/sprint.py start 6
58
58
 
59
59
  ### Usage
60
60
  ```bash
61
- python tools/workflows/sprint.py status
61
+ python tools/infrastructure/workflows/sprint.py status
62
62
  ```
63
63
 
64
64
  ## Sprint Close
@@ -78,13 +78,13 @@ python tools/workflows/sprint.py status
78
78
 
79
79
  ### Usage
80
80
  ```bash
81
- python tools/workflows/sprint.py close 5
81
+ python tools/infrastructure/workflows/sprint.py close 5
82
82
  ```
83
83
 
84
84
  ### Next Steps After Close
85
85
  1. Fill in Sprint Review with accomplishments
86
86
  2. Complete Retrospective with team
87
- 3. Start next sprint: `python tools/workflows/sprint.py start 6`
87
+ 3. Start next sprint: `python tools/infrastructure/workflows/sprint.py start 6`
88
88
 
89
89
  ## Sprint Folder Structure
90
90
 
@@ -116,10 +116,12 @@ docs/sprints/sprint-[N]/
116
116
  - **/release** references sprint in changelog
117
117
 
118
118
  #sprint #agile #lifecycle #planning #retrospective
119
-
120
-
121
- ---
122
-
123
- ## ENFORCEMENT REMINDER
124
- Before executing, complete /preflight checks.
125
119
 
120
+ ## ⏭️ Next Steps
121
+ - **If Sprint Started:** Trigger `@PM` for planning details
122
+ - **If Sprint Closed:** Trigger `/housekeeping` for cleanup
123
+
124
+ ---
125
+
126
+ ## ENFORCEMENT REMINDER
127
+ Run /onboarding if new to project.
@@ -1,5 +1,5 @@
1
1
  ---
2
- description: [Utility] Validate - Workflow Compliance Checker
2
+ description: Utility - Validate - Workflow Compliance Checker
3
3
  ---
4
4
 
5
5
  # /validate - Tool Reference Validator
@@ -11,13 +11,13 @@ Scans all workflow files for `python tools/...` commands and file path reference
11
11
 
12
12
  ```bash
13
13
  # Full validation
14
- python tools/validation/validate.py
14
+ python tools/infrastructure/validation/validate.py
15
15
 
16
16
  # With fix suggestions
17
- python tools/validation/validate.py --fix
17
+ python tools/infrastructure/validation/validate.py --fix
18
18
 
19
19
  # Generate report file
20
- python tools/validation/validate.py --report
20
+ python tools/infrastructure/validation/validate.py --report
21
21
  ```
22
22
 
23
23
  ## What It Checks
@@ -110,7 +110,7 @@ Generates `docs/reports/Validation-Report-YYYY-MM-DD.md`:
110
110
  ## Fix Suggestions (--fix)
111
111
 
112
112
  ```bash
113
- python tools/validation/validate.py --fix
113
+ python tools/infrastructure/validation/validate.py --fix
114
114
  ```
115
115
 
116
116
  Outputs:
@@ -137,10 +137,12 @@ Works with:
137
137
  - CI/CD pipelines
138
138
 
139
139
  #validate #health-check #workflow-audit #compliance
140
-
141
-
142
- ---
143
-
144
- ## ENFORCEMENT REMINDER
145
- Before executing, complete /preflight checks.
146
140
 
141
+ ## ⏭️ Next Steps
142
+ - **If Valid:** Continue current workflow
143
+ - **If Invalid:** Fix references and re-run `/validate`
144
+
145
+ ---
146
+
147
+ ## ENFORCEMENT REMINDER
148
+ Ensure all workflow references are valid before committing.
@@ -0,0 +1,154 @@
1
+ ---
2
+ description: Support - Parallel AI Agent Worktree Management
3
+ ---
4
+
5
+ # /worktree - Git Worktree Management with Worktrunk
6
+
7
+ ## ⚠️ STRICT EXECUTION PROTOCOL (MANDATORY)
8
+ 1. **PREREQUISITES:** Ensure Worktrunk is installed before using.
9
+ 2. **ONE BRANCH PER WORKTREE:** Each worktree = one branch.
10
+ 3. **CLEANUP:** Always remove worktrees after merging.
11
+
12
+ ## Prerequisites
13
+
14
+ ### Installation
15
+ ```bash
16
+ # Via Cargo (Rust)
17
+ cargo install worktrunk && wt config shell install
18
+
19
+ # Via Homebrew (macOS/Linux)
20
+ brew install max-sixty/worktrunk/wt && wt config shell install
21
+ ```
22
+
23
+ ### Verify Installation
24
+ ```bash
25
+ wt --help
26
+ wt list
27
+ ```
28
+
29
+ ## Core Commands
30
+
31
+ | Command | Description |
32
+ |---------|-------------|
33
+ | `wt switch <branch>` | Switch to existing worktree (creates if needed) |
34
+ | `wt switch -c <branch>` | Create new worktree with new branch |
35
+ | `wt list` | List all worktrees |
36
+ | `wt remove` | Remove current worktree and its branch |
37
+ | `wt merge` | Squash/merge current branch and cleanup |
38
+ | `wt select` | Interactive worktree selector (fzf-like) |
39
+
40
+ ## Workflow Steps
41
+
42
+ ### 1. Start New Task in Worktree
43
+ ```bash
44
+ # Create worktree for feature
45
+ wt switch -c feat/task-123
46
+
47
+ # Your terminal is now in the new worktree directory
48
+ # e.g., ../repo.feat/task-123
49
+ ```
50
+
51
+ ### 2. Work in Parallel
52
+ ```bash
53
+ # List all active worktrees
54
+ wt list
55
+
56
+ # Switch between worktrees
57
+ wt switch feat/task-123
58
+ wt switch fix/bug-456
59
+ ```
60
+
61
+ ### 3. Merge and Cleanup
62
+ ```bash
63
+ # From the worktree you want to merge
64
+ wt merge
65
+
66
+ # This will:
67
+ # 1. Squash commits
68
+ # 2. Merge to main
69
+ # 3. Remove the worktree
70
+ # 4. Delete the branch
71
+ ```
72
+
73
+ ### 4. Manual Cleanup
74
+ ```bash
75
+ # Remove current worktree without merging
76
+ wt remove
77
+
78
+ # Remove specific worktree
79
+ wt remove feat/old-branch
80
+ ```
81
+
82
+ ## Hooks (Advanced)
83
+
84
+ Create `.worktrunk/hooks/` in your repo root:
85
+
86
+ ```bash
87
+ # .worktrunk/hooks/on-create.sh
88
+ #!/bin/bash
89
+ # Run after creating a new worktree
90
+ bun install # or npm install
91
+ ```
92
+
93
+ ```bash
94
+ # .worktrunk/hooks/pre-merge.sh
95
+ #!/bin/bash
96
+ # Run before merging
97
+ bun test
98
+ ```
99
+
100
+ ## Multi-Agent Workflow
101
+
102
+ ### Run Multiple AI Agents in Parallel
103
+ ```bash
104
+ # Terminal 1: Agent working on feature
105
+ wt switch -c feat/auth-system
106
+ # Start Claude Code or other agent here
107
+
108
+ # Terminal 2: Agent working on bug fix
109
+ wt switch -c fix/login-issue
110
+ # Start another agent here
111
+
112
+ # Terminal 3: Agent working on docs
113
+ wt switch -c docs/api-reference
114
+ # Start another agent here
115
+ ```
116
+
117
+ ### Monitor All Agents
118
+ ```bash
119
+ wt list
120
+ # Shows all worktrees with their branches
121
+ ```
122
+
123
+ ## Integration
124
+
125
+ - **@DEV** uses for parallel feature development
126
+ - **@TESTER** can test in isolated worktrees
127
+ - **/cycle** can leverage worktrees for complex tasks
128
+
129
+ ## Best Practices
130
+
131
+ 1. **Name branches descriptively**: `feat/`, `fix/`, `docs/`, `refactor/`
132
+ 2. **One task per worktree**: Keep scope focused
133
+ 3. **Merge frequently**: Don't let worktrees pile up
134
+ 4. **Use hooks**: Automate environment setup
135
+
136
+ ## Troubleshooting
137
+
138
+ ### Windows-Specific
139
+ - Use Git Bash for best compatibility
140
+ - PowerShell works for basic commands
141
+ - Restart shell after `wt config shell install`
142
+
143
+ ### Common Issues
144
+ | Issue | Solution |
145
+ |-------|----------|
146
+ | `wt` command not found | Run `wt config shell install` and restart shell |
147
+ | Permission denied | Run shell as administrator (Windows) |
148
+ | Path issues | Use Git Bash instead of PowerShell |
149
+
150
+ ## References
151
+ - [Worktrunk Documentation](https://worktrunk.dev)
152
+ - [GitHub: max-sixty/worktrunk](https://github.com/max-sixty/worktrunk)
153
+
154
+ #worktree #parallel #agents #git #support