From claude-cortex
Thorough code review of uncommitted changes or current branch vs. a target branch
How this skill is triggered — by the user, by Claude, or both
Slash command
/claude-cortex:code-reviewThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
```
git branch --show-current
git status --short
main, or as specified by user).For every changed file, read the complete file — not just the diff. Changes must be understood in context. Identify the language/framework to apply appropriate checks.
Find test files for changed code (*_test.*, *.test.*, *.spec.*, or under tests//__tests__/). Read them. Note whether tests were added or modified in this changeset.
Only flag if meaningful: debug logging left in, TODO/FIXME without issue links, inconsistent patterns that will confuse future readers.
Evaluate whether the changed code is structured for effective testing:
If testability is poor, include specific refactoring suggestions (extract interface, inject dependency, separate pure logic from I/O).
Plain ASCII only. Non-ASCII characters and emojis are not allowed in any output.
Changed files summary:
| File | Lines +/- | Risk |
|---|---|---|
path/to/file | +X / -Y | Critical/High/Medium/Low |
Findings (grouped by severity, Critical first):
| Severity | File:Line | Issue | Fix |
|---|---|---|---|
| Critical | src/auth.py:42 | SQL built with f-string | Use parameterized query |
Testability & Coverage:
| Aspect | Assessment |
|---|---|
| Testability | Good / Needs Refactoring — brief explanation |
| Tests added? | Yes / Partial / None |
| Coverage gaps | List missing scenarios |
| Existing tests | Still passing / Likely broken |
Verdict:
| Category | Result |
|---|---|
| Security | Pass / FAIL |
| Errors | Yes / No |
| Code quality | High / Moderate / Low |
| Test coverage | Good / Gaps / None |
Recommendation: Block (must fix), Request Changes (should fix), or Approve (optional improvements only). End with a prioritized list of action items.
Provides behavioral guidelines to reduce common LLM coding mistakes, focusing on simplicity, surgical changes, assumption surfacing, and verifiable success criteria.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub xanderscannell/claude-cortex --plugin claude-cortex