actionable-review-format-standards
SKILL.md
Actionable Review Format Standards
Standardized output format for code reviews ensuring consistent, actionable, and prioritized feedback across all reviewer agents.
When to Use This Skill
- Generating code review reports
- Formatting PR feedback
- Creating security audit reports
- Producing performance review outputs
- Any review output requiring severity classification
Core Principles
- Every issue has a severity - Never leave findings unclassified
- Every issue has a location - Always include
file:linereferences - Every blocking issue has a fix - Provide code snippets for Critical/High
- Summary before details - Lead with counts and verdicts
- Categorize by concern - Group Security, Performance, Patterns separately
Severity Classification
Severity Levels
| Level | Icon | Criteria | Action Required |
|---|---|---|---|
| CRITICAL | π΄ | Security vulnerabilities, data loss risk, system crashes | Must fix before merge |
| HIGH | π | Significant bugs, missing authorization, performance blockers | Should fix before merge |
| MEDIUM | π‘ | Code quality issues, minor bugs, missing validation | Fix soon, not blocking |
| LOW | π’ | Style issues, minor improvements, suggestions | Nice to have |
| INFO | π‘ | Educational comments, alternative approaches | No action required |
Severity Decision Tree
Is it a security vulnerability?
βββ Yes β CRITICAL
βββ No β Can it cause data loss or corruption?
βββ Yes β CRITICAL
βββ No β Can it cause system crash/downtime?
βββ Yes β HIGH
βββ No β Does it break functionality?
βββ Yes β HIGH
βββ No β Does it affect performance significantly?
βββ Yes β MEDIUM
βββ No β Is it a code quality issue?
βββ Yes β MEDIUM/LOW
βββ No β LOW/INFO
Severity Examples
π΄ CRITICAL - Security
- SQL injection vulnerability
- Missing authorization on delete endpoint
- Hardcoded credentials in source code
- PII exposure in logs
π HIGH - Must Fix
- Missing null checks causing NullReferenceException
- N+1 query in frequently called method
- Business logic error causing wrong calculations
- Missing input validation on public API
π‘ MEDIUM - Should Fix
- Blocking async call (.Result, .Wait())
- Missing error handling
- Inefficient LINQ query
- Duplicate code that should be extracted
π’ LOW - Nice to Have
- Variable naming improvements
- Missing XML documentation
- Code formatting inconsistencies
- Minor refactoring opportunities
π‘ INFO - Educational
- Alternative pattern suggestion
- Performance optimization tip
- Best practice recommendation
Location Format
Standard Format
{FilePath}:{LineNumber}
Examples
β
Good:
- `src/Application/PatientAppService.cs:45`
- `src/Domain/Patient.cs:23-28` (range)
- `src/Application/Validators/CreatePatientDtoValidator.cs:12`
β Bad:
- `PatientAppService.cs` (missing path)
- `line 45` (missing file)
- `src/Application/` (missing file and line)
Multi-Location Issues
When an issue spans multiple files:
**[MEDIUM]** Duplicate validation logic
- `src/Application/PatientAppService.cs:45`
- `src/Application/DoctorAppService.cs:52`
- `src/Application/AppointmentAppService.cs:38`
**Suggestion**: Extract to shared `ValidationHelper` class.
Issue Format
Single Issue Template
**[{SEVERITY}]** `{file:line}` - {Category}
{Brief description of the issue}
**Problem**:
```{language}
// Current code
{problematic code}
Fix:
// Suggested fix
{corrected code}
Why: {Explanation of impact/risk}
### Compact Issue Format (for tables)
```markdown
| Severity | Location | Category | Issue | Fix |
|----------|----------|----------|-------|-----|
| π΄ CRITICAL | `File.cs:42` | Security | Missing `[Authorize]` | Add `[Authorize(Permissions.Delete)]` |
| π HIGH | `File.cs:67` | Performance | N+1 query in loop | Use `.Include()` or batch query |
Report Structure
Full Review Report Template
# Code Review: {PR Title}
**Date**: {YYYY-MM-DD}
**Reviewer**: {agent-name}
**Files Reviewed**: {count}
**Lines Changed**: +{added} / -{removed}
---
## Verdict
{β
APPROVE | π¬ APPROVE WITH COMMENTS | π REQUEST CHANGES}
**Summary**: {1-2 sentence overview}
---
## Issue Summary
| Severity | Count | Blocking |
|----------|-------|----------|
| π΄ CRITICAL | {n} | Yes |
| π HIGH | {n} | Yes |
| π‘ MEDIUM | {n} | No |
| π’ LOW | {n} | No |
---
## π΄ Critical Issues
{If none: "No critical issues found."}
### [CRITICAL] `{file:line}` - {Title}
{Description}
**Problem**:
```{lang}
{code}
Fix:
{code}
π High Issues
{Issues in same format}
π‘ Medium Issues
{Issues in same format or table format for brevity}
π’ Low Issues / Suggestions
{file:line}[nit]: {suggestion}{file:line}[style]: {suggestion}
π Security Summary
| Check | Status | Notes |
|---|---|---|
| Authorization | β Pass / β Fail | {details} |
| Input Validation | β Pass / β Fail | {details} |
| Data Exposure | β Pass / β Fail | {details} |
| Secrets | β Pass / β Fail | {details} |
β‘ Performance Summary
| Check | Status | Notes |
|---|---|---|
| N+1 Queries | β Pass / β Fail | {details} |
| Async Patterns | β Pass / β Fail | {details} |
| Pagination | β Pass / β Fail | {details} |
| Query Optimization | β Pass / β Fail | {details} |
β What's Good
- {Positive observation 1}
- {Positive observation 2}
- {Positive observation 3}
Action Items
Must fix before merge:
- {Critical/High issue 1}
- {Critical/High issue 2}
Should fix soon:
- {Medium issue 1}
- {Medium issue 2}
Technical Debt Noted
- {Future improvement 1}
- {Future improvement 2}
---
## Category Labels
Use consistent category labels to classify issues:
| Category | Description | Examples |
|----------|-------------|----------|
| **Security** | Vulnerabilities, auth issues | Missing auth, SQL injection, XSS |
| **Performance** | Efficiency issues | N+1, blocking async, missing pagination |
| **DDD** | Domain design issues | Public setters, anemic entities |
| **ABP** | Framework pattern violations | Wrong base class, missing GuidGenerator |
| **Validation** | Input validation issues | Missing validators, weak rules |
| **Error Handling** | Exception handling issues | Silent catch, wrong exception type |
| **Async** | Async/await issues | Blocking calls, missing cancellation |
| **Testing** | Test quality issues | Missing tests, flaky tests |
| **Style** | Code style issues | Naming, formatting |
| **Documentation** | Doc issues | Missing comments, outdated docs |
---
## Feedback Language
### Use Constructive Language
```markdown
β Bad:
"This is wrong."
"You should know better."
"Why didn't you use X?"
β
Good:
"Consider using X because..."
"This could cause Y. Here's a fix:"
"Have you considered X? It would improve Y."
Differentiate Blocking vs Non-Blocking
π« [blocking]: Must fix before merge
π [suggestion]: Consider for improvement
π [nit]: Minor style preference, not blocking
π [learning]: Educational note, no action needed
Quick Reference
Minimum Requirements
Every review output MUST include:
- Verdict - Approve/Request Changes
- Issue count by severity
- All Critical/High issues with fixes
- File:line references for all issues
- At least one positive observation
Severity Quick Guide
| If you find... | Severity |
|---|---|
| Security vulnerability | π΄ CRITICAL |
| Missing authorization | π΄ CRITICAL |
| Data corruption risk | π΄ CRITICAL |
| Null reference exception | π HIGH |
| N+1 query pattern | π HIGH |
| Blocking async | π‘ MEDIUM |
| Missing validation | π‘ MEDIUM |
| Naming issues | π’ LOW |
| Missing docs | π’ LOW |
Example Output
# Code Review: Add Patient CRUD API
**Date**: 2025-12-13
**Reviewer**: abp-code-reviewer
**Files Reviewed**: 5
**Lines Changed**: +245 / -12
---
## Verdict
π REQUEST CHANGES
**Summary**: Good implementation of Patient CRUD with proper ABP patterns. Found 1 critical security issue (missing authorization) and 2 performance concerns that need attention.
---
## Issue Summary
| Severity | Count | Blocking |
|----------|-------|----------|
| π΄ CRITICAL | 1 | Yes |
| π HIGH | 2 | Yes |
| π‘ MEDIUM | 1 | No |
| π’ LOW | 2 | No |
---
## π΄ Critical Issues
### [CRITICAL] `src/Application/PatientAppService.cs:67` - Security
**Missing authorization on DeleteAsync**
**Problem**:
```csharp
public async Task DeleteAsync(Guid id)
{
await _repository.DeleteAsync(id);
}
Fix:
[Authorize(ClinicManagementSystemPermissions.Patients.Delete)]
public async Task DeleteAsync(Guid id)
{
await _repository.DeleteAsync(id);
}
Why: Any authenticated user can delete patients without permission check.
π High Issues
[HIGH] src/Application/PatientAppService.cs:34 - Performance
N+1 query pattern in GetListAsync
Problem:
foreach (var patient in patients)
{
patient.Appointments = await _appointmentRepository.GetListAsync(a => a.PatientId == patient.Id);
}
Fix:
var patientIds = patients.Select(p => p.Id).ToList();
var appointments = await _appointmentRepository.GetListAsync(a => patientIds.Contains(a.PatientId));
var grouped = appointments.GroupBy(a => a.PatientId).ToDictionary(g => g.Key, g => g.ToList());
foreach (var patient in patients)
{
patient.Appointments = grouped.GetValueOrDefault(patient.Id, new List<Appointment>());
}
π Security Summary
| Check | Status | Notes |
|---|---|---|
| Authorization | β Fail | DeleteAsync missing [Authorize] |
| Input Validation | β Pass | FluentValidation in place |
| Data Exposure | β Pass | DTOs properly scoped |
| Secrets | β Pass | No hardcoded values |
β‘ Performance Summary
| Check | Status | Notes |
|---|---|---|
| N+1 Queries | β Fail | Loop in GetListAsync |
| Async Patterns | β Pass | Proper async/await |
| Pagination | β Pass | Using PageBy |
| Query Optimization | β Pass | WhereIf pattern used |
β What's Good
- Excellent entity encapsulation with private setters
- Proper use of
GuidGenerator.Create() - Clean FluentValidation implementation
- Good separation of concerns
Action Items
Must fix before merge:
- Add
[Authorize]to DeleteAsync - Fix N+1 query in GetListAsync
Should fix soon:
- Add XML documentation to public methods
Weekly Installs
8
Repository
thapaliyabikendβ¦rtifactsGitHub Stars
14
First Seen
Jan 26, 2026
Security Audits
Installed on
github-copilot7
cursor7
opencode6
gemini-cli6
claude-code6
codex6