Code review practices

From Hack23/riksdagsmonitor · View interactive version

Code review practices is an AI agent skill from the GitHub repository Hack23/riksdagsmonitor. Code review best practices, quality gates, security checks, and constructive feedback guidelines for collaborative development

How to use this skill

Skill file

Code Review Practices Skill

🔴 AI FIRST Quality Principle

Apply the AI FIRST principle: never accept first-pass quality. Minimum 2 iterations. Read all output, improve every section. No shortcuts.

Purpose

Establishes effective code review practices that improve code quality, catch bugs early, and maintain security standards while fostering collaborative development.

Review Checklist

MUST CHECK

  1. Functionality — Code solves the stated problem, edge cases handled
  2. Design — Follows project patterns, appropriate abstraction
  3. Code Quality — Readable, maintainable, DRY, proper naming
  4. Testing — Unit tests included, coverage adequate, edge cases tested
  5. Security — No hardcoded secrets, input validation, XSS/injection prevention
  6. Performance — No obvious inefficiencies, queries optimized
  7. Documentation — README updated, complex logic explained

PR Size Guidelines

Feedback Guidelines

Effective Comments

Security-Focused Review

Approval Criteria

Related Policies

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.