replica-backend
하는 일
이 스킬은 새 앱의 백엔드를 만듭니다. 회원가입, 접근 규칙, 결제, 이메일을 포함합니다. 기본적으로 안전한 설정과 출시 체크리스트가 필요한, 제품을 만드는 개발자를 위한 것입니다.
사용하는 경우
- ✓앱에 로그인, 비밀번호 재설정, OAuth 로그인을 추가해야 할 때.
- ✓데이터베이스 마이그레이션과 행 단위 접근 규칙을 설정하고 싶을 때.
- ✓자신의 키로 Stripe 결제를 연결하거나 트랜잭션 이메일을 보내고 싶을 때.
스킬 링크
https://github.com/Jakeschincariol/replica-skill/blob/main/replica-backend/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“제 앱에 이메일 인증이 있는 회원가입, 비밀번호 재설정, Stripe 테스트 결제를 설정해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 데이터베이스 마이그레이션, 서버 코드, 접근 확인을 작성하고, 백엔드 체크리스트를 최신으로 유지합니다. 계정과 키는 사용자가 직접 만들고 추가하며, 에이전트는 변수 이름만 있고 값은 없는 예시 환경 파일을 씁니다.
기술 내용 (원본 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
- 업데이트
- 2026. 10. 3.
댓글
- …
이 저장소의 다른 스킬
replica-architect
7.1k에이전트가 기능 지도를 바탕으로 새 앱의 스택, 데이터베이스, API를 계획하고 작은 작동 조각부터 빌드하도록 돕습니다.
replica-brand
7.1k에이전트가 앱에 고유한 이름과 색상 팔레트를 주고, 남아 있는 다른 브랜드 흔적을 찾아내도록 돕습니다.
replica-build
7.1k에이전트가 기능 지도를 따라 새 앱을 셸부터 핵심 흐름, 나머지 화면 순서로 처음부터 만들도록 돕습니다.
replica-deploy
7.1k에이전트가 사전 점검과 DNS 설정을 거쳐 새 앱을 자체 도메인에 올리고, 운영 설정과 스토어 빌드를 준비하도록 돕습니다.
비슷한 스킬
api-connector-builder
280k에이전트가 기존 패턴을 따라 새로운 API 연결을 만들도록 합니다. 새로운 방식을 도입하지 않고 연동을 하나 더 추가할 때 씁니다.
api-design
280k에이전트가 모범 사례에 따라 REST API를 설계하도록 돕습니다. API가 통신하는 방식, 오류를 보여 주는 방식, 데이터를 정리하는 방식을 정하는 데 유용합니다.
backend-patterns
280k에이전트가 서버 쪽 아키텍처 패턴과 데이터베이스 최적화를 다루도록 돕습니다. 서버에서 실행되는 코드를 만들거나 검토할 때 유용합니다.