跳到正文
cccskills
免费在 GitHub 公开

replica-backend

Build the backend for an app modeled on an existing service, including login, database access rules, Stripe test payments, email, and integrations through official APIs. Track implementation and security checks in a dedicated checklist.

中文简介正在准备中。当前显示英语简介。

原文查看原文说明

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.

查看安装方法

适用场景

  • Add login and account management
  • Connect screens to a database
  • Implement Stripe payments in test mode
  • Add email, reminders, and calendar integrations

包含的文件(1)

  • SKILL.md3.9 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

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.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Turn research about an existing app into a technical plan for a new implementation. Choose technologies, define database tables and access rules, map API routes, and order development around a small, complete core workflow.

中文简介正在准备中。当前显示英语简介。

  • Choose technologies for an alternative app
  • Design database tables, indexes, and access rules
  • Map API routes and scheduled background jobs
Jakeschincariol/replica-skill39202026年10月3日 更新

Develop an app’s own identity through name candidates, a distinct color palette, a logo brief, and writing guidance. Track name screening checks and scan project files for leftover names, domains, and colors from the original app.

中文简介正在准备中。当前显示英语简介。

  • Shortlist app names and track screening checks
  • Choose a distinct palette with readable contrast
  • Prepare a logo brief and consistent interface wording
Jakeschincariol/replica-skill39202026年10月3日 更新

Implement an app screen by screen from research and design documents, starting with its core workflow. Write fresh code and interface text, cover loading and error states, and track progress with a feature matrix and screenshots.

中文简介正在准备中。当前显示英语简介。

  • Build app screens from research and design documents
  • Implement the core workflow from start to finish
  • Cover empty, loading, error, and mobile states
Jakeschincariol/replica-skill39202026年10月3日 更新

Prepare and publish an app built from an existing reference, covering release checks, production services, domain and email records, payments, sign-in, monitoring, and mobile distribution. It records results and requires user approval before going live.

中文简介正在准备中。当前显示英语简介。

  • Checking whether an app is ready for release
  • Connecting a custom domain and email settings
  • Preparing production payments and sign-in
Jakeschincariol/replica-skill39202026年10月3日 更新

Rebuild an app’s visual system as reusable design values and component specifications. It covers typography, spacing, component states, implementation, and contrast checks while replacing the original app’s branded assets with independent alternatives.

中文简介正在准备中。当前显示英语简介。

  • Reconstructing design rules from app screenshots
  • Defining shared tokens and component states
  • Checking text and background contrast
Jakeschincariol/replica-skill39202026年10月3日 更新

Compare a recreated app with its reference using weighted feature coverage, screenshot layout differences that ignore color, and workflow reviews. Generate a report showing missing functionality, release readiness, and the next five implementation priorities.

中文简介正在准备中。当前显示英语简介。

  • Measuring how much reference functionality is implemented
  • Comparing screen layouts after changing brand colors
  • Reviewing workflow and error-handling differences
Jakeschincariol/replica-skill39202026年10月3日 更新

查看 Jakeschincariol 的全部技能

报告此技能的问题