Agent skill

Backend Code Review

by nazarli-shabnam in nazarli-shabnam/clevis

Review backend code for quality, security, maintainability, and best practices based on established checklist rules.

GPL-3.0Auto-check passedDevelopment

Install Backend Code Review

skills CLI
$ npx skills add nazarli-shabnam/clevis --skill backend-code-review -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install nazarli-shabnam/clevis backend-code-review --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/nazarli-shabnam/clevis.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/backend-code-review .claude/skills/backend-code-review && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
backend-code-review
GitHub stars
170
Token cost
~1.5k tokens
SKILL.md length
578 words
Files
5 (incl. references)
Skills in repo
2
Repo updated
First seen
Licence
GPL-3.0

At a glance

Review backend code for quality, security, maintainability, and best practices based on established checklist rules.

  • Works in 4 steps: Security Review → Performance Review → Code Quality Review → …
  • The user requests a review
  • SKILL.md covers When to use this skill, How to use this skill, Checklist and General Review Rules, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Backend Code Review is an agent skill from nazarli-shabnam/clevis. Review backend code for quality, security, maintainability, and best practices based on established checklist rules. Use when the user requests a review, analysis, or improvement of backend files (e.g., .py) under the api/ directory. Do NOT use for frontend files (e.g., .tsx, .ts, .js). Supports pending-change review, code snippets review, and file-focused review.

Its SKILL.md is about 1.5k tokens, which your agent loads only when the skill is triggered. The skill folder holds 5 other files, including reference files (for example `references/architecture-rule.md`, `references/db-schema-rule.md` and `references/repositories-rule.md`).

It sits in Development, covering Code review, Customer feedback analysis and React components. It works with GitHub, PostgreSQL, FastAPI and Next.js. The repository describes itself as: Self-hosted GitHub security dashboard — tracks org security checks (MFA, branch protection, scanning) with score trends, plus automated Actions cache cleanup. FastAPI + Next.js +… The licence is GPL-3.0.

When your agent uses it

  • The user requests a review
  • Improvement of backend files (e.g.
  • .py) under the api/ directory
  • Frontend files (e.g.

Example prompts

  • “/backend-code-review”

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. Security Review
  2. Performance Review
  3. Code Quality Review
  4. Testing Review

What it can do on your machine

Read from SKILL.md and the folder at commit d146b4f. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are markdown).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Backend Code Review loads about 1.5k tokens when it runs, and up to ~6.6k if it reads all its reference files. Until then it costs about 99 tokens; SKILL.md has 578 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~99
When it runs · the whole SKILL.md, loaded when a task matches
~1.5k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~6.6k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from nazarli-shabnam/clevis at commit d146b4f, republished under its GPL-3.0 licence (© nazarli-shabnam). 578 words, ~1,526 tokens.

Download SKILL.mdSave it as .claude/skills/backend-code-review/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.
name
backend-code-review
description
Review backend code for quality, security, maintainability, and best practices based on established checklist rules. Use when the user requests a review, analysis, or improvement of backend files (e.g., `.py`) under the `api/` directory. Do NOT use for frontend files (e.g., `.tsx`, `.ts`, `.js`). Supports pending-change review, code snippets review, and file-focused review.

Backend Code Review

When to use this skill

Use this skill whenever the user asks to review, analyze, or improve backend code (e.g., .py) under the api/ directory. Supports the following review modes:

  • Pending-change review: when the user asks to review current changes (inspect staged/working-tree files slated for commit to get the changes).
  • Code snippets review: when the user pastes code snippets (e.g., a function/class/module excerpt) into the chat and asks for a review.
  • File-focused review: when the user points to specific files and asks for a review of those files (one file or a small, explicit set of files, e.g., api/..., api/app.py).

Do NOT use this skill when:

  • The request is about frontend code or UI (e.g., .tsx, .ts, .js, web/).
  • The user is not asking for a review/analysis/improvement of backend code.
  • The scope is not under api/ (unless the user explicitly asks to review backend-related changes outside api/).

How to use this skill

Follow these steps when using this skill:

  1. Identify the review mode (pending-change vs snippet vs file-focused) based on the user’s input. Keep the scope tight: review only what the user provided or explicitly referenced.
  2. Follow the rules defined in Checklist to perform the review. If no Checklist rule matches, apply General Review Rules as a fallback to perform the best-effort review.
  3. Compose the final output strictly follow the Required Output Format.

Notes when using this skill:

  • Always include actionable fixes or suggestions (including possible code snippets).
  • Use best-effort File:Line references when a file path and line numbers are available; otherwise, use the most specific identifier you can.

Checklist

  • db schema design: if the review scope includes code/files under api/models/ or api/migrations/, follow references/db-schema-rule.md to perform the review
  • architecture: if the review scope involves controller/service/core-domain/libs/model layering, dependency direction, or moving responsibilities across modules, follow references/architecture-rule.md to perform the review
  • repositories abstraction: if the review scope contains table/model operations (e.g., select(...), session.execute(...), joins, CRUD) and is not under api/repositories, api/core/repositories, or api/extensions/*/repositories/, follow references/repositories-rule.md to perform the review
  • sqlalchemy patterns: if the review scope involves SQLAlchemy session/query usage, db transaction/crud usage, or raw SQL usage, follow references/sqlalchemy-rule.md to perform the review
Show full SKILL.md (221 more words)Show less

General Review Rules

1. Security Review

Check for:

  • SQL injection vulnerabilities
  • Server-Side Request Forgery (SSRF)
  • Command injection
  • Insecure deserialization
  • Hardcoded secrets/credentials
  • Improper authentication/authorization
  • Insecure direct object references
2. Performance Review

Check for:

  • N+1 queries
  • Missing database indexes
  • Memory leaks
  • Blocking operations in async code
  • Missing caching opportunities
3. Code Quality Review

Check for:

  • Code forward compatibility
  • Code duplication (DRY violations)
  • Functions doing too much (SRP violations)
  • Deep nesting / complex conditionals
  • Magic numbers/strings
  • Poor naming
  • Missing error handling
  • Incomplete type coverage
4. Testing Review

Check for:

  • Missing test coverage for new code
  • Tests that don't test behavior
  • Flaky test patterns
  • Missing edge cases

Required Output Format

When this skill invoked, the response must exactly follow one of the two templates:

Template A (any findings)
markdown
# Code Review Summary

Found <X> critical issues need to be fixed:

## 🔴 Critical (Must Fix)

### 1. <brief description of the issue>

FilePath: <path> line <line>
<relevant code snippet or pointer>

#### Explanation

<detailed explanation and references of the issue>

#### Suggested Fix

1. <brief description of suggested fix>
2. <code example> (optional, omit if not applicable)

---
... (repeat for each critical issue) ...

Found <Y> suggestions for improvement:

## 🟡 Suggestions (Should Consider)

### 1. <brief description of the suggestion>

FilePath: <path> line <line>
<relevant code snippet or pointer>

#### Explanation

<detailed explanation and references of the suggestion>

#### Suggested Fix

1. <brief description of suggested fix>
2. <code example> (optional, omit if not applicable)

---
... (repeat for each suggestion) ...

Found <Z> optional nits:

## 🟢 Nits (Optional)
### 1. <brief description of the nit>

FilePath: <path> line <line>
<relevant code snippet or pointer>

#### Explanation

<explanation and references of the optional nit>

#### Suggested Fix

- <minor suggestions>

---
... (repeat for each nits) ...

## ✅ What's Good

- <Positive feedback on good patterns>
  • If there are no critical issues or suggestions or option nits or good points, just omit that section.
  • If the issue number is more than 10, summarize as "Found 10+ critical issues/suggestions/optional nits" and only output the first 10 items.
  • Don't compress the blank lines between sections; keep them as-is for readability.
  • If there is any issue requires code changes, append a brief follow-up question to ask whether the user wants to apply the fix(es) after the structured output. For example: "Would you like me to use the Suggested fix(es) to address these issues?"
Template B (no issues)
markdown
## Code Review Summary
✅ No issues found.

© nazarli-shabnam, GPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 4 other files (references) in .agents/skills/backend-code-review of nazarli-shabnam/clevis.

  • SKILL.md
  • references/architecture-rule.md
  • references/db-schema-rule.md
  • references/repositories-rule.md
  • references/sqlalchemy-rule.md

Open the folder on GitHubat commit d146b4f

Compare with similar skills

Backend Code Review next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Backend Code Review compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Backend Code Review this skillnazarli-shabnam/clevis170—~1.5kAutomated safety check: PassGPL-3.0
React Performanceaffaan-m/ECC276k1 repos~4.5kAutomated safety check: PassMIT
Backend Code Reviewlangflow-ai/langflow155k—~3.5kAutomated safety check: NotesMIT
Code Review Skillawesome-skills/code-review-skill2.1k—~2.8kAutomated safety check: NotesMIT
Releasezmievsa/cadwyn309—~522Automated safety check: PassMIT
Clean Code Refactorerfike/fastapi-blog101—~402Automated safety check: PassMIT

Similar skills

  • React Performance

    affaan-m/ECC

    React and Next.js performance optimization patterns adapted from Vercel Engineering's React Best Practices (https://github.com/vercel-labs/agent-skills).

    276k GitHub starsUsed in 1 repo~4.5k tokens
    DevelopmentAuto-check passed
  • Backend Code Review

    langflow-ai/langflow

    Review backend code for quality, security, maintainability, and best practices based on established checklist rules.

    155k GitHub stars~3.5k tokensUpdated today
    DevelopmentAuto-check: notes
  • Code Review Skill

    awesome-skills/code-review-skill

    Provides comprehensive code review guidance for React 19, Vue 3, Angular 17+, Svelte 5, Rust, TypeScript, Java, Java 8, PHP, Ruby, Rails, Python, Django, FastAPI, Go, C/.NET, Kotlin, Swift, Dart…

    2.1k GitHub stars~2.8k tokensUpdated 1 mo ago
    DevelopmentAuto-check: notes
  • Release

    zmievsa/cadwyn

    Prepare and publish Cadwyn releases. An agent skill from zmievsa/cadwyn.

    309 GitHub stars~522 tokensUpdated today
    DevelopmentAuto-check passed
  • Clean Code Refactorer

    fike/fastapi-blog

    Skill for identifying code smells and refactoring code using Clean Code, SOLID, and DRY principles.

    101 GitHub stars~402 tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Senior Fullstack

    alirezarezvani/claude-skills

    Fullstack development toolkit with project scaffolding for Next.js, FastAPI, MERN, and Django stacks, code quality analysis with security and complexity scoring, and stack selection guidance.

    28k GitHub starsUsed in 1 repo~3.7k tokens
    DevelopmentAuto-check: notes

More from nazarli-shabnam/clevis

  • Andrej Karpathy Perspective

    nazarli-shabnam/clevis

    Andrej Karpathy的思维框架与表达方式。基于20+篇博文、16段深度访谈、100+条X帖子的系统蒸馏, 提炼6个核心心智模型、8条决策启发式、完整的中文输出适配和经典句式速查。

    170 GitHub starsUsed in 2 repos~3.8k tokens
    Auto-check passed

Categories

Questions about Backend Code Review

What does Backend Code Review do?

Review backend code for quality, security, maintainability, and best practices based on established checklist rules. Backend Code Review is an agent skill from nazarli-shabnam/clevis. Review backend code for quality, security, maintainability, and best practices based on established checklist rules.

When should I use Backend Code Review?

Backend Code Review fits situations like: the user requests a review; improvement of backend files (e.g; .py) under the api/ directory; frontend files (e.g.

How do I install Backend Code Review in Claude Code?

Run `npx skills add nazarli-shabnam/clevis --skill backend-code-review -a claude-code`. Or copy the skill folder (.agents/skills/backend-code-review in nazarli-shabnam/clevis) into .claude/skills/backend-code-review in your project. Claude Code loads it when a task matches its description.

How do I install Backend Code Review in Codex?

Run `npx skills add nazarli-shabnam/clevis --skill backend-code-review -a codex`. Or copy the skill folder (.agents/skills/backend-code-review in nazarli-shabnam/clevis) into .agents/skills/backend-code-review in your project. Codex loads it when a task matches its description.

Can I use Backend Code Review in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add nazarli-shabnam/clevis --skill backend-code-review -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/backend-code-review, .gemini/skills/backend-code-review, .github/skills/backend-code-review and .opencode/skills/backend-code-review in your project.

What does Backend Code Review need to run?

SKILL.md names no scripts, command-line tools or credentials: Backend Code Review is instructions for the agent only.

Does Backend Code Review access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Backend Code Review safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Backend Code Review use?

Backend Code Review is published under the GPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Backend Code Review use?

About 1.5k tokens (SKILL.md is roughly 6.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 5k tokens, read only when the agent opens those files.

What are the alternatives to Backend Code Review?

Skills that share tags, products or a category with Backend Code Review: React Performance (affaan-m/ECC, 276k stars), Backend Code Review (langflow-ai/langflow, 155k stars), Code Review Skill (awesome-skills/code-review-skill, 2.1k stars) and Release (zmievsa/cadwyn, 309 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Backend Code Review?

nazarli-shabnam (a GitHub user) maintains it in nazarli-shabnam/clevis, which has 170 GitHub stars. The repository holds 2 skills in this directory. The repository was last updated on October 7, 2026.

Source: nazarli-shabnam/clevis on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.