{"product_id":"master-convex-ai-apps-best-practices-production-patterns","title":"Master Convex AI Apps: Best Practices \u0026 Production Patterns","description":"\u003ch3\u003eMaster Convex AI Apps: Best Practices \u0026amp; Production Patterns\u003c\/h3\u003e\n\n\u003cp\u003eThis AI agent skill package provides developers with the tools and guidelines needed to improve the performance and reliability of Convex applications. It enforces best practices and production patterns through the @convex-dev\/eslint-plugin, significantly assisting in code reviews and the development of robust applications.\u003c\/p\u003e\n\n\u003ch4\u003eWhat this skill does\u003c\/h4\u003e\n\u003cul\u003e\n  \u003cli\u003eEnforces validators on every function, ensuring arguments and returns are explicitly checked.\u003c\/li\u003e\n  \u003cli\u003eUtilises indexes for database reads, ensuring efficient data retrieval via the `withIndex` method.\u003c\/li\u003e\n  \u003cli\u003eEncourages idempotent mutations, aiding safe retries by checking if the desired state is already achieved.\u003c\/li\u003e\n  \u003cli\u003eSupports patch operations without pre-reading, thus reducing unnecessary data accesses.\u003c\/li\u003e\n  \u003cli\u003eFacilitates concurrent writes using `Promise.all` to enhance performance.\u003c\/li\u003e\n  \u003cli\u003eSchedules internal tasks securely, avoiding unauthorized public client interactions.\u003c\/li\u003e\n  \u003cli\u003ePromotes the use of thin wrappers for separating authentication and business logic.\u003c\/li\u003e\n  \u003cli\u003eAdvises on handling client-readable errors using `ConvexError`.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch4\u003eWho it is for\u003c\/h4\u003e\n\u003cp\u003eThis skill is intended for developers and teams working with AI coding assistants such as Claude Code, Cursor, and Codex, who seek to implement Convex applications with reliable patterns and practices. It is particularly useful for those involved in backend development, application optimisation, and codebase maintenance.\u003c\/p\u003e\n\n\u003ch4\u003eUse cases\u003c\/h4\u003e\n\u003cul\u003e\n  \u003cli\u003eSupporting developers in conducting thorough code reviews of Convex applications.\u003c\/li\u003e\n  \u003cli\u003eAssisting teams in setting up or improving ESLint configurations to enforce consistent best practices.\u003c\/li\u003e\n  \u003cli\u003eReducing write conflicts and optimising query performance in existing codebases.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch4\u003eTechnical details\u003c\/h4\u003e\n\u003cul\u003e\n  \u003cli\u003eTools used: @convex-dev\/eslint-plugin, Convex schemas and functions.\u003c\/li\u003e\n  \u003cli\u003eApplicable for AI coding agents: Claude Code, Cursor, Codex.\u003c\/li\u003e\n  \u003cli\u003eFocus areas include using validators, indexes, idempotent operations, and error handling patterns.\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003c!-- mcpcart:static-blocks:start --\u003e\n\u003chr\u003e\n\u003ch3\u003eSource \u0026amp; Licence\u003c\/h3\u003e\n\u003cp\u003eThis package is built on open-source work published by \u003cstrong\u003ewaynesutton\u003c\/strong\u003e (\u003ca href=\"https:\/\/github.com\/waynesutton\/builder-skills\" rel=\"nofollow noopener\" target=\"_blank\"\u003ewaynesutton\/builder-skills\u003c\/a\u003e) and distributed under \u003cstrong\u003eApache-2.0\u003c\/strong\u003e. The original licence text and copyright notice are included in your download.\u003c\/p\u003e\n\u003cp\u003ePersonal and commercial use, modification and redistribution are permitted under the Apache License 2.0, which also includes an express patent grant. Attribution and any NOTICE file must be retained.\u003c\/p\u003e\n\u003cp\u003eYour purchase covers curation, licence verification, packaging, documentation and instant delivery. It does not grant exclusive rights to the underlying open-source code, which remains available under its original licence.\u003c\/p\u003e\n\u003ch3\u003eDelivery \u0026amp; Support\u003c\/h3\u003e\n\u003cul\u003e\n\u003cli\u003e\n\u003cstrong\u003eDelivery:\u003c\/strong\u003e instant — a secure download link is emailed to you as soon as payment is confirmed.\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eFormat:\u003c\/strong\u003e ZIP archive containing the skill files, documentation and the original licence.\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eSupport:\u003c\/strong\u003e \u003ca href=\"mailto:support@mcpcart.com\"\u003esupport@mcpcart.com\u003c\/a\u003e — we aim to reply within 2 business days.\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eUpdates:\u003c\/strong\u003e updates are included only where stated on this page.\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch3\u003eRefunds\u003c\/h3\u003e\n\u003cp\u003eThis is a digital product delivered immediately after purchase. By completing your order you request immediate delivery and acknowledge that, once the download has been accessed, the statutory right to cancel no longer applies to the extent permitted by law. Refund requests are handled in accordance with our published Refund Policy.\u003c\/p\u003e\n\u003cp style=\"font-size:0.85em;color:#666;\"\u003eClaude, Codex, Gemini and Cursor are trademarks of their respective owners. MCP Cart is an independent marketplace and is not affiliated with, endorsed by, or sponsored by any of them. Compatibility references describe interoperability only.\u003c\/p\u003e\n\u003c!-- mcpcart:static-blocks:end --\u003e","brand":"MCP Cart","offers":[{"title":"Default Title","offer_id":53058707521847,"sku":"MCP-WAYNESUTTON-BUILDER-SKILLS-CONVEX-BEST-PRACTICES","price":52.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0981\/3950\/4951\/files\/MSnCcqb2ZTOMV6nq1vl19_34b7a4ef48b447c78a10f65efb3388c1.jpg?v=1790586264","url":"https:\/\/mcpcart.com\/products\/master-convex-ai-apps-best-practices-production-patterns","provider":"SPF PRO","version":"1.0","type":"link"}