review-diff

Solid

Scan git diffs for project-specific anti-patterns. Triggers on: 'scan diff', 'check diff', 'anti-pattern check', 'pattern scan', 'review changes'.

Code & Development 67 stars 21 forks Updated 1 weeks ago MIT

Install

View on GitHub

Quality Score: 85/100

Stars 20%
61
Recency 20%
90
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

Scan a git diff for project-specific anti-patterns. This is a fast, targeted scan (seconds), not a full code review. Use `/review` for comprehensive analysis. ## Step 0: Detect project Ensure you are inside a git repository before running diff commands: - If cwd is a git repo: use it - If recent context references a project: `cd` into it first - Check `CLAUDE.md` or the project manifest (package.json, composer.json, pom.xml, Gemfile, *.csproj, go.mod, Cargo.toml, requirements.txt/pyproject.toml, etc.) in the project root to identify the framework and project-specific patterns - If unclear: ask which project ## Step 1: Get the diff Determine the diff source from `$ARGUMENTS`: - **No arguments**: Run `git diff` (unstaged) + `git diff --cached` (staged). Combine both outputs. - **Branch name** (e.g., `feat/xyz`): Run `git diff main...$ARGUMENTS` - **Commit range** (e.g., `HEAD~3..HEAD`): Run `git diff $ARGUMENTS` - **Single commit hash**: Run `git diff $ARGUMENTS~1..$ARGUMENTS` If the diff is empty, report "No changes to scan." and stop. ## Step 2: Scan for anti-patterns Analyze ONLY `+` lines (additions) in the diff. For each pattern below, search the added lines and the surrounding file context when needed. ### Pattern Table | # | Pattern | What to look for | Severity | |---|---------|-----------------|----------| | 1 | **Filter logic mismatch** | String `===` comparisons where one value could be a prefix of the other (e.g., `'All' === value` when value could be `'All...

Details

Author
faizkhairi
Repository
faizkhairi/claude-code-blueprint
Created
4 months ago
Last Updated
1 weeks ago
Language
Shell
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category

Code & Development Listed

review-diff

Scan git diffs for project-specific anti-patterns. Triggers on: 'scan diff', 'check diff', 'anti-pattern check', 'pattern scan', 'review changes'.

0 Updated 2 days ago
lethilu4796
Code & Development Listed

code-review

Review a diff the way a senior engineer does — design first, then spec conformance, correctness, complexity, and tests — reporting only findings with a demonstrated failure. Use when asked to review code, review a branch or PR, check changes before merging, audit a diff for bugs or security issues, or "is this safe to merge?".

1 Updated 2 weeks ago
artificialguybr
Code & Development Listed

branch-review

Multi-agent code review EXCLUSIVELY of the diff between the current branch and a base branch (default main) — not a whole-repo audit, only diff-touched areas. Spawns parallel subagents for code quality, architecture, security (OWASP/CWE/CVSS), SEO, privacy/legal, UI/UX (WCAG), and performance, consolidated into a P0–P4 Findings.md. Optional `--apply-fixes` applies clear fixes and a `/simplify` pass behind a test/lint gate (`--no-simplify` opts out), and escalates design decisions. Use for "review this branch", "PR review", "diff review", "branch review", "review my PR", "review what changed", or German "review meinen branch", "review die änderungen", "schau dir den branch an", "PR-Review" — whenever a PR link, branch range, or diff is posted, even without the word "review" if context is clear. DO NOT trigger for a whole-project audit without branch context — use full-project-review. DO NOT trigger for several or all open PRs ("review my PRs", "fix PR issues", "alle PRs prüfen") — use review-and-fix.

1 Updated 2 weeks ago
lx-wnk