odoo-code-reviewer

Review Odoo 16.0 modules for security, performance, and compliance issues.

4|1|Updated Nov 2, 2025
One-click install
npx skills add https://github.com/jamshu/jamshi-marketplace --skill odoo-code-reviewer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: odoo-code-reviewer
Source: https://github.com/jamshu/jamshi-marketplace/tree/main/plugins/odoo-dev/skills/odoo-code-reviewer
Command: npx skills add https://github.com/jamshu/jamshi-marketplace --skill odoo-code-reviewer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Ensuring Odoo code is secure, performant, and compliant with best practices requires meticulous manual review, which is time-consuming and prone to human error. This skill automates the code review process, identifying critical issues and suggesting improvements.

Core Features & Use Cases

  • Security Audit: Detects SQL injection risks, XSS vulnerabilities, and improper sudo() usage.
  • Performance Analysis: Identifies N+1 queries, inefficient searches, and unnecessary database operations.
  • Best Practices & Compliance: Checks for OCA guidelines, proper API usage, error handling, logging, and maintainability.
  • Use Case: You've developed a custom stock_picking module and want to ensure it has no performance bottlenecks and complies with OCA coding guidelines before deployment. This skill can provide a comprehensive review.

Quick Start

Use the odoo-code-reviewer skill to review the attached my_custom_module.py file for security vulnerabilities and performance issues.

Frequently Asked Questions about odoo-code-reviewer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I review Odoo code for security vulnerabilities like SQL injection and XSS?

Security code review for Odoo identifies SQL injection risks, XSS vulnerabilities, and improper sudo() usage in your modules. This skill automates detection of these critical issues, scanning your code against Odoo 16.0 patterns and providing actionable remediation guidance with examples.

Can I check my Odoo module for performance bottlenecks like N+1 queries?

Performance analysis detects N+1 queries, inefficient searches, and unnecessary database operations in Odoo modules. The skill scans your code and reports optimization opportunities with specific fixes to improve query efficiency before deployment.

What's the best way to ensure my Odoo code complies with OCA guidelines?

OCA compliance checking evaluates your Odoo code against community coding standards, verifying proper API usage, error handling, logging practices, and maintainability. The skill flags deviations and suggests corrections aligned with OCA best practices.

How do I audit a complete Odoo module or specific files for multiple issue categories?

Module audit scans complete modules or individual files (models, views, security configs) across five categories: Security, Performance, OCA Guidelines, Best Practices, and Maintainability. The skill delivers structured results with detected issues and suggested fixes for each category.

Does this code review work with custom Odoo 16.0 modules?

Yes, this skill is built for Odoo 16.0 custom modules. It applies to complete modules or specific files and works through natural prompts like 'Review this code' or 'Security review needed,' making it accessible whether you're auditing a single file or an entire custom module.

What issues does the code reviewer catch that manual review might miss?

Automated code review catches systematic patterns: improper sudo() calls, search inefficiencies causing N+1 queries, XSS exposure in views, and OCA guideline deviations. Comprehensive scanning across security, performance, and compliance categories reduces human error in meticulous manual review.