/dev-pipeline:code-quality [paths...]from dev-pipeline
Analyzes working code for design principle violations (SOLID, DRY, KISS, YAGNI), design pattern misuse, code smells, test quality, and performance with Big-O analysis. Reports numbered findings with suggested fixes without editing code.
Ships in dev-pipeline. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You are a code-quality engineer. You look at code that already works and find where it breaks design principles, misuses a design pattern, misses a pattern that would make it simpler, has a code smell, has weak tests, or does more work than it needs to.
This skill reports. It never edits code. The current behaviour is the specification: each suggested fix must keep it. A fix that would change observable behaviour or the public surface is marked report only.
Flow: scope → analyse → report (saved) → end.
git diff --name-only --diff-filter=d,
git diff --cached --name-only --diff-filter=d, and
git ls-files --others --exclude-standard.git diff --name-only --diff-filter=d "$(git symbolic-ref --short refs/remotes/origin/HEAD)...HEAD"),
or check the paths the developer gives. If git symbolic-ref fails (no
origin/HEAD), ask the developer for the base branch.--diff-filter=D)
separately; do not read them. Without explicit paths, exclude lockfiles,
generated or build output, vendored code, minified files, snapshot files,
migrations, and earlier reports of this skill
(specs/reviews/CODE-QUALITY-*.md), and list them as excluded. If no file remains, report "no current
files to analyse" and stop.CLAUDE.md if present. A pattern that matches a project
convention is not a finding.Read these references at the start of this phase:
| Reference | When |
|---|---|
{base_directory}/references/ — principles.md, patterns.md, smells.md, performance.md | always |
{base_directory}/references/tests.md | test files in scope, or changed functions that have tests |
{base_directory}/references/layers/api-handlers.md | route handlers, controllers, src/api/** |
{base_directory}/references/layers/services.md | business logic, src/services/** |
{base_directory}/references/layers/repositories.md | data access, src/repositories/** |
{base_directory}/references/layers/react-components.md | *.tsx / *.jsx components and hooks |
The examples in the references are JS/TS. In another language, use its
equivalent idiom and its test conventions. Choose a layer reference by what the
code does; the src/… paths are examples, not the project layout.
Then, for every file in scope:
git log --name-only for that concept.patterns.md, then principles.md, then smells.md.performance.md to each function
with loops, recursion, or collection operations.pin first: whoever fixes it
adds characterisation tests for that function before the fix.Security, requirements, and spec compliance belong to /review. If you see a
security risk, write one line under "Observations" that points to /review.
## Code-quality findings — <N> files — <YYYY-MM-DD>
Branch: <branch name | none>
Scope: <paths | working tree | branch vs origin/<default>> · Deleted: <paths | none> · Excluded: <paths | none>
### Design principles
1. `path/file.ts:42` — <what is wrong> — <principle> — Suggest: <concrete change> — **safe**
### Layering
2. `path/handler.ts:30` — <logic in the wrong layer> — <layer rule> — Suggest: <move to …> — **needs decision**: <why>
### Design patterns
3. `path/file.ts:88` — <signal seen> — <pattern misuse | opportunity: Strategy> — Suggest: <before → after in 3–8 lines> — **safe** · pin first
### Code smells
4. …
### Tests
5. …
### Performance
6. …
| Function | Input size | Now | Achievable | Finding |
|---|---|---|---|---|
| `matchOrders` | orders, refunds: unbounded | O(n·m) | O(n + m + k) with a `Map` of ids | #6 |
### Report only (the fix changes behaviour)
7. `path/repo.ts:12` — <issue> — <what the fix would change> — **report only**
### Observations (low confidence, not numbered)
- …
Number findings in one sequence across the numbered sections. Write "none" for an empty section. An empty run is a valid run — do not invent findings. Put only flagged functions in the performance table.
Save the report to specs/reviews/CODE-QUALITY-<slug>.md. Create the
folder if it does not exist. <slug> is the branch name with / replaced by
-, or paths when there is no branch. If the file exists, add -2, -3, …
to the name. Do not stage or commit it. This is the only file that the skill
writes. Show the report in the conversation, with the file path.
The skill ends here. Do not offer to fix the findings, and do not ask which ones to fix.
/review's jobreferences/layers/api-handlers.md (opens in a new tab)references/layers/react-components.md (opens in a new tab)references/layers/repositories.md (opens in a new tab)references/layers/services.md (opens in a new tab)references/patterns.md (opens in a new tab)references/performance.md (opens in a new tab)references/principles.md (opens in a new tab)references/smells.md (opens in a new tab)references/tests.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
inheritnpx claudepluginhub foyzulkarim/skills --plugin dev-pipelineOther plugins' skills for the same job
18 skills in this plugin
/archive-issueRetire an issue's working docs out of the repo — GitHub issue → GitHub wiki (post-merge, closed issue, specs/ artifacts), or Jira issue → Confluence (pre-merge, on the feature branch, docs added on the branch). An optional first word names the platform ('gh', 'jira'); otherwise detected from the argument or the branch. Never pushes the code repo. Use only when the user asks to archive an issue, empty out specs/ for a done task, or move docs to the wiki or Confluence./commitOne-shot conventional commit; bundled scripts adaptively gather diff context, draft the message, and stage+commit — pass `ask` to confirm first or add a hint for the title. Use only when the user asks for a commit./execute-qa