ever-just/agentskills/everjust-odoo-shell-ops

Claude Code and agent skill by ever-just/agentskills

Trust tier 2
  • community
  • ext:[{"type":"plugin","description":"Custom plugin integration"}]
LLM review pending
Source check pending

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-ops

Semi-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 into odoo shell.
  • Edit an infra or layout view: header, footer, website.layout xpaths, custom_code_head. These are structural QWeb the MCP does not surface as content.
  • Publish a page DB-only: create the ir.ui.view plus website.page pair 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=1 copy-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.xml ir.attachment (needs an unlink).
  • Create an `ir.cron` DB-only for a pure-ORM recurring job (Odoo 19 shape; no numbercall; safe_eval code 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)

ThingValue on connectdomainNotes
Odoo containerdeployment-odoo-1docker exec -i into it to run odoo shell; docker restart it to flush the compiled-QWeb cache.
Nginx containerdeployment-nginx-1Reverse proxy; config bind-mounted from the box.
Compose dir on box/opt/everjust/platform/deploymentdocker compose runs from here; nginx configs under nginx/*.conf.
Shared git checkout/opt/everjust/platformMultiple 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 DBconnectdomainOne DB per tenant; db_host=db (the compose Postgres service).
Websitewebsite id 1, https://connectdomain.appOne website per tenant.
Deploy workflowGitHub Actions "Deploy to Production", concurrency group deploy-productionPush 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:

bash
cat script.py | ssh -i ~/.ssh/<deploy-key>.pem ubuntu@<box-ip> \
'docker exec -i deployment-odoo-1 odoo shell -d connectdomain --no-http \
-c /etc/odoo/odoo.conf \
--db_host=db --db_user=<db-user> --db_password="$ODOO_DB_PW"'

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():

python
# script.py, piped into odoo shell
pages = env['website.page'].search([('website_published', '=', True)])
for p in pages:
if not p.website_meta_title:
p.website_meta_title = f"{p.name} | Connect Domain"
env.cr.commit() # REQUIRED, or the whole write is silently rolled back
print("updated", len(pages))

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 <, >, ", $):

bash
# encode locally
B64=$(base64 -i big_arch_script.py)
# decode and run on the box (single-quoted heredoc keeps it intact through both hops)
ssh -i ~/.ssh/<deploy-key>.pem ubuntu@<box-ip> \
"echo $B64 | base64 -d | docker exec -i deployment-odoo-1 odoo shell -d connectdomain \
--no-http -c /etc/odoo/odoo.conf --db_host=db --db_user=<db-user> --db_password=\"\$ODOO_DB_PW\""

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:

python
view = env['ir.ui.view'].create({
'name': 'Pricing Page',
'type': 'qweb',
'key': 'website_cd_pricing.pricing', # website_<addon>.<key>
'website_id': 1, # scope to this site (see Pitfall 2 / COW)
'arch': '<t name="Pricing" t-name="website_cd_pricing.pricing">'
'<t t-call="website.layout"><div id="wrap" class="oe_structure">'
'<section class="s_text_block"><h1>Pricing</h1></section>'
'</div></t></t>',
})
env['website.page'].create({
'url': '/pricing',
'view_id': view.id,
'website_id': 1,
'website_published': True,
'is_published': True,
'website_meta_title': 'Pricing | Connect Domain',
'website_meta_description': 'Bring-your-own-domain onboarding. Automatic DNS, SSL and edge.',
})
env.cr.commit()

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:

python
key = 'website_cd_footer.cd_footer'
generic = env['ir.ui.view'].search([('key','=',key),('website_id','=',False)])
fork = env['ir.ui.view'].search([('key','=',key),('website_id','=',1)])
print('generic', generic.ids, 'fork', fork.ids)
target = fork or generic # the fork wins if it exists, edit the fork
target.write({'arch': '<the new arch>'})
env.cr.commit()

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:

bash
ssh -i ~/.ssh/<deploy-key>.pem ubuntu@<box-ip> 'docker restart deployment-odoo-1'

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:

python
env['ir.attachment'].search([('url','ilike','sitemap')]).unlink()
env.cr.commit()
# then re-fetch https://connectdomain.app/sitemap.xml to regenerate it

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:

python
cron = env['ir.cron'].create({
'name': 'Clear sitemap cache',
'model_id': env['ir.model']._get('ir.attachment').id,
'state': 'code',
'code': "env['ir.attachment'].search([('url','ilike','sitemap')]).unlink()",
'interval_number': 12,
'interval_type': 'hours',
'active': True,
'nextcall': fields.Datetime.now(),
# NOTE: do NOT set 'numbercall', the field was removed in Odoo 19.
})
env.cr.commit()

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:

bash
ssh -i ~/.ssh/<deploy-key>.pem ubuntu@<box-ip> \
'docker exec deployment-odoo-1 grep -n "MY_MARKER" /path/to/addon/views/foo.xml || echo STALE'

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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/ever-just/agentskills/everjust-odoo-shell-ops/badge)](https://verified-skill.com/skills/ever-just/agentskills/everjust-odoo-shell-ops)

Something wrong with this skill or its page? Tell us.