Code Review logo

Code Review

Community
kazdenc
code-review

Perform a structured code review covering correctness, readability, performance, security, and maintainability. Use when user says "review this code", "code review", "check this PR", "review my changes", "is this code good", or needs expert feedback on code quality.

Overview

Publisherkazdenc
Repositorybuilder-skills
Skill namecode-review
Stars
46
Forks
5
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by kazdenc on GitHub. Read the source before you install it.

Installation

Install the Code Review AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/kazdenc/builder-skills/tree/main/.claude/skills/dev/review/code-review
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/kazdenc/builder-skills.git /tmp/builder-skills
mkdir -p .claude/skills
cp -r /tmp/builder-skills/.claude/skills/dev/review/code-review .claude/skills/code-review
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Code Review in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Code Review on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Code Review is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Review code across five dimensions and produce a prioritized list of findings. Suggest improvements; don't demand them. Praise good patterns alongside issues.

Step 1: Read the Code

Understand intent before judging implementation. Before writing a single finding:

  • Identify the purpose of the change (feature, fix, refactor, test).
  • Note the architectural context (framework, patterns, conventions in use).
  • Read related tests and documentation if available.
  • If reviewing a PR, read the description and linked issues first.

Step 2: Review Across Five Dimensions

Evaluate the code against each dimension using the specific checks below.

Correctness

CheckWhat to look for
Logic errorsIncorrect conditionals, wrong operator precedence, inverted boolean logic
Off-by-oneFence-post errors in loops, slices, pagination, boundary conditions
Null / undefined handlingMissing optional chaining, unchecked nullable returns, empty-array assumptions
Race conditionsShared mutable state, unguarded async sequences, stale closures
Error pathsSwallowed exceptions, missing try/catch, unhelpful error messages, no fallback
Edge casesEmpty inputs, very large inputs, unicode, negative numbers, timezone boundaries

Readability

CheckWhat to look for
NamingAmbiguous variable names, misleading function names, inconsistent conventions
Function lengthFunctions doing more than one thing, > 40 lines is a smell
Nesting depthMore than 3 levels of nesting; consider early returns or extraction
CommentsMissing "why" comments on non-obvious logic; remove comments that restate code
ConsistencyStyle deviations from the rest of the codebase
Cognitive loadComplex ternaries, implicit type coercion, magic numbers or strings

Performance

CheckWhat to look for
Unnecessary re-rendersMissing memoization, inline object/function creation in render path
N+1 queriesDatabase calls inside loops, unbatched API requests
Missing memoizationExpensive computations recalculated on every render or call
Large bundlesHeavy imports that could be lazy-loaded or replaced with lighter alternatives
Algorithmic complexityO(n^2) or worse where O(n) or O(n log n) is achievable
Memory leaksUncleared intervals/timeouts, missing event listener cleanup, growing caches

Security

CheckWhat to look for
InjectionUnsanitized user input in SQL, shell commands, templates, or regex
XSSUnescaped output, dangerouslySetInnerHTML, innerHTML without sanitization
Auth bypassMissing authorization checks, client-side-only access control
Secrets in codeAPI keys, tokens, passwords committed or logged
Unsafe deserializationParsing untrusted JSON/YAML without validation, eval of user input
CSRF / CORSMissing CSRF tokens, overly permissive CORS configuration

Maintainability

CheckWhat to look for
CouplingComponents tightly bound to implementation details of other modules
DuplicationSame logic repeated in multiple places; candidate for extraction
Test coverageUntested happy paths, missing edge-case tests, brittle test setup
Dead codeUnused exports, commented-out blocks, unreachable branches
Unclear abstractionsOver-abstraction (unnecessary indirection) or under-abstraction (god functions)
Upgrade pathDeprecated APIs, framework-version-specific hacks, pinned dependencies

Step 3: Output as a Prioritized Finding List

Organize every finding by severity using the classification table below.

Severity Classification

SeverityQualifies when...Examples
CriticalCauses data loss, security breach, or crash in productionSQL injection, unhandled null on critical path, race condition corrupting state
HighBreaks functionality or significantly degrades UXLogic error in business rule, missing error handling on API call, auth check skipped
MediumImpacts quality but doesn't break thingsN+1 query on secondary page, moderate duplication, missing test for edge case
LowMinor improvement opportunitySlightly better naming, small refactor for clarity, non-critical performance tweak
NitStylistic or trivial; optional to addressExtra whitespace, import order, comment wording, personal preference

Finding Format

For each finding, include:

  • Severity: Critical / High / Medium / Low / Nit
  • Dimension: Which of the five dimensions it falls under
  • Location: File path and line number (or range)
  • Issue: What the problem is (one sentence)
  • Suggestion: How to improve it (concrete, with code snippet when helpful)
  • Why it matters: Impact on users, developers, or the system

Summary Section

After all findings, include:

  • Total count by severity
  • Top 3 priorities to address first
  • Positive patterns observed (what the code does well)
  • Overall assessment (one paragraph)

Tone Guidance

  • Use "Consider X" not "You should X."
  • Use "This could Y" not "This will Y" unless certain.
  • Praise good patterns: "Nice use of early returns here" or "Good separation of concerns."
  • Explain the "why" for every suggestion; reviewees learn more from reasoning than rules.
  • Acknowledge trade-offs: "This adds complexity but improves testability."
  • When uncertain, say so: "I'm not sure about the intent here — if Z is the goal, then consider W."

NEVER:

  • Nitpick style when there are critical issues (prioritize ruthlessly)
  • Flag something without a concrete suggestion for improvement
  • Assume malice or carelessness — the author may have context you don't
  • Rewrite entire functions in suggestions — keep diffs small and focused

Frequently asked questions

What does the Code Review AI skill do?

Perform a structured code review covering correctness, readability, performance, security, and maintainability. Use when user says "review this code", "code review", "check this PR", "review my changes", "is this code good", or needs expert feedback on code quality.

Why use Code Review on TypingMind?

Because you install it once and use it with any model. Code Review is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Code Review in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/kazdenc/builder-skills/tree/main/.claude/skills/dev/review/code-review. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Code Review?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Code Review?

As many as you like. As long as a model supports skills, you can use Code Review with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Code Review AI skill free?

Yes. It is published on GitHub by kazdenc under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇