con un clic
scan-file
Deep single-file analysis — bugs, security, patterns, test coverage
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Menú
Deep single-file analysis — bugs, security, patterns, test coverage
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Basado en la clasificación ocupacional SOC
Interactive issue design — researches the codebase and produces implementation-ready GitHub issues
Comprehensive codebase audit — security, error handling, patterns, tests, data, dependencies
Technical debt tracker — TODOs, suppressed rules, skipped tests, churn hotspots
| name | scan-file |
| description | Deep single-file analysis — bugs, security, patterns, test coverage |
| disable-model-invocation | true |
| argument-hint | <file-path> |
Deep analysis of a single file and its dependency graph. Finds bugs, security issues, bad patterns, missing error handling, and test gaps.
File path: $ARGUMENTS
If $ARGUMENTS is empty, ask which file to scan.
Find and read all files this file imports, requires, or inherits from (skip third-party packages).
Determine the corresponding test file based on project conventions. If the test file exists, read it. If it doesn't exist, note this as a finding.
Check every line for:
.first on possibly empty array)Compare the public interface of the target file against the test file:
# Scan: `path/to/file`
## Summary
[1-2 sentence overview]
## Findings
### Line N: [Title]
**Severity**: Critical / High / Medium / Low
**Category**: Bug / Security / Pattern / Error Handling / Edge Case
**Issue**: [What's wrong]
**Fix**: [Exact fix]
## Test Coverage
| Method/Function | Tested | Edge Cases | Error Path |
|----------------|--------|------------|------------|
| `method_name` | yes/no | yes/no | yes/no |
**Missing tests**:
- `method_name` with nil input
- [specific untested scenarios]
## Score: N/10
[Brief justification]
After presenting findings, offer: