enkez/tgsopd/code-review
Claude Code and agent skill by enkez/tgsopd
- community
Checking that the SKILL.md file is still in the repository.
Expert code review of current git changes with a senior engineer
Install
npx vskill@latest install enkez/tgsopd/code-reviewSKILL.md
Code Review Expert
Perform a structured review of the current git changes with focus on SOLID principles, architecture, removal candidates, security risks, and Python-specific issues. Tailored for the Relax project (PyTorch distributed training, Ray actors, ML pipeline code).
Default to review-only output unless the user asks to implement changes.
For project structure, coupling points, and key files, see AGENTS.md.
Severity Levels
| Level | Name | Description | Action | |
|---|---|---|---|---|
| P0 | Critical | Security vulnerability, data loss risk, correctness bug, training corruption | Must block merge | |
| P1 | High | Logic error, significant SOLID violation, performance regression, gradient issues | Should fix before merge | |
| P2 | Medium | Code smell, maintainability concern, minor SOLID violation, missing type hints | Fix in this PR or create follow-up | |
| P3 | Low | Style, naming, documentation, minor suggestion | Optional improvement |
Workflow
1) Preflight Context
- Use
git status -sb,git diff --stat, andgit diffto scope changes. - If needed, use
rgorgrepto find related modules, usages, and contracts. - Identify entry points, ownership boundaries, and critical paths (training loop, loss computation, checkpoint saving).
Edge cases:
- No changes: Ask if they want to review staged changes or a specific commit range.
- Large diff (>500 lines): Summarize by file first, then review in batches.
- Cross-package changes: When multiple
relax/subpackages are modified, verify import compatibility first.
2) SOLID + Architecture Smells
- Load
references/solid-checklist.mdfor specific prompts. - When you propose a refactor, explain why it improves cohesion/coupling and outline a minimal, safe split.
- If refactor is non-trivial, propose an incremental plan instead of a large rewrite.
3) Removal Candidates + Iteration Plan
- Load
references/removal-plan.mdfor template. - Identify code that is unused, redundant, or feature-flagged off.
- Distinguish safe delete now vs defer with plan.
4) Security and Reliability Scan
- Load
references/security-checklist.mdfor coverage. - Check for: command injection, path traversal, pickle deserialization, secret leakage, race conditions, distributed race conditions.
- Call out both exploitability and impact.
5) Python-Specific Quality Scan
- Load
references/code-quality-checklist.mdfor coverage. - Check for: missing type hints, exception handling issues, resource management, mutable defaults, import problems.
6) ML/Training-Specific Scan
- Load
references/python-ml-checklist.mdfor coverage. - Check for: shape/dtype/device mismatches, gradient issues, memory leaks, distributed training bugs, numerical stability.
7) Output Format
Clean review: If no issues found, state what was checked and any residual risks.
8) Next Steps Confirmation
After presenting findings, ask user how to proceed:
- Fix all - Implement all suggested fixes
- Fix P0/P1 only - Address critical and high priority issues
- Fix specific items - User specifies which issues to fix
- No changes - Review complete
Important: Do NOT implement any changes until user explicitly confirms.
Resources
| File | Purpose | |
|---|---|---|
solid-checklist.md | SOLID smell prompts and refactor heuristics for Python | |
security-checklist.md | Python security and runtime risk checklist | |
code-quality-checklist.md | Python-specific error handling, performance, boundary conditions | |
removal-plan.md | Template for deletion candidates and follow-up plan | |
python-ml-checklist.md | PyTorch/ML-specific issues for distributed training |
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/code-review/SKILL.md
Popularity
- Repository stars
- 1
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/enkez/tgsopd/code-review)