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エージェントのサーバーサイドのアーキテクチャパターンとデータベースの最適化を支援します。サーバー上で動くコードを作成またはレビューするときに役立ちます。