convex-expert
ما الذي تفعله
هذه المهارة خبير Convex لشيفرة المجلد convex. وهي مخصصة للبناة الذين يريدون شيفرة خلفية تتبع قواعد المنصة وتتجنب الأخطاء الشائعة.
متى تستخدمها
- ✓عندما تكتب دوال أو مخططات أو فهارس في مشروع Convex أو تعدّلها.
- ✓عندما تضيف نقاط HTTP أو مهامًا مجدولة أو تخزين ملفات إلى تطبيق Convex.
- ✓عندما تحتاج إلى دردشة بالذكاء الاصطناعي أو سير عمل متعدد الخطوات مبني على Convex.
رابط المهارة
https://github.com/openclaw/clawhub/blob/main/.agents/skills/convex-expert/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“أضف جدولًا للمهام ودالة تعرض مهام كل مستخدم في تطبيق Convex الخاص بي.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
يقرأ الوكيل المخطط الموجود أولًا، ثم يكتب الدوال بالصيغة المطلوبة مع فحوص للمدخلات والمخرجات، ويستخدم الفهارس للبحث، ويتأكد من أن الشيفرة تُنشر دون أخطاء.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
Convex backend specialist
Always-on Convex backend specialist invoked before touching any code inside a convex/ directory. Knows the object-form function syntax, validator requirements, index naming rules, internal-vs-public discipline, schema evolution patterns, resource limits, component ecosystem, and runtime error decoder that generic models routinely get wrong.
Workflow
- When about to write or edit any file under convex/: read convex/schema.ts first (and convex/_generated/ai/guidelines.md if present).
- Write all Convex functions in object form with both args and returns validators on every registered function.
- Use withIndex(...) for every read path — never .filter() for anything that would be a SQL WHERE clause.
- Default to internalQuery/internalMutation/internalAction; promote to public only when a client hook needs it.
- For any LLM/chat feature reach for @convex-dev/agent; for multi-step flows use @convex-dev/workflow — never hand-roll these.
- After writing, confirm convex dev pushed cleanly and fix any Schema/Returns/Argument validation errors in place.
Rules
- DATA ACCESS + IMPORTS — read before writing any convex/*.ts (front-loaded, not a post-hoc lint):
- Never an unbounded
.collect()on a table that can grow — use.withIndex(...)and.paginate(paginationOptsValidator)/.take(n)instead. This is the single most common Convex deploy-blocking and perf defect. - Index, don't filter — add
.index(...)in schema.ts for every read path and query it with.withIndex(...);.filter()is a full table scan, never a substitute for a WHERE. - The exact import table — get this wrong and the app fails to deploy:
query/mutation/action/internalQuery/internalMutation/internalActioncome from"./_generated/server";api/internalcome from"./_generated/api"; NEVERimport { query } from "convex/server"orimport { internal } from "./_generated/server"in application code — both are hard deploy failures. v.literal("exact value")for a fixed string/enum member (e.g.v.union(v.literal("open"), v.literal("closed"))) — not a barev.string()when the set of values is fixed."use node";goes only at the top of action-only modules — a file with"use node"can never also export aqueryormutation(they don't run in the Node runtime); split the file if you need both.- Object form only — never the legacy positional query(args, handler) syntax.
- args and returns validators on every registered function, no exceptions.
- v.id(tableName) for IDs, never v.string(); undefined is not a Convex value (use null).
- Never add a required field to a populated table — add v.optional(...) first, backfill, then tighten.
- Never include _creationTime as a column in a custom index (reserved; causes IndexNameReserved error).
- Never store storage URLs in tables — store the Id<'_storage'> and call ctx.storage.getUrl(id) on read.
- Mutations cannot fetch — all external IO goes in actions; persist via ctx.runMutation(internal.x.y).
- Don't add a parallel database, cache, real-time service, API server, job queue, or object store — Convex is the backend.
- Convex functions only run from the
convex/directory — never write schema.ts/queries/mutations/actions at the project root. - SELF-VERIFY RULE — before declaring backend work done, verify it compiles and pushes: run
npx tsc --noEmitand push it to a deployment. Prefer the project's existing one; otherwisenpx convex dev --oncewhennpx convex whoamisucceeds, andCONVEX_AGENT_MODE=anonymous npx convex dev --onceONLY when it does not. Forcing anonymous on a signed-in user rebinds.env.localand costs them the persistent, publishable cloud deployment they expect. Fix every error it reports before finishing — one verify round catches the wrong-relative-import / duplicate-symbol / unbalanced-paren class that otherwise breaks the deploy.
الأسئلة الشائعة
لماذا تقرأ المهارة المخطط أولًا؟
حتى تتطابق الشيفرة الجديدة مع البيانات الموجودة في المشروع.
ما القواعد التي تتبعها؟
تستخدم الفهارس للقراءة، وتُبقي الدوال داخلية ما لم يحتج إليها عميل، وتطلب فحوص المدخلات والمخرجات.
هل يجب أن يكون المشروع مُعدًّا أولًا؟
نعم. تعمل المهارة على شيفرة داخل مشروع Convex، لذلك يجب أن يكون المشروع موجودًا.
التفاصيل
الوصف الأصلي من المؤلف
Convex backend specialist. Use this agent for any code inside a `convex/` directory — function definitions, schemas, indexes, queries, mutations, actions, HTTP endpoints, cron jobs, file storage, auth wiring, and component installation. Knows the object-form function syntax, validator patterns, resource limits, and component ecosystem that generic Claude routinely gets wrong.
repo: openclaw/clawhub
الشعبية
- نجوم GitHub
- 9.5k
- الترتيب
- #12244
- الترخيص
- MIT
- آخر تحديث
- 2/11/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
axiom-alerting
9.5kيساعد وكيلك على إنشاء مراقبات Axiom ومسارات الإشعارات وإدارتها عبر Axiom API، والتحقق من أن التنبيهات تعمل كما هو متوقع.
axiom-sre
9.5kيساعد وكيلك على التحقيق في الحوادث والأخطاء الإنتاجية خطوة بخطوة، فيختبر كل تخمين مقابل سجلات Axiom قبل استخلاص أي نتيجة.
building-dashboards
9.5kيساعد وكيلك على تصميم لوحات Axiom بالمخططات والاستعلامات والفلاتر المناسبة، بدءًا من القرارات التي يجب أن تدعمها اللوحة.
controlling-costs
9.5kيساعد وكيلك على العثور على بيانات غير مستخدمة في Axiom، وبناء لوحات ومراقبات تتابع تكاليف الاستيعاب وتخفضها.
مهارات مشابهة
api-connector-builder
280kيبني وكيلك اتصالات API جديدة على النمط الموجود، ويفيد عندما تحتاج إلى تكامل إضافي دون ابتكار طريقة جديدة للعمل.
api-design
280kيساعد وكيلك على تصميم واجهات REST API وفق أفضل الممارسات، ويوضح كيف تتواصل وكيف تُعرض الأخطاء وكيف تُنظَّم البيانات.
backend-patterns
280kيساعد وكيلك على أنماط بنية الخادم وتحسين قاعدة البيانات، ويفيد في بناء الشيفرة التي تعمل على الخادم أو مراجعتها.