Review code against the GoodCode standard and cite the rule id for every finding. Reviews the current diff by default; name a target in plain words to change it: "staged", "branch", a file, a folder, a PR link, or "repo" for the whole codebase. Changes nothing. Use for "goodcode review", "review against the standard", "which rules does this break", "flag bad code", /goodcode-review.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Goodcode Review?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/matasurbonavicius-goodcode-review)
---
name: goodcode-review
description: >
Review code against the GoodCode standard and cite the rule id for every
finding. Reviews the current diff by default; name a target in plain words to
change it: "staged", "branch", a file, a folder, a PR link, or "repo" for the
whole codebase. Changes nothing. Use for "goodcode review", "review against
the standard", "which rules does this break", "flag bad code",
/goodcode-review.
---
# GoodCode review
Read the standard first: `../../CODE_ARCHITECTURE.md` from this skill's base
directory. Every finding cites a rule id from it. A finding that cannot cite a
rule is not a GoodCode finding: leave it out. Bugs in logic, security holes and
missing tests are outside the standard; if you see one, mention it in a
separate note after the findings.
## Scope
- Default: uncommitted changes (`git diff HEAD`). If the tree is clean, the
last commit.
- Read the code the change touches, not only the diff: the callers, the heart,
the door the data came through.
- Review a diff for what it adds. Report what was already there separately, as
existing code, so the author is not blamed for it.
## How to check
Each rule has a **Check** line. Run it: do the search, follow the call, try to
build the bad value. A finding is something the check showed, with a file and a
line, not an impression. Before reporting, read the rule's **Yields** line: if
the code falls under it, there is no finding.
Go in this order, which follows the standard's own (correct, traceable, one
home, simple, short):
1. Wrong results waiting to happen: silent failure, dropped items, unparsed
input, states that make no sense (GC-24, GC-27, GC-19, GC-14, GC-15).
2. Flow you cannot follow: effects hidden deep, work started outside the heart,
calls that names do not lead to (GC-10, GC-12, GC-13).
3. Facts with two homes, state with two writers (GC-01 to GC-04, GC-16, GC-18).
4. Deciding mixed with doing, dependencies pointing up, modules with two jobs
(GC-11, GC-05 to GC-09).
5. Code that should not exist: unused options, abstractions with one use,
guards against the impossible, second ways, unfinished changes (GC-37 to
GC-40, GC-20).
6. Reading cost: names, order, nesting, comments, call sites (GC-30 to GC-36).
## Output
One block per finding, most severe first:
```
[must fix] GC-24 · billing/refund.py:42
What it does: catches every exception and returns None.
What goes wrong: a failed refund looks like a successful one; the customer is never paid.
Fix: let the error pass through; the heart decides whether one refund or the run stops (GC-26).
```
Severity:
- **must fix**: the code can give a wrong result or lose data today.
- **should fix**: it breaks a rule and will cost the next person who changes it.
- **consider**: it costs the reader time and nothing else.
End with:
- `Checked: GC-.. Not applicable: GC-..` A rule with nothing to apply to is not
applicable, never "met".
- One line: what to fix first, and why that one.
Do not pad. Five findings that matter beat twenty that do not. If the code is
good, say so in one line.
If the standard itself looks wrong for this code, or two rules pull against
each other, say so as a separate note.