ever-just/agentskills/everjust-control-plane
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 the everjust.app CONTROL PLANE — the FastAPI service at the everjust.app root that runs the public marketing site, self-serve signup, Stripe billing, tenant provisioning, and suspend/resume. Use when the task is about signup or checkout, Stripe prices/webhooks/coupons, creating or deleting a tenant workspace, why a paying customer has no workspace, the in-app billing manager (Settings → Billing / everjust_billing / /billing/portal), activating a feature package on a tenant, subdomain validation and reserved names, or the control-plane's own env vars and data tables. This is the layer ABOVE the tenants — everything here happens BEFORE a workspace exists or ACROSS all of them. It is NOT Odoo: for work inside a provisioned tenant read [[everjust-platform]] and [[everjust-agent-mcp]]; for box-shell tenant ops read [[everjust-odoo-shell-ops]]. Money moves here, so read the invariants before touching signup, pricing, or the webhook.
Install
npx vskill@latest install ever-just/agentskills/everjust-control-planeSemi-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-control-plane.
everjust.app control plane — signup, billing, provisioning
The control plane is a FastAPI service (control-plane/ in ever-just/ww.everjust.app) that serves https://everjust.app itself: the marketing site, /docs, /signup, the Stripe webhook, and the code that creates tenant databases. Tenants live at https://<subdomain>.everjust.app and are Odoo; the control plane is not.
Self-serve signup is live and charges real cards. A mistake in this codebase either takes money without delivering a workspace, delivers a workspace without taking money, or bills the wrong amount. Treat every change to signup, pricing, or the webhook as a money change.
When to use this skill
- Anything about signup / checkout / pricing tiers / Stripe (prices, coupons,
webhooks, the New Business step-up, promotion codes).
- Provisioning: creating a tenant, a signup that paid but has no workspace,
personalization, the "is it ready yet" question, DNS, the welcome email.
- The in-app billing manager —
Settings → Billinginside a tenant, the
everjust_billing addon, POST /billing/portal, billing tokens.
- Tenant lifecycle across the fleet: suspend on dunning failure, resume on
recovery, activating a feature package on an existing tenant.
- Control-plane env vars, data tables, tests, or deploy behavior.
Not this skill: editing records, mail, website content, or anything else inside one workspace — that's [[everjust-platform]] (rules) + [[everjust-agent-mcp]] (the toolset) or [[everjust-odoo-shell-ops]] (box shell).
The shape (read this before your first change)
| Fact | Consequence | |
|---|---|---|
One control-plane container, built from control-plane/, restart: unless-stopped | A code change needs a rebuild, not just a restart | |
| It mounts `/var/run/docker.sock` | Provisioning runs docker exec <odoo container> odoo … — it drives Odoo's CLI from outside | |
| Config is read from env at import time | Flipping a flag in deployment/.env does nothing until the container restarts | |
stripe.api_key = os.environ["STRIPE_SECRET_KEY"] — bracket, not `.get` | With no key the module raises KeyError at import and the app won't start. tests/conftest.py sets dummy env for this reason | |
Control tables live in the `postgres` database; each tenant is its own DB named exactly <subdomain> | provisioning._pg_connect() defaults to postgres; _pg_connect(sub) reaches into one tenant | |
Changes under control-plane/ classify as deploy class `light` | Control-plane deploys rebuild that container and do not stop Odoo — no tenant sign-in outage. Mixing in an addons/ change escalates the whole push (see [[github-actions-ec2-deploy]] and the repo's zero-downtime-deploy skill) |
Control-plane tables, all auto-created on first use (CREATE TABLE IF NOT EXISTS inside each accessor — there are no migrations to run):
| Table | Module | Holds | |
|---|---|---|---|
everjust_pending_signups | signup_store.py | org, subdomain, admin email, admin password, personalization. 7-day TTL | |
everjust_handled_checkouts | signup_store.py | Claimed Stripe checkout ids — webhook idempotency | |
everjust_billing_customers | billing_store.py | subdomain → Stripe customer id |
⚠️deployment/scripts/backup_all.shskips thepostgresandcontroldatabases, so none of the three tables above is backed up. Losing themloses in-flight signups (including the only copy of a paying customer's adminpassword) and the billing customer map. Say so if you touch backups; don'tquietly assume they're covered.
The money path, end to end
Design points that are load-bearing — do not "simplify" them:
- The webhook acks in milliseconds and provisions in the background.
Provisioning takes ~2 minutes; Stripe's webhook timeout is ~10 seconds. Doing it inline made Stripe time out and retry, i.e. double-provision attempts.
- Peek, don't pop. The pending row is deleted only after provisioning
succeeds. It holds the customer's admin password — the only copy — so a crash mid-provision leaves it recoverable instead of stranding a paid customer.
- Two idempotency guards, not one.
database_existsonly flips true after
CREATE DATABASE, so it cannot dedupe deliveries that race during provisioning; claim_checkout is the atomic claim that does.
- `PAID BUT UNPROVISIONABLE` returns 500 on purpose. An unresolvable token
must keep paging (via Stripe retries) rather than be silently acked.
- A `SubdomainReserved` error is a feature. Two concurrent signups for the
same address must not both reach checkout — only one can ever provision, so the second would be charged for nothing.
Pricing and plan handling
content.PRICING in control-plane/content.py is the single source of truth for tiers, amounts, and copy — templates, JSON-LD, llms.txt, the docs, and scripts/stripe_bootstrap_prices.py all read it. Change a price there, in one place.
Stripe price IDs come from env, one per tier slug: STRIPE_PRICE_AGENTS / STRIPE_PRICE_STANDARD / STRIPE_PRICE_NEW_BUSINESS. Create them idempotently with python3 control-plane/scripts/stripe_bootstrap_prices.py (stable per-tier lookup_key; re-running finds the existing price).
Two deflection rules exist so a bad request can never overbill:
_valid_plan()— a garbled, tampered, or unknown plan slug does not
fall back to the priciest tier. It deflects to /walkthrough (409 JSON for the embedded path, 307 for the form path).
_price_for_plan()— a tier with no configured price returns""and also
deflects. It must never fall back to the legacy single STRIPE_PRICE_ID constant, which is a different amount. (That constant is now referenced nowhere but its own definition — dead, kept only as documentation of the trap.)
New Business ($599/mo, businesses registered <12 months) is encoded as a Stripe SubscriptionSchedule: 12 iterations of the New Business price, then an open-ended Standard phase, end_behavior="release". It is deliberately best-effort and undercharge-safe — if the schedule call fails, the customer stays on the flat $599 and the log emits a CRITICAL saying a manual step-up is owed at month 12. Never make this fatal to a checkout the customer already paid. The code verifies the edit produced ≥2 phases; a 1-phase result is a silent "step-up will never happen" bug and is logged as CRITICAL too.
Checkout uses allow_promotion_codes=True and payment_method_collection="if_required", so a 100%-off promotion code makes an account free with no card collected. Audit coupons before assuming revenue.
Signup gating
SELF_SERVE_SIGNUP defaults to off in code and is set to 1 in deployment/.env on the server. The repo therefore always looks gated while production is live and charging. Trust the running site, not the default. Kill switch: remove the var from deployment/.env and restart the control-plane container — it is read once at import, so a restart is mandatory.
Provisioning: what actually happens
Refuses invalid/reserved subdomains and refuses to touch an existing DB. Then:
Essential (a failure here is a real provisioning failure):
docker exec … odoo -d <sub> -i EVERJUST_MODULES --stop-after-init— creates
the DB and installs the base stack. The brand satellites arrive via Odoo's dependency + auto_install resolution, not by being listed.
_set_admin_credentials· 3._configure_mail· 4._configure_dms
Best-effort (each logs, none blocks — the customer has paid, they get a tenant): _apply_company_profile → _record_personalization → _install_personalized_apps → _apply_website_branding (SSRF-guarded fetch — keep the guard) → _configure_billing → _provision_nextcloud → ensure_dns → _prewarm_assets
Last, always last: _mark_provisioned writes everjust.provisioned = "1" into the tenant's ir_config_parameter. /status keys off that, not off pg_database — the DB row appears within seconds of CREATE DATABASE, roughly 100 s before modules finish installing, and keying off it sent customers to a half-built workspace that errored on login. Never move this step earlier.
Module selection is allow-listed. personalized_modules() maps the captured industry + goals through INDUSTRY_MODULES / GOAL_MODULES (falling back to DEFAULT_MODULES), then filters everything through ALLOWED_MODULES — so a customer-supplied string can never install an arbitrary module. Any tenant that gets crm also gets CRM_ECOSYSTEM_MODULES (site form, livechat, events, campaigns) so a pipeline is never delivered with no lead sources.
_prewarm_assets exists because a brand-new tenant never goes through the deploy pipeline's prewarm, so its first asset compile happened on the customer's own first login — observed racing personalization's module installs into an SCSS failure. Compiling once, after installs settle, removes the race.
Subdomain rules
^[a-z0-9][a-z0-9-]{1,38}[a-z0-9]$, plus a reserved set: www app api admin mail ftp staging test docs status help. validate_subdomain() is the only gate — call it before any operation that takes a subdomain, especially before anything that shells out to odoo -d <name>: Odoo's -d silently creates a database that doesn't exist, so a typo'd subdomain spins up an orphan tenant. enable_features() guards this explicitly; copy that pattern.
Billing manager (the tenant-facing half)
Addon addons/everjust_billing/ adds Settings → Billing inside a tenant. The chain:
The token is `HMAC-SHA256(BILLING_PORTAL_SECRET, subdomain)` — computed by the shared control-plane/billing_token.py:compute() so the endpoint and provisioning can never drift, compared with hmac.compare_digest, stored in the tenant as ir.config_parameter everjust.billing_token.
Why this design, and what you must not undo:
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/everjust-control-plane/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-control-plane)