@dedesfr/prompter 0.9.0 → 1.1.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.
- package/CHANGELOG.md +35 -0
- package/README.md +105 -77
- package/dist/cli/index.js +25 -1
- package/dist/cli/index.js.map +1 -1
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +35 -9
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/login.d.ts +4 -0
- package/dist/commands/login.d.ts.map +1 -0
- package/dist/commands/login.js +56 -0
- package/dist/commands/login.js.map +1 -0
- package/dist/commands/logout.d.ts +4 -0
- package/dist/commands/logout.d.ts.map +1 -0
- package/dist/commands/logout.js +14 -0
- package/dist/commands/logout.js.map +1 -0
- package/dist/commands/update.d.ts +0 -2
- package/dist/commands/update.d.ts.map +1 -1
- package/dist/commands/update.js +19 -48
- package/dist/commands/update.js.map +1 -1
- package/dist/commands/whoami.d.ts +4 -0
- package/dist/commands/whoami.d.ts.map +1 -0
- package/dist/commands/whoami.js +42 -0
- package/dist/commands/whoami.js.map +1 -0
- package/dist/core/auth-store.d.ts +10 -0
- package/dist/core/auth-store.d.ts.map +1 -0
- package/dist/core/auth-store.js +39 -0
- package/dist/core/auth-store.js.map +1 -0
- package/dist/core/config.d.ts +0 -7
- package/dist/core/config.d.ts.map +1 -1
- package/dist/core/config.js +0 -128
- package/dist/core/config.js.map +1 -1
- package/dist/core/registry.d.ts +18 -0
- package/dist/core/registry.d.ts.map +1 -0
- package/dist/core/registry.js +94 -0
- package/dist/core/registry.js.map +1 -0
- package/package.json +7 -1
- package/AGENTS.md +0 -123
- package/CLAUDE.md +0 -17
- package/build.js +0 -20
- package/convex-setup.md +0 -403
- package/dist/core/prompt-templates.d.ts +0 -23
- package/dist/core/prompt-templates.d.ts.map +0 -1
- package/dist/core/prompt-templates.js +0 -3485
- package/dist/core/prompt-templates.js.map +0 -1
- package/prompt/ai-humanizer.md +0 -45
- package/prompt/api-contract-generator.md +0 -234
- package/prompt/apply.md +0 -17
- package/prompt/archive.md +0 -21
- package/prompt/design-system.md +0 -210
- package/prompt/document-explainer.md +0 -149
- package/prompt/epic-generator.md +0 -198
- package/prompt/epic-single.md +0 -47
- package/prompt/erd-generator.md +0 -130
- package/prompt/fsd-generator.md +0 -157
- package/prompt/prd-agent-generator.md +0 -147
- package/prompt/prd-generator.md +0 -195
- package/prompt/product-brief.md +0 -289
- package/prompt/proposal.md +0 -22
- package/prompt/qa-test-scenario.md +0 -133
- package/prompt/skill-creator.md +0 -350
- package/prompt/story-generator.md +0 -278
- package/prompt/story-single.md +0 -70
- package/prompt/tdd-generator.md +0 -294
- package/prompt/tdd-lite-generator.md +0 -224
- package/prompt/wireframe-generator.md +0 -219
- package/skills/ai-context-generator/SKILL.md +0 -54
- package/skills/ai-context-generator/references/AGENTS.template.md +0 -83
- package/skills/ai-context-generator/references/CLAUDE.template.md +0 -39
- package/skills/ai-context-generator/references/behavioral-guidelines.md +0 -71
- package/skills/ai-context-generator/references/discovery-checklist.md +0 -40
- package/skills/ai-context-generator/references/examples/AGENTS.good.md +0 -103
- package/skills/ai-context-generator/references/extraction-checklist.md +0 -23
- package/skills/ai-context-generator/references/overlays/laravel.md +0 -44
- package/skills/ai-humanizer/SKILL.md +0 -50
- package/skills/api-contract-generator/SKILL.md +0 -243
- package/skills/apply/SKILL.md +0 -23
- package/skills/archive/SKILL.md +0 -27
- package/skills/cerebro/SKILL.md +0 -187
- package/skills/cerebro/references/agents.md +0 -213
- package/skills/code-review/SKILL.md +0 -373
- package/skills/code-review/assets/report-template-agent.md +0 -212
- package/skills/code-review/assets/report-template-compact.md +0 -81
- package/skills/code-review/assets/report-template-full.md +0 -264
- package/skills/code-review/assets/report-template-human.md +0 -168
- package/skills/code-review/references/universal-patterns.md +0 -495
- package/skills/design-md/README.md +0 -34
- package/skills/design-md/SKILL.md +0 -172
- package/skills/design-md/examples/DESIGN.md +0 -154
- package/skills/design-system/SKILL.md +0 -216
- package/skills/design-system-generator/SKILL.md +0 -324
- package/skills/design-system-generator/assets/design-system-template.md +0 -348
- package/skills/design-system-generator/references/extraction-patterns.md +0 -321
- package/skills/doc-builder/SKILL.md +0 -115
- package/skills/doc-builder/references/ui-patterns.md +0 -394
- package/skills/document-explainer/SKILL.md +0 -155
- package/skills/document-translator/SKILL.md +0 -58
- package/skills/enhance/SKILL.md +0 -47
- package/skills/enhance-prompt/README.md +0 -34
- package/skills/enhance-prompt/SKILL.md +0 -204
- package/skills/enhance-prompt/references/KEYWORDS.md +0 -114
- package/skills/epic-generator/SKILL.md +0 -204
- package/skills/epic-single/SKILL.md +0 -63
- package/skills/erd-generator/SKILL.md +0 -138
- package/skills/feature-planner/SKILL.md +0 -305
- package/skills/feature-planner/assets/implementation-plan-template.md +0 -85
- package/skills/frontend-design/LICENSE.txt +0 -177
- package/skills/frontend-design/SKILL.md +0 -42
- package/skills/fsd-generator/SKILL.md +0 -163
- package/skills/gamma-builder/SKILL.md +0 -134
- package/skills/laravel-code-review/SKILL.md +0 -383
- package/skills/laravel-code-review/assets/report-template-agent.md +0 -195
- package/skills/laravel-code-review/assets/report-template-compact.md +0 -79
- package/skills/laravel-code-review/assets/report-template-full.md +0 -253
- package/skills/laravel-code-review/assets/report-template-human.md +0 -159
- package/skills/laravel-code-review/references/laravel-patterns.md +0 -571
- package/skills/laravel-code-review/references/php84-features.md +0 -442
- package/skills/mcp-builder/LICENSE.txt +0 -202
- package/skills/mcp-builder/SKILL.md +0 -236
- package/skills/mcp-builder/reference/evaluation.md +0 -602
- package/skills/mcp-builder/reference/mcp_best_practices.md +0 -249
- package/skills/mcp-builder/reference/node_mcp_server.md +0 -970
- package/skills/mcp-builder/reference/python_mcp_server.md +0 -719
- package/skills/mcp-builder/scripts/connections.py +0 -151
- package/skills/mcp-builder/scripts/evaluation.py +0 -373
- package/skills/mcp-builder/scripts/example_evaluation.xml +0 -22
- package/skills/mcp-builder/scripts/requirements.txt +0 -2
- package/skills/meeting-notes/SKILL.md +0 -159
- package/skills/meeting-notes/evals/evals.json +0 -23
- package/skills/prd-agent-generator/SKILL.md +0 -132
- package/skills/prd-generator/SKILL.md +0 -211
- package/skills/product-brief/SKILL.md +0 -141
- package/skills/project-orchestrator/SKILL.md +0 -487
- package/skills/project-orchestrator/assets/caddy-vps-setup.md +0 -180
- package/skills/project-orchestrator/assets/plan-summary-template.md +0 -159
- package/skills/prompter-specs/SKILL.md +0 -115
- package/skills/prompter-workflow/SKILL.md +0 -166
- package/skills/prompter-workflow/evals/evals.json +0 -89
- package/skills/proposal/SKILL.md +0 -28
- package/skills/qa-test-scenario/SKILL.md +0 -149
- package/skills/skill-creator/SKILL.md +0 -173
- package/skills/sph-generator/SKILL.md +0 -488
- package/skills/story-generator/SKILL.md +0 -285
- package/skills/story-single/SKILL.md +0 -86
- package/skills/tdd-generator/SKILL.md +0 -300
- package/skills/tdd-lite-generator/SKILL.md +0 -230
- package/skills/ui-ux-pro/SKILL.md +0 -199
- package/skills/ui-ux-pro/assets/design-spec-template.md +0 -173
- package/skills/ui-ux-pro/references/component-patterns.md +0 -255
- package/skills/ui-ux-pro/references/design-principles.md +0 -167
- package/skills/wireframe-generator/SKILL.md +0 -227
- package/src/cli/index.ts +0 -223
- package/src/commands/archive.ts +0 -302
- package/src/commands/change.ts +0 -292
- package/src/commands/config.ts +0 -233
- package/src/commands/guide.ts +0 -50
- package/src/commands/init.ts +0 -597
- package/src/commands/list.ts +0 -194
- package/src/commands/show.ts +0 -138
- package/src/commands/spec.ts +0 -251
- package/src/commands/update.ts +0 -129
- package/src/commands/upgrade.ts +0 -30
- package/src/commands/validate.ts +0 -326
- package/src/core/artifact-graph/graph.ts +0 -167
- package/src/core/artifact-graph/index.ts +0 -44
- package/src/core/artifact-graph/instruction-loader.ts +0 -302
- package/src/core/artifact-graph/resolver.ts +0 -226
- package/src/core/artifact-graph/schema.ts +0 -124
- package/src/core/artifact-graph/state.ts +0 -64
- package/src/core/artifact-graph/types.ts +0 -65
- package/src/core/completions/command-registry.ts +0 -382
- package/src/core/completions/completion-provider.ts +0 -128
- package/src/core/completions/generators/bash-generator.ts +0 -191
- package/src/core/completions/generators/fish-generator.ts +0 -188
- package/src/core/completions/generators/powershell-generator.ts +0 -223
- package/src/core/completions/generators/zsh-generator.ts +0 -281
- package/src/core/completions/templates/bash-templates.ts +0 -24
- package/src/core/completions/templates/fish-templates.ts +0 -40
- package/src/core/completions/templates/powershell-templates.ts +0 -25
- package/src/core/completions/templates/zsh-templates.ts +0 -36
- package/src/core/completions/types.ts +0 -90
- package/src/core/config-schema.ts +0 -230
- package/src/core/config.ts +0 -181
- package/src/core/configurators/slash/antigravity.ts +0 -10
- package/src/core/configurators/slash/base.ts +0 -109
- package/src/core/configurators/slash/claude.ts +0 -10
- package/src/core/configurators/slash/codex.ts +0 -10
- package/src/core/configurators/slash/droid.ts +0 -10
- package/src/core/configurators/slash/forge.ts +0 -10
- package/src/core/configurators/slash/github-copilot.ts +0 -10
- package/src/core/configurators/slash/index.ts +0 -10
- package/src/core/configurators/slash/kilocode.ts +0 -10
- package/src/core/configurators/slash/opencode.ts +0 -10
- package/src/core/configurators/slash/registry.ts +0 -51
- package/src/core/converters/json-converter.ts +0 -62
- package/src/core/global-config.ts +0 -136
- package/src/core/parsers/change-parser.ts +0 -234
- package/src/core/parsers/markdown-parser.ts +0 -237
- package/src/core/parsers/requirement-blocks.ts +0 -234
- package/src/core/prompt-templates.ts +0 -3504
- package/src/core/schemas/base.schema.ts +0 -20
- package/src/core/schemas/change.schema.ts +0 -42
- package/src/core/schemas/index.ts +0 -20
- package/src/core/schemas/spec.schema.ts +0 -17
- package/src/core/skill-discovery.ts +0 -68
- package/src/core/specs-apply.ts +0 -483
- package/src/core/styles/palette.ts +0 -8
- package/src/core/templates/agents-template.ts +0 -459
- package/src/core/templates/claude-template.ts +0 -2
- package/src/core/templates/index.ts +0 -3
- package/src/core/templates/project-template.ts +0 -32
- package/src/core/validation/constants.ts +0 -48
- package/src/core/validation/types.ts +0 -19
- package/src/core/validation/validator.ts +0 -449
- package/src/core/view.ts +0 -219
- package/src/index.ts +0 -1
- package/src/utils/change-metadata.ts +0 -171
- package/src/utils/change-utils.ts +0 -131
- package/src/utils/file-system.ts +0 -252
- package/src/utils/index.ts +0 -12
- package/src/utils/interactive.ts +0 -29
- package/src/utils/item-discovery.ts +0 -66
- package/src/utils/match.ts +0 -26
- package/src/utils/shell-detection.ts +0 -62
- package/src/utils/task-progress.ts +0 -43
- package/tsconfig.json +0 -28
|
@@ -1,212 +0,0 @@
|
|
|
1
|
-
````markdown
|
|
2
|
-
# Code Review — Agent Task List
|
|
3
|
-
|
|
4
|
-
> Executable task list for AI agents. Process each task sequentially, marking as complete when done.
|
|
5
|
-
|
|
6
|
-
## Review Summary
|
|
7
|
-
|
|
8
|
-
| Attribute | Value |
|
|
9
|
-
| ------------------ | ------------------------------------ |
|
|
10
|
-
| **Generated** | {{TIMESTAMP}} |
|
|
11
|
-
| **Review Style** | {{REVIEW_STYLE}} |
|
|
12
|
-
| **Tech Stack** | {{TECH_STACK}} |
|
|
13
|
-
| **Framework** | {{FRAMEWORK}} |
|
|
14
|
-
| **AGENTS.md** | {{AGENTS_MD_STATUS}} |
|
|
15
|
-
| **Files Reviewed** | {{FILE_COUNT}} |
|
|
16
|
-
| **Total Tasks** | {{TASK_COUNT}} |
|
|
17
|
-
| **Completed** | {{COMPLETED_COUNT}} / {{TASK_COUNT}} |
|
|
18
|
-
|
|
19
|
-
### Task Statistics
|
|
20
|
-
|
|
21
|
-
| Priority | Total | Remaining | Completed |
|
|
22
|
-
| -------------- | ---------------------- | -------------------------- | -------------------------- |
|
|
23
|
-
| 🔴 Critical | {{CRITICAL_COUNT}} | {{CRITICAL_REMAINING}} | {{CRITICAL_COMPLETED}} |
|
|
24
|
-
| 🟠 Warning | {{WARNING_COUNT}} | {{WARNING_REMAINING}} | {{WARNING_COMPLETED}} |
|
|
25
|
-
| 🟡 Optimization | {{OPTIMIZATION_COUNT}} | {{OPTIMIZATION_REMAINING}} | {{OPTIMIZATION_COMPLETED}} |
|
|
26
|
-
| 🔵 Quality | {{QUALITY_COUNT}} | {{QUALITY_REMAINING}} | {{QUALITY_COMPLETED}} |
|
|
27
|
-
|
|
28
|
-
### Categories
|
|
29
|
-
|
|
30
|
-
| Category | Count |
|
|
31
|
-
| -------------- | ------------------------ |
|
|
32
|
-
| Security | {{SECURITY_COUNT}} |
|
|
33
|
-
| Performance | {{PERFORMANCE_COUNT}} |
|
|
34
|
-
| Architecture | {{ARCHITECTURE_COUNT}} |
|
|
35
|
-
| Language/FW | {{LANG_FRAMEWORK_COUNT}} |
|
|
36
|
-
| Error Handling | {{ERROR_HANDLING_COUNT}} |
|
|
37
|
-
|
|
38
|
-
---
|
|
39
|
-
|
|
40
|
-
## Pending Tasks
|
|
41
|
-
|
|
42
|
-
> Execute these tasks in order. Check the box `[x]` when completed.
|
|
43
|
-
|
|
44
|
-
### 🔴 Critical Tasks (Execute First)
|
|
45
|
-
|
|
46
|
-
{{#each critical_tasks}}
|
|
47
|
-
- [ ] **TASK-{{task_id}}** | `{{file}}:{{line}}` | {{component}}
|
|
48
|
-
- **Issue:** {{title}}
|
|
49
|
-
- **Category:** {{category}}
|
|
50
|
-
- **Language:** {{language}}
|
|
51
|
-
- **Action:** {{action_verb}}
|
|
52
|
-
- **Target Code:**
|
|
53
|
-
```{{language}}
|
|
54
|
-
{{target_code}}
|
|
55
|
-
```
|
|
56
|
-
- **Replace With:**
|
|
57
|
-
```{{language}}
|
|
58
|
-
{{replacement_code}}
|
|
59
|
-
```
|
|
60
|
-
{{#if docs_link}}
|
|
61
|
-
- **Docs:** [{{docs_title}}]({{docs_link}})
|
|
62
|
-
{{/if}}
|
|
63
|
-
{{#if agents_md_rule}}
|
|
64
|
-
- **AGENTS.md Rule:** {{agents_md_rule}}
|
|
65
|
-
{{/if}}
|
|
66
|
-
|
|
67
|
-
{{/each}}
|
|
68
|
-
|
|
69
|
-
### 🟠 Warning Tasks
|
|
70
|
-
|
|
71
|
-
{{#each warning_tasks}}
|
|
72
|
-
- [ ] **TASK-{{task_id}}** | `{{file}}:{{line}}` | {{component}}
|
|
73
|
-
- **Issue:** {{title}}
|
|
74
|
-
- **Category:** {{category}}
|
|
75
|
-
- **Action:** {{action_verb}}
|
|
76
|
-
- **Details:** {{description}}
|
|
77
|
-
- **Fix:** {{recommendation}}
|
|
78
|
-
|
|
79
|
-
{{/each}}
|
|
80
|
-
|
|
81
|
-
### 🟡 Optimization Tasks
|
|
82
|
-
|
|
83
|
-
{{#each optimization_tasks}}
|
|
84
|
-
- [ ] **TASK-{{task_id}}** | `{{file}}:{{line}}` | {{component}}
|
|
85
|
-
- **Issue:** {{title}}
|
|
86
|
-
- **Improvement:** {{recommendation}}
|
|
87
|
-
|
|
88
|
-
{{/each}}
|
|
89
|
-
|
|
90
|
-
### 🔵 Quality Tasks
|
|
91
|
-
|
|
92
|
-
{{#each quality_tasks}}
|
|
93
|
-
- [ ] **TASK-{{task_id}}** | `{{file}}:{{line}}` | {{component}}
|
|
94
|
-
- **Issue:** {{title}}
|
|
95
|
-
- **Suggestion:** {{recommendation}}
|
|
96
|
-
|
|
97
|
-
{{/each}}
|
|
98
|
-
|
|
99
|
-
---
|
|
100
|
-
|
|
101
|
-
## Completed Tasks
|
|
102
|
-
|
|
103
|
-
> Move completed tasks here with `[x]` checked.
|
|
104
|
-
|
|
105
|
-
{{#each completed_tasks}}
|
|
106
|
-
- [x] **TASK-{{task_id}}** | `{{file}}:{{line}}` — {{title}} ✅
|
|
107
|
-
{{/each}}
|
|
108
|
-
|
|
109
|
-
---
|
|
110
|
-
|
|
111
|
-
## Agent Execution Commands
|
|
112
|
-
|
|
113
|
-
> Ready-to-execute commands for automated processing.
|
|
114
|
-
|
|
115
|
-
### File Edit Operations
|
|
116
|
-
|
|
117
|
-
```json
|
|
118
|
-
{
|
|
119
|
-
"operations": [
|
|
120
|
-
{{#each edit_operations}}
|
|
121
|
-
{
|
|
122
|
-
"task_id": "TASK-{{task_id}}",
|
|
123
|
-
"operation": "replace",
|
|
124
|
-
"file": "{{file}}",
|
|
125
|
-
"language": "{{language}}",
|
|
126
|
-
"component": "{{component}}",
|
|
127
|
-
"start_line": {{start_line}},
|
|
128
|
-
"end_line": {{end_line}},
|
|
129
|
-
"target": "{{target_code_escaped}}",
|
|
130
|
-
"replacement": "{{replacement_code_escaped}}",
|
|
131
|
-
"status": "{{status}}"
|
|
132
|
-
}{{#unless @last}},{{/unless}}
|
|
133
|
-
{{/each}}
|
|
134
|
-
]
|
|
135
|
-
}
|
|
136
|
-
```
|
|
137
|
-
|
|
138
|
-
### Validation Commands
|
|
139
|
-
|
|
140
|
-
After completing tasks, run project-appropriate validation:
|
|
141
|
-
|
|
142
|
-
```bash
|
|
143
|
-
# Detect and run project linter/formatter
|
|
144
|
-
# (adapt to actual project tooling from AGENTS.md or config)
|
|
145
|
-
|
|
146
|
-
# JavaScript/TypeScript
|
|
147
|
-
npm run lint && npm test
|
|
148
|
-
|
|
149
|
-
# Python
|
|
150
|
-
ruff check . && pytest
|
|
151
|
-
|
|
152
|
-
# PHP
|
|
153
|
-
./vendor/bin/phpstan analyse && ./vendor/bin/pint --test && php artisan test
|
|
154
|
-
|
|
155
|
-
# Go
|
|
156
|
-
go vet ./... && go test ./...
|
|
157
|
-
|
|
158
|
-
# Rust
|
|
159
|
-
cargo clippy && cargo test
|
|
160
|
-
```
|
|
161
|
-
|
|
162
|
-
---
|
|
163
|
-
|
|
164
|
-
## Task Execution Protocol
|
|
165
|
-
|
|
166
|
-
For each pending task:
|
|
167
|
-
|
|
168
|
-
1. **READ** the task details and target code
|
|
169
|
-
2. **LOCATE** the file and line number
|
|
170
|
-
3. **APPLY** the replacement code or fix
|
|
171
|
-
4. **VERIFY** the change doesn't break other code
|
|
172
|
-
5. **MARK** the task as complete `[x]`
|
|
173
|
-
6. **MOVE** to Completed Tasks section
|
|
174
|
-
|
|
175
|
-
### Status Flags
|
|
176
|
-
|
|
177
|
-
```json
|
|
178
|
-
{
|
|
179
|
-
"review_style": "{{REVIEW_STYLE}}",
|
|
180
|
-
"tech_stack": "{{TECH_STACK}}",
|
|
181
|
-
"agents_md_loaded": {{AGENTS_MD_FOUND}},
|
|
182
|
-
"all_critical_resolved": {{all_critical_resolved}},
|
|
183
|
-
"all_warnings_resolved": {{all_warnings_resolved}},
|
|
184
|
-
"ready_for_commit": {{ready_for_commit}},
|
|
185
|
-
"requires_human_review": {{requires_human_review}},
|
|
186
|
-
"blocking_issues": {{blocking_count}},
|
|
187
|
-
"has_security_issues": {{has_security}}
|
|
188
|
-
}
|
|
189
|
-
```
|
|
190
|
-
|
|
191
|
-
---
|
|
192
|
-
|
|
193
|
-
## Quick Reference
|
|
194
|
-
|
|
195
|
-
| Task ID Format | Meaning |
|
|
196
|
-
| -------------- | --------------------- |
|
|
197
|
-
| `TASK-C###` | Critical priority |
|
|
198
|
-
| `TASK-W###` | Warning priority |
|
|
199
|
-
| `TASK-O###` | Optimization priority |
|
|
200
|
-
| `TASK-Q###` | Quality priority |
|
|
201
|
-
|
|
202
|
-
| Status | Symbol |
|
|
203
|
-
| ----------- | ------ |
|
|
204
|
-
| Pending | `[ ]` |
|
|
205
|
-
| In Progress | `[-]` |
|
|
206
|
-
| Completed | `[x]` |
|
|
207
|
-
| Skipped | `[~]` |
|
|
208
|
-
|
|
209
|
-
---
|
|
210
|
-
|
|
211
|
-
*Format: agent-tasks | Schema: code-review/v1 | {{REVIEW_STYLE}} mode*
|
|
212
|
-
````
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
```markdown
|
|
2
|
-
# Code Review — Compact
|
|
3
|
-
|
|
4
|
-
**{{TIMESTAMP}}** | **{{REVIEW_STYLE}}** mode | {{TECH_STACK}} | {{FILE_COUNT}} files | {{ISSUE_COUNT}} issues
|
|
5
|
-
|
|
6
|
-
## Review Configuration
|
|
7
|
-
|
|
8
|
-
| Style | AGENTS.md | Focus Areas Applied |
|
|
9
|
-
| ------------------------------------------- | --------------------- | ----------------------- |
|
|
10
|
-
| {{REVIEW_STYLE_EMOJI}} **{{REVIEW_STYLE}}** | {{AGENTS_MD_STATUS}} | {{FOCUS_AREAS_SUMMARY}} |
|
|
11
|
-
|
|
12
|
-
## Summary
|
|
13
|
-
|
|
14
|
-
🔴 {{CRITICAL_COUNT}} critical | 🟠 {{WARNING_COUNT}} warning | 🟡 {{OPTIMIZATION_COUNT}} optimize | 🔵 {{QUALITY_COUNT}} quality
|
|
15
|
-
|
|
16
|
-
**By Category:** {{SECURITY_COUNT}} sec | {{PERFORMANCE_COUNT}} perf | {{ARCHITECTURE_COUNT}} arch | {{LANG_FRAMEWORK_COUNT}} lang | {{ERROR_HANDLING_COUNT}} err
|
|
17
|
-
|
|
18
|
-
---
|
|
19
|
-
|
|
20
|
-
## Issues
|
|
21
|
-
|
|
22
|
-
| Sev | File | Line | Issue | Category |
|
|
23
|
-
| --- | ---- | ---: | ----- | -------- |
|
|
24
|
-
{{#each issues}}
|
|
25
|
-
| {{severity_emoji}} | `{{file_short}}` | {{line}} | {{title}} | {{category}} |
|
|
26
|
-
{{/each}}
|
|
27
|
-
|
|
28
|
-
---
|
|
29
|
-
|
|
30
|
-
## By Component
|
|
31
|
-
|
|
32
|
-
{{#each components_with_issues}}
|
|
33
|
-
### {{component}}
|
|
34
|
-
|
|
35
|
-
{{#each files}}
|
|
36
|
-
**`{{file_short}}`**
|
|
37
|
-
{{#each issues}}
|
|
38
|
-
- {{severity_emoji}} L{{line}}: {{title}} → {{recommendation_short}}
|
|
39
|
-
{{/each}}
|
|
40
|
-
|
|
41
|
-
{{/each}}
|
|
42
|
-
{{/each}}
|
|
43
|
-
|
|
44
|
-
---
|
|
45
|
-
|
|
46
|
-
## Action Items
|
|
47
|
-
|
|
48
|
-
**🔴 Critical ({{CRITICAL_COUNT}}):**
|
|
49
|
-
{{#each critical_issues}}
|
|
50
|
-
- [ ] {{file_short}}:{{line}} — {{title}}
|
|
51
|
-
{{/each}}
|
|
52
|
-
|
|
53
|
-
{{#if_not_lenient}}
|
|
54
|
-
**🟠 Warnings ({{WARNING_COUNT}}):**
|
|
55
|
-
{{#each warning_issues}}
|
|
56
|
-
- [ ] {{file_short}}:{{line}} — {{title}}
|
|
57
|
-
{{/each}}
|
|
58
|
-
|
|
59
|
-
**🟡 Optimization ({{OPTIMIZATION_COUNT}}):**
|
|
60
|
-
{{#each optimization_issues}}
|
|
61
|
-
- [ ] {{file_short}}:{{line}} — {{title}}
|
|
62
|
-
{{/each}}
|
|
63
|
-
{{/if_not_lenient}}
|
|
64
|
-
|
|
65
|
-
{{#if_strict}}
|
|
66
|
-
**🔵 Quality ({{QUALITY_COUNT}}):**
|
|
67
|
-
{{#each quality_issues}}
|
|
68
|
-
- [ ] {{file_short}}:{{line}} — {{title}}
|
|
69
|
-
{{/each}}
|
|
70
|
-
{{/if_strict}}
|
|
71
|
-
|
|
72
|
-
---
|
|
73
|
-
|
|
74
|
-
## Focus Areas Applied
|
|
75
|
-
|
|
76
|
-
{{#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
|
|
77
|
-
|
|
78
|
-
---
|
|
79
|
-
|
|
80
|
-
*code-review • compact • {{REVIEW_STYLE}}*
|
|
81
|
-
```
|
|
@@ -1,264 +0,0 @@
|
|
|
1
|
-
````markdown
|
|
2
|
-
# Code Review Report
|
|
3
|
-
|
|
4
|
-
**Generated:** {{TIMESTAMP}}
|
|
5
|
-
**Review Style:** {{REVIEW_STYLE_EMOJI}} {{REVIEW_STYLE}}
|
|
6
|
-
**Tech Stack:** {{TECH_STACK}}
|
|
7
|
-
**Reviewed Files:** {{FILE_COUNT}}
|
|
8
|
-
**Total Issues:** {{ISSUE_COUNT}}
|
|
9
|
-
|
|
10
|
-
---
|
|
11
|
-
|
|
12
|
-
## Review Configuration
|
|
13
|
-
|
|
14
|
-
### Project Profile
|
|
15
|
-
|
|
16
|
-
| Setting | Value |
|
|
17
|
-
| ---------------- | ------------------------------------------- |
|
|
18
|
-
| **Review Style** | {{REVIEW_STYLE_EMOJI}} **{{REVIEW_STYLE}}** |
|
|
19
|
-
| **Tech Stack** | {{TECH_STACK}} |
|
|
20
|
-
| **Framework** | {{FRAMEWORK}} |
|
|
21
|
-
| **AGENTS.md** | {{AGENTS_MD_STATUS}} |
|
|
22
|
-
|
|
23
|
-
### Focus Areas Matrix
|
|
24
|
-
|
|
25
|
-
| Focus Area | Status | Coverage Level | Description |
|
|
26
|
-
| ----------------- | --------------------------- | --------------------------- | ---------------------------------------------------- |
|
|
27
|
-
| Security | {{FOCUS_SECURITY_EMOJI}} | {{FOCUS_SECURITY_LEVEL}} | Injection, XSS, auth bypass, secrets, CSRF |
|
|
28
|
-
| Performance | {{FOCUS_PERFORMANCE_EMOJI}} | {{FOCUS_PERFORMANCE_LEVEL}} | N+1 queries, blocking I/O, missing indexes |
|
|
29
|
-
| Bug detection | {{FOCUS_BUGS_EMOJI}} | {{FOCUS_BUGS_LEVEL}} | Null refs, type errors, unhandled exceptions |
|
|
30
|
-
| Code style | {{FOCUS_STYLE_EMOJI}} | {{FOCUS_STYLE_LEVEL}} | Naming, conventions, project-specific rules |
|
|
31
|
-
| Test coverage | {{FOCUS_TESTS_EMOJI}} | {{FOCUS_TESTS_LEVEL}} | Missing or inadequate tests |
|
|
32
|
-
| Documentation | {{FOCUS_DOCS_EMOJI}} | {{FOCUS_DOCS_LEVEL}} | Missing docs, outdated comments |
|
|
33
|
-
|
|
34
|
-
### Review Mode Description
|
|
35
|
-
|
|
36
|
-
{{#if_strict}}
|
|
37
|
-
> **🔒 Strict Mode Active**
|
|
38
|
-
> All potential issues are flagged across all focus areas. This is the most thorough review, prioritizing quality and security. Expect detailed feedback on critical, warning, optimization, and quality issues.
|
|
39
|
-
{{/if_strict}}
|
|
40
|
-
|
|
41
|
-
{{#if_balanced}}
|
|
42
|
-
> **⚖️ Balanced Mode Active**
|
|
43
|
-
> High-confidence issues are flagged. Security, performance, and bugs are fully covered. Code style only flags major violations. Documentation is skipped for practicality.
|
|
44
|
-
{{/if_balanced}}
|
|
45
|
-
|
|
46
|
-
{{#if_lenient}}
|
|
47
|
-
> **💚 Lenient Mode Active**
|
|
48
|
-
> Only critical bugs and security vulnerabilities are flagged. This mode is encouraging and focuses on must-fix issues only.
|
|
49
|
-
{{/if_lenient}}
|
|
50
|
-
|
|
51
|
-
---
|
|
52
|
-
|
|
53
|
-
## Summary
|
|
54
|
-
|
|
55
|
-
| Severity | Count | Included |
|
|
56
|
-
| -------------- | ---------------------- | ------------------------- |
|
|
57
|
-
| 🔴 Critical | {{CRITICAL_COUNT}} | ✅ Always |
|
|
58
|
-
| 🟠 Warning | {{WARNING_COUNT}} | {{WARNING_INCLUDED}} |
|
|
59
|
-
| 🟡 Optimization | {{OPTIMIZATION_COUNT}} | {{OPTIMIZATION_INCLUDED}} |
|
|
60
|
-
| 🔵 Code Quality | {{QUALITY_COUNT}} | {{QUALITY_INCLUDED}} |
|
|
61
|
-
|
|
62
|
-
### Issue Categories
|
|
63
|
-
|
|
64
|
-
| Category | Count |
|
|
65
|
-
| ------------- | ------------------------ |
|
|
66
|
-
| Security | {{SECURITY_COUNT}} |
|
|
67
|
-
| Performance | {{PERFORMANCE_COUNT}} |
|
|
68
|
-
| Architecture | {{ARCHITECTURE_COUNT}} |
|
|
69
|
-
| Language/FW | {{LANG_FRAMEWORK_COUNT}} |
|
|
70
|
-
| Error Handling| {{ERROR_HANDLING_COUNT}} |
|
|
71
|
-
|
|
72
|
-
---
|
|
73
|
-
|
|
74
|
-
## Files Reviewed
|
|
75
|
-
|
|
76
|
-
### By Component
|
|
77
|
-
|
|
78
|
-
{{#each file_groups}}
|
|
79
|
-
**{{group_name}}:**
|
|
80
|
-
{{#each files}}
|
|
81
|
-
- `{{this}}`
|
|
82
|
-
{{/each}}
|
|
83
|
-
|
|
84
|
-
{{/each}}
|
|
85
|
-
|
|
86
|
-
---
|
|
87
|
-
|
|
88
|
-
## Issues by Component
|
|
89
|
-
|
|
90
|
-
{{#each issues}}
|
|
91
|
-
|
|
92
|
-
### `{{component}}`
|
|
93
|
-
|
|
94
|
-
#### `{{file}}`
|
|
95
|
-
|
|
96
|
-
##### Issue {{index}}: {{title}}
|
|
97
|
-
|
|
98
|
-
| Attribute | Value |
|
|
99
|
-
| -------------- | ------------------------------- |
|
|
100
|
-
| **Severity** | {{severity_emoji}} {{severity}} |
|
|
101
|
-
| **Line** | {{line}} |
|
|
102
|
-
| **Type** | {{type}} |
|
|
103
|
-
| **Category** | {{category}} |
|
|
104
|
-
| **Focus Area** | {{focus_area}} |
|
|
105
|
-
|
|
106
|
-
**Description:**
|
|
107
|
-
{{description}}
|
|
108
|
-
|
|
109
|
-
**Code:**
|
|
110
|
-
```{{language}}
|
|
111
|
-
// Line {{line}}
|
|
112
|
-
{{code_snippet}}
|
|
113
|
-
```
|
|
114
|
-
|
|
115
|
-
**Recommendation:**
|
|
116
|
-
{{recommendation}}
|
|
117
|
-
|
|
118
|
-
{{#if suggested_fix}}
|
|
119
|
-
**Suggested Fix:**
|
|
120
|
-
```{{language}}
|
|
121
|
-
{{suggested_fix}}
|
|
122
|
-
```
|
|
123
|
-
{{/if}}
|
|
124
|
-
|
|
125
|
-
{{#if docs_link}}
|
|
126
|
-
**Reference:** [{{docs_title}}]({{docs_link}})
|
|
127
|
-
{{/if}}
|
|
128
|
-
|
|
129
|
-
{{#if agents_md_rule}}
|
|
130
|
-
**AGENTS.md Rule:** {{agents_md_rule}}
|
|
131
|
-
{{/if}}
|
|
132
|
-
|
|
133
|
-
---
|
|
134
|
-
|
|
135
|
-
<!-- MACHINE_READABLE_START
|
|
136
|
-
{
|
|
137
|
-
"file": "{{file}}",
|
|
138
|
-
"line": {{line}},
|
|
139
|
-
"severity": "{{severity_lower}}",
|
|
140
|
-
"type": "{{type}}",
|
|
141
|
-
"category": "{{category}}",
|
|
142
|
-
"component": "{{component}}",
|
|
143
|
-
"focus_area": "{{focus_area}}",
|
|
144
|
-
"review_style": "{{REVIEW_STYLE}}",
|
|
145
|
-
"language": "{{language}}",
|
|
146
|
-
"tech_stack": "{{TECH_STACK}}",
|
|
147
|
-
"description": "{{description_escaped}}",
|
|
148
|
-
"recommendation": "{{recommendation_escaped}}",
|
|
149
|
-
"agents_md_rule": "{{agents_md_rule}}",
|
|
150
|
-
"solved": false
|
|
151
|
-
}
|
|
152
|
-
MACHINE_READABLE_END -->
|
|
153
|
-
|
|
154
|
-
{{/each}}
|
|
155
|
-
|
|
156
|
-
---
|
|
157
|
-
|
|
158
|
-
## Quick Fixes by Priority
|
|
159
|
-
|
|
160
|
-
### 🔴 Critical (Must Fix)
|
|
161
|
-
|
|
162
|
-
{{#each critical_issues}}
|
|
163
|
-
- [ ] **{{file}}:{{line}}** — {{title}}
|
|
164
|
-
{{/each}}
|
|
165
|
-
{{#if_no_critical}}
|
|
166
|
-
✅ No critical issues!
|
|
167
|
-
{{/if_no_critical}}
|
|
168
|
-
|
|
169
|
-
{{#if_not_lenient}}
|
|
170
|
-
### 🟠 Warnings (Should Fix)
|
|
171
|
-
|
|
172
|
-
{{#each warning_issues}}
|
|
173
|
-
- [ ] **{{file}}:{{line}}** — {{title}}
|
|
174
|
-
{{/each}}
|
|
175
|
-
{{#if_no_warnings}}
|
|
176
|
-
✅ No warnings!
|
|
177
|
-
{{/if_no_warnings}}
|
|
178
|
-
|
|
179
|
-
### 🟡 Optimization (Nice to Have)
|
|
180
|
-
|
|
181
|
-
{{#each optimization_issues}}
|
|
182
|
-
- [ ] **{{file}}:{{line}}** — {{title}}
|
|
183
|
-
{{/each}}
|
|
184
|
-
{{#if_no_optimization}}
|
|
185
|
-
✅ No optimization issues!
|
|
186
|
-
{{/if_no_optimization}}
|
|
187
|
-
{{/if_not_lenient}}
|
|
188
|
-
|
|
189
|
-
{{#if_strict}}
|
|
190
|
-
### 🔵 Quality (Polish)
|
|
191
|
-
|
|
192
|
-
{{#each quality_issues}}
|
|
193
|
-
- [ ] **{{file}}:{{line}}** — {{title}}
|
|
194
|
-
{{/each}}
|
|
195
|
-
{{#if_no_quality}}
|
|
196
|
-
✅ No quality issues!
|
|
197
|
-
{{/if_no_quality}}
|
|
198
|
-
{{/if_strict}}
|
|
199
|
-
|
|
200
|
-
---
|
|
201
|
-
|
|
202
|
-
## Project Convention Compliance
|
|
203
|
-
|
|
204
|
-
{{#if agents_md_found}}
|
|
205
|
-
### Rules from AGENTS.md
|
|
206
|
-
|
|
207
|
-
| Convention | Status | Notes |
|
|
208
|
-
| ----------------------- | ---------------------- | ---------------------- |
|
|
209
|
-
{{#each convention_checks}}
|
|
210
|
-
| {{convention_name}} | {{status_emoji}} | {{notes}} |
|
|
211
|
-
{{/each}}
|
|
212
|
-
{{/if}}
|
|
213
|
-
|
|
214
|
-
{{#if_no_agents_md}}
|
|
215
|
-
> ⚠️ No `AGENTS.md` found at project root. Project-specific convention checks were skipped.
|
|
216
|
-
> Consider creating an `AGENTS.md` to get tailored recommendations.
|
|
217
|
-
{{/if_no_agents_md}}
|
|
218
|
-
|
|
219
|
-
---
|
|
220
|
-
|
|
221
|
-
## Report Metadata
|
|
222
|
-
|
|
223
|
-
```json
|
|
224
|
-
{
|
|
225
|
-
"version": "1.0",
|
|
226
|
-
"generated_at": "{{TIMESTAMP}}",
|
|
227
|
-
"review_style": "{{REVIEW_STYLE}}",
|
|
228
|
-
"review_config": {
|
|
229
|
-
"severity_threshold": "{{SEVERITY_THRESHOLD}}",
|
|
230
|
-
"tone": "{{REVIEW_TONE}}",
|
|
231
|
-
"focus_areas": {
|
|
232
|
-
"security": "{{FOCUS_SECURITY_LEVEL}}",
|
|
233
|
-
"performance": "{{FOCUS_PERFORMANCE_LEVEL}}",
|
|
234
|
-
"bugs": "{{FOCUS_BUGS_LEVEL}}",
|
|
235
|
-
"code_style": "{{FOCUS_STYLE_LEVEL}}",
|
|
236
|
-
"test_coverage": "{{FOCUS_TESTS_LEVEL}}",
|
|
237
|
-
"documentation": "{{FOCUS_DOCS_LEVEL}}"
|
|
238
|
-
}
|
|
239
|
-
},
|
|
240
|
-
"tech_stack": "{{TECH_STACK}}",
|
|
241
|
-
"framework": "{{FRAMEWORK}}",
|
|
242
|
-
"agents_md": {{AGENTS_MD_FOUND}},
|
|
243
|
-
"total_files": {{FILE_COUNT}},
|
|
244
|
-
"total_issues": {{ISSUE_COUNT}},
|
|
245
|
-
"severity_breakdown": {
|
|
246
|
-
"critical": {{CRITICAL_COUNT}},
|
|
247
|
-
"warning": {{WARNING_COUNT}},
|
|
248
|
-
"optimization": {{OPTIMIZATION_COUNT}},
|
|
249
|
-
"quality": {{QUALITY_COUNT}}
|
|
250
|
-
},
|
|
251
|
-
"category_breakdown": {
|
|
252
|
-
"security": {{SECURITY_COUNT}},
|
|
253
|
-
"performance": {{PERFORMANCE_COUNT}},
|
|
254
|
-
"architecture": {{ARCHITECTURE_COUNT}},
|
|
255
|
-
"language_framework": {{LANG_FRAMEWORK_COUNT}},
|
|
256
|
-
"error_handling": {{ERROR_HANDLING_COUNT}}
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
```
|
|
260
|
-
|
|
261
|
-
---
|
|
262
|
-
|
|
263
|
-
*Generated by code-review skill • Full format • {{REVIEW_STYLE}} mode*
|
|
264
|
-
````
|