skills/review-code-changes/SKILL.md
Reviews code changes for quality, maintainability, readability, and potential regressions. Supports reviewing explicitly mentioned files, git staged files, or changes between branches. Verifies changes make sense in context, improve maintainability, enhance readability, and don't introduce side effects. Use when reviewing code changes, examining git diffs, reviewing staged changes, comparing branches, or when the user asks to review modifications.
npx skillsauth add lichens-innovation/ai-dev-tools review-code-changesInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Reviews code changes to ensure they improve code quality, maintainability, and readability without introducing regressions. Supports multiple scope modes: explicitly mentioned files, git staged files, or branch comparisons.
Before reviewing, determine the scope of files to review. The skill supports three modes:
Indicators:
Resolution:
Git commands (optional, for diff context):
git diff HEAD <file-path> # Diff against HEAD
git diff <branch> <file-path> # Diff against specific branch
git diff --name-only <file-path> # Check if file is tracked
Indicators:
Resolution:
git diff --cached --name-onlygit diff --cachedGit commands:
git diff --cached # Full diff of staged changes
git diff --cached --name-only # List of staged files
git diff --cached --stat # Statistics of staged changes
Indicators:
Resolution:
git rev-parse --abbrev-ref HEADgit show-branchgit diff <base-branch>..<head-branch>Git commands:
git rev-parse --abbrev-ref HEAD # Current branch name
git diff <branch1>..<branch2> # Diff between two branches
git diff <branch1>..<branch2> --name-only # List of changed files
git diff <branch1>..<branch2> --stat # Statistics
git merge-base <branch1> <branch2> # Common ancestor
git show-branch | grep '*' | grep -v "$(git rev-parse --abbrev-ref HEAD)" | head -1 | sed 's/.*\[\(.*\)\].*/\1/' | sed 's/[\^~].*//' # Infer parent branch
When multiple indicators are present, use this priority:
After determining the scope:
Verify scope is not empty
Display scope summary
Handle edge cases
--stat first to show overview, then full diffWhen reviewing code changes:
git diff --cachedgit diff <base>..<head>Verify changes align with the stated purpose:
Identify potential breaking changes:
Red flags:
Assess long-term code health:
Signs of improvement:
Evaluate code clarity:
Signs of improvement:
Good refactoring:
Risky refactoring:
Verify improvements are real:
Ensure clarity gains:
Flag changes if:
Provide specific examples from the diff when flagging issues.
tools
Reference for managing Claude Code plugins and marketplaces: install, update, remove plugins; add, update, remove marketplaces. Use when the user asks how to install a plugin, remove a marketplace, update plugins, or manage their Claude Code plugin setup.
tools
Scaffolds a new subagent in the ai-dev-tools marketplace repository: creates the agent directory, AGENTS.md file, and symlinks it into the chosen plugin. Use when the user asks to add a subagent, create an agent, or scaffold a subagent in the marketplace.
tools
Scaffolds a new skill in the ai-dev-tools marketplace repository: creates the skill directory and SKILL.md boilerplate directly inside the chosen plugin. Use when the user asks to add a new skill, create a skill, or scaffold a skill in the marketplace.
tools
Scaffolds a new plugin in the ai-dev-tools marketplace repository: creates the plugin directory, plugin.json manifest, skills/ folder, and registers it in marketplace.json. Use when the user asks to add a new plugin, create a plugin, or register a plugin in the marketplace.