[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75TNYAYJ2AFEPJ51Y2CB93Q":3,"skill-same:01M75TNYAYJ2AFEPJ51Y2CB93Q":45},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":29,"updatedAt":30,"install":31,"resources":44},"01M75TNYAYJ2AFEPJ51Y2CB93Q","odoo-code-review",null,"The Odoo domain lens over module and addon code, in addition to a generic review and never instead. Covers ORM anti-patterns, sudo() misuse, raw-SQL injection, N+1 and prefetch, ir.model.access.csv, record rules, upgrade safety, untranslated strings.","Crpaxton4\u002Fdevcontainer-features","Crpaxton4","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F10190720?v=4","01M75TNGAF4N2K56AS0WDN38AM","Chris Paxton","01M75TNGB1E99BTJEGPXPQDRAB",0,"MIT","https:\u002F\u002Fgithub.com\u002FCrpaxton4\u002Fdevcontainer-features\u002Fblob\u002Fmain\u002Fplugins\u002Fodoo-dev\u002Fskills\u002Fodoo-code-review\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: odoo-code-review\ndescription: \"The Odoo domain lens over module and addon code, in addition to a generic review and never instead. Covers ORM anti-patterns, sudo() misuse, raw-SQL injection, N+1 and prefetch, ir.model.access.csv, record rules, upgrade safety, untranslated strings.\"\nuser-invocable: false\n---\n# Odoo code review checklist\n\nState the target Odoo version and edition first. They decide which APIs are valid.\nReview the diff against every group below. Flag the file and the line; cite the version\nrule when one applies.\n\n## ORM anti-patterns\n- Writes or creates inside a loop over records. Batch: build a list of vals and\n  `create([...])`, or `recordset.write({...})` once.\n- `search()` or `browse()` inside a loop. Pull the data once, then `filtered` or `mapped`.\n- A related field read per record in a loop instead of `mapped()` or `read_group()`.\n- A recordset mutated while iterated.\n- `.id` or `.ids` where a recordset is expected, or the reverse.\n- Business logic that bypasses the ORM, so computes, constraints and rules never fire.\n\n## N+1 and prefetch\n- Loops that defeat prefetch (`record.partner_id.name` one record at a time after\n  breaking the recordset apart).\n- Aggregations in Python that `read_group` does in one query.\n- A computed field without `store=True` that is searched, grouped or sorted on.\n- Missing or wrong `@api.depends`: stale computes or over-recomputation.\n- No `index=True` on a frequently searched field.\n\n## sudo() misuse\n- `sudo()` used to dodge an access error instead of fixing access rights or record\n  rules. It bypasses record rules: privilege escalation and data leak.\n- `sudo()` spanning more than the minimal operation that needs it.\n- User-supplied data written under `sudo()` without a re-check of authorization.\n- `sudo()` where `with_company` or `with_context` was the real intent.\n\n## Raw SQL and injection\n- `self.env.cr.execute(...)` with f-strings, `%` or `.format()`. Parameterize:\n  `cr.execute(\"... WHERE id = %s\", (value,))`.\n- Table or column names interpolated from input.\n- Raw SQL that skips access rules where the ORM fits. Justified raw SQL names its\n  security implication.\n- Reads that bypass multi-company or record-rule scoping.\n\n## Security: access rights and record rules\n- A new model without an `ir.model.access.csv` entry.\n- Over-broad access (write or unlink to `base.group_user`) where a narrower group fits.\n- Missing `ir.rule` for multi-company or per-user data. The domain must scope what it claims.\n- Menus or actions exposed without a matching `groups` restriction.\n\n## Upgrade safety\n- Deprecated or removed decorators and APIs for the target version (`@api.one` removed\n  in 12.0; `@api.multi` a no-op from 13.0 and removed in 14.0; pre-8.0 `_columns`).\n  Confirm each against the target version before you flag it.\n- Hardcoded database ids instead of `self.env.ref('module.xml_id')`.\n- Data records without `noupdate` where they must survive a module upgrade.\n- A field or model rename without a migration script.\n- Overrides of core methods whose signature changed across versions.\n- Manifest: correct `depends` and `version`, no stale dependency.\n\n## Translations\n- User-facing strings not wrapped in `_()`.\n- f-strings or concatenation inside `_()`. Use `_(\"Hello %(name)s\", name=name)`.\n- Field `string` and `help` and error messages left untranslated for a multilingual client.\n\n## Views and QWeb\n- View or field references to models or fields that do not exist.\n- `t-raw` or unsafe QWeb rendering of user data (XSS).\n- An inherited view with a brittle `xpath` (position selectors).\n\n## Function length\n- A function above 25 logical lines of code is a finding. One statement is one logical\n  line; comments do not count.\n- Name the join point between responsibilities where a helper comes out. Long `create`\n  and `write` overrides and compute methods are the usual offenders.\n\n## Output\n\nOne line per finding: `file:line · group · severity · what is wrong · version rule`.\nSeverity is `blocker`, `high`, `medium` or `low`.\n\n## Stop conditions\n\n- Report nothing this checklist does not cover. Keep the review Odoo-specific.\n- Never flag an API as wrong without the version rule. \"Removed in 13.0\" is a finding;\n  \"looks old\" is not.\n- Never approve `sudo()` or raw SQL because it works. State the security implication.\n- Never invent the Odoo version. When it is not given, state the assumption and mark\n  version-specific findings conditional.\n","# Odoo code review checklist\n\nState the target Odoo version and edition first. They decide which APIs are valid.\nReview the diff against every group below. Flag the file and the line; cite the version\nrule when one applies.\n\n## ORM anti-patterns\n- Writes or creates inside a loop over records. Batch: build a list of vals and\n  `create([...])`, or `recordset.write({...})` once.\n- `search()` or `browse()` inside a loop. Pull the data once, then `filtered` or `mapped`.\n- A related field read per record in a loop instead of `mapped()` or `read_group()`.\n- A recordset mutated while iterated.\n- `.id` or `.ids` where a recordset is expected, or the reverse.\n- Business logic that bypasses the ORM, so computes, constraints and rules never fire.\n\n## N+1 and prefetch\n- Loops that defeat prefetch (`record.partner_id.name` one record at a time after\n  breaking the recordset apart).\n- Aggregations in Python that `read_group` does in one query.\n- A computed field without `store=True` that is searched, grouped or sorted on.\n- Missing or wrong `@api.depends`: stale computes or over-recomputation.\n- No `index=True` on a frequently searched field.\n\n## sudo() misuse\n- `sudo()` used to dodge an access error instead of fixing access rights or record\n  rules. It bypasses record rules: privilege escalation and data leak.\n- `sudo()` spanning more than the minimal operation that needs it.\n- User-supplied data written under `sudo()` without a re-check of authorization.\n- `sudo()` where `with_company` or `with_context` was the real intent.\n\n## Raw SQL and injection\n- `self.env.cr.execute(...)` with f-strings, `%` or `.format()`. Parameterize:\n  `cr.execute(\"... WHERE id = %s\", (value,))`.\n- Table or column names interpolated from input.\n- Raw SQL that skips access rules where the ORM fits. Justified raw SQL names its\n  security implication.\n- Reads that bypass multi-company or record-rule scoping.\n\n## Security: access rights and record rules\n- A new model without an `ir.model.access.csv` entry.\n- Over-broad access (write or unlink to `base.group_user`) where a narrower group fits.\n- Missing `ir.rule` for multi-company or per-user data. The domain must scope what it claims.\n- Menus or actions exposed without a matching `groups` restriction.\n\n## Upgrade safety\n- Deprecated or removed decorators and APIs for the target version (`@api.one` removed\n  in 12.0; `@api.multi` a no-op from 13.0 and removed in 14.0; pre-8.0 `_columns`).\n  Confirm each against the target version before you flag it.\n- Hardcoded database ids instead of `self.env.ref('module.xml_id')`.\n- Data records without `noupdate` where they must survive a module upgrade.\n- A field or model rename without a migration script.\n- Overrides of core methods whose signature changed across versions.\n- Manifest: correct `depends` and `version`, no stale dependency.\n\n## Translations\n- User-facing strings not wrapped in `_()`.\n- f-strings or concatenation inside `_()`. Use `_(\"Hello %(name)s\", name=name)`.\n- Field `string` and `help` and error messages left untranslated for a multilingual client.\n\n## Views and QWeb\n- View or field references to models or fields that do not exist.\n- `t-raw` or unsafe QWeb rendering of user data (XSS).\n- An inherited view with a brittle `xpath` (position selectors).\n\n## Function length\n- A function above 25 logical lines of code is a finding. One statement is one logical\n  line; comments do not count.\n- Name the join point between responsibilities where a helper comes out. Long `create`\n  and `write` overrides and compute methods are the usual offenders.\n\n## Output\n\nOne line per finding: `file:line · group · severity · what is wrong · version rule`.\nSeverity is `blocker`, `high`, `medium` or `low`.\n\n## Stop conditions\n\n- Report nothing this checklist does not cover. Keep the review Odoo-specific.\n- Never flag an API as wrong without the version rule. \"Removed in 13.0\" is a finding;\n  \"looks old\" is not.\n- Never approve `sudo()` or raw SQL because it works. State the security implication.\n- Never invent the Odoo version. When it is not given, state the assumption and mark\n  version-specific findings conditional.\n",{"name":5,"description":7,"user-invocable":20},"main","043a283d6e259355cd1601e000c45e1ee8ebd8bd","plugins\u002Fodoo-dev\u002Fskills\u002Fodoo-code-review","https:\u002F\u002Fgithub.com\u002FCrpaxton4\u002Fdevcontainer-features","https:\u002F\u002Fgithub.com\u002FCrpaxton4","Computer Science\r\nMiami University","2026-11-02 22:38:24",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add Crpaxton4\u002Fdevcontainer-features --skill odoo-code-review",{"tool":37,"command":38},"bunx","bunx skills add Crpaxton4\u002Fdevcontainer-features --skill odoo-code-review",{"tool":40,"command":41},"pnpm","pnpm dlx skills add Crpaxton4\u002Fdevcontainer-features --skill odoo-code-review","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FCrpaxton4\u002Fdevcontainer-features\u002Fblob\u002Fmain\u002Fplugins\u002Fodoo-dev\u002Fskills\u002Fodoo-code-review\u002FSKILL.md",true,[],[46,53,60,67,74,81],{"skillNo":47,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":50,"categories":51,"keywords":52,"publishedAt":19},"01M75TQ56QVZX3Q680X89RT6FT","report-incident","Draft a terse GitHub issue for an incident in the Odoo dev suite (odoo-dev, odoo-orchestrator, dispatcher), with a current environment block and no private data. Files it only after you approve. Use when a tool or workflow failed.","https:\u002F\u002Fgithub.com\u002FCrpaxton4\u002Fdevcontainer-features\u002Fblob\u002Fmain\u002Fplugins\u002Fodoo-orchestrator\u002Fskills\u002Freport-incident\u002FSKILL.md",[],[],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":19},"01M75TQ2RBNTA4EXJ4BQ3HRYXY","principles","Engineering principles indexed as one-liners: safety and correctness, design and architecture, composition and interfaces, code structure, performance, visibility. Use when writing new code, reviewing a diff, or justifying a design choice.","https:\u002F\u002Fgithub.com\u002FCrpaxton4\u002Fdevcontainer-features\u002Fblob\u002Fmain\u002Fplugins\u002Fodoo-dev\u002Fskills\u002Fprinciples\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":19},"01M75TQ0DVV793EWKKFN26408W","odoo-upgrade","Plan and run code upgrades of custom Odoo modules between major versions (16.0→17.0→18.0→19.0). Use to migrate or port a module or addon, for breaking changes, a module inventory, or an upgrade estimate or plan.","https:\u002F\u002Fgithub.com\u002FCrpaxton4\u002Fdevcontainer-features\u002Fblob\u002Fmain\u002Fplugins\u002Fodoo-dev\u002Fskills\u002Fodoo-upgrade\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":19},"01M75TPXTR66V72DA42QSDQDPM","odoo-upgrade-project","Human SOP for a whole Odoo upgrade project past the code port: staging database upgrade through upgrade.odoo.com, on-prem restore, cutover, go-live, support tickets and functional requirements. A planning reference.","https:\u002F\u002Fgithub.com\u002FCrpaxton4\u002Fdevcontainer-features\u002Fblob\u002Fmain\u002Fplugins\u002Fodoo-dev\u002Fskills\u002Fodoo-upgrade-project\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M75TPVQ93TAY7KDB6XYDTVMK","odoo-test-run","Run an Odoo module's unit tests and HttpCase browser tours on a throwaway database and return machine-checkable evidence: tests executed, tours executed, failure lines. Use before a PR, after a fix, or when a green run never said how many tests ran.","https:\u002F\u002Fgithub.com\u002FCrpaxton4\u002Fdevcontainer-features\u002Fblob\u002Fmain\u002Fplugins\u002Fodoo-dev\u002Fskills\u002Fodoo-test-run\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M75TPR5N29G38HDSCKYEC350","odoo-task-env","Stand up the working environment for one Odoo task: find work that already exists, create or reuse an isolated git worktree on the task branch, bring a runnable stack up. Use at the START of implementing any task, and whenever one is picked back up.","https:\u002F\u002Fgithub.com\u002FCrpaxton4\u002Fdevcontainer-features\u002Fblob\u002Fmain\u002Fplugins\u002Fodoo-dev\u002Fskills\u002Fodoo-task-env\u002FSKILL.md",[],[]]