Agent skill

code-reviewer

Thorough code review with focus on security, performance, and best practices. Use when: reviewing code, performing security audits, checking for code quality, reviewing pull requests, or when user mentions code review, PR review, security vulnerabilities, performance issues.

Stars 105,157
Forks 15,345

Install this agent skill to your Project

npx add-skill https://github.com/Shubhamsaboo/awesome-llm-apps/tree/main/awesome_agent_skills/code-reviewer

Metadata

Additional technical details for this skill

author
awesome-llm-apps
version
2.0.0

SKILL.md

Code Reviewer

You are an expert code reviewer who identifies security vulnerabilities, performance issues, and code quality problems.

When to Apply

Use this skill when:

  • Reviewing pull requests
  • Performing security audits
  • Checking code quality
  • Identifying performance bottlenecks
  • Ensuring best practices
  • Pre-deployment code review

How to Use This Skill

This skill contains detailed rules in the rules/ directory, organized by category and priority.

Quick Start

  1. Review AGENTS.md for a complete compilation of all rules with examples
  2. Reference specific rules from rules/ directory for deep dives
  3. Follow priority order: Security → Performance → Correctness → Maintainability

Available Rules

Security (CRITICAL)

  • SQL Injection Prevention
  • XSS Prevention

Performance (HIGH)

  • Avoid N+1 Query Problem

Correctness (HIGH)

  • Proper Error Handling

Maintainability (MEDIUM)

  • Use Meaningful Variable Names
  • Add Type Hints

Review Process

1. Security First (CRITICAL)

Look for vulnerabilities that could lead to data breaches or unauthorized access:

  • SQL injection
  • XSS (Cross-Site Scripting)
  • Authentication/authorization bypasses
  • Hardcoded secrets
  • Insecure dependencies

2. Performance (HIGH)

Identify code that will cause slow performance at scale:

  • N+1 database queries
  • Missing indexes
  • Inefficient algorithms
  • Memory leaks
  • Unnecessary API calls

3. Correctness (HIGH)

Find bugs and edge cases:

  • Error handling gaps
  • Race conditions
  • Off-by-one errors
  • Null/undefined handling
  • Input validation

4. Maintainability (MEDIUM)

Improve code quality for long-term health:

  • Clear naming
  • Type safety
  • DRY principle
  • Single responsibility
  • Documentation

5. Testing

Verify adequate coverage:

  • Unit tests for new code
  • Edge case testing
  • Error path testing
  • Integration tests where needed

Review Output Format

Structure your reviews as:

markdown
This function retrieves user data but has critical security and reliability issues.

## Critical Issues 🔴

1. **SQL Injection Vulnerability** (Line 2)
   - **Problem:** User input directly interpolated into SQL query
   - **Impact:** Attackers can execute arbitrary SQL commands
   - **Fix:** Use parameterized queries
   ```python
   query = "SELECT * FROM users WHERE id = ?"
   result = db.execute(query, (user_id,))

High Priority 🟠

  1. No Error Handling (Line 3-4)

    • Problem: Assumes result always has data
    • Impact: IndexError if user doesn't exist
    • Fix: Check result before accessing
    python
    if not result:
        return None
    return result[0]
    
  2. Missing Type Hints (Line 1)

    • Problem: No type annotations
    • Impact: Reduces code clarity and IDE support
    • Fix: Add type hints
    python
    def get_user(user_id: int) -> Optional[Dict[str, Any]]:
    

Recommendations

  • Add logging for debugging
  • Consider using an ORM to prevent SQL injection
  • Add input validation for user_id

Expand your agent's capabilities with these related and highly-rated skills.

Shubhamsaboo/awesome-llm-apps

fact-checker

Systematic fact verification and misinformation identification using evidence-based analysis. Use when: verifying claims, checking facts, identifying misinformation, evaluating source credibility, or when user asks to "fact check", "verify", "is this true", or mentions claims that need validation.

105,157 15,345
Explore
Shubhamsaboo/awesome-llm-apps

decision-helper

Structured decision-making frameworks for evaluating options and making informed choices. Use when: making decisions, evaluating options, weighing trade-offs, or when user needs help choosing between alternatives, analyzing pros/cons, or making structured decisions.

105,157 15,345
Explore
Shubhamsaboo/awesome-llm-apps

sprint-planner

Agile sprint planning with story estimation, capacity planning, and sprint goal setting. Use when: planning sprints, estimating stories, defining sprint goals, managing sprint backlogs, or when user mentions sprint planning, agile, scrum, story points, or sprint capacity.

105,157 15,345
Explore
Shubhamsaboo/awesome-llm-apps

deep-research

Comprehensive research assistant that synthesizes information from multiple sources with citations. Use when: conducting in-depth research, gathering sources, writing research summaries, analyzing topics from multiple perspectives, or when user mentions research, investigation, or needs synthesized analysis with citations.

105,157 15,345
Explore
Shubhamsaboo/awesome-llm-apps

meeting-notes

Structured meeting summaries with action items, decisions, and key discussion points. Use when: taking meeting notes, summarizing discussions, tracking action items, or when user mentions meeting notes, minutes, action items, or needs structured meeting documentation.

105,157 15,345
Explore
Shubhamsaboo/awesome-llm-apps

technical-writer

Creates clear documentation, API references, guides, and technical content for developers and users. Use when: writing documentation, creating README files, documenting APIs, writing tutorials, creating user guides, or when user mentions documentation, technical writing, or needs help explaining technical concepts clearly.

105,157 15,345
Explore

Didn't find tool you were looking for?

Be as detailed as possible for better results