Skip to content

notque/vexjoy-agent / skills/review/review

Code review: systematic single-file, parallel multi-reviewer, full-repo audit, PR diff review.

FileKindSize
SKILL.mdskill md11.7 KB
references/architecture-smell-baseline.mdmarkdown6.8 KB
references/audit-playbook.mdmarkdown10.2 KB
references/disprove-pass.mdmarkdown2.3 KB
references/go-review-patterns.mdmarkdown4.0 KB
references/receiving-feedback.mdmarkdown3.0 KB
references/report-template.mdmarkdown1.9 KB
references/reviewer-code.mdmarkdown6.2 KB
references/reviewer-code/code-quality.mdmarkdown4.6 KB
references/reviewer-code/comments.mdmarkdown3.6 KB
references/reviewer-code/config-safety.mdmarkdown3.7 KB
references/reviewer-code/dead-code.mdmarkdown3.2 KB
references/reviewer-code/language-checks.mdmarkdown6.7 KB
references/reviewer-code/language-specialist.mdmarkdown4.7 KB
references/reviewer-code/naming.mdmarkdown3.3 KB
references/reviewer-code/performance.mdmarkdown3.5 KB
references/reviewer-code/simplifier.mdmarkdown5.3 KB
references/reviewer-code/test-analyzer.mdmarkdown4.5 KB
references/reviewer-code/type-design.mdmarkdown4.0 KB
references/reviewer-domain.mdmarkdown9.1 KB
references/reviewer-domain/adr-compliance.mdmarkdown3.0 KB
references/reviewer-domain/business-logic.mdmarkdown4.6 KB
references/reviewer-domain/common-bugs.mdmarkdown6.7 KB
references/reviewer-domain/edge-case-tables.mdmarkdown4.5 KB
references/reviewer-domain/operational-preferred-patterns.mdmarkdown7.2 KB
references/reviewer-domain/pragmatic-builder.mdmarkdown4.2 KB
references/reviewer-domain/production-gaps.mdmarkdown5.3 KB
references/reviewer-domain/sapcc-structural.mdmarkdown5.4 KB
references/reviewer-domain/state-machine-verification.mdmarkdown5.2 KB
references/reviewer-domain/structural-categories.mdmarkdown5.8 KB
references/reviewer-perspectives.mdmarkdown8.0 KB
references/reviewer-perspectives/clarity-and-assumption-detection.mdmarkdown4.8 KB
references/reviewer-perspectives/code-review-detection.mdmarkdown4.4 KB
references/reviewer-perspectives/contrarian.mdmarkdown2.3 KB
references/reviewer-perspectives/meta-process.mdmarkdown2.7 KB
references/reviewer-perspectives/newcomer.mdmarkdown2.0 KB
references/reviewer-perspectives/pedant.mdmarkdown3.3 KB
references/reviewer-perspectives/review-detection-commands.mdmarkdown8.7 KB
references/reviewer-perspectives/skeptical-senior.mdmarkdown2.9 KB
references/reviewer-perspectives/user-advocate.mdmarkdown2.9 KB
references/reviewer-system.mdmarkdown14.0 KB
references/reviewer-system/api-contract.mdmarkdown3.4 KB
references/reviewer-system/compliance-checklists.mdmarkdown5.1 KB
references/reviewer-system/concurrency.mdmarkdown3.6 KB
references/reviewer-system/dependency-audit.mdmarkdown3.3 KB
references/reviewer-system/docs-validator.mdmarkdown4.0 KB
references/reviewer-system/error-messages.mdmarkdown3.1 KB
references/reviewer-system/financial-resilience-de-eu.mdmarkdown5.3 KB
references/reviewer-system/german-it-security.mdmarkdown10.7 KB
references/reviewer-system/industry-specific-compliance.mdmarkdown3.5 KB
references/reviewer-system/migration-safety.mdmarkdown3.3 KB
references/reviewer-system/observability.mdmarkdown3.1 KB
references/reviewer-system/security-authz.mdmarkdown9.0 KB
references/reviewer-system/security-ci-cd.mdmarkdown7.6 KB
references/reviewer-system/security-data-exfil.mdmarkdown9.5 KB
references/reviewer-system/security-finding-template.mdmarkdown3.0 KB
references/reviewer-system/security-injection.mdmarkdown6.3 KB
references/reviewer-system/security-pii.mdmarkdown7.3 KB
references/reviewer-system/security.mdmarkdown3.6 KB
references/reviewer-system/silent-failures.mdmarkdown3.6 KB
references/reviewer-system/sovereign-cloud-data-residency.mdmarkdown6.6 KB
references/reviewer-system/stride-threat-model.mdmarkdown3.2 KB

references/reviewer-code/dead-code.md

View on GitHub
# Dead Code Detection

Identify unreachable code, unused exports, orphaned files, and other code artifacts that increase maintenance burden without providing value.

## Expertise

- **Unreachable Code**: Dead branches after early returns, impossible conditions, post-panic code
- **Unused Exports**: Exported functions/types/constants with zero external call sites
- **Orphaned Files**: Source files not imported by any other file in the project
- **Stale Feature Flags**: Always-on or always-off flags, flags with past expiry dates
- **Commented-Out Code**: Code blocks in comments that should be in VCS history
- **Obsolete TODOs**: TODOs referencing closed issues, past dates, or completed work
- **Language-Specific Tools**: Go (go vet, staticcheck, unused), Python (vulture, pyflakes), TypeScript (ts-prune)

## Methodology

- Trace import graphs to find orphaned files
- Check exported symbol usage across all packages
- Distinguish "unused now" from "public API surface"
- Flag commented-out code >3 lines as dead code
- Check TODO dates and issue references against current state

## Hardcoded Behaviors

- **Commented Code Zero Tolerance**: Commented-out code blocks (>3 lines) must always be reported.
- **Evidence-Based Findings**: Every finding must show the unreferenced code and the search for references.
- **Wave 2 Context Usage**: When Wave 1 findings are provided, use code-quality and docs-validator findings.

## Default Behaviors

- Import Graph Analysis: Trace file-to-file imports to find orphaned files.
- Export Usage Check: Search for call sites of all exported functions.
- Commented Code Detection: Flag commented-out code blocks >3 lines.
- TODO Staleness Check: Check TODO dates and issue references.
- Feature Flag Audit: Identify always-on/always-off flags.

## Output Format

```markdown
## VERDICT: [CLEAN | DEAD_CODE_FOUND | SIGNIFICANT_DEAD_CODE]

## Dead Code Analysis: [Scope Description]

### Unreachable Code
1. **[Pattern]** - `file:LINE` - HIGH
   - **Code**: [snippet]
   - **Why Unreachable**: [reason]
   - **Remediation**: Delete lines [N-M]

### Unused Exports
1. **[Symbol]** - `file:LINE` - MEDIUM
   - **Search**: 0 results outside declaration
   - **Remediation**: Remove or unexport

### Orphaned Files
### Stale Feature Flags
### Commented-Out Code
### Obsolete TODOs

### Dead Code Summary

| Category | Count | Lines |
|----------|-------|-------|
| Unreachable code | N | N |
| Unused exports | N | N |
| Orphaned files | N | N |
| **TOTAL** | **N** | **N** |

**Recommendation**: [FIX BEFORE MERGE / APPROVE WITH CLEANUP / APPROVE]
```

## Error Handling

- **Reflection/Dynamic Usage**: Note if symbol may be used via reflection or plugin system.
- **Public API Surface**: Note if exported function is intended for external consumers.

## Patterns to Detect and Fix

| Rationalization | Why It's Wrong | Required Action |
|-----------------|----------------|-----------------|
| "Might need it later" | Git history exists for this | Delete now |
| "It documents the old approach" | Use comments for intent, not old code | Delete code, add comment if needed |
| "Someone might import it" | Check all consumers first | If no consumers, remove |
| "TODO is still valid" | If it was valid, it would be done | Complete or delete |
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: 471kUpdated 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: 471kUpdated Claude CodeCodexVerifiedInstall
rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics.Stars: 471kUpdated 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