ever-just/agentskills/everjust-odoo-shell-ops
Claude Code and agent skill by ever-just/agentskills
- community
- ext:[{"type":"plugin","description":"Custom plugin integration"}]
Checking that the SKILL.md file is still in the repository.
Operate an everjust.app (Odoo 19) tenant from the BOX SHELL (SSH + docker), the deploy-pipeline and box-ops layer. Use when the task needs bulk DB writes, DB-only page publishing, clearing the sitemap ir.attachment cache, creating an ir.cron, recovering a CI deploy whose rsync silently did not land, avoiding deploy-collisions across concurrent agents (gh run idle check, scoped git add), restarting Odoo to compile a QWeb edit, or fixing an nginx stale-inode after a config redeploy. Covers the odoo shell invocation, the COW-fork-overrides-generic gotcha, and the Deploy to Production pipeline. The deploy/ops layer around [[everjust-website-customization]] (which owns durable view/CSS/behavior customization from the shell). Prefer the MCP ([[everjust-agent-mcp]], [[everjust-website]]) for ordinary edits; drop to the shell when it cannot. Cross-references [[everjust-platform]], [[github-actions-ec2-deploy]].
Install
npx vskill@latest install ever-just/agentskills/everjust-odoo-shell-opsSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as ever-just/agentskills/everjust-odoo-shell-ops.
EVERJUST Odoo Shell Ops (Agent Skill)
Drive a live everjust.app tenant (Odoo 19 CE fork, one Postgres DB per tenant) from the box shell: SSH to the tenant's EC2 instance, then docker exec into the deployment-odoo-1 container. This is the infra and fallback lane, the things the everjust_agent_mcp MCP deliberately cannot do: bulk ORM writes, editing infra and layout views (header/footer), clearing the QWeb and attachment caches, creating ir.cron records DB-only, and landing addon file changes. The MCP path is preferred for ordinary content and SEO (see the boundary below); reach for the shell only when you have SSH and need raw ORM or file and deploy control.
This skill is about mechanics on the box, not the platform rules. The invariants (one DB per tenant, /odoo debrand, never self-escalate, group_ids not groups_id, custom everjust.mail.* stack, re-sweep on -u) live in [[everjust-platform]] and still apply here. A shell does not exempt you from them. On the connectdomain tenant the site is website id 1, domain https://connectdomain.app, container deployment-odoo-1, DB connectdomain.
When to use this skill
- Run a bulk or scripted DB write the MCP can't express in one call, e.g. rewrite every published page's
website_meta_*, backfill hundreds of rows, run an ORM migration. Pipe a Python script intoodoo shell. - Edit an infra or layout view: header, footer,
website.layoutxpaths,custom_code_head. These are structural QWeb the MCP does not surface as content. - Publish a page DB-only: create the
ir.ui.viewpluswebsite.pagepair directly (no git, no deploy) when you want it live on the next request. - Fix a header or footer that "won't change": a
website_id=1copy-on-write fork is overriding the generic view; you must find and edit the fork (see Recipe 3). - Clear a cache the ORM won't clear on its own: the compiled QWeb template cache (needs a container restart) or the
/sitemap.xmlir.attachment(needs an unlink). - Create an `ir.cron` DB-only for a pure-ORM recurring job (Odoo 19 shape; no
numbercall;safe_evalcode only). - Deploy an addon FILE change and, especially, recover a green-but-stale CI deploy where the rsync silently didn't land the file.
- Fix an nginx config on the box (config replaced by CI but the running container is pinned to the stale inode).
Do NOT use this skill for, and stop if the task is really:
- Ordinary content or SEO writes the MCP handles cleanly: set a page's copy, publish/menu/redirect, or per-page SEO metadata. Use [[everjust-website]] and [[everjust-website-seo]] through [[everjust-agent-mcp]]. The MCP is COW-safe, audited, and role-bounded; the shell is not. Only drop to it when the MCP genuinely can't.
- The platform rules or model shape: what
everjust.mail.*is, send gating, secret namespaces, ACL boundaries. That's [[everjust-platform]]; read it first. - The full GEO and AI-discoverability content program: llms.txt, JSON-LD, IndexNow, the sitemap content strategy. That's [[everjust-website-seo]]; this skill only covers the shell-level cache mechanics those depend on.
- Authoring the CI pipeline itself (the workflow YAML, secrets, health checks). That's [[github-actions-ec2-deploy]]; here we only use and recover the existing "Deploy to Production" run.
The box map (real, non-secret facts)
| Thing | Value on connectdomain | Notes | |
|---|---|---|---|
| Odoo container | deployment-odoo-1 | docker exec -i into it to run odoo shell; docker restart it to flush the compiled-QWeb cache. | |
| Nginx container | deployment-nginx-1 | Reverse proxy; config bind-mounted from the box. | |
| Compose dir on box | /opt/everjust/platform/deployment | docker compose runs from here; nginx configs under nginx/*.conf. | |
| Shared git checkout | /opt/everjust/platform | Multiple agents share it, scope git add, prefer a worktree (Pitfall 5). | |
| Odoo conf | /etc/odoo/odoo.conf (in container) | Present, but does not carry working DB creds on this box, pass --db_* inline (Recipe 1). | |
| Tenant DB | connectdomain | One DB per tenant; db_host=db (the compose Postgres service). | |
| Website | website id 1, https://connectdomain.app | One website per tenant. | |
| Deploy workflow | GitHub Actions "Deploy to Production", concurrency group deploy-production | Push to master triggers it; cancel-in-progress:false so runs queue, not cancel. |
Model and record types you touch from the shell: ir.ui.view (QWeb templates, incl. COW forks), website.page (URL-to-view binding plus publish/index), ir.attachment (the cached /sitemap.xml), ir.cron (scheduled ORM jobs), ir.config_parameter, ir.model (to resolve model_id for a cron).
Recipes
Placeholders: <box-ip> (tenant EC2 IP), ~/.ssh/<deploy-key>.pem (SSH key), <db-user> (Postgres role), $ODOO_DB_PW (export the DB password in your local env, never inline the literal). Everything runs as ubuntu@<box-ip>.
1. Open an Odoo shell and WRITE (the commit is on you)
Pipe a local Python file straight into odoo shell inside the container. Conf-only does not connect on this box, you must pass --db_host / --db_user / --db_password inline even though you also pass -c:
Inside the shell you get env (an Odoo Environment). The shell does NOT auto-commit, nothing you write persists until you call env.cr.commit():
For large arch or multi-line scripts, transfer as base64 to dodge shell-quoting hell (nested single and double quotes across ssh to docker exec to Python will otherwise mangle your <, >, ", $):
Inside a script, when you build an arch string that contains quotes or newlines, base64 the arch itself and base64.b64decode(...).decode() it in Python rather than embedding the raw XML in the command line.
2. Publish a page DB-only (view plus page, live on next request)
Create the QWeb view, then the website.page that binds a URL to it. A brand-new view or page compiles and renders on the next HTTP request, no restart needed:
Fetch https://connectdomain.app/pricing to confirm. New render is immediate; EDITS are not, see Recipe 4.
3. Fix a header or footer that "won't change", the COW-fork gotcha
A view can exist twice under the same `key`: a generic one (website_id = False) AND a website-specific copy-on-write fork (website_id = 1). The fork overrides the generic and is what actually renders. Editing the generic view changes nothing on the live site. Before editing ANY layout view, search for the website_id=1 fork of that key and edit THAT:
Real case on connectdomain: the footer existed as generic view 3753 AND COW fork view 4091; the live footer only changed once 4091 was edited. Hours were lost editing 3753 and seeing no change. Always resolve the fork first.
4. Make an EDIT actually render, restart the container
A brand-new view renders on next request, but an edit to an already-compiled template does NOT render until the compiled-QWeb cache is dropped. Cache-clear calls and registry signals are unreliable here; the reliable fix is a container restart:
Rule of thumb: created a view, fetch it; edited a view's arch, restart, then fetch. If you edited and the page looks unchanged, restart before you debug anything else.
5. Clear the /sitemap.xml cache (it's a cached ir.attachment)
/sitemap.xml is served from a cached ir.attachment (its url matches sitemap, TTL about 12h). Pages you just created do NOT appear in it until that attachment is cleared:
If new pages keep needing this, schedule it as an ir.cron (Recipe 6). The full sitemap and GEO content strategy is [[everjust-website-seo]]; this is just the cache-eviction mechanic it relies on.
6. Create an ir.cron DB-only (Odoo 19 shape)
Resolve model_id via ir.model._get(...). The code runs under safe_eval: no imports, no outbound HTTP, keep it to pure ORM:
Odoo 19: ir.cron no longer has `numbercall`, setting it raises. Because code is safe_eval (no import, no network), an outbound-HTTP job (e.g. an IndexNow POST) cannot live in an `ir.cron`, put that in a system cron on the box (a shell script plus crontab) instead, not here.
7. Deploy an addon FILE change, and recover a green-but-stale CI run
Normal path: push to master, GitHub Actions "Deploy to Production" ([[github-actions-ec2-deploy]]) rsyncs to the box and runs a scoped module upgrade. GOTCHA: the CI rsync sometimes silently does not land the file, the run is green and the module "loads," but the on-box file is still the old one. ALWAYS verify the actual on-box file after an addon deploy:
Manual recovery (rsync the addon up, scoped upgrade, restart to flush QWeb):
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/everjust-odoo-shell-ops/SKILL.md
Popularity
- Repository stars
- 3
- Repository forks
- 1
- 7-day trend score
- 7
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
pluginCustom plugin integration
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/ever-just/agentskills/everjust-odoo-shell-ops)