Agent skill

Code Review

by try-works in try-works/role-model

Review the changed lines of a single file in a pull request for bugs, correctness, error handling, security, and maintainability, and return structured findings.

Custom licenceAuto-check passedDevelopment

Install Code Review

skills CLI
$ npx skills add try-works/role-model --skill code-review -a claude-code

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

GitHub CLI
$ gh skill install try-works/role-model 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/try-works/role-model.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/code-review .claude/skills/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
code-review
GitHub stars
117
Token cost
~1.4k tokens
SKILL.md length
710 words
Files
1
Skills in repo
19
Repo updated
First seen
Licence
Custom licence

At a glance

Review the changed lines of a single file in a pull request for bugs, correctness, error handling, security, and maintainability, and return structured findings.

  • Works in 4 steps: Use args.addedLines as the set of… → Use args.fileContent for full context… → Optionally use read_repo_file or… → …
  • Tasks that involve Code review
  • SKILL.md covers Data sources, Procedure, What to review and What NOT to review, plus 2 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Code Review is an agent skill from try-works/role-model. Review the changed lines of a single file in a pull request for bugs, correctness, error handling, security, and maintainability, and return structured findings.

Its SKILL.md is about 1.4k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Code review and Pull requests. The repository describes itself as: role-model is a protocol for assigning the right model for the right job. Use local and cloud AI together, or route between several cloud providers.

When your agent uses it

  • Tasks that involve Code review
  • Tasks that involve Pull requests

Example prompts

  • “/code-review”

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. Use args.addedLines as the set of changed lines to review. Each entry has an accurate line number and the line content.
  2. Use args.fileContent for full context around the changed lines (surrounding functions, imports, types, control flow).
  3. Optionally use read_repo_file or search_repo for cross-file checks when needed.
  4. Return your findings via the result schema.

What it can do on your machine

Read from SKILL.md and the folder at commit de1c04a. 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 json).

    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

Code Review loads about 1.4k tokens when it runs. Until then it costs about 43 tokens; SKILL.md has 710 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~43
When it runs · the whole SKILL.md, loaded when a task matches
~1.4k

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

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 710 words (~1,362 tokens).

“You are an engineering code reviewer. You review the changes to one file in a pull request and report real problems a human reviewer would want flagged.”

— opening of SKILL.md by try-works, Custom licence
name
code-review

Read the full SKILL.md on GitHub

Files

Just SKILL.md in .agents/skills/code-review of try-works/role-model.

Open the folder on GitHubat commit de1c04a

Compare with similar skills

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.

Code Review compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Code Review this skilltry-works/role-model117—~1.4kAutomated safety check: PassCustom licence
PR Babysitteropeninterpreter/openinterpreter69k3 repos~4.2kAutomated safety check: PassApache-2.0
Understand Diff AnalysisEgonex-AI/Understand-Anything85k1 repos~1.4kAutomated safety check: PassMIT
WooCommerce Code Reviewwoocommerce/woocommerce11k3 repos~1.1kAutomated safety check: PassCustom licence
Open Code Review CLIalibaba/open-code-review44k—~3.1kAutomated safety check: PassApache-2.0
GitHub Review Iterationprisma/orm48k—~2.2kAutomated safety check: PassApache-2.0

Similar skills

  • PR Babysitter

    openinterpreter/openinterpreter

    Watches an open GitHub pull request until it merges, handling review comments, diagnosing CI failures and retrying flaky checks along the way.

    69k GitHub starsUsed in 3 repos~4.2k tokens
    DevelopmentAuto-check passed
  • Understand Diff Analysis

    Egonex-AI/Understand-Anything

    Reads your git changes or a pull request against a prebuilt knowledge graph of the project to explain what changed, which components are affected and what is risky.

    85k GitHub starsUsed in 1 repo~1.4k tokens
    DevelopmentAuto-check passed
  • WooCommerce Code Review

    woocommerce/woocommerce

    Reviews WooCommerce code changes against the project's standards, flagging backend PHP architecture, naming, documentation, data integrity and testing violations.

    11k GitHub starsUsed in 3 repos~1.1k tokens
    DevelopmentAuto-check passed
  • Open Code Review CLI

    alibaba/open-code-review

    Runs the ocr command-line tool to review Git changes, a commit or a branch comparison with an AI model, returning line-level comments and optionally applying fixes.

    44k GitHub stars~3.1k tokensUpdated 2 days ago
    DevelopmentAuto-check passed
  • Official

    Runs a loop on a GitHub pull request: fetch review state, triage comments into actions, implement them and resolve threads, repeating until nothing actionable is left.

    48k GitHub stars~2.2k tokensUpdated today
    DevelopmentAuto-check passed
  • PR Finalize Review

    microsoft/garnet

    Official

    Checks that a pull request's title and description match its implementation and reviews the code for Garnet best practices, reporting findings without posting them.

    12k GitHub stars~3.1k tokensUpdated today
    DevelopmentAuto-check passed

More from try-works/role-model

All 19 skills in this repo
  • E2E Testing Patterns

    try-works/role-model

    Master end-to-end testing with Playwright and Cypress to build reliable test suites that catch bugs, improve confidence, and enable fast deployment.

    117 GitHub starsUsed in 13 repos~990 tokens
    Auto-check passed
  • UI Design System

    try-works/role-model

    React UI component systems with TailwindCSS + Radix + shadcn/ui.

    117 GitHub stars~5k tokensUpdated today
    Auto-check passed
  • Swiss Design

    try-works/role-model

    Apply a Swiss International Style design system using Tailwind CSS.

    117 GitHub starsUsed in 1 repo~3.2k tokens
    Auto-check passed
  • Contributing

    try-works/role-model

    A skill your agent uses when contributing to the Cloudflare Docs repository — writing or editing documentation pages, choosing content types or components, adding changelog entries, reviewing docs…

    117 GitHub stars~1.3k tokensUpdated today
    Auto-check passed
  • Effect V3 To V4

    try-works/role-model

    A skill your agent uses when migrating a codebase from Effect v3 to Effect v4, upgrading effect or any @effect/ package across the v3/v4 boundary.

    117 GitHub starsUsed in 1 repo~2k tokens
    Auto-check passed
  • Turnstile Spin

    try-works/role-model

    Set up Cloudflare Turnstile end-to-end in a project — scan the codebase, create the widget via the Cloudflare API, deploy the managed siteverify Worker, write the frontend snippets, validate, and…

    117 GitHub stars~3.8k tokensUpdated today
    Auto-check passed

Categories

Questions about Code Review

What does Code Review do?

Review the changed lines of a single file in a pull request for bugs, correctness, error handling, security, and maintainability, and return structured findings. Code Review is an agent skill from try-works/role-model. Review the changed lines of a single file in a pull request for bugs, correctness, error handling, security, and maintainability, and return structured findings.

When should I use Code Review?

Code Review fits situations like: tasks that involve Code review; tasks that involve Pull requests.

How do I install Code Review in Claude Code?

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

How do I install Code Review in Codex?

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

Can I use 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 try-works/role-model --skill 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/code-review, .gemini/skills/code-review, .github/skills/code-review and .opencode/skills/code-review in your project.

What does Code Review need to run?

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

Does 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 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 Code Review use?

Code Review has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Code Review use?

About 1.4k tokens (SKILL.md is roughly 5.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Code Review?

Skills that share tags, products or a category with Code Review: PR Babysitter (openinterpreter/openinterpreter, 69k stars), Understand Diff Analysis (Egonex-AI/Understand-Anything, 85k stars), WooCommerce Code Review (woocommerce/woocommerce, 11k stars) and Open Code Review CLI (alibaba/open-code-review, 44k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Code Review?

try-works (a GitHub user) maintains it in try-works/role-model, which has 117 GitHub stars. The repository holds 19 skills in this directory. The repository was last updated on October 6, 2026.

Source: try-works/role-model on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.