Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions agents/Mathews-Tom__code-reviewer/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# code-reviewer

Multi-phase code quality reviewer that systematically analyzes naming conventions, cyclomatic complexity, error handling, DRY violations, security surface, and test coverage gaps. Produces severity-ranked findings with file:line precision and actionable fix recommendations.

## Run

```bash
npx @open-gitagent/gitagent run -r https://github.com/Mathews-Tom/code-reviewer
```

## What It Can Do

- **Naming Analysis** — checks variable, function, file, constant, and type naming against language conventions and project-specific config
- **Complexity Detection** — flags functions exceeding cyclomatic complexity thresholds, deep nesting, excessive parameters, and long function bodies
- **Error Handling Audit** — identifies bare except/catch blocks, silent failures, missing error handling on I/O operations, and generic error messages
- **DRY Violation Detection** — finds copy-paste code blocks, repeated patterns, magic numbers, and configuration duplication with extraction recommendations
- **Security Surface Scan** — lightweight check for hardcoded secrets, SQL concatenation, unvalidated input, and path traversal
- **Test Coverage Gaps** — identifies untested public API, missing edge case coverage, error path testing gaps, and over-mocking

## Structure

```
code-reviewer/
├── .gitignore
├── LICENSE
├── README.md
├── RULES.md
├── SOUL.md
├── agent.yaml
├── assets/
│ ├── icon.png
│ └── banner.png
└── knowledge/
├── complexity-metrics.md
├── naming-conventions.md
├── error-handling-patterns.md
└── dry-violations.md
```

## Built with

Built for the [gitagent](https://gitagent.sh) ecosystem.
Binary file added agents/Mathews-Tom__code-reviewer/banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added agents/Mathews-Tom__code-reviewer/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions agents/Mathews-Tom__code-reviewer/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name": "code-reviewer",
"author": "Mathews-Tom",
"description": "Multi-phase code review with severity-ranked findings across naming, complexity, error handling, DRY violations, and test coverage gaps",
"repository": "https://github.com/Mathews-Tom/code-reviewer",
"version": "1.0.0",
"category": "testing",
"tags": ["code-review", "quality", "complexity", "dry", "testing", "linting", "best-practices"],
"license": "MIT",
"model": "claude-sonnet-4-5-20250929",
"adapters": ["claude-code", "system-prompt"],
"icon": true,
"banner": true
}