replica-backend
ما الذي تفعله
تبني هذه المهارة الخلفية لتطبيق جديد، بما في ذلك التسجيل والصلاحيات والمدفوعات والبريد. وهي مخصصة للمطورين الذين يبنون منتجًا ويريدون إعدادات أمان افتراضية وقائمة تحقق قبل الإطلاق.
متى تستخدمها
- ✓عندما تحتاج إلى إضافة تسجيل دخول أو إعادة تعيين كلمة المرور أو تسجيل عبر OAuth إلى تطبيقك.
- ✓عندما تريد إعداد ترحيلات قاعدة البيانات وقواعد الوصول على مستوى الصف.
- ✓عندما تريد ربط مدفوعات Stripe أو إرسال رسائل البريد المعاملاتية بمفاتيحك الخاصة.
رابط المهارة
https://github.com/Jakeschincariol/replica-skill/blob/main/replica-backend/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“هل يمكنك إعداد التسجيل مع التحقق من البريد وإعادة تعيين كلمة المرور ومدفوعات Stripe التجريبية لتطبيقي؟”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
يكتب الوكيل ترحيلات قاعدة البيانات وكود الخادم وفحوص الوصول، ويحدّث قائمة تحقق للخلفية. أنت تنشئ حسابات Stripe أو Supabase أو البريد ومفاتيحها بنفسك، ويكتب الوكيل ملف بيئة نموذجيًا فيه أسماء المتغيرات دون قيم.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
replica-backend
Reads replica/architecture.md. Writes migrations and server code, and keeps
replica/backend.md (checklist below) up to date.
The rules
- Official, public APIs only, with the user's own keys. Never call the original app's private endpoints, never reuse its OAuth client, never proxy through it.
- The user creates accounts and keys. Claude never signs up for services,
never types a password, card or live key. The user creates the Stripe,
Supabase, Resend or Google Cloud project and puts keys in
.env.local. Claude writes.env.examplewith every variable name and no values. - Test mode first. Stripe test keys and test cards until replica-deploy.
Auth
- Email sign up with verification, password reset, magic link if the original has it. OAuth (Google, Apple) with the user's own developer apps.
- Sessions: http-only secure cookies. Sign out everywhere.
- Roles and teams if the recon map has them: owner, admin, member, with one function that answers "can this user do this to this record".
- Account deletion that actually deletes. Apple requires it for apps with sign up.
Database
- Migrations from
architecture.md, checked in, run by a script. - Access rules on every table: row level security policies on Supabase, or the authorisation function called in every query. Test it: a second user must get nothing back.
- Seed script with realistic fake data (no real people).
- Backups on (the host's daily backups count, check they are enabled).
Payments
- Stripe Checkout for sign up to a plan, the Customer Portal for changes and cancelling. Do not build card forms.
- Webhooks: verify the signature, store the event id, make every handler
idempotent (Stripe retries). Handle
checkout.session.completed,customer.subscription.updated,customer.subscription.deleted,invoice.payment_failed. - Subscription status lives in your database, updated by webhooks, read by your app. Never trust the client.
- Cancelling is one click. Hard-to-cancel billing is a top complaint about most apps, and in many places it is illegal.
Email and jobs
- Transactional email through Resend or Postmark from your own domain. Templates written fresh.
- Jobs for anything time-based (reminders, digests, sync, cleanup) with retries and a dead-letter log. Times in UTC, shown in the user's zone.
Integrations
For each integration in the feature matrix: the official API, the OAuth
scopes needed (fewest possible), the provider's review process, rate limits.
Google scopes like Calendar need Google's OAuth verification before public
launch, which takes weeks. Start it early and write that in backend.md.
Security checklist
- secrets only in env vars,
.env*in.gitignore, nothing in client bundles - input validated on the server (zod or similar) on every route
- authorisation checked on every read and write, tested with a second user
- rate limits on auth, sign up, and anything that sends email or SMS
- webhooks verify signatures
- uploads: size and type limits, served from a separate domain or bucket
- no user data in URLs or logs
- dependencies audited (
npm audit) - privacy policy lists every processor (Stripe, Resend, host, analytics)
Output
Working auth, database, payments in test mode, email and the integrations,
.env.example, replica/backend.md with the checklist ticked, feature
matrix rows updated. Next: /replica-test.
الأسئلة الشائعة
هل يُنشئ الوكيل حساباتي؟
لا. تقول المهارة إنك تنشئ حسابات Stripe أو Supabase أو البريد وتضيف مفاتيحك بنفسك.
هل يستخدم مدفوعات تجريبية أولًا؟
نعم. يستخدم مفاتيح Stripe التجريبية وبطاقات الاختبار حتى مرحلة النشر.
هل تغطي حذف الحساب؟
نعم. تتضمن المهارة حذف الحساب الذي يحذف البيانات فعلًا، وهو ما تشترطه Apple للتطبيقات التي تتيح التسجيل.
التفاصيل
الوصف الأصلي من المؤلف
Builds the backend of an app clone: auth, database migrations and access rules, payments with Stripe, email, background jobs and third-party integrations through official APIs only, plus a security checklist. Use when the user says "add login", "set up auth", "wire up the database", "add payments", "connect Stripe", "add Google Calendar", "send emails", "backend for my clone", or when /replica-build is running on fake data.
الشعبية
- نجوم GitHub
- 7.1k
- الترتيب
- #13576
- الترخيص
- MIT
- آخر تحديث
- 3/10/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
replica-architect
7.1kيساعد وكيلك على تخطيط المكدس وقاعدة البيانات وواجهة البرمجة لتطبيق جديد اعتمادًا على خريطة ميزات، ويرتب البناء بشريحة عمل رفيعة أولًا.
replica-brand
7.1kيساعد وكيلك على تسمية تطبيقك وتمييز علامته التجارية، عبر فحوص للاسم وألوان جديدة وملخص للشعار وفحص لبقايا الأسماء القديمة.
replica-build
7.1kيساعد وكيلك على بناء شاشات تطبيق جديد شاشة بشاشة من خريطة ميزات، بدءًا بالهيكل ثم المسار الأساسي، مكتوبًا من الصفر.
replica-deploy
7.1kيساعد وكيلك على إطلاق تطبيق جديد على نطاقك الخاص، مع قائمة فحص قبل النشر وسجلات DNS وإعدادات الإنتاج وبناءات المتاجر.
مهارات مشابهة
api-connector-builder
280kيبني وكيلك اتصالات API جديدة على النمط الموجود، ويفيد عندما تحتاج إلى تكامل إضافي دون ابتكار طريقة جديدة للعمل.
api-design
280kيساعد وكيلك على تصميم واجهات REST API وفق أفضل الممارسات، ويوضح كيف تتواصل وكيف تُعرض الأخطاء وكيف تُنظَّم البيانات.
backend-patterns
280kيساعد وكيلك على أنماط بنية الخادم وتحسين قاعدة البيانات، ويفيد في بناء الشيفرة التي تعمل على الخادم أو مراجعتها.