/code-review
Comprehensive security and quality review of uncommitted changes:
> /plugin marketplace add Galaxy-Dawn/claude-scholar > /plugin install claude-scholar@claude-scholar
How it fires
How this command gets triggered: by you, by Claude, or both.
- Fires itselfClaude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/code-review
Context preview
What this command does when you run it.
Comprehensive security and quality review of uncommitted changes:
Command definition
code-review.mdCode Review
Comprehensive security and quality review of uncommitted changes:
1. Get changed files: git diff --name-only HEAD
2. For each changed file, check for:
**Security Issues (CRITICAL):**
- Hardcoded credentials, API keys, tokens
- SQL injection vulnerabilities
- XSS vulnerabilities
- Missing input validation
- Insecure dependencies
- Path traversal risks
- Insecure deserialization (pickle)
**Code Quality (HIGH):**
- Functions > 50 lines
- Files > 800 lines
- Nesting depth > 4 levels
- Missing error handling (try/except)
- print() statements in production
- TODO/FIXME comments without tickets
- Missing docstrings for public APIs
- Missing type hints (Python 3.6+)
**Best Practices (MEDIUM):**
- Mutable default arguments
- Emoji usage in code/comments
- Missing tests for new code
- Missing `if __name__ == "__main__"` guards
- Unused imports (detect with ruff/pyflakes)
3. Generate report with:
- Severity: CRITICAL, HIGH, MEDIUM, LOW
- File location and line numbers
- Issue description
- Suggested fix
4. Block commit if CRITICAL or HIGH issues found
Never approve code with security vulnerabilities!
Semi-automated research assistant for academic research and software development. Supports Claude Code, Codex CLI, Kimi Code CLI, and OpenCode across ideation, coding, experiments, writing, and publication.
Repo: Galaxy-Dawn/claude-scholar
Other commands on claude-scholar.
- /analyze-results
Optional experiment line slug for report naming
Open command - /build-fix
Incrementally fix Python type and lint errors:
Open command - /checkpoint
Create or verify a checkpoint in your workflow.
Open command - /commit
Commit changes following Conventional Commits format (local only, no push).
Open command - /create_project
δ½Ώη¨ζ¬ε°ζ¨‘ζΏ ~/Code/template θι GitHubοΌθ¦η template_repoοΌ
Open command - /kb-archive
Destination note path for rename.
Open command

