@dedesfr/prompter 0.7.7 → 0.7.9

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 (53) hide show
  1. package/.claude/settings.local.json +7 -0
  2. package/CHANGELOG.md +19 -0
  3. package/dist/cli/index.js +1 -1
  4. package/dist/commands/init.d.ts +1 -0
  5. package/dist/commands/init.d.ts.map +1 -1
  6. package/dist/commands/init.js +65 -1
  7. package/dist/commands/init.js.map +1 -1
  8. package/dist/core/config.d.ts.map +1 -1
  9. package/dist/core/config.js +3 -1
  10. package/dist/core/config.js.map +1 -1
  11. package/dist/core/configurators/slash/droid.d.ts +9 -0
  12. package/dist/core/configurators/slash/droid.d.ts.map +1 -0
  13. package/dist/core/configurators/slash/droid.js +36 -0
  14. package/dist/core/configurators/slash/droid.js.map +1 -0
  15. package/dist/core/configurators/slash/forge.d.ts +9 -0
  16. package/dist/core/configurators/slash/forge.d.ts.map +1 -0
  17. package/dist/core/configurators/slash/forge.js +36 -0
  18. package/dist/core/configurators/slash/forge.js.map +1 -0
  19. package/dist/core/configurators/slash/index.d.ts +2 -0
  20. package/dist/core/configurators/slash/index.d.ts.map +1 -1
  21. package/dist/core/configurators/slash/index.js +2 -0
  22. package/dist/core/configurators/slash/index.js.map +1 -1
  23. package/dist/core/configurators/slash/registry.d.ts.map +1 -1
  24. package/dist/core/configurators/slash/registry.js +6 -0
  25. package/dist/core/configurators/slash/registry.js.map +1 -1
  26. package/dist/core/templates/claude-template.d.ts +2 -0
  27. package/dist/core/templates/claude-template.d.ts.map +1 -0
  28. package/dist/core/templates/claude-template.js +3 -0
  29. package/dist/core/templates/claude-template.js.map +1 -0
  30. package/dist/core/templates/index.d.ts +1 -0
  31. package/dist/core/templates/index.d.ts.map +1 -1
  32. package/dist/core/templates/index.js +1 -0
  33. package/dist/core/templates/index.js.map +1 -1
  34. package/package.json +1 -1
  35. package/skills/design-system-generator/SKILL.md +324 -0
  36. package/skills/design-system-generator/assets/design-system-template.md +348 -0
  37. package/skills/design-system-generator/references/extraction-patterns.md +321 -0
  38. package/skills/laravel-code-review/SKILL.md +383 -0
  39. package/skills/laravel-code-review/assets/report-template-agent.md +195 -0
  40. package/skills/laravel-code-review/assets/report-template-compact.md +79 -0
  41. package/skills/laravel-code-review/assets/report-template-full.md +253 -0
  42. package/skills/laravel-code-review/assets/report-template-human.md +159 -0
  43. package/skills/laravel-code-review/references/laravel-patterns.md +571 -0
  44. package/skills/laravel-code-review/references/php84-features.md +442 -0
  45. package/src/cli/index.ts +1 -1
  46. package/src/commands/init.ts +67 -1
  47. package/src/core/config.ts +3 -1
  48. package/src/core/configurators/slash/droid.ts +40 -0
  49. package/src/core/configurators/slash/forge.ts +40 -0
  50. package/src/core/configurators/slash/index.ts +2 -0
  51. package/src/core/configurators/slash/registry.ts +6 -0
  52. package/src/core/templates/claude-template.ts +2 -0
  53. package/src/core/templates/index.ts +1 -0
@@ -0,0 +1,195 @@
1
+ # Laravel Code Review — Agent Task List
2
+
3
+ > Executable task list for AI agents. Process each task sequentially, marking as complete when done.
4
+
5
+ ## Review Summary
6
+
7
+ | Attribute | Value |
8
+ | ------------------ | ------------------------------------ |
9
+ | **Generated** | {{TIMESTAMP}} |
10
+ | **Review Style** | {{REVIEW_STYLE}} |
11
+ | **Framework** | Laravel 12.x |
12
+ | **PHP Version** | 8.4 |
13
+ | **Files Reviewed** | {{FILE_COUNT}} |
14
+ | **Total Tasks** | {{TASK_COUNT}} |
15
+ | **Completed** | {{COMPLETED_COUNT}} / {{TASK_COUNT}} |
16
+
17
+ ### Task Statistics
18
+
19
+ | Priority | Total | Remaining | Completed |
20
+ | -------------- | ---------------------- | -------------------------- | -------------------------- |
21
+ | 🔴 Critical | {{CRITICAL_COUNT}} | {{CRITICAL_REMAINING}} | {{CRITICAL_COMPLETED}} |
22
+ | 🟠 Warning | {{WARNING_COUNT}} | {{WARNING_REMAINING}} | {{WARNING_COMPLETED}} |
23
+ | 🟡 Optimization | {{OPTIMIZATION_COUNT}} | {{OPTIMIZATION_REMAINING}} | {{OPTIMIZATION_COMPLETED}} |
24
+ | 🔵 Quality | {{QUALITY_COUNT}} | {{QUALITY_REMAINING}} | {{QUALITY_COMPLETED}} |
25
+
26
+ ### Categories
27
+
28
+ | Category | Count |
29
+ | ----------- | --------------------- |
30
+ | Security | {{SECURITY_COUNT}} |
31
+ | Eloquent | {{ELOQUENT_COUNT}} |
32
+ | PHP 8.4 | {{PHP84_COUNT}} |
33
+ | Conventions | {{CONVENTIONS_COUNT}} |
34
+
35
+ ---
36
+
37
+ ## Pending Tasks
38
+
39
+ > Execute these tasks in order. Check the box `[x]` when completed.
40
+
41
+ ### 🔴 Critical Tasks (Execute First)
42
+
43
+ {{#each critical_tasks}}
44
+ - [ ] **TASK-{{task_id}}** | `{{file}}:{{line}}` | {{component}}
45
+ - **Issue:** {{title}}
46
+ - **Category:** {{category}}
47
+ - **Action:** {{action_verb}}
48
+ - **Target Code:**
49
+ ```php
50
+ {{target_code}}
51
+ ```
52
+ - **Replace With:**
53
+ ```php
54
+ {{replacement_code}}
55
+ ```
56
+ - **Docs:** [{{laravel_docs_label}}]({{laravel_docs_url}})
57
+
58
+ {{/each}}
59
+
60
+ ### 🟠 Warning Tasks
61
+
62
+ {{#each warning_tasks}}
63
+ - [ ] **TASK-{{task_id}}** | `{{file}}:{{line}}` | {{component}}
64
+ - **Issue:** {{title}}
65
+ - **Category:** {{category}}
66
+ - **Action:** {{action_verb}}
67
+ - **Details:** {{description}}
68
+ - **Fix:** {{recommendation}}
69
+
70
+ {{/each}}
71
+
72
+ ### 🟡 Optimization Tasks
73
+
74
+ {{#each optimization_tasks}}
75
+ - [ ] **TASK-{{task_id}}** | `{{file}}:{{line}}` | {{component}}
76
+ - **Issue:** {{title}}
77
+ - **Improvement:** {{recommendation}}
78
+
79
+ {{/each}}
80
+
81
+ ### 🔵 Quality Tasks
82
+
83
+ {{#each quality_tasks}}
84
+ - [ ] **TASK-{{task_id}}** | `{{file}}:{{line}}` | {{component}}
85
+ - **Issue:** {{title}}
86
+ - **Suggestion:** {{recommendation}}
87
+
88
+ {{/each}}
89
+
90
+ ---
91
+
92
+ ## Completed Tasks
93
+
94
+ > Move completed tasks here with `[x]` checked.
95
+
96
+ {{#each completed_tasks}}
97
+ - [x] **TASK-{{task_id}}** | `{{file}}:{{line}}` — {{title}} ✅
98
+ {{/each}}
99
+
100
+ ---
101
+
102
+ ## Agent Execution Commands
103
+
104
+ > Ready-to-execute commands for automated processing.
105
+
106
+ ### File Edit Operations
107
+
108
+ ```json
109
+ {
110
+ "operations": [
111
+ {{#each edit_operations}}
112
+ {
113
+ "task_id": "TASK-{{task_id}}",
114
+ "operation": "replace",
115
+ "file": "{{file}}",
116
+ "component": "{{component}}",
117
+ "start_line": {{start_line}},
118
+ "end_line": {{end_line}},
119
+ "target": "{{target_code_escaped}}",
120
+ "replacement": "{{replacement_code_escaped}}",
121
+ "status": "{{status}}"
122
+ }{{#unless @last}},{{/unless}}
123
+ {{/each}}
124
+ ]
125
+ }
126
+ ```
127
+
128
+ ### Validation Commands
129
+
130
+ After completing tasks, run these commands to verify:
131
+
132
+ ```bash
133
+ # Static analysis
134
+ ./vendor/bin/phpstan analyse
135
+
136
+ # Code style check
137
+ ./vendor/bin/pint --test
138
+
139
+ # Run tests
140
+ php artisan test
141
+
142
+ # Clear caches
143
+ php artisan optimize:clear
144
+ ```
145
+
146
+ ---
147
+
148
+ ## Task Execution Protocol
149
+
150
+ For each pending task:
151
+
152
+ 1. **READ** the task details and target code
153
+ 2. **LOCATE** the file and line number
154
+ 3. **APPLY** the replacement code or fix
155
+ 4. **VERIFY** the change doesn't break other code
156
+ 5. **MARK** the task as complete `[x]`
157
+ 6. **MOVE** to Completed Tasks section
158
+
159
+ ### Status Flags
160
+
161
+ ```json
162
+ {
163
+ "review_style": "{{REVIEW_STYLE}}",
164
+ "all_critical_resolved": {{all_critical_resolved}},
165
+ "all_warnings_resolved": {{all_warnings_resolved}},
166
+ "ready_for_commit": {{ready_for_commit}},
167
+ "requires_human_review": {{requires_human_review}},
168
+ "blocking_issues": {{blocking_count}},
169
+ "has_security_issues": {{has_security}},
170
+ "has_n_plus_one": {{has_n_plus_one}},
171
+ "has_mass_assignment": {{has_mass_assignment}}
172
+ }
173
+ ```
174
+
175
+ ---
176
+
177
+ ## Quick Reference
178
+
179
+ | Task ID Format | Meaning |
180
+ | -------------- | --------------------- |
181
+ | `TASK-C###` | Critical priority |
182
+ | `TASK-W###` | Warning priority |
183
+ | `TASK-O###` | Optimization priority |
184
+ | `TASK-Q###` | Quality priority |
185
+
186
+ | Status | Symbol |
187
+ | ----------- | ------ |
188
+ | Pending | `[ ]` |
189
+ | In Progress | `[-]` |
190
+ | Completed | `[x]` |
191
+ | Skipped | `[~]` |
192
+
193
+ ---
194
+
195
+ *Format: agent-tasks | Schema: laravel-code-review/v2 | {{REVIEW_STYLE}} mode*
@@ -0,0 +1,79 @@
1
+ # Laravel Code Review — Compact
2
+
3
+ **{{TIMESTAMP}}** | **{{REVIEW_STYLE}}** mode | {{FILE_COUNT}} files | {{ISSUE_COUNT}} issues
4
+
5
+ ## Review Configuration
6
+
7
+ | Style | Focus Areas Applied |
8
+ | ------------------------------------------- | ----------------------- |
9
+ | {{REVIEW_STYLE_EMOJI}} **{{REVIEW_STYLE}}** | {{FOCUS_AREAS_SUMMARY}} |
10
+
11
+ ## Summary
12
+
13
+ 🔴 {{CRITICAL_COUNT}} critical | 🟠 {{WARNING_COUNT}} warning | 🟡 {{OPTIMIZATION_COUNT}} optimize | 🔵 {{QUALITY_COUNT}} quality
14
+
15
+ **By Category:** {{SECURITY_COUNT}} sec | {{ELOQUENT_COUNT}} eloquent | {{PHP84_COUNT}} php84 | {{CONVENTIONS_COUNT}} conventions
16
+
17
+ ---
18
+
19
+ ## Issues
20
+
21
+ | Sev | File | Line | Issue | Category |
22
+ | --- | ---- | ---: | ----- | -------- |
23
+ {{#each issues}}
24
+ | {{severity_emoji}} | `{{file_short}}` | {{line}} | {{title}} | {{category}} |
25
+ {{/each}}
26
+
27
+ ---
28
+
29
+ ## By Component
30
+
31
+ {{#each components_with_issues}}
32
+ ### {{component}}
33
+
34
+ {{#each files}}
35
+ **`{{file_short}}`**
36
+ {{#each issues}}
37
+ - {{severity_emoji}} L{{line}}: {{title}} → {{recommendation_short}}
38
+ {{/each}}
39
+
40
+ {{/each}}
41
+ {{/each}}
42
+
43
+ ---
44
+
45
+ ## Action Items
46
+
47
+ **🔴 Critical ({{CRITICAL_COUNT}}):** {{#if_strict_or_balanced}}*All flagged*{{/if_strict_or_balanced}}{{#if_lenient}}*Critical only*{{/if_lenient}}
48
+ {{#each critical_issues}}
49
+ - [ ] {{file_short}}:{{line}} — {{title}}
50
+ {{/each}}
51
+
52
+ {{#if_not_lenient}}
53
+ **🟠 Warnings ({{WARNING_COUNT}}):**
54
+ {{#each warning_issues}}
55
+ - [ ] {{file_short}}:{{line}} — {{title}}
56
+ {{/each}}
57
+
58
+ **🟡 Optimization ({{OPTIMIZATION_COUNT}}):**
59
+ {{#each optimization_issues}}
60
+ - [ ] {{file_short}}:{{line}} — {{title}}
61
+ {{/each}}
62
+ {{/if_not_lenient}}
63
+
64
+ {{#if_strict}}
65
+ **🔵 Quality ({{QUALITY_COUNT}}):**
66
+ {{#each quality_issues}}
67
+ - [ ] {{file_short}}:{{line}} — {{title}}
68
+ {{/each}}
69
+ {{/if_strict}}
70
+
71
+ ---
72
+
73
+ ## Focus Areas Applied
74
+
75
+ {{#if FOCUS_SECURITY}}✅{{else}}❌{{/if}} Security | {{#if FOCUS_PERFORMANCE}}✅{{else}}❌{{/if}} Performance | {{#if FOCUS_BUGS}}✅{{else}}❌{{/if}} Bugs | {{#if FOCUS_STYLE}}✅{{else}}❌{{/if}} Style | {{#if FOCUS_TESTS}}✅{{else}}❌{{/if}} Tests | {{#if FOCUS_DOCS}}✅{{else}}❌{{/if}} Docs
76
+
77
+ ---
78
+
79
+ *laravel-code-review • compact • {{REVIEW_STYLE}}*
@@ -0,0 +1,253 @@
1
+ # Laravel Code Review Report
2
+
3
+ **Generated:** {{TIMESTAMP}}
4
+ **Review Style:** {{REVIEW_STYLE_EMOJI}} {{REVIEW_STYLE}}
5
+ **Laravel Version:** 12.x
6
+ **PHP Version:** 8.4
7
+ **Reviewed Files:** {{FILE_COUNT}}
8
+ **Total Issues:** {{ISSUE_COUNT}}
9
+
10
+ ---
11
+
12
+ ## Review Configuration
13
+
14
+ ### Style Settings
15
+
16
+ | Setting | Value |
17
+ | ---------------------- | ------------------------------------------- |
18
+ | **Review Style** | {{REVIEW_STYLE_EMOJI}} **{{REVIEW_STYLE}}** |
19
+ | **Severity Threshold** | {{SEVERITY_THRESHOLD}} |
20
+ | **Tone** | {{REVIEW_TONE}} |
21
+
22
+ ### Focus Areas Matrix
23
+
24
+ | Focus Area | Status | Coverage Level | Description |
25
+ | ---------------------------- | --------------------------- | --------------------------- | ---------------------------------------------------- |
26
+ | **Security vulnerabilities** | {{FOCUS_SECURITY_EMOJI}} | {{FOCUS_SECURITY_LEVEL}} | SQL injection, XSS, mass assignment, exposed secrets |
27
+ | **Performance issues** | {{FOCUS_PERFORMANCE_EMOJI}} | {{FOCUS_PERFORMANCE_LEVEL}} | N+1 queries, missing indexes, inefficient loops |
28
+ | **Bug detection** | {{FOCUS_BUGS_EMOJI}} | {{FOCUS_BUGS_LEVEL}} | Logic errors, edge cases, runtime errors |
29
+ | **Code style** | {{FOCUS_STYLE_EMOJI}} | {{FOCUS_STYLE_LEVEL}} | PSR-12, naming conventions, Laravel conventions |
30
+ | **Test coverage** | {{FOCUS_TESTS_EMOJI}} | {{FOCUS_TESTS_LEVEL}} | Missing or inadequate tests |
31
+ | **Documentation** | {{FOCUS_DOCS_EMOJI}} | {{FOCUS_DOCS_LEVEL}} | Missing PHPDoc, unclear APIs |
32
+
33
+ ### What This Means
34
+
35
+ {{#if_strict}}
36
+ > **🔒 Strict Mode Active**
37
+ > All potential issues are flagged across all focus areas. This is the most thorough review level, prioritizing quality and security. Expect detailed feedback on critical, warning, optimization, and quality issues.
38
+ {{/if_strict}}
39
+
40
+ {{#if_balanced}}
41
+ > **⚖️ Balanced Mode Active**
42
+ > High-confidence issues are flagged. Security, performance, and bugs are fully covered. Code style only flags major violations. Documentation issues are skipped for practicality.
43
+ {{/if_balanced}}
44
+
45
+ {{#if_lenient}}
46
+ > **💚 Lenient Mode Active**
47
+ > Only critical bugs and security vulnerabilities are flagged. This mode is encouraging and focuses on must-fix issues only. Great for quick reviews or junior developer feedback.
48
+ {{/if_lenient}}
49
+
50
+ ---
51
+
52
+ ## Summary
53
+
54
+ | Severity | Count | Included |
55
+ | -------------- | ---------------------- | ------------------------- |
56
+ | 🔴 Critical | {{CRITICAL_COUNT}} | ✅ Always |
57
+ | 🟠 Warning | {{WARNING_COUNT}} | {{WARNING_INCLUDED}} |
58
+ | 🟡 Optimization | {{OPTIMIZATION_COUNT}} | {{OPTIMIZATION_INCLUDED}} |
59
+ | 🔵 Code Quality | {{QUALITY_COUNT}} | {{QUALITY_INCLUDED}} |
60
+
61
+ ### Issue Categories
62
+
63
+ | Category | Count |
64
+ | ------------------- | --------------------- |
65
+ | Security | {{SECURITY_COUNT}} |
66
+ | Eloquent | {{ELOQUENT_COUNT}} |
67
+ | PHP 8.4 | {{PHP84_COUNT}} |
68
+ | Laravel Conventions | {{CONVENTIONS_COUNT}} |
69
+
70
+ ---
71
+
72
+ ## Files Reviewed
73
+
74
+ ### By Component
75
+
76
+ **Controllers:**
77
+ {{#each controllers}}
78
+ - `{{this}}`
79
+ {{/each}}
80
+
81
+ **Models:**
82
+ {{#each models}}
83
+ - `{{this}}`
84
+ {{/each}}
85
+
86
+ **Services:**
87
+ {{#each services}}
88
+ - `{{this}}`
89
+ {{/each}}
90
+
91
+ **Views:**
92
+ {{#each views}}
93
+ - `{{this}}`
94
+ {{/each}}
95
+
96
+ **Other:**
97
+ {{#each others}}
98
+ - `{{this}}`
99
+ {{/each}}
100
+
101
+ ---
102
+
103
+ ## Issues by Component
104
+
105
+ {{#each issues}}
106
+
107
+ ### `{{component}}`
108
+
109
+ #### `{{file}}`
110
+
111
+ ##### Issue {{index}}: {{title}}
112
+
113
+ | Attribute | Value |
114
+ | -------------- | ------------------------------- |
115
+ | **Severity** | {{severity_emoji}} {{severity}} |
116
+ | **Line** | {{line}} |
117
+ | **Type** | {{type}} |
118
+ | **Category** | {{category}} |
119
+ | **Focus Area** | {{focus_area}} |
120
+
121
+ **Description:**
122
+ {{description}}
123
+
124
+ **Code:**
125
+ ```php
126
+ // Line {{line}}
127
+ {{code_snippet}}
128
+ ```
129
+
130
+ **Recommendation:**
131
+ {{recommendation}}
132
+
133
+ {{#if suggested_fix}}
134
+ **Suggested Fix:**
135
+ ```php
136
+ {{suggested_fix}}
137
+ ```
138
+ {{/if}}
139
+
140
+ {{#if laravel_docs}}
141
+ **Laravel Docs:** [{{laravel_docs_title}}](https://laravel.com/docs/12.x/{{laravel_docs}})
142
+ {{/if}}
143
+
144
+ ---
145
+
146
+ <!-- MACHINE_READABLE_START
147
+ {
148
+ "file": "{{file}}",
149
+ "line": {{line}},
150
+ "severity": "{{severity_lower}}",
151
+ "type": "{{type}}",
152
+ "category": "{{category}}",
153
+ "component": "{{component}}",
154
+ "focus_area": "{{focus_area}}",
155
+ "review_style": "{{REVIEW_STYLE}}",
156
+ "description": "{{description_escaped}}",
157
+ "recommendation": "{{recommendation_escaped}}",
158
+ "laravel_version": "12.x",
159
+ "php_version": "8.4",
160
+ "solved": false
161
+ }
162
+ MACHINE_READABLE_END -->
163
+
164
+ {{/each}}
165
+
166
+ ---
167
+
168
+ ## Quick Fixes by Priority
169
+
170
+ ### 🔴 Critical (Must Fix)
171
+
172
+ {{#each critical_issues}}
173
+ - [ ] **{{file}}:{{line}}** - {{title}}
174
+ {{/each}}
175
+ {{#if_no_critical}}
176
+ ✅ No critical issues!
177
+ {{/if_no_critical}}
178
+
179
+ {{#if_not_lenient}}
180
+ ### 🟠 Warnings (Should Fix)
181
+
182
+ {{#each warning_issues}}
183
+ - [ ] **{{file}}:{{line}}** - {{title}}
184
+ {{/each}}
185
+ {{#if_no_warnings}}
186
+ ✅ No warnings!
187
+ {{/if_no_warnings}}
188
+
189
+ ### 🟡 Optimization (Nice to Have)
190
+
191
+ {{#each optimization_issues}}
192
+ - [ ] **{{file}}:{{line}}** - {{title}}
193
+ {{/each}}
194
+ {{#if_no_optimization}}
195
+ ✅ No optimization issues!
196
+ {{/if_no_optimization}}
197
+ {{/if_not_lenient}}
198
+
199
+ {{#if_strict}}
200
+ ### 🔵 Quality (Polish)
201
+
202
+ {{#each quality_issues}}
203
+ - [ ] **{{file}}:{{line}}** - {{title}}
204
+ {{/each}}
205
+ {{#if_no_quality}}
206
+ ✅ No quality issues!
207
+ {{/if_no_quality}}
208
+ {{/if_strict}}
209
+
210
+ ---
211
+
212
+ ## Report Metadata
213
+
214
+ ```json
215
+ {
216
+ "version": "2.0",
217
+ "generated_at": "{{TIMESTAMP}}",
218
+ "review_style": "{{REVIEW_STYLE}}",
219
+ "review_config": {
220
+ "severity_threshold": "{{SEVERITY_THRESHOLD}}",
221
+ "tone": "{{REVIEW_TONE}}",
222
+ "focus_areas": {
223
+ "security": "{{FOCUS_SECURITY_LEVEL}}",
224
+ "performance": "{{FOCUS_PERFORMANCE_LEVEL}}",
225
+ "bugs": "{{FOCUS_BUGS_LEVEL}}",
226
+ "code_style": "{{FOCUS_STYLE_LEVEL}}",
227
+ "test_coverage": "{{FOCUS_TESTS_LEVEL}}",
228
+ "documentation": "{{FOCUS_DOCS_LEVEL}}"
229
+ }
230
+ },
231
+ "framework": "laravel",
232
+ "framework_version": "12.x",
233
+ "php_version": "8.4",
234
+ "total_files": {{FILE_COUNT}},
235
+ "total_issues": {{ISSUE_COUNT}},
236
+ "severity_breakdown": {
237
+ "critical": {{CRITICAL_COUNT}},
238
+ "warning": {{WARNING_COUNT}},
239
+ "optimization": {{OPTIMIZATION_COUNT}},
240
+ "quality": {{QUALITY_COUNT}}
241
+ },
242
+ "category_breakdown": {
243
+ "security": {{SECURITY_COUNT}},
244
+ "eloquent": {{ELOQUENT_COUNT}},
245
+ "php84": {{PHP84_COUNT}},
246
+ "conventions": {{CONVENTIONS_COUNT}}
247
+ }
248
+ }
249
+ ```
250
+
251
+ ---
252
+
253
+ *Generated by laravel-code-review skill • Full format • {{REVIEW_STYLE}} mode*
@@ -0,0 +1,159 @@
1
+ # Laravel Code Review Report
2
+
3
+ **Generated:** {{TIMESTAMP}}
4
+ **Review Style:** {{REVIEW_STYLE_EMOJI}} {{REVIEW_STYLE}}
5
+ **Files Reviewed:** {{FILE_COUNT}} | **Issues Found:** {{ISSUE_COUNT}}
6
+
7
+ ---
8
+
9
+ ## 🎯 Review Configuration
10
+
11
+ | Setting | Value |
12
+ | ---------------------- | ------------------------------------------- |
13
+ | **Review Style** | {{REVIEW_STYLE_EMOJI}} **{{REVIEW_STYLE}}** |
14
+ | **Severity Threshold** | {{SEVERITY_THRESHOLD}} |
15
+ | **Tone** | {{REVIEW_TONE}} |
16
+
17
+ ### Focus Areas
18
+
19
+ | Focus Area | Status | Level |
20
+ | ------------------------ | --------------------------- | --------------------------- |
21
+ | Security vulnerabilities | {{FOCUS_SECURITY_EMOJI}} | {{FOCUS_SECURITY_LEVEL}} |
22
+ | Performance issues | {{FOCUS_PERFORMANCE_EMOJI}} | {{FOCUS_PERFORMANCE_LEVEL}} |
23
+ | Bug detection | {{FOCUS_BUGS_EMOJI}} | {{FOCUS_BUGS_LEVEL}} |
24
+ | Code style | {{FOCUS_STYLE_EMOJI}} | {{FOCUS_STYLE_LEVEL}} |
25
+ | Test coverage | {{FOCUS_TESTS_EMOJI}} | {{FOCUS_TESTS_LEVEL}} |
26
+ | Documentation | {{FOCUS_DOCS_EMOJI}} | {{FOCUS_DOCS_LEVEL}} |
27
+
28
+ ---
29
+
30
+ ## 📊 Overview
31
+
32
+ | 🔴 Critical | 🟠 Warning | 🟡 Optimize | 🔵 Quality |
33
+ | :----------------: | :---------------: | :--------------------: | :---------------: |
34
+ | {{CRITICAL_COUNT}} | {{WARNING_COUNT}} | {{OPTIMIZATION_COUNT}} | {{QUALITY_COUNT}} |
35
+
36
+ **Categories:** {{SECURITY_COUNT}} security | {{ELOQUENT_COUNT}} eloquent | {{PHP84_COUNT}} PHP 8.4 | {{CONVENTIONS_COUNT}} conventions
37
+
38
+ ---
39
+
40
+ {{#if has_critical}}
41
+ ## 🔴 Critical Issues (Fix Before Commit)
42
+
43
+ {{#each critical_issues}}
44
+ ### {{file_short}}
45
+
46
+ **Line {{line}}** — {{title}}
47
+
48
+ > {{description}}
49
+
50
+ **Fix:** {{recommendation}}
51
+
52
+ {{#if suggested_fix}}
53
+ ```php
54
+ {{suggested_fix}}
55
+ ```
56
+ {{/if}}
57
+
58
+ ---
59
+ {{/each}}
60
+ {{/if}}
61
+
62
+ {{#if has_warnings}}
63
+ {{#if_not_lenient}}
64
+ ## 🟠 Warnings (Should Address)
65
+
66
+ {{#each warning_issues}}
67
+ - **{{file_short}}:{{line}}** — {{title}}
68
+ - {{description}}
69
+ - 💡 {{recommendation}}
70
+ {{/each}}
71
+
72
+ ---
73
+ {{/if_not_lenient}}
74
+ {{/if}}
75
+
76
+ {{#if has_optimization}}
77
+ {{#if_not_lenient}}
78
+ ## 🟡 Optimization Suggestions
79
+
80
+ {{#each optimization_issues}}
81
+ - **{{file_short}}:{{line}}** — {{title}}
82
+ - {{recommendation}}
83
+ {{/each}}
84
+
85
+ ---
86
+ {{/if_not_lenient}}
87
+ {{/if}}
88
+
89
+ {{#if has_quality}}
90
+ {{#if_strict}}
91
+ ## 🔵 Code Quality
92
+
93
+ {{#each quality_issues}}
94
+ - **{{file_short}}:{{line}}** — {{title}}
95
+ {{/each}}
96
+
97
+ ---
98
+ {{/if_strict}}
99
+ {{/if}}
100
+
101
+ ## ✅ Quick Action Checklist
102
+
103
+ ### Must Fix (Critical)
104
+ {{#each critical_issues}}
105
+ - [ ] `{{file_short}}:{{line}}` — {{title}}
106
+ {{/each}}
107
+ {{#if_no_critical}}
108
+ - ✅ No critical issues found!
109
+ {{/if_no_critical}}
110
+
111
+ {{#if_not_lenient}}
112
+ ### Should Fix (Warnings)
113
+ {{#each warning_issues}}
114
+ - [ ] `{{file_short}}:{{line}}` — {{title}}
115
+ {{/each}}
116
+ {{#if_no_warnings}}
117
+ - ✅ No warnings found!
118
+ {{/if_no_warnings}}
119
+
120
+ ### Nice to Have (Optimization)
121
+ {{#each optimization_issues}}
122
+ - [ ] `{{file_short}}:{{line}}` — {{title}}
123
+ {{/each}}
124
+ {{/if_not_lenient}}
125
+
126
+ {{#if_strict}}
127
+ ### Polish (Quality)
128
+ {{#each quality_issues}}
129
+ - [ ] `{{file_short}}:{{line}}` — {{title}}
130
+ {{/each}}
131
+ {{/if_strict}}
132
+
133
+ ---
134
+
135
+ ## 💬 Review Summary
136
+
137
+ {{#if_strict}}
138
+ > **Strict Mode:** This review flagged all potential issues across all focus areas. Address critical and warning issues before committing. Quality issues are optional but recommended for production code.
139
+ {{/if_strict}}
140
+
141
+ {{#if_balanced}}
142
+ > **Balanced Mode:** This review focused on high-confidence issues. Critical issues must be fixed. Warnings are strongly recommended. Lower severity items were filtered for practicality.
143
+ {{/if_balanced}}
144
+
145
+ {{#if_lenient}}
146
+ > **Lenient Mode:** This review only flagged critical bugs and security issues. Great job on the code! 🎉 Only urgent items require attention before commit.
147
+ {{/if_lenient}}
148
+
149
+ ---
150
+
151
+ ## 📚 Helpful Resources
152
+
153
+ - [Laravel 12 Documentation](https://laravel.com/docs/12.x)
154
+ - [Eloquent Relationships](https://laravel.com/docs/12.x/eloquent-relationships)
155
+ - [PHP 8.4 New Features](https://www.php.net/releases/8.4/en.php)
156
+
157
+ ---
158
+
159
+ *Generated by laravel-code-review skill • Human-readable format • {{REVIEW_STYLE}} mode*