replica-backend
What it does
This skill builds the backend of a new app, including sign-up, access rules, payments, and email. It is for developers building a product who want secure defaults and a checklist for launch.
When to use it
- ✓When you need to add login, password reset, or OAuth sign-in to your app.
- ✓When you want to set up database migrations and row-level access rules.
- ✓When you want to connect Stripe payments or send transactional emails using your own keys.
Skill link
https://github.com/Jakeschincariol/replica-skill/blob/main/replica-backend/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Can you set up sign-up with email verification, password reset and Stripe test payments for my app?”
5 new skills a week. 1 minute to read.
How it works
The agent writes database migrations, server code, and access checks, and keeps a backend checklist up to date. You create the accounts and keys yourself, and the agent writes an example environment file with variable names but no values.
Technical content (original SKILL.md)
Original text by the author, straight from 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.
FAQ
Does the agent create my accounts?
No. The skill says you create the Stripe, Supabase, or email accounts and add your own keys.
Does it use test payments first?
Yes. It uses Stripe test keys and test cards until the deploy step.
Does it cover account deletion?
Yes. It includes account deletion that actually deletes the data, which Apple requires for apps with sign-up.
Details
Original description by the author
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.
Popularity
- GitHub stars
- 7.1k
- Ranking position
- #13576
- License
- MIT
- Updated
- 10/3/2026
Comments
- …
More skills from this repository
replica-architect
7.1kHelps your agent plan the stack, database and API for a new app based on a feature map, and order the build from a thin working slice first.
replica-brand
7.1kHelps your agent name and rebrand your app so it stands apart, with name checks to run, a new palette, a logo brief and a sweep for leftover names.
replica-build
7.1kHelps your agent build a new app screen by screen from a feature map, starting with a shell, then a core flow, all written fresh.
replica-deploy
7.1kHelps your agent get a new app live on your own domain, with a preflight checklist, DNS records, production settings and store builds.
Similar skills
api-connector-builder
280kHas your agent build new API connections following the existing pattern. Use when you need to add one more integration without creating a new way of doing things.
api-design
280kHelps your agent design REST APIs following best practices. It's useful for defining how APIs communicate, how errors are shown, and how to organize data.
backend-patterns
280kHelps your agent with server-side architecture patterns and database optimization. It's useful for building or reviewing code that runs on the server.