convex-deploy-guard

द्वारा get-convex

किसी भी डिप्लॉयमेंट-प्रभावित कमांड से पहले लक्षित Convex डिप्लॉयमेंट को वर्गीकृत और घोषित करें; प्रोड क्रियाओं के लिए ताज़ा स्पष्ट सहमति; सत्र रीड-ओनली मोड।

npx skills add https://github.com/get-convex/agent-skills --skill convex-deploy-guard

Deployment target guard

Deployments are not interchangeable, and most incidents start with a command aimed at the wrong one. Every Convex project has several (personal dev, preview, prod — often across multiple projects on one machine). This guard is the standing discipline: identify, announce, then act — and treat prod as consent-gated, per action, per session.

Workflow

  1. IDENTIFY before you act: read CONVEX_DEPLOYMENT in .env.local, convex.json, and whether CONVEX_DEPLOY_KEY is set; or call the official Convex MCP status tool. Classify the target: local-anonymous | dev | preview | prod. If two sources disagree, resolve before proceeding.
  2. ANNOUNCE in one line before any deployment-affecting command: target: dev (joyful-capybara-123, personal dev). Never run the command in the same breath as discovering the target — announce first.
  3. PROD needs a FRESH explicit yes: before npx convex deploy (when it resolves to prod), npx convex run --prod, env set on prod, snapshot import/export on prod, or starting the MCP with prod access — state exactly what will change on which deployment and get an explicit yes in THIS session. A yes given earlier, or for a different target, does not carry.
  4. MCP safety defaults: start the official MCP scoped non-prod (--deployment dev). The two prod flags are DIFFERENT risk levels — keep them split: a read-only prod audit (advisor/insights reading data/logs/insights) passes ONLY --cautiously-allow-production-pii (read tools); --dangerously-enable-production-deployments (which enables MUTATING prod tools) stays OFF unless the user explicitly asked to CHANGE prod this session. Never pair them by default — 'look at prod' must not silently grant 'mutate prod'.
  5. READ-ONLY session mode: when the user says 'read-only' / 'don't change anything', honor it absolutely for the rest of the session — no deploy, no env set/remove, no mutations via run, no imports; start the MCP with --disable-tools run,envSet,envRemove.
  6. Wrong-deployment diagnosis: when a deploy 'didn't change anything', do NOT re-deploy harder. Re-run step 1 — the deploy almost certainly landed on a different deployment than the one being observed.
  7. Ambiguity = stop: if you cannot determine which deployment a command will hit, find out (status tool; compare npx convex env list fingerprints) — never guess.

Rules

  • Classify and announce the target BEFORE every deployment-affecting command — identification and action are two separate steps.
  • Prod consent is per-action, per-target, per-session: state what changes where, get a fresh explicit yes.
  • Keep the two prod MCP flags split by risk: --cautiously-allow-production-pii (read-only) for an audit; --dangerously-enable-production-deployments (mutating) only when the user explicitly asks to change prod. Both are user-spoken-only; default every MCP start to a non-prod deployment selector.
  • Read-only mode, once requested, is absolute for the session — including 'harmless' mutations.
  • A deploy that seemed to do nothing means the WRONG deployment changed — diagnose the target, don't re-run.
  • This guard composes: ship, env, migrate, and seed run it as their step 0; it is not itself a deploy tool.

get-convex की और Skills

convex-performance-audit
get-convex
कॉन्वेक्स प्रदर्शन का ऑडिट करता है: रीड, सब्सक्रिप्शन, राइट कंटेंशन और फंक्शन सीमाएँ। धीमी सुविधाओं, इनसाइट्स निष्कर्षों, OCC विरोधों या रीड एम्प्लीफिकेशन के लिए उपयोग करें।
developmentdatabasedata-analysis
convex
get-convex
सामान्य Convex अनुरोधों को सही प्रोजेक्ट कौशल पर रूट करता है। इसका उपयोग तब करें जब उपयोगकर्ता पूछता है कि किस Convex कौशल का उपयोग करना है या कोई अपर्याप्त रूप से निर्दिष्ट Convex ऐप कार्य देता है।
developmentdatabase
convex-setup-auth
get-convex
Convex प्रमाणीकरण, पहचान मैपिंग और पहुँच नियंत्रण सेट करता है। Convex ऐप में लॉगिन, प्रमाणीकरण प्रदाताओं, उपयोगकर्ता तालिकाओं, संरक्षित फ़ंक्शन या भूमिकाओं के लिए उपयोग करें।
developmentdatabaseapi
convex-quickstart
get-convex
एप्लिकेशन में Convex बनाता या जोड़ता है। नए Convex प्रोजेक्ट्स, npm create convex@latest, फ्रंटएंड सेटअप, env वेरिएबल्स, या पहली npx convex dev रन के लिए उपयोग करें।
developmentdatabase
convex-migration-helper
get-convex
Convex स्कीमा और डेटा माइग्रेशन की योजना widen-migrate-narrow और @convex-dev/migrations के साथ बनाता है। ब्रेकिंग स्कीमा परिवर्तनों, बैकफिल, टेबल रीशेपिंग या जीरो-डाउनटाइम रोलआउट के लिए उपयोग करें।
developmentdatabase
convex-create-component
get-convex
पुन: प्रयोग करने योग्य Convex घटकों का निर्माण करता है जिनमें पृथक तालिकाएँ और ऐप-मुखी API होते हैं। नए घटकों, पुन: प्रयोग करने योग्य बैकएंड मॉड्यूल, एकीकरण या घटक सीमा कार्य के लिए उपयोग करें।
developmentdatabase
convex-migrate
get-convex
तैनात Convex ऐप पर @convex-dev/migrations का उपयोग करके स्कीमा माइग्रेट करें और डेटा बैकफिल करें।
developmentdatabase
convex-optimize
get-convex
मौजूदा Convex ऐप का ऑडिट और अनुकूलन करें: सुरक्षा, स्केल, अपग्रेड, अवलोकन क्षमता।