code-review
13
总安装量
8
周安装量
#25008
全站排名
安装命令
npx skills add https://github.com/jstarfilms/vibecode-protocol-suite --skill code-review
Agent 安装分布
opencode
7
gemini-cli
7
windsurf
7
github-copilot
7
codex
7
Skill 文档
Code Review Skill
Run the J-Star Reviewer on staged changes, allowing iterative fixing of issues.
When to Use
- Before committing code changes
- When code quality issues are mentioned
- As a quality gate before merging
- When user asks to “review this code”
Quick Start
1. Build the Brain (First Time Only)
jstar init
2. Stage Changes
git add .
3. Run Review
# Standard review (staged changes)
jstar review
# Retroactive (already committed)
jstar review --last
# Branch/PR review (against main)
jstar review --pr
Fix Loop Protocol
- Read Output: Check
.jstar/last-review.mdor console - Prioritize: Focus on P0_CRITICAL and P1_HIGH only
- Loop Strategy:
- If P0/P1 found â Fix â Stage â Re-review
- If only P2_MEDIUM â Consider “Good Enough”
- MAX LOOPS: 3 â If issues persist, stop and ask user
Handling False Positives (Headless Mode)
# Start headless session
jstar chat --headless
# List issues
echo '{"action": "list"}' | jstar chat --headless
# Debate an issue
echo '{"action": "debate", "issueId": 0, "argument": "This is correct because..."}' | jstar chat --headless
# Exit
echo '{"action": "exit"}' | jstar chat --headless
AI Fix Cycle
1. jstar review --json â Parse findings
2. Apply code fixes
3. git add . â Stage changes
4. jstar init â Update brain (if new files added)
5. jstar review --json â Verify fixes
6. Repeat until P0/P1 = 0
Headless Commands
| Action | Parameters | Description |
|---|---|---|
list |
â | List all current issues |
debate |
issueId, argument |
Challenge an issue |
ignore |
issueId |
Mark issue as ignored |
exit |
â | End session, get final report |