code-review — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited code-review (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Perform a thorough self-review of local code changes before pushing. Catch issues early when they're cheap to fix.
pr-review)No special tools required. Optionally, ensure you have a diff viewer available:
# Verify git is available
git --version
# Optional: check if diffstat is available
which diffstat# Review all uncommitted changes (staged + unstaged)
git diff HEAD
# Or review only staged changes (ready to commit)
git diff --cached
# Review specific files
git diff HEAD -- path/to/file.go path/to/other.js
# See what files changed
git diff --stat HEADWork through each changed file systematically:
Use the review checklist below to evaluate each file.
For each file in the diff:
# View the full file for context (not just the diff)
git show HEAD:path/to/file
# Or open in your editor
git diff HEAD -- path/to/fileAsk yourself:
When flagging issues, categorize by severity:
| Level | Meaning | Action |
|---|---|---|
| [blocker] | Must fix before push | Security flaw, data loss risk, broken logic |
| [warning] | Should fix now | Code smell, poor pattern, missing error handling |
| [nit] | Nice to fix | Style, naming, minor optimization |
Provide a structured review summary:
## Code Review: [brief description]
### Files Reviewed
- file1.go (added)
- file2.ts (modified)
### Summary
[1-2 sentence overview of the changes]
### Findings
- [blocker] file:line — Description of issue and why it matters
- [warning] file:line — Description and suggested fix
- [nit] file:line — Minor improvement suggestion
### What Looks Good
- [Positive observations about the code]
### Suggestions (Optional)
- [Non-blocking improvements for consideration]## Code Review: User authentication flow
### Files Reviewed
- src/auth/login.ts (added)
- src/middleware/auth.ts (modified)
- src/types/user.ts (modified)
### Summary
Implements JWT-based login with refresh tokens. Generally well-structured,
but has a security concern and missing input validation.
### Findings
- [blocker] src/auth/login.ts:45 — JWT secret hardcoded as string literal.
Move to environment variable: `process.env.JWT_SECRET`.
- [warning] src/auth/login.ts:67 — No rate limiting on login attempts.
Consider adding rate limit middleware.
- [warning] src/middleware/auth.ts:23 — Missing null check on token payload.
Add guard: `if (!decoded.userId) return res.status(401)`.
- [nit] src/types/user.ts:12 — `User` type exported but unused in this PR.
### What Looks Good
- Clean separation of auth concerns
- Proper token expiry handling
- Good TypeScript types
### Suggestions
- Consider adding refresh token rotation for better security
- Add integration test for full login → protected route flowFor small changes, run through this quick check:
# 1. Any secrets exposed?
git diff HEAD | grep -iE '(password|secret|token|key).*=.*["\x27]'
# 2. Any console.log or debug statements?
git diff HEAD | grep -E '(console\.log|fmt\.Print|debugger|TODO|FIXME)'
# 3. Any large functions (>50 lines)?
git diff HEAD | grep -c '^+' | head -1git diff --stat to identify the most-changed files# See the commit history leading to this point
git log --oneline -10
# See the full file for context
git show HEAD:path/to/file~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.