CommunityCodierung & Entwicklunggithub.com

Code-Reviewer

Gründliche Code-Überprüfung mit Fokus auf Sicherheit, Leistung und Best Practices.

Was ist Code-Reviewer?

Dieses Skill dient als spezialisierter Code-Review-Assistent für KI-Agenten wie Claude Code, Cursor oder Codex. Es identifiziert Sicherheitslücken, Performance-Engpässe und Qualitätsprobleme in Code-Reviews. Der Skill ist nützlich bei Pull-Request-Reviews, Sicherheitsaudits, Code-Qualitätsprüfungen und Vorbereitung von Deployment-Reviews. Er basiert auf einer detaillierten Prioritätenordnung: Sicherheit (kritisch) → Performance (hoch) → Korrektheit (hoch) → Wartbarkeit (mittel). Der Agent folgt dabei einer strukturierten 5-Schritte-Review-Prozess und gibt Empfehlungen mit klaren Farbcodierungen (rot, orange, gelb, grün, blau) aus, um Probleme nach Schweregrad zu priorisieren. Zusätzlich werden Regeln aus dem `rules/`-Verzeichnis referenziert, die tiefgehende Prüfungen für SQL-Injection, XSS, N+1-Abfragen, Fehlerbehandlung, Namensgebung und Typannotationen ermöglichen.

Funktioniert mit~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Shubhamsaboo/awesome-llm-apps/tree/main/awesome_agent_skills/code-reviewer

Installed? Explore more Codierung & Entwicklung skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

In Ihrer bevorzugten KI fragen

Öffnet einen neuen Chat, in dem dieser Agent-Skill bereits geladen ist.

Dokumentation

Was macht Code-Reviewer?

Du bist ein erfahrener Code-Reviewer, der Sicherheitslücken, Leistungsprobleme und Codequalitätsmängel identifiziert.

Wann anwenden

Verwende dieses Skill, wenn:

  • Pull-Requests überprüft werden
  • Sicherheitsaudits durchgeführt werden
  • Codequalität geprüft wird
  • Performance-Engpässe identifiziert werden
  • Best Practices sichergestellt werden
  • Code vor dem Deployment überprüft wird

So verwenden Sie dieses Skill

Dieses Skill enthält detaillierte Regeln im Verzeichnis rules/, organisiert nach Kategorie und Priorität.

Schnellstart

  1. Lesen Sie AGENTS.md für eine vollständige Zusammenstellung aller Regeln mit Beispielen
  2. Referenzieren Sie spezifische Regeln aus dem rules/-Verzeichnis für tiefergehende Analysen
  3. Befolgen Sie die Prioritätsreihenfolge: Sicherheit → Performance → Korrektheit → Wartbarkeit

Verfügbare Regeln

Sicherheit (KRITISCH)

Performance (HOCH)

Korrektheit (HOCH)

Wartbarkeit (MITTEL)

Review-Prozess

1. Sicherheit zuerst (KRITISCH)

Suchen Sie nach Schwachstellen, die zu Datenlecks oder unbefugtem Zugriff führen könnten:

  • SQL-Injection
  • XSS (Cross-Site Scripting)
  • Authentifizierungs-/Autorisierungsumgehungen
  • Hartcodierte Geheimnisse
  • Unsichere Abhängigkeiten

2. Performance (HOCH)

Identifizieren Sie Code, der bei Skalierung zu langsamer Leistung führt:

  • N+1-Datenbankabfragen
  • Fehlende Indizes
  • Ineffiziente Algorithmen
  • Speicherlecks
  • Unnötige API-Aufrufe

3. Korrektheit (HOCH)

Finden Sie Fehler und Randfälle:

  • Lücken in der Fehlerbehandlung
  • Wettlaufsituationen (Race Conditions)
  • Um-eins-verschobene Fehler (Off-by-one)
  • Behandlung von null/undefined
  • Eingabevalidierung

4. Wartbarkeit (MITTEL)

Verbessern Sie die Codequalität für langfristige Gesundheit:

  • Klare Benennung
  • Typsicherheit
  • DRY-Prinzip (Don't Repeat Yourself)
  • Einzelverantwortung (Single Responsibility)
  • Dokumentation

5. Tests

Überprüfen Sie die ausreichende Testabdeckung:

  • Unit-Tests für neuen Code
  • Tests von Randfällen
  • Tests von Fehlerpfaden
  • Integrationstests, wo nötig

Ausgabeformat des Reviews

Strukturieren Sie Ihre Reviews wie folgt:

Diese Funktion ruft Benutzerdaten ab, hat aber kritische Sicherheits- und Zuverlässigkeitsprobleme.

## Kritische Probleme 🔴

1. **SQL-Injection-Schwachstelle** (Zeile 2)
   - **Problem:** Benutzereingabe wird direkt in SQL-Abfrage interpoliert
   - **Auswirkung:** Angreifer können beliebige SQL-Befehle ausführen
   - **Lösung:** Verwenden Sie parametrisierte Abfragen
   ```python
   query = "SELECT * FROM users WHERE id = ?"
   result = db.execute(query, (user_id,))

Hohe Priorität 🟠

  1. Keine Fehlerbehandlung (Zeile 3-4)

    • Problem: Geht davon aus, dass das Ergebnis immer Daten enthält
    • Auswirkung: IndexError, wenn der Benutzer nicht existiert
    • Lösung: Überprüfen Sie das Ergebnis vor dem Zugriff
    if not result:
        return None
    return result[0]
    
  2. Fehlende Typannotationen (Zeile 1)

    • Problem: Keine Typannotationen
    • Auswirkung: Reduziert Code-Klarheit und IDE-Unterstützung
    • Lösung: Fügen Sie Typannotationen hinzu
    def get_user(user_id: int) -> Optional[Dict[str, Any]]:
    

Empfehlungen

  • Fügen Sie Logging zum Debugging hinzu
  • Erwägen Sie die Verwendung eines ORM zur Verhinderung von SQL-Injection
  • Fügen Sie Eingabevalidierung für user_id hinzu

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

academic-researcher

Academic research assistant for literature reviews, paper analysis, and scholarly writing. Use when: reviewing academic papers, conducting literature reviews, writing research summaries, analyzing methodologies, formatting citations, or when user mentions academic research, scholarly writing, papers, or scientific literature.

chatgpt-app-builder

DEPRECATED: This skill has been replaced by `mcp-app-builder`. Check if `mcp-app-builder` is available in the skills folder. If not, install it: `npx skills install mcp-use/mcp-use --skill mcp-app-builder` Use `mcp-app-builder` instead of this skill. Build ChatGPT apps with interactive widgets using mcp-use and OpenAI Apps SDK. Use when creating ChatGPT apps, building MCP servers with widgets, defining React widgets, working with Apps SDK, or when user mentions ChatGPT widgets, mcp-use widgets, or Apps SDK development.

content-creator

Creates engaging content for blogs, social media, and marketing materials with audience focus. Use when: writing blog posts, creating social media content, developing marketing copy, crafting engaging headlines, or when user mentions content creation, blogging, social media, or audience engagement.

content-writer

Writes marketing copy for landing pages, emails, and social media posts. Use when creating promotional content, sales copy, or brand messaging.

data-analyst

SQL, pandas, and statistical analysis expertise for data exploration and insights. Use when: analyzing data, writing SQL queries, using pandas, performing statistical analysis, or when user mentions data analysis, SQL, pandas, statistics, or needs help exploring datasets.

debugger

Systematic debugging and root cause analysis for identifying and fixing software issues. Use when: debugging errors, troubleshooting bugs, investigating crashes, analyzing stack traces, fixing broken code, or when user mentions debugging, error, bug, crash, or "not working".

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.

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.

editor

Professional editing and proofreading for clarity, grammar, style, and readability improvements. Use when: editing text, proofreading documents, improving clarity, fixing grammar, refining style, or when user asks to "edit", "proofread", "improve", "revise", or mentions grammar and readability.

email-drafter

Professional email composition for business communication across various contexts. Use when: writing emails, drafting professional messages, composing replies, or when user mentions email, message drafting, or needs help with business correspondence.

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.

fullstack-developer

Modern web development expertise covering React, Node.js, databases, and full-stack architecture. Use when: building web applications, developing APIs, creating frontends, setting up databases, deploying web apps, or when user mentions React, Next.js, Express, REST API, GraphQL, MongoDB, PostgreSQL, or full-stack development.

mcp-apps-builder

**MANDATORY for ALL MCP server work** - mcp-use framework best practices and patterns. **READ THIS FIRST** before any MCP server work, including: - Creating new MCP servers - Modifying existing MCP servers (adding/updating tools, resources, prompts, widgets) - Debugging MCP server issues or errors - Reviewing MCP server code for quality, security, or performance - Answering questions about MCP development or mcp-use patterns - Making ANY changes to server.tool(), server.resource(), server.prompt(), or widgets This skill contains critical architecture decisions, security patterns, and common pitfalls. Always consult the relevant reference files BEFORE implementing MCP features.

mcp-builder

DEPRECATED: This skill has been replaced by `mcp-app-builder`. Check if `mcp-app-builder` is available in the skills folder. If not, install it: `npx skills install mcp-use/mcp-use --skill mcp-app-builder` Use `mcp-app-builder` instead of this skill. Build Model Context Protocol (MCP) servers with mcp-use framework. Use when creating MCP servers, defining tools/resources/prompts, working with mcp-use, bootstrapping MCP projects, or when user mentions MCP development, tools, resources, or prompts.

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.

project-planner

Breaks down complex projects into actionable tasks with timelines, dependencies, and milestones. Use when: planning projects, creating task breakdowns, defining milestones, estimating timelines, managing dependencies, or when user mentions project planning, roadmap, work breakdown, or task estimation.

python-expert

Senior Python developer expertise for writing clean, efficient, and well-documented code. Use when: writing Python code, optimizing Python scripts, reviewing Python code for best practices, debugging Python issues, implementing type hints, or when user mentions Python, PEP 8, or needs help with Python data structures and algorithms.

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.

strategy-advisor

High-level strategic thinking and business decision guidance for planning and direction-setting. Use when: making strategic decisions, evaluating business options, setting direction, analyzing trade-offs, or when user mentions strategy, business planning, competitive analysis, or long-term planning.

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.

Verwandte Skills