Skip to content

aiskillstore/marketplace / skills/89jobrien/code-review

code-review

Verified

Expert code review specialist for quality, security, and maintainability. Use when reviewing code changes, ensuring high development standards, or conducting security audits. Provides actionable feedback organized by priority.

FileKindSize
SKILL.mdskill md7.2 KB
references/code-analysis.template.mdmarkdown3.7 KB
references/review-checklist.mdmarkdown4.2 KB
skill-report.jsonconfig36.3 KB

references/code-analysis.template.md

View on GitHub
---
author: Joseph OBrien
status: unpublished
updated: '2025-12-23'
version: 1.0.1
tag: skill
type: reference
parent: code-review
---

# Code Analysis Report Template

**Generated:** {{TIMESTAMP}}
**Target:** {{FILE_OR_DIRECTORY}}
**Analyzer:** {{TOOL_OR_METHOD}}

---

## Executive Summary

| Metric | Value | Status |
|--------|-------|--------|
| **Overall Grade** | {{A-F}} | {{PASS/WARN/FAIL}} |
| **Files Analyzed** | {{COUNT}} | - |
| **Issues Found** | {{TOTAL}} | - |
| **Critical Issues** | {{COUNT}} | {{STATUS}} |
| **Test Coverage** | {{PERCENT}}% | {{STATUS}} |

---

## Findings Summary

| Severity | Count | Categories |
|----------|-------|------------|
| 🔴 Critical | {{N}} | {{CATEGORIES}} |
| 🟠 High | {{N}} | {{CATEGORIES}} |
| 🟡 Medium | {{N}} | {{CATEGORIES}} |
| 🟢 Low | {{N}} | {{CATEGORIES}} |

---

## Critical Issues

### {{ISSUE_ID}}: {{ISSUE_TITLE}}

**File:** `{{FILE_PATH}}:{{LINE_NUMBER}}`
**Category:** {{SECURITY/PERFORMANCE/BUG/STYLE}}

```{{LANGUAGE}}
{{CODE_SNIPPET}}
```

**Problem:** {{DESCRIPTION}}

**Impact:** {{IMPACT_DESCRIPTION}}

**Recommendation:**

```{{LANGUAGE}}
{{FIXED_CODE}}
```

---

## Architecture Analysis

### Dependencies

```
{{DEPENDENCY_TREE_OR_DIAGRAM}}
```

### Complexity Metrics

| File | Cyclomatic | Cognitive | Lines | Status |
|------|------------|-----------|-------|--------|
| {{FILE}} | {{N}} | {{N}} | {{N}} | {{STATUS}} |

### Code Smells

| Smell | Occurrences | Files Affected |
|-------|-------------|----------------|
| Long Method | {{N}} | {{FILES}} |
| Large Class | {{N}} | {{FILES}} |
| Duplicate Code | {{N}} | {{FILES}} |
| Dead Code | {{N}} | {{FILES}} |

---

## Security Analysis

### Vulnerabilities

| ID | Severity | Type | Location |
|----|----------|------|----------|
| {{CVE/CWE}} | {{SEV}} | {{TYPE}} | {{FILE:LINE}} |

### Dependency Audit

| Package | Current | Latest | Vulnerabilities |
|---------|---------|--------|-----------------|
| {{PKG}} | {{VER}} | {{VER}} | {{COUNT}} |

### Secrets Detection

| Type | File | Status |
|------|------|--------|
| API Key | {{FILE}} | {{EXPOSED/SAFE}} |

---

## Performance Analysis

### Hot Spots

| File | Function | Time % | Calls |
|------|----------|--------|-------|
| {{FILE}} | {{FUNC}} | {{N}}% | {{N}} |

### Memory Usage

| Component | Allocated | Retained | Status |
|-----------|-----------|----------|--------|
| {{COMP}} | {{SIZE}} | {{SIZE}} | {{STATUS}} |

### Database Queries

| Query | Avg Time | N+1 Risk | Index Used |
|-------|----------|----------|------------|
| {{QUERY}} | {{MS}}ms | {{Y/N}} | {{Y/N}} |

---

## Test Coverage

### Coverage by Module

| Module | Lines | Branches | Functions |
|--------|-------|----------|-----------|
| {{MOD}} | {{N}}% | {{N}}% | {{N}}% |

### Untested Code

| File | Lines Missing | Critical |
|------|---------------|----------|
| {{FILE}} | {{LINES}} | {{Y/N}} |

---

## Recommendations

### Immediate Actions (Critical/High)

1. **{{ACTION_1}}**
   - File: `{{FILE}}`
   - Effort: {{LOW/MED/HIGH}}
   - Impact: {{DESCRIPTION}}

### Short-term Improvements

1. {{IMPROVEMENT_1}}
2. {{IMPROVEMENT_2}}

### Technical Debt

| Item | Priority | Effort | Value |
|------|----------|--------|-------|
| {{ITEM}} | {{P1-4}} | {{EST}} | {{HIGH/MED/LOW}} |

---

## Appendix

### A. Full Issue List

<details>
<summary>Click to expand ({{N}} issues)</summary>

{{FULL_ISSUE_LIST}}

</details>

### B. Tool Configuration

```json
{{TOOL_CONFIG}}
```

### C. Analysis Commands

```bash
{{COMMANDS_USED}}
```

---

## Quality Checklist

- [ ] All critical issues have recommendations
- [ ] Security vulnerabilities documented
- [ ] Performance bottlenecks identified
- [ ] Test coverage gaps highlighted
- [ ] Technical debt quantified
- [ ] Recommendations prioritized by impact
rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first.Stars: 194kUpdated Claude CodeCodexVerifiedInstall