agent-config
Create, update, or audit AGENTS.md (default) or CLAUDE.md agent instructions: set up, prune, add a rule, or merge CLAUDE.md or…
Review or improve code — one skill, four modes: bug/security review (default), performance, clean-code audit, slop cleanup. Pass mode:review|perf|clean|cleanup or infer. Don't use for writing features or generating tests (use test-coverage).
$ npx -y skills add luongnv89/skills --skill code-review --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/code-reviewContext preview
The summary Claude sees to decide when to auto-load this skill.
Review or improve code — one skill, four modes: bug/security review (default), performance, clean-code audit, slop cleanup. Pass mode:review|perf|clean|cleanup or infer. Don't use for writing features or generating tests (use test-coverage).
name: code-review description: "Review or improve code — one skill, four modes: bug/security review (default), performance, clean-code audit, slop cleanup. Pass mode:review|perf|clean|cleanup or infer. Don't use for writing features or generating tests (use test-coverage)." license: MIT effort: high metadata: version: 2.2.2 author: "Luong NGUYEN <luongnv89@gmail.com>" architecture: "router (4 modes, each a self-contained workflow in references/)"
One skill for reviewing and improving code quality. Pick a **mode** by intent (or pass an explicit `mode:` parameter); each mode is a full, self-contained workflow in `references/`. Load only the mode you need — this protects the agent's context budget.
| Mode | Use when the user wants to... | Reads / writes | Output | Workflow | |---|---|---|---|---| | **review** (default) | find bugs, security holes, quality issues in a diff/PR | read-only | prioritized findings report | `references/review-mode.md` | | **perf** | make code faster — bottlenecks, leaks, algorithmic waste | read-only | performance findings report | `references/perf-mode.md` | | **clean** | audit readability/standards vs the bbv Clean Code cheat sheet | read-only | `CLEAN_CODE_AUDIT.md` | `references/clean-mode.md` | | **cleanup** | actually refactor out AI slop, dead code, duplication, cruft | **WRITES CODE** | modified source files | `references/cleanup-mode.md` |
1. **Explicit wins.** If the request carries `mode:review|perf|clean|cleanup` (or `--mode <name>`), use it. 2. **Otherwise infer** from the request. When one matched phrase sits inside a longer matched phrase, only the longer one counts, so "clean code review" is a **clean** phrase only, not also a **review** phrase. Phrases that do not overlap all count, whatever their length (step 3).
(user-invoked only — a bare "readability" or "audit against standards" ask is ambiguous: use step 3)
3. **No match, or phrases from more than one mode?** Ask which mode, naming the four options. For example, "review and optimize" matches **review** and **perf**, so ask. Use **review** without asking only when the request contains a review phrase and no other mode's phrase.
`review`, `perf`, and `clean` are **source-read-only**: they analyze and report without touching source files. Review and perf may write only the named report artifact their mode specifies (`CODE_REVIEW.md` for review; perf returns its report in the response). During review/perf analysis, they must not otherwise mutate the index, refs, stash, branch, worktree, or remote state. `clean` retains its own report-writing and sync contract. `cleanup` **modifies files**. Therefore:
refactor / clean up the codebase (or passes `mode:cleanup`). A plain "review my code" must never rewrite files — stay in a read-only mode.
observations without claiming remote freshness. They do not fetch, stash, pull, rebase, checkout/switch, create or delete branches/worktrees, or apply source fixes. A separately approved mutation workflow owns its own freshness and stash-first sync contract.
Applies to `clean` (writes `CLEAN_CODE_AUDIT.md`) and `cleanup` (writes source) only. `review` and `perf` never sync (see the Safety section). Before the first write in either mode:
branch="$(git rev-parse --abbrev-ref HEAD)" git fetch origin && git pull --rebase origin "$branch"
The full step, with recovery commands, is in `references/clean-mode.md` and `references/cleanup-mode.md`.
Read the selected mode's reference file and execute its steps exactly. Supporting files each mode uses (already colocated under this skill):
If the Agent tool is available, modes that use subagents (**review**, **cleanup**) spawn them per their workflow — fresh-context validation and parallel work. If it is unavailable (e.g., Claude.ai), execute each mode's phases inline (less rigorous, but functional).
Modes compose: a common flow is **clean** (audit → `CLEAN_CODE_AUDIT.md`) then
One command drops a tested, versioned skill into your agent. No more ad-hoc prompts. The same rigorous steps run every time. Skills are independent files.
Create, update, or audit AGENTS.md (default) or CLAUDE.md agent instructions: set up, prune, add a rule, or merge CLAUDE.md or…
Find open AI engineering jobs that fit a candidate, verify location and apply links, and assess each employer's product. Use for…
Generate App Store screenshots and header/search images for iPhone, iPad and Mac from a codebase or landing page, or re-render a…
Audit iOS/macOS apps against App Store Review Guidelines before submission, with evidence-backed verdicts and fixes. Don't use…
Optimize App Store and Google Play listings via a 7-phase, plan-approval-gated ASO workflow (keyword strategy, metadata,…
Generate a commit message, stage all changes, and push to remote after scanning for secrets, large files, and protected-branch…