Index of every page on this site: llms.txt
All skills
aj-geddes avatar

/code-review-analysis

@3f5182c
Run it yourself

Perform comprehensive code reviews with best practices, security checks, and constructive feedback. Use when reviewing pull requests, analyzing code quality, checking for security vulnerabilities, or providing code improvement suggestions.

Use this Skill: https://skilld.dev/gh/aj-geddes/useful-ai-prompts/code-review-analysis

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈65 tokens for metadata: the name and description. ≈488 when used: this file. ≈1.1k more on demand in 6 files.

Description uses 3.3% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈262 characters, or 3.3%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Code Review Analysis

Table of Contents

Overview

Systematic code review process covering code quality, security, performance, maintainability, and best practices following industry standards.

When to Use

  • Reviewing pull requests and merge requests
  • Analyzing code quality before merging
  • Identifying security vulnerabilities
  • Providing constructive feedback to developers
  • Ensuring coding standards compliance
  • Mentoring through code review

Quick Start

Minimal working example:

# Check the changes
git diff main...feature-branch

# Review file changes
git diff --stat main...feature-branch

# Check commit history
git log main...feature-branch --oneline

Reference Guides

Detailed implementations in the references/ directory:

Guide Contents
Initial Assessment Initial Assessment
Code Quality Analysis Code Quality Analysis
Security Review Security Review
Performance Review Performance Review
Testing Review Testing Review
Best Practices Best Practices

Best Practices

✅ DO

  • Be constructive and respectful
  • Explain the "why" behind suggestions
  • Provide code examples
  • Ask questions if unclear
  • Acknowledge good practices
  • Focus on important issues
  • Consider the context
  • Offer to pair program on complex issues

❌ DON'T

  • Be overly critical or personal
  • Nitpick minor style issues (use automated tools)
  • Block on subjective preferences
  • Review too many changes at once (>400 lines)
  • Forget to check tests
  • Ignore security implications
  • Rush the review

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts2mo5 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    This skill acts as a code review assistant. It is generally safe and follows best practices, including providing educational examples of security vulnerabilities. However, because it is designed to ingest and analyze untrusted code (e.g., from pull requests), it has an inherent surface for indirect prompt injection.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: LOW · No issues

  • Runlayer8mo

    1/11 files flagged

  • ZeroLeaks7mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at 3f5182c. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 months ago.

Dormantupdated 9 months ago

README badge

README badge for aj-geddes/useful-ai-prompts

Guides code review analysis across quality, security, performance, and testing with structured checklists and best practices. Targets pull request review workflows and includes reference guides for initial assessment, code quality, security vulnerabilities, performance, and testing coverage.

Generated from the current SKILL.md.

What kinds of code issues does this skill check for?
The skill covers code quality, security vulnerabilities, performance, maintainability, testing, and adherence to best practices. It includes dedicated review guides for security, performance, testing, and code quality analysis.
Does this skill work with specific version control systems?
The quick start examples use Git commands (git diff, git log), so it's designed around Git workflows. The skill is language and framework agnostic.
Can this skill help with pull request reviews?
Yes. Pull request and merge request review is explicitly listed as a primary use case, with guidance on assessing changes and providing constructive feedback.
Does this skill enforce code style automatically?
No. The best practices explicitly state not to nitpick minor style issues and to use automated tools instead. The skill focuses on substantive code quality, security, and maintainability concerns.
What's the recommended scope for a single review?
The skill recommends reviewing no more than 400 lines of changes at once to ensure thorough, focused analysis.

Generated from the current SKILL.md. These answers refresh after source changes.