Skip to content

maxwellokumu/okaudit-claude-skills / application-security/code-review-helper

code-review-helper

Verified

Analyze source code for common security weaknesses across multiple languages and help Claude explain findings, severity, and remediation clearly.

FileKindSize
README.mdmarkdown1.9 KB
SKILL.mdskill md1.7 KB
main.pyscript17.9 KB
sample_input/vulnerable_app.jsscript2.0 KB
sample_input/vulnerable_app.pyscript2.9 KB
skill.yamlconfig907 B
# code-review-helper

Regex-based static security analysis for Python, JavaScript, Java, and Go source files. Detects 8 vulnerability classes per language with CWE references and actionable remediation guidance.

## Requirements

- Python 3.8+
- No external dependencies

## Usage

```bash
python main.py --code sample_input/vulnerable_app.py --language python

python main.py --code sample_input/vulnerable_app.js --language javascript --output json
```

### Options

| Flag | Required | Default | Description |
|------|----------|---------|-------------|
| `--code` | ✅ | — | Path to source file |
| `--language` | ✅ | — | `python` \| `javascript` \| `java` \| `go` |
| `--output` | | `markdown` | `markdown` \| `json` |

## Vulnerability Classes Detected

| Language | Classes |
|----------|---------|
| Python | Hardcoded Secrets, eval/exec, SQL Injection, Weak Crypto, Debug Mode, Insecure Deserialization, Path Traversal, Open Redirect |
| JavaScript | eval(), innerHTML XSS, document.write XSS, Sensitive localStorage, Prototype Pollution, dangerouslySetInnerHTML, Open Redirect, ReDoS |
| Java | SQL Injection, XXE, Insecure Deserialization, Hardcoded Secrets, Weak Crypto, Path Traversal, Command Injection, JNDI Injection |
| Go | Hardcoded Secrets, unsafe.Pointer, Command Injection, SQL Injection, Weak Crypto, Path Traversal, Open Redirect, Goroutine Leak |

## Sample Output

```
# Code Security Review

**File:** sample_input/vulnerable_app.py
**Language:** python
**Total Findings:** 8

| Line | Vulnerability     | Severity | CWE     | Code Snippet              |
|------|-------------------|----------|---------|---------------------------|
| 5    | Hardcoded Secrets | Critical | CWE-798 | password = "sup3rs3cret"  |
| 12   | SQL Injection     | Critical | CWE-89  | cursor.execute("SELECT... |
```

> This tool performs regex-based pattern matching and is not a substitute for a full SAST tool.
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