self-review

star 5.3k

Self-review your own work before committing. Fight entropy, ensure quality, leave the codebase better than you found it.

unkeyed By unkeyed schedule Updated 4/1/2026

name: self-review description: Self-review your own work before committing. Fight entropy, ensure quality, leave the codebase better than you found it. disable-model-invocation: true allowed-tools: [Read, Edit, Glob, Grep, Bash, Agent]

Self-review before commit

You just finished some work. Before committing, step back and review it with a critical eye.

The goal is NOT to rubber-stamp what you did. The goal is to catch the shortcuts, the entropy, the "good enough" choices that erode a codebase over time. Every quick fix has a cost in maintainability. Fight that.

What to do

  1. Gather all changes. Run git status to see the full picture — staged, unstaged, and untracked files. Then run git diff for unstaged changes, git diff --cached for staged changes, and read any new untracked files. Read every changed file fully — not just the diff hunks, but the surrounding context.

  2. Read the quality standards. Read these docs and review your work against each one:

    • docs/engineering/contributing/quality/code-quality.mdx
    • docs/engineering/contributing/quality/documentation.mdx
    • docs/engineering/contributing/quality/testing/index.mdx
    • docs/engineering/contributing/quality/testing/unit-tests.mdx
    • docs/engineering/contributing/quality/testing/integration-tests.mdx
    • docs/engineering/contributing/quality/testing/anti-patterns.mdx
  3. Fix violations. For every violation you find, fix it — don't just report it. If a fix would be too large or risky, flag it explicitly with what's wrong and why you're not fixing it now.

  4. Fight entropy. Look at the code you touched and the code around it. Did you leave it better than you found it? Did you introduce complexity that isn't justified? Did you take a shortcut that a future reader will curse? If something nearby is already broken or messy and your change made it worse or left it as-is when a small improvement was obvious, fix it.

  5. Look for refactoring opportunities. Actively ask yourself: what can be refactored in or around the code you touched to make it easier to maintain long term? Duplicated logic that should be extracted, unclear abstractions that should be simplified, tangled responsibilities that should be separated. Don't just preserve the status quo — improve it.

  6. Report. After fixing everything, give a brief summary of what you changed and what you flagged.

The final question

Before you're done, ask yourself the three questions from the quality guide:

  1. Did you do the hard thing, or take a shortcut that creates debt?
  2. Would you be confident if this code ran at 10x the current load?
  3. Will someone reading this in six months understand why it works this way?

If any answer is no, go back and fix it.

Install via CLI
npx skills add https://github.com/unkeyed/unkey --skill self-review
Repository Details
star Stars 5,339
call_split Forks 622
navigation Branch main
article Path SKILL.md
More from Creator