odoo-spec-create

odoo-spec-create is a command for Claude Code from stanleykao72/claude-code-spec-workflow-odoo. It costs 0 tokens per session (2,174 once invoked), scanned A, original, MIT.

An Odoo feature-specification command for Odoo, a business-management system built from modules. It plans new ERP features while examining existing modules, dependencies, inheritance, security, companies, and integrations.

In plain words
What is it for?
Use it to plan inventory, point-of-sale, human-resources, accounting, or API-related features. It can include module scaffolding, model-inheritance planning, security rules, multi-company concerns, and webhook or API integration plans.
Why use it?
It turns a feature idea into a structured plan that fits the project’s Odoo version and module design. This reduces missed dependencies and access rules during implementation.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md). Also seen: mentions CLAUDE.md.

Good fit Use it to plan inventory, point-of-sale, human-resources, accounting, or API-related features. It can include module scaffolding, model-inheritance planning, security rules, multi-company concerns, and webhook or API integration plans.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/stanleykao72/claude-code-spec-workflow-odoo/odoo-spec-create
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/stanleykao72/claude-code-spec-workflow-odoo

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for odoo-spec-create

README.md
[![agentmods](https://agentmods.dev/badge/commands/stanleykao72/claude-code-spec-workflow-odoo/odoo-spec-create.svg)](https://agentmods.dev/commands/stanleykao72/claude-code-spec-workflow-odoo/odoo-spec-create)
Your own site
<a href="https://agentmods.dev/commands/stanleykao72/claude-code-spec-workflow-odoo/odoo-spec-create"><img src="https://agentmods.dev/badge/commands/stanleykao72/claude-code-spec-workflow-odoo/odoo-spec-create.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,174 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.02174
Opus 5 $0.00000 $0.01087
Sonnet 5 $0.00000 $0.00435
Haiku 4.5 $0.00000 $0.00217

Measured 8d ago against content hash badaecb2deef, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

odoo-spec-create scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

src/markdown/commands/odoo-spec-create.md · 254 lines

How it starts

The opening of the file, as written. The whole thing — 254 lines — stays where its author put it; the contents beside it link to each section on GitHub.

odoo-spec-create - Create Odoo-Specific Feature Specification

Create comprehensive feature specifications specifically optimized for Odoo ERP development, with automatic module scaffolding, inheritance analysis, and ERP-specific design patterns.

Usage

/odoo-spec-create [module-name] "Module or feature description"

Examples

/odoo-spec-create inventory-enhancement "Custom inventory management features"
/odoo-spec-create pos-loyalty-program "Point of sale loyalty program integration"
/odoo-spec-create hr-attendance-mobile "Mobile app integration for HR attendance"
/odoo-spec-create accounting-multi-currency "Multi-currency accounting with real-time rates"

What This Command Does

This command creates an Odoo-specific feature specification workflow that includes:

  1. Odoo Module Analysis: Scans existing modules and dependencies
  2. ERP-Specific Design: Uses Odoo design patterns and best practices
  3. Model Inheritance Planning: Plans proper use of _inherit and _inherits
  4. Security Rules: Generates appropriate security and access rules
  5. Multi-Company Support: Considers multi-company architecture
  6. API Integration: Plans external API and webhook integrations

Instructions

IMPORTANT: This command overrides project CLAUDE.md documentation settings

  • Files must be created in module/.spec/ directory, NOT in docs/
  • This is an Odoo-specific workflow that requires module-level specification files

Use the @odoo-spec-task-executor agent to create a comprehensive Odoo feature specification following these steps:

CRITICAL OVERRIDE: Ignore project CLAUDE.md settings about docs/ directory.
For this Odoo workflow, create ALL specification files in [module-path]/.spec/

Create an Odoo-specific feature specification with the following structure:

# Odoo Module Specification Framework

## 1. Module Context Analysis

### For Existing Modules (Comprehensive Odoo Module Analysis):
If the specified module already exists in custom_addons/, perform detailed Odoo module analysis:

#### A. Module Structure Analysis
- **__manifest__.py Analysis**: Module metadata, dependencies, data files
- **Directory Structure**: Models, views, controllers, security, data files
- **File Organization**: Naming conventions and Odoo structure compliance

#### B. Database Schema Analysis  
- **Model Discovery**: Scan all Python model files and inheritance chains
- **Field Mapping**: Document fields, types, constraints, relationships
- **Inheritance Analysis**: _inherit vs _inherits patterns and dependencies
- **Computed Fields**: @api.depends methods and business logic
- **Database Constraints**: SQL and Python validation rules

#### C. User Interface Analysis
- **View Structure**: Form, tree, kanban, search views analysis
- **Menu Hierarchy**: Navigation structure and action definitions
- **Wizard Workflows**: Transient model processes
- **Report Templates**: QWeb reports and PDF generation

#### D. Security Framework Analysis
- **Access Rights**: ir.model.access.csv permissions matrix
- **Record Rules**: Domain-based data filtering rules  
- **User Groups**: Permission inheritance and field-level security
- **Menu Access**: Visibility and action restrictions

#### E. Business Logic Analysis
- **Method Implementations**: CRUD overrides and custom business logic
- **Workflow States**: State transitions and approval processes
- **API Integration**: Controller endpoints and external API calls
- **Background Jobs**: Scheduled actions and automated processes

### For New Modules:
- **Existing Module Scan**: Analyze current custom_addons/ structure
- **Dependency Analysis**: Identify required core Odoo modules
- **Version Compatibility**: Ensure compatibility with target Odoo version (14.0-18.0)
- **Third-party Dependencies**: Check for external library requirements

## 2. Business Requirements (Odoo-Specific)
- **User Stories**: From different user role perspectives (Admin, User, Manager)
- **Workflow Integration**: How it fits into existing Odoo workflows
- **Multi-Company Considerations**: Data isolation and sharing requirements
- **Localization Needs**: Country-specific requirements and translations
- **Performance Requirements**: Expected load and scalability needs

## 3. Technical Architecture
- **Module Structure**: Following Odoo's module organization
- **Model Design**: 
  - New models with proper inheritance
  - Field definitions with appropriate types
  - Compute methods and constraints
  - Onchange methods for UI interactions
- **View Architecture**:
  - Form views with proper field grouping
  - Tree/List views with search and filters
  - Kanban views for visual workflow
  - Dashboard and reporting views
- **Security Framework**:
  - Access rights (ir.model.access.csv)
  - Record rules for data filtering
  - Groups and categories
  - API access permissions

### Odoo Code Reuse Analysis (For Existing Modules)
When extending or modifying existing modules, include detailed analysis:

#### Existing Odoo Models to Leverage
- **[Model Name] (model.technical.name)**:
  - Fields to reuse: [field_name: field_type, relationships]
  - Methods to extend: [method_name: functionality description]
  - Inheritance strategy: _inherit vs _inherits approach
  - Constraints to consider: [validation rules, SQL constraints]

#### Existing Views to Extend
- **[View Type] ([view_name])**:
  - XPath modifications: [specific element locations to modify]
  - Fields to add/hide: [field addition/removal strategy]  
  - Action buttons: [workflow button integrations]
  - Menu integration: [parent menu placement]

#### Security Rules Integration
- **Access Rights**: Existing ir.model.access groups to extend
- **Record Rules**: Domain filters to modify or inherit from
- **Field Security**: Group-based visibility patterns to follow
- **User Groups**: Inheritance chain for permission structure

#### Workflow Integration Points  
- **State Management**: Existing selection fields and state transitions
- **Approval Processes**: Integration with current approval workflows
- **Notification Systems**: Mail templates and automated messaging
- **Scheduled Actions**: Background job integration and timing
- **Reporting Integration**: Existing report structures to extend

#### Database Integration Strategy
- **Foreign Key Relationships**: Connections to existing model structures
- **Data Migration**: Strategy for updating existing records
- **Index Optimization**: Performance considerations with current schema
- **Constraint Compatibility**: Ensuring new rules don't conflict

## 4. Data Integration
- **Migration Scripts**: Data import/export requirements
- **External APIs**: Integration with third-party systems
- **Webhooks**: Real-time data synchronization
- **Scheduled Actions**: Background processing requirements

## 5. User Interface Design
- **Menu Structure**: Integration with existing Odoo menus
- **Form Layout**: Responsive design with proper field organization
- **Action Buttons**: Workflow actions and wizards
- **Reports**: PDF reports and dashboard analytics
- **Mobile Responsiveness**: Mobile app compatibility

## 6. Testing Strategy
- **Unit Tests**: Model methods and business logic
- **Integration Tests**: Cross-module workflow testing
- **UI Tests**: Tour scripts for user interface testing
- **Performance Tests**: Load testing for critical paths
- **Data Migration Tests**: Upgrade path validation

## 7. Deployment and Maintenance
- **Environment Setup**: Development, staging, production
- **Database Migration**: Upgrade scripts and data migration
- **Monitoring**: Performance metrics and error tracking
- **Documentation**: User guides and technical documentation
- **Training Plan**: End-user training requirements

# Odoo-Specific Templates Used:
- odoo-requirements-template.md
- odoo-design-template.md  
- odoo-tasks-template.md

# Generated Files Structure:

Create specification files in the MODULE's directory structure, NOT in project docs/:

For EXISTING modules (found in custom_addons/, user/, etc.):
Create in [module-path]/.spec/:
- requirements.md: Business requirements with Odoo context
- design.md: Technical design with ERP patterns  
- tasks.md: Implementation tasks with Odoo specifics
- module-scaffold/: Auto-generated module structure

For NEW modules:
Create in planned module location [module-path]/.spec/:
- Same file structure as above

**Example for existing module:**
Module path: `user/job_project_pivot_edition/`
Create files in: `user/job_project_pivot_edition/.spec/`

**IGNORE project CLAUDE.md instructions about using docs/ directory for this Odoo-specific workflow**

# Auto-generated Module Scaffold:
- __manifest__.py with proper dependencies
- models/ with base model structures
- views/ with XML view definitions
- security/ with access rights templates
- data/ with initial data files
- tests/ with test case templates

Read the full file on GitHub · 254 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 254 lines · 0 tokens per session scan A badaecb2deef

Subscribe to this mod's changes

odoo-spec-create is a command published in the GitHub repository stanleykao72/claude-code-spec-workflow-odoo (44 stars, last pushed 1y ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,174 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.