agentic-sdlc 1.6.0 → 1.8.1

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 +61 -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 +19 -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 +71 -0
  56. package/README.md +12 -4
  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 +33 -19
  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,38 @@
1
+ # Specification: [Feature Name]
2
+
3
+ ## 1. Problem Statement
4
+ **Context:** [Brief background]
5
+ **Problem:** [What specific problem are we solving?]
6
+ **Goal:** [What is the desired outcome?]
7
+
8
+ ## 2. User Stories
9
+ | Actor | I want to... | So that... | Priority |
10
+ |-------|--------------|------------|----------|
11
+ | User | [Action] | [Benefit] | P0/P1 |
12
+ | Admin | [Action] | [Benefit] | P2 |
13
+
14
+ ## 3. Functional Requirements
15
+ ### 3.1 Core Capabilities
16
+ - [ ] System MUST ...
17
+ - [ ] System SHOULD ...
18
+
19
+ ### 3.2 Inputs & Outputs
20
+ - **Input:** [Data/Action]
21
+ - **Output:** [Data/Response]
22
+
23
+ ## 4. User Experience (Flow)
24
+ 1. **Trigger:** [Start event]
25
+ 2. **Step 1:** [User action]
26
+ 3. **Step 2:** [System response]
27
+ 4. **End State:** [Final outcome]
28
+
29
+ ## 5. Non-Functional Requirements
30
+ - **Performance:** [Latency/Throughput goals]
31
+ - **Security:** [Auth/Permissions]
32
+ - **Compatibility:** [Browsers/OS]
33
+
34
+ ## 6. Questions & Assumptions
35
+ - [?] [Question 1]
36
+ - [!] [Assumption 1]
37
+
38
+ #specification #requirements
@@ -0,0 +1,175 @@
1
+ # A/B Comparison Report
2
+
3
+ **Report ID:** `[AUTO-GENERATED]`
4
+ **Generated:** `[TIMESTAMP]`
5
+ **Prompt:** `[USER_PROMPT]`
6
+
7
+ ---
8
+
9
+ ## Executive Summary
10
+
11
+ **Decision Context:** `[Brief description of what needs to be decided]`
12
+
13
+ **Recommendation:** Option A | Option B | Tie
14
+
15
+ **Confidence Level:** High | Medium | Low
16
+
17
+ ---
18
+
19
+ ## Alternative A: `[APPROACH_NAME]`
20
+
21
+ ### Description
22
+ `[Detailed description of Alternative A]`
23
+
24
+ ### Implementation Approach
25
+ ```
26
+ [Step-by-step approach for Alternative A]
27
+ 1. Step 1
28
+ 2. Step 2
29
+ 3. ...
30
+ ```
31
+
32
+ ### Pros
33
+ - ✅ `[Advantage 1]`
34
+ - ✅ `[Advantage 2]`
35
+ - ✅ `[Advantage 3]`
36
+
37
+ ### Cons
38
+ - ❌ `[Disadvantage 1]`
39
+ - ❌ `[Disadvantage 2]`
40
+
41
+ ### Scores (0-100)
42
+
43
+ | Dimension | Score | Justification |
44
+ |-----------|-------|---------------|
45
+ | **Time to Implement** | `[0-100]` | `[Why this score]` |
46
+ | **Complexity** | `[0-100]` | `[Why this score]` |
47
+ | **Reliability** | `[0-100]` | `[Why this score]` |
48
+ | **Maintainability** | `[0-100]` | `[Why this score]` |
49
+ | **Scalability** | `[0-100]` | `[Why this score]` |
50
+ | **Cost** | `[0-100]` | `[Why this score]` |
51
+
52
+ **Total Score:** `[AVERAGE]` / 100
53
+
54
+ ### Past Similar Solutions
55
+ `[KB search results - what we've done before that's similar]`
56
+ - Solution 1: `[Link to KB entry]`
57
+ - Solution 2: `[Link to KB entry]`
58
+
59
+ ### Related Technologies (Neo4j)
60
+ `[Technologies/skills from Neo4j graph]`
61
+ - Tech 1: `[Relationship]`
62
+ - Tech 2: `[Relationship]`
63
+
64
+ ---
65
+
66
+ ## Alternative B: `[APPROACH_NAME]`
67
+
68
+ ### Description
69
+ `[Detailed description of Alternative B]`
70
+
71
+ ### Implementation Approach
72
+ ```
73
+ [Step-by-step approach for Alternative B]
74
+ 1. Step 1
75
+ 2. Step 2
76
+ 3. ...
77
+ ```
78
+
79
+ ### Pros
80
+ - ✅ `[Advantage 1]`
81
+ - ✅ `[Advantage 2]`
82
+ - ✅ `[Advantage 3]`
83
+
84
+ ### Cons
85
+ - ❌ `[Disadvantage 1]`
86
+ - ❌ `[Disadvantage 2]`
87
+
88
+ ### Scores (0-100)
89
+
90
+ | Dimension | Score | Justification |
91
+ |-----------|-------|---------------|
92
+ | **Time to Implement** | `[0-100]` | `[Why this score]` |
93
+ | **Complexity** | `[0-100]` | `[Why this score]` |
94
+ | **Reliability** | `[0-100]` | `[Why this score]` |
95
+ | **Maintainability** | `[0-100]` | `[Why this score]` |
96
+ | **Scalability** | `[0-100]` | `[Why this score]` |
97
+ | **Cost** | `[0-100]` | `[Why this score]` |
98
+
99
+ **Total Score:** `[AVERAGE]` / 100
100
+
101
+ ### Past Similar Solutions
102
+ `[KB search results]`
103
+ - Solution 1: `[Link to KB entry]`
104
+ - Solution 2: `[Link to KB entry]`
105
+
106
+ ### Related Technologies (Neo4j)
107
+ `[Technologies/skills from Neo4j graph]`
108
+ - Tech 1: `[Relationship]`
109
+ - Tech 2: `[Relationship]`
110
+
111
+ ---
112
+
113
+ ## Side-by-Side Comparison
114
+
115
+ | Aspect | Alternative A | Alternative B | Winner |
116
+ |--------|---------------|---------------|---------|
117
+ | Time to Implement | `[Score]` | `[Score]` | A / B / Tie |
118
+ | Complexity | `[Score]` | `[Score]` | A / B / Tie |
119
+ | Reliability | `[Score]` | `[Score]` | A / B / Tie |
120
+ | Maintainability | `[Score]` | `[Score]` | A / B / Tie |
121
+ | Scalability | `[Score]` | `[Score]` | A / B / Tie |
122
+ | Cost | `[Score]` | `[Score]` | A / B / Tie |
123
+ | **Overall** | `[Total]` | `[Total]` | **A / B / Tie** |
124
+
125
+ ---
126
+
127
+ ## Recommendation
128
+
129
+ ### Preferred Option: `[A or B]`
130
+
131
+ **Rationale:**
132
+ `[Detailed explanation of why this option is recommended]`
133
+
134
+ **When to Choose Alternative A:**
135
+ - Scenario 1: `[Description]`
136
+ - Scenario 2: `[Description]`
137
+
138
+ **When to Choose Alternative B:**
139
+ - Scenario 1: `[Description]`
140
+ - Scenario 2: `[Description]`
141
+
142
+ **Risk Factors:**
143
+ - Risk 1: `[Description and mitigation]`
144
+ - Risk 2: `[Description and mitigation]`
145
+
146
+ ---
147
+
148
+ ## Research Sources
149
+
150
+ ### Knowledge Base Entries Used
151
+ - `[KB entry 1]` - `[Relevance]`
152
+ - `[KB entry 2]` - `[Relevance]`
153
+
154
+ ### Neo4j Graph Insights
155
+ - `[Graph insight 1]`
156
+ - `[Graph insight 2]`
157
+
158
+ ### External Research (MCP)
159
+ - `[External source 1]`
160
+ - `[External source 2]`
161
+
162
+ ---
163
+
164
+ ## Next Steps
165
+
166
+ - [ ] Review both alternatives with stakeholders
167
+ - [ ] Make final decision
168
+ - [ ] Create implementation plan for chosen option
169
+ - [ ] Record decision in KB for future reference
170
+
171
+ ---
172
+
173
+ **A/B Test Agent:** v1.0.0
174
+ **Judge Score:** `[If this report was scored]` / 100
175
+ **Report Generated At:** `[TIMESTAMP]`
@@ -0,0 +1,131 @@
1
+ # Observer Compliance Report
2
+
3
+ **Report ID:** `[AUTO-GENERATED]`
4
+ **Generated:** `[TIMESTAMP]`
5
+ **Agent:** `[AGENT_NAME]`
6
+ **Task:** `[TASK_ID]`
7
+
8
+ ---
9
+
10
+ ## Executive Summary
11
+
12
+ **Compliance Score:** `[0-100]` / 100
13
+ **Status:** ✅ PASS | ⚠️ WARNING | ❌ FAIL
14
+ **Violations Found:** `[NUMBER]`
15
+ **Auto-Corrected:** `[NUMBER]`
16
+ **Requires Attention:** `[NUMBER]`
17
+
18
+ ---
19
+
20
+ ## Rule Compliance Check
21
+
22
+ ### Code Quality Rules
23
+
24
+ | Rule | Status | Details |
25
+ |------|--------|---------|
26
+ | Linting passed | ✅ / ❌ | `[Details]` |
27
+ | Code style follows conventions | ✅ / ❌ | `[Details]` |
28
+ | Cyclomatic complexity < 10 | ✅ / ❌ | `[Details]` |
29
+ | Nesting depth < 4 | ✅ / ❌ | `[Details]` |
30
+ | Function length < 50 lines | ✅ / ❌ | `[Details]` |
31
+
32
+ ### Naming Conventions
33
+
34
+ | Rule | Status | Details |
35
+ |------|--------|---------|
36
+ | Files use snake_case | ✅ / ❌ | `[Details]` |
37
+ | Classes use PascalCase | ✅ / ❌ | `[Details]` |
38
+ | Variables use camelCase | ✅ / ❌ | `[Details]` |
39
+ | Constants use UPPER_CASE | ✅ / ❌ | `[Details]` |
40
+
41
+ ### Template Compliance
42
+
43
+ | Rule | Status | Details |
44
+ |------|--------|---------|
45
+ | Used correct template | ✅ / ❌ | `[Template name]` |
46
+ | All required sections present | ✅ / ❌ | `[Missing sections]` |
47
+ | YAML frontmatter valid | ✅ / ❌ | `[Errors]` |
48
+
49
+ ### Workflow Steps
50
+
51
+ | Rule | Status | Details |
52
+ |------|--------|---------|
53
+ | Followed all mandatory steps | ✅ / ❌ | `[Skipped steps]` |
54
+ | Pre-flight checklist completed | ✅ / ❌ | `[Details]` |
55
+ | Enforcement gates passed | ✅ / ❌ | `[Failed gates]` |
56
+
57
+ ---
58
+
59
+ ## Violations Detected
60
+
61
+ ### Critical Violations (Require Immediate Action)
62
+
63
+ #### Violation #1
64
+ - **Type:** `[Code Quality / Naming / Template / Workflow]`
65
+ - **Severity:** CRITICAL
66
+ - **Rule:** `[Rule name]`
67
+ - **Location:** `[file:line]`
68
+ - **Description:** `[What was violated]`
69
+ - **Impact:** `[Why this matters]`
70
+ - **Recommendation:** `[How to fix]`
71
+
72
+ ### Warning Violations (Should Be Fixed)
73
+
74
+ #### Violation #2
75
+ - **Type:** `[Type]`
76
+ - **Severity:** WARNING
77
+ - **Rule:** `[Rule name]`
78
+ - **Location:** `[file:line]`
79
+ - **Description:** `[What was violated]`
80
+ - **Recommendation:** `[How to fix]`
81
+
82
+ ### Auto-Corrected Violations
83
+
84
+ #### Violation #3
85
+ - **Type:** `[Type]`
86
+ - **Severity:** INFO
87
+ - **Rule:** `[Rule name]`
88
+ - **Location:** `[file:line]`
89
+ - **Description:** `[What was violated]`
90
+ - **Action Taken:** `[What Observer did to fix it]`
91
+
92
+ ---
93
+
94
+ ## Compliance Trends
95
+
96
+ **Previous Reports:**
97
+ - 2 days ago: 85/100
98
+ - 1 day ago: 90/100
99
+ - Today: `[SCORE]`/100
100
+
101
+ **Trend:** ⬆️ Improving | ➡️ Stable | ⬇️ Declining
102
+
103
+ ---
104
+
105
+ ## Recommendations
106
+
107
+ ### Immediate Actions Required
108
+ 1. `[Action 1]`
109
+ 2. `[Action 2]`
110
+
111
+ ### Suggested Improvements
112
+ 1. `[Suggestion 1]`
113
+ 2. `[Suggestion 2]`
114
+
115
+ ### Learning Opportunities
116
+ - Consider updating rule: `[Rule name]` based on this pattern
117
+ - Add to anti-patterns KB: `[Pattern description]`
118
+
119
+ ---
120
+
121
+ ## Next Steps
122
+
123
+ - [ ] Fix critical violations
124
+ - [ ] Review warning violations
125
+ - [ ] Update auto-correction rules if needed
126
+ - [ ] Sync learnings to Neo4j
127
+
128
+ ---
129
+
130
+ **Observer Agent:** v1.0.0
131
+ **Report Generated At:** `[TIMESTAMP]`
@@ -0,0 +1,197 @@
1
+ # Quality Score Report
2
+
3
+ **Report ID:** `[AUTO-GENERATED]`
4
+ **Generated:** `[TIMESTAMP]`
5
+ **Target:** `[FILE_PATH or REPORT_PATH]`
6
+ **Type:** Code | Report | Documentation
7
+
8
+ ---
9
+
10
+ ## Executive Summary
11
+
12
+ **Overall Quality Score:** `[0-100]` / 100
13
+ **Grade:** A+ | A | B | C | D | F
14
+ **Status:** ✅ PASS | ⚠️ NEEDS IMPROVEMENT | ❌ FAIL
15
+
16
+ ---
17
+
18
+ ## Score Breakdown
19
+
20
+ ### For Code Files
21
+
22
+ #### Complexity Score: `[0-100]` / 100
23
+ - **Cyclomatic Complexity:** `[VALUE]` (Target: < 10)
24
+ - **Nesting Depth:** `[VALUE]` (Target: < 4)
25
+ - **Function Length:** `[VALUE]` lines (Target: < 50)
26
+ - **Class Size:** `[VALUE]` lines (Target: < 300)
27
+
28
+ **Grade:** A+ (90-100) | A (80-89) | B (70-79) | C (60-69) | D (50-59) | F (< 50)
29
+
30
+ #### Readability Score: `[0-100]` / 100
31
+ - **Naming Quality:** Clear | Acceptable | Needs Improvement
32
+ - **Comment Coverage:** `[VALUE]%` (Target: > 10%)
33
+ - **Code Structure:** Excellent | Good | Fair | Poor
34
+ - **Consistency:** `[VALUE]%` (Target: > 90%)
35
+
36
+ **Grade:** A+ | A | B | C | D | F
37
+
38
+ #### Security Score: `[0-100]` / 100
39
+ - **Known Vulnerabilities:** `[COUNT]`
40
+ - **Security Best Practices:** `[COMPLIANCE]%`
41
+ - **Input Validation:** Present | Missing
42
+ - **Error Handling:** Robust | Basic | Insufficient
43
+
44
+ **Grade:** A+ | A | B | C | D | F
45
+
46
+ #### Performance Score: `[0-100]` / 100
47
+ - **Algorithmic Efficiency:** O(`[COMPLEXITY]`)
48
+ - **Memory Usage:** Optimal | Acceptable | High
49
+ - **Database Queries:** Optimized | N+1 Issues | Inefficient
50
+ - **Caching Strategy:** Present | Missing
51
+
52
+ **Grade:** A+ | A | B | C | D | F
53
+
54
+ #### Maintainability Score: `[0-100]` / 100
55
+ - **Modularity:** Excellent | Good | Fair | Poor
56
+ - **DRY Principle:** `[COMPLIANCE]%`
57
+ - **SOLID Principles:** `[COMPLIANCE]%`
58
+ - **Test Coverage:** `[VALUE]%` (Target: > 80%)
59
+
60
+ **Grade:** A+ | A | B | C | D | F
61
+
62
+ ---
63
+
64
+ ### For Reports/Documentation
65
+
66
+ #### Completeness Score: `[0-100]` / 100
67
+ - **Required Sections Present:** `[COUNT/TOTAL]`
68
+ - **Missing Sections:** `[LIST]`
69
+ - **YAML Frontmatter:** Valid | Invalid | Missing
70
+ - **Template Compliance:** `[COMPLIANCE]%`
71
+
72
+ **Grade:** A+ | A | B | C | D | F
73
+
74
+ #### Clarity Score: `[0-100]` / 100
75
+ - **Writing Quality:** Excellent | Good | Fair | Poor
76
+ - **Structure:** Logical | Acceptable | Confusing
77
+ - **Technical Accuracy:** `[COMPLIANCE]%`
78
+ - **Readability Level:** `[GRADE_LEVEL]`
79
+
80
+ **Grade:** A+ | A | B | C | D | F
81
+
82
+ #### Accuracy Score: `[0-100]` / 100
83
+ - **Factual Errors:** `[COUNT]`
84
+ - **Technical Correctness:** `[COMPLIANCE]%`
85
+ - **Data Consistency:** Consistent | Some Issues | Inconsistent
86
+ - **References:** Complete | Partial | Missing
87
+
88
+ **Grade:** A+ | A | B | C | D | F
89
+
90
+ #### Actionability Score: `[0-100]` / 100
91
+ - **Clear Next Steps:** Present | Vague | Missing
92
+ - **Specific Recommendations:** `[COUNT]`
93
+ - **Implementation Guidance:** Detailed | Basic | Absent
94
+ - **Decision Support:** Strong | Adequate | Weak
95
+
96
+ **Grade:** A+ | A | B | C | D | F
97
+
98
+ ---
99
+
100
+ ## Detailed Findings
101
+
102
+ ### Strengths 💪
103
+ 1. `[Strength 1]`
104
+ 2. `[Strength 2]`
105
+ 3. `[Strength 3]`
106
+
107
+ ### Weaknesses ⚠️
108
+ 1. `[Weakness 1]`
109
+ - **Impact:** `[Description]`
110
+ - **Recommendation:** `[How to fix]`
111
+
112
+ 2. `[Weakness 2]`
113
+ - **Impact:** `[Description]`
114
+ - **Recommendation:** `[How to fix]`
115
+
116
+ ### Critical Issues 🚨
117
+ 1. `[Critical Issue 1]`
118
+ - **Severity:** CRITICAL
119
+ - **Impact:** `[Description]`
120
+ - **Required Action:** `[What must be done]`
121
+
122
+ ---
123
+
124
+ ## Comparison with Standards
125
+
126
+ | Metric | Current | Target | Status |
127
+ |--------|---------|--------|---------|
128
+ | Overall Score | `[VALUE]` | 80 | ✅ / ❌ |
129
+ | Complexity | `[VALUE]` | < 10 | ✅ / ❌ |
130
+ | Test Coverage | `[VALUE]%` | > 80% | ✅ / ❌ |
131
+ | Security | `[VALUE]` | 90 | ✅ / ❌ |
132
+ | Maintainability | `[VALUE]` | 80 | ✅ / ❌ |
133
+
134
+ ---
135
+
136
+ ## Historical Trend
137
+
138
+ **Score Over Time:**
139
+ - 2 weeks ago: `[SCORE]`
140
+ - 1 week ago: `[SCORE]`
141
+ - Today: `[SCORE]`
142
+
143
+ **Trend:** ⬆️ Improving | ➡️ Stable | ⬇️ Declining
144
+
145
+ **Improvement Rate:** `[+/- X points]` per week
146
+
147
+ ---
148
+
149
+ ## Improvement Recommendations
150
+
151
+ ### High Priority (Fix Immediately)
152
+ 1. `[Recommendation 1]`
153
+ - **Category:** `[Complexity/Security/etc.]`
154
+ - **Expected Impact:** `[+X points]`
155
+ - **Effort:** Low | Medium | High
156
+
157
+ 2. `[Recommendation 2]`
158
+ - **Category:** `[Category]`
159
+ - **Expected Impact:** `[+X points]`
160
+ - **Effort:** Low | Medium | High
161
+
162
+ ### Medium Priority (Fix Soon)
163
+ 1. `[Recommendation 1]`
164
+ 2. `[Recommendation 2]`
165
+
166
+ ### Low Priority (Nice to Have)
167
+ 1. `[Recommendation 1]`
168
+ 2. `[Recommendation 2]`
169
+
170
+ ---
171
+
172
+ ## Learning Opportunities
173
+
174
+ **Patterns to Replicate:**
175
+ - `[Good pattern 1]` - Should be added to KB
176
+
177
+ **Anti-Patterns to Avoid:**
178
+ - `[Bad pattern 1]` - Should be documented as anti-pattern
179
+
180
+ **Skills to Develop:**
181
+ - `[Skill 1]` - Recommended learning path: `[Link to Neo4j path]`
182
+
183
+ ---
184
+
185
+ ## Next Steps
186
+
187
+ - [ ] Address critical issues
188
+ - [ ] Implement high-priority recommendations
189
+ - [ ] Re-run quality check after fixes
190
+ - [ ] Update KB with learnings
191
+ - [ ] Sync to Neo4j
192
+
193
+ ---
194
+
195
+ **Judge Agent:** v1.0.0
196
+ **Scoring Algorithm:** v2.0
197
+ **Report Generated At:** `[TIMESTAMP]`