본문으로 건너뛰기
Skillpedia
API 및 서버 (백엔드)7.1k · #13576

replica-backend

하는 일

이 스킬은 새 앱의 백엔드를 만듭니다. 회원가입, 접근 규칙, 결제, 이메일을 포함합니다. 기본적으로 안전한 설정과 출시 체크리스트가 필요한, 제품을 만드는 개발자를 위한 것입니다.

사용하는 경우

  • ✓앱에 로그인, 비밀번호 재설정, OAuth 로그인을 추가해야 할 때.
  • ✓데이터베이스 마이그레이션과 행 단위 접근 규칙을 설정하고 싶을 때.
  • ✓자신의 키로 Stripe 결제를 연결하거나 트랜잭션 이메일을 보내고 싶을 때.

스킬 링크

https://github.com/Jakeschincariol/replica-skill/blob/main/replica-backend/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/Jakeschincariol/replica-skill/blob/main/replica-backend/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

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.example with 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.

repo: Jakeschincariol/replica-skill

인기도

GitHub 스타
7.1k
순위
#13576
라이선스
MIT
업데이트
2026. 10. 3.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬