/be:maintenance-modefrom Backend Skills
A kill switch for a web app — one flag read by two gates (the API's, which protects the data, and the pages', which explains), never on the admin app or the paths that end an outage, a 503 with Retry-After and no-store, the maintenance page served from the proxy, robots.txt left reachable, a bypass URL that 404s on a bad token, both gates failing open, scheduled windows and notice, read-only mode as the gentler option, and the drill. Use when building, changing or running maintenance mode.
Ships in Backend Skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
One flag takes the product offline for users while operators keep working. Two gates read it: the API's refuses requests with a 503, which is what protects the data; the pages' answers with a maintenance page, which is what people see. And the switch never locks out the people who turn it off.
Before applying this skill, read the project's root AGENTS.md, the AGENTS.md closest to the files in question, and any doc they link for this skill's topic. Names, values and choices — budgets, tiers, tokens, voice, paths — come from those files, never from this skill.
feature-flags), and a window (startsAt, endsAt).{ enabled, startsAt, endsAt } to one fast key (redis), with no TTL — it's rewritten on every change, and an expiry would end maintenance mid-window. A frontend with no access to that key reads the API's public window instead, kept in memory for a few seconds with a short timeout.These answer during maintenance, always:
api-architecture).robots.txt and other static files. A 5xx on robots.txt makes Google stop crawling the whole site.The allowlist is prefix matches, checked before the flag is read, so exempt paths pay nothing. A path joins it only because ending the outage, keeping data, the maintenance page or the infrastructure needs it; everything else is gated by default.
Retry-After — the seconds until endsAt, or a default (30 minutes is a starting point) — and Cache-Control: no-store, so no cache keeps the outage. Never a 200: a crawler would index the maintenance page in place of the content, and a monitor would read it as healthy.api-architecture) with a stable code, a message and the window, so a client can show when service resumes. CORS headers go on it too, or a browser can't read it.GET requests get a bare 503. If the page can't be fetched, a line of plain text goes out with the 503 instead./maintenance-bypass?token=…, sets an httpOnly, Secure, SameSite=Lax cookie for 24 hours and redirects home. Both gates accept it, so an operator or a developer can use the live product while everyone else sees the page.feature-flags). Maintenance is off almost always, so failing closed would turn every store blip into an outage of its own (redis: a timeout is a failure).The gentler option, often the better one: reads keep working and only writes are refused, with a 503 and a code of their own so the UI can disable the forms and say why. It suits a migration of one area, a provider outage, or a slow move to new infrastructure. It's a second state of the same switch, never a second mechanism.
feature-flags).The two gates and the bypass route, in code, are in references/gates.md.
Retry-After and no-store; serve the page's HTML from the proxy; 404 a bad bypass token; fail both gates open and back a risky migration at the data layer; clear the window when ending early; announce planned windows; drill it.robots.txt; answer maintenance with a 200; rewrite to a prerendered page; return 401 or 403 from the bypass; give the mirror a TTL; build a second switch for emergencies; keep the site behind 503s for days.The flag's lifecycle and schedule feature-flags · the error envelope, webhooks and cron api-architecture · the mirror and failure directions redis · proxy and route-handler mechanics nextjs · constant-time comparison and the 404 backend-security · the bypass token as a secret env · deploys and rollback, which are not a maintenance flip devops · crawlers and 503 seo-aeo-geo.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub timonwa/engineering-skills --plugin be22 skills in this plugin
/access-controlAccess control for a Next.js API on Firebase — roles, relationships and attributes (RBAC, ReBAC, ABAC) behind permission verbs and one pure can(); guards as the only gate, 404 before 403; tenant scoping; invitations; escalation limits; two-person approval and access reviews; stale claims; API-key scopes; share links and passcodes; where plan and flag checks sit; UI gates that only hide; and tests. Use when adding a permission, role, guarded route, API key, share link, or a control only some people see./access-control-auditManually invoked. Access-control audit — guards on every route and Server Action (BFLA), 404 before 403 and tenant scoping (BOLA), allowlisted writes and projected reads (BOPLA), verbs never role names, roles that add up, escalation and invitations, claims and revocation, sessions and sign-in, API keys and share links, the plan and flag order, UI gates, data rules and the tests. Verifies each finding and writes a prioritised report./api-architectureHow an API route is built in a Next.js API — the fixed order of rate limit, authorise, validate, delegate, audit, respond; thin routes over services; the response envelope and typed errors; caching headers; concurrent edits; long-running work; cursor pagination and allowlisted sorts; resource paths, versions, deprecation and state-transition sub-routes; and what every new route ships with. Cron, webhooks and audit logs are references. Use when adding, changing or reviewing a route handler or the API layer's structure.Other plugins' skills for the same job