Skills for Real Engineers. Straight from my .agents directory.
code-review-expert
Agent skill fromsanyuan0704/sanyuan-skills
Expert code review of current git changes with a senior engineer lens. Detects SOLID violations, security risks, and proposes actionable improvements.
How to install code-review-expert
npx skills add sanyuan0704/sanyuan-skills# or add only this skill to Claude Code: copy the folder
skills/code-review-expert/
# into
~/.claude/skills/code-review-expert/ (all projects)
.claude/skills/code-review-expert/ (one project)
1# Code Review Expert23## Overview45Perform a structured review of the current git changes with focus on SOLID, architecture, removal candidates, and security risks. Default to review-only output unless the user asks to implement changes.67## Severity Levels89| Level | Name | Description | Action |10|-------|------|-------------|--------|11| **P0** | Critical | Security vulnerability, data loss risk, correctness bug | Must block merge |12| **P1** | High | Logic error, significant SOLID violation, performance regression | Should fix before merge |13| **P2** | Medium | Code smell, maintainability concern, minor SOLID violation | Fix in this PR or create follow-up |14| **P3** | Low | Style, naming, minor suggestion | Optional improvement |1516## Workflow1718### 1) Preflight context1920- Use `git status -sb`, `git diff --stat`, and `git diff` to scope changes.21- If needed, use `rg` or `grep` to find related modules, usages, and contracts.22- Identify entry points, ownership boundaries, and critical paths (auth, payments, data writes, network).2324**Edge cases:**25- **No changes**: If `git diff` is empty, inform user and ask if they want to review staged changes or a specific commit range.26- **Large diff (>500 lines)**: Summarize by file first, then review in batches by module/feature area.27- **Mixed concerns**: Group findings by logical feature, not just file order.2829### 2) SOLID + architecture smells3031- Load `references/solid-checklist.md` for specific prompts.32- Look for:33…
Excerpt shown under the repository's MIT license.
More skills in sanyuan-skills
Similar skill repositories
An agentic skills framework & software development methodology that works.
A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.
Public repository for Agent Skills
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.
Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
