jakeschincariol/replica-skill

replica-backend

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.

ソースを見る

使い方

  1. インストールコマンドをコピーし、自分の環境へ導入する前にソースを確認します。
  2. 必要なツール、認証情報、対応環境を原文で確認します。
  3. 入力と成果物を指定し、出力を資料と照合します。
npx skills add https://github.com/jakeschincariol/replica-skill --skill replica-backend

開始前の確認

  • 導入にはモデル契約、API枠、ファイルへのアクセス許可は含まれません。
  • スター数や導入数は活動の指標であり、独立した品質・安全性試験ではありません。
リポジトリの原文

見出し、例、コード、表、リンク、参照画像を含む原文を表示しています。

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.

タスクに関連する項目

同じリポジトリから

関連する Skills

すべての Skills
jakeschincariol
コミュニティ

replica-design

Rebuilds an app's design system for a clone: colour roles, type scale, spacing, radius, shadows and every component with its states, as design tokens plus component specs, with original assets instead of the target's logos, icons, illustrations or licensed fonts. Includes a WCAG contrast checker. Use when the user says "match the design", "rebuild the design system", "get the colours and fonts", "make it look like X", "design tokens for my clone", or after /replica-architect.

1時間の導入数
1
GitHub Stars
1万
更新日
10月3日
jakeschincariol
コミュニティ

replica-entrepreneur

Researches the app being cloned and reads what its real users say in public reviews (App Store, Google Play, G2, Capterra, Trustpilot, Reddit, Hacker News, its own feature-request board), then ranks what they hate, what is missing and what is unsolved, turns it into a fix plan for the clone and a positioning angle you can sell. Every quote is real, verbatim and linked. Use when the user says "what do people hate about X", "read the reviews", "how do I make mine better", "find the gap", "what fea

1時間の導入数
1
GitHub Stars
1万
更新日
10月3日
jakeschincariol
コミュニティ

replica-launch

Writes the launch for an app clone: the landing page built on the positioning angle, pricing set against the original's public pricing and its users' complaints, and the App Store and Google Play listing linted against the stores' limits and copycat rules. Use when the user says "landing page", "pricing", "how much should I charge", "App Store listing", "store screenshots", "launch plan", "Product Hunt", or after /replica-brand.

1時間の導入数
1
GitHub Stars
1万
更新日
10月3日
jakeschincariol
コミュニティ

replica-recon

Reverse-engineers any app into a recon map: screen inventory, user flows, component list, inferred data model and a feature matrix, from public pages, screenshots, app store listings, help docs and the user's own account. The first step of the Replica pack. Use when the user says "clone this app", "reverse engineer X", "how does X work", "map out X", "what screens does X have", "I want to build my own version of X", "copy this app", or pastes an app's URL or App Store link and wants to rebuild i

1時間の導入数
1
GitHub Stars
1万
更新日
10月3日