Loading...
Loading...
Automated code review assistant that analyzes GitHub pull requests and code changes. Use when: (1) user shares a GitHub PR URL and wants a code review, (2) you need to review code for bugs, security issues, or best practices, (3) performing automated code quality checks before merging, (4) analyzing code diffs for potential improvements.
npx skill4agent add winsorllc/upgraded-carnival code-review-assistantghgh auth statusnode /job/.pi/skills/code-review-assistant/review.js "https://github.com/owner/repo/pull/123"node /job/.pi/skills/code-review-assistant/review.js --branch "feature-branch"node /job/.pi/skills/code-review-assistant/review.js --files "src/index.ts" "src/utils.ts"node /job/.pi/skills/code-review-assistant/review.js --diff "diff content here"node /job/.pi/skills/code-review-assistant/review.js --focus security "https://github.com/owner/repo/pull/123"
node /job/.pi/skills/code-review-assistant/review.js --focus bugs "https://github.com/owner/repo/pull/123"
node /job/.pi/skills/code-review-assistant/review.js --focus best-practices "https://github.com/owner/repo/pull/123"node /job/.pi/skills/code-review-assistant/review.js --json "https://github.com/owner/repo/pull/123"node /job/.pi/skills/code-review-assistant/quick-check.js "const x = 1;" javascript| Focus | Description |
|---|---|
| Security vulnerabilities, injection risks, exposed secrets |
| Logic errors, null pointer risks, race conditions |
| Code style, performance, maintainability |
| Performance issues, memory leaks, inefficient algorithms |
| Full review covering all areas |
============================================================
Code Review: PR #123 - Add user authentication
============================================================
Repo: owner/repo
Author: @developer
Files changed: 3
Additions: 150 | Deletions: 20
--- Security Issues ---
⚠️ [HIGH] auth.js:45 - Hardcoded API key detected
Consider using environment variables instead
✅ No other security issues found
--- Bugs ---
🐛 [MEDIUM] login.js:78 - Missing null check on user object
Add defensive check before accessing user.email
🔍 [LOW] utils.js:12 - Unused variable 'temp'
--- Best Practices ---
💡 [LOW] auth.js:90 - Consider using const instead of let
Variable 'token' is never reassigned
--- Summary ---
Overall: 1 high priority, 1 medium priority, 2 low priority issues
Recommendation: Address high and medium issues before merging{
"pr": {
"url": "https://github.com/owner/repo/pull/123",
"title": "Add user authentication",
"repo": "owner/repo",
"author": "@developer",
"filesChanged": 3,
"additions": 150,
"deletions": 20
},
"issues": [
{
"severity": "high",
"category": "security",
"file": "auth.js",
"line": 45,
"message": "Hardcoded API key detected",
"suggestion": "Consider using environment variables instead"
},
{
"severity": "medium",
"category": "bugs",
"file": "login.js",
"line": 78,
"message": "Missing null check on user object",
"suggestion": "Add defensive check before accessing user.email"
}
],
"summary": {
"total": 4,
"high": 1,
"medium": 1,
"low": 2,
"recommendation": "Address high and medium issues before merging"
}
}User: Can you review this PR? https://github.com/owner/repo/pull/456
Agent: [Uses code-review-assistant to fetch PR and analyze]User: Run a security check on my branch before I submit
Agent: [Uses code-review-assistant with --focus security on branch]User: What's the code quality like in these files?
Agent: [Uses code-review-assistant with --focus best-practices on files]gh--focus security--jsonquick-check.js