replica-backend
Skill này làm gì
Skill này xây phần backend của một ứng dụng mới, gồm đăng ký, quy tắc truy cập, thanh toán và email. Skill dành cho lập trình viên đang xây sản phẩm và muốn có thiết lập bảo mật mặc định cùng danh sách kiểm tra trước khi ra mắt.
Khi nào nên dùng
- ✓Khi bạn cần thêm đăng nhập, đặt lại mật khẩu hoặc đăng nhập OAuth vào ứng dụng.
- ✓Khi bạn muốn thiết lập migration cơ sở dữ liệu và quy tắc truy cập theo từng dòng.
- ✓Khi bạn muốn kết nối thanh toán Stripe hoặc gửi email giao dịch bằng khóa của chính mình.
Liên kết skill
https://github.com/Jakeschincariol/replica-skill/blob/main/replica-backend/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Bạn có thể thiết lập đăng ký có xác minh email, đặt lại mật khẩu và thanh toán thử Stripe cho ứng dụng của tôi không?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent viết migration cơ sở dữ liệu, mã máy chủ và các kiểm tra truy cập, đồng thời cập nhật danh sách kiểm tra backend. Bạn tự tạo tài khoản và khóa, còn agent viết một file môi trường mẫu chỉ có tên biến và không có giá trị.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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.
Câu hỏi thường gặp
Agent có tự tạo tài khoản của tôi không?
Không. Skill nói bạn tự tạo tài khoản Stripe, Supabase hoặc email và thêm khóa của mình.
Skill có dùng thanh toán thử trước không?
Có. Skill dùng khóa thử và thẻ thử của Stripe cho đến bước triển khai.
Skill có bao gồm xóa tài khoản không?
Có. Skill bao gồm chức năng xóa tài khoản và xóa thật sự dữ liệu, điều Apple yêu cầu với các ứng dụng có đăng ký.
Chi tiết
Mô tả gốc của tác giả
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.
Độ phổ biến
- Sao GitHub
- 7.1k
- Vị trí xếp hạng
- #13576
- Giấy phép
- MIT
- Cập nhật
- 3/10/2026
Bình luận
- …
Thêm skill từ kho mã này
replica-architect
7.1kGiúp agent của bạn lên kế hoạch stack, cơ sở dữ liệu và API cho ứng dụng mới dựa trên bản đồ tính năng, xây từ một lát cắt mỏng chạy được trước.
replica-brand
7.1kGiúp agent của bạn đặt tên và đổi thương hiệu cho ứng dụng để nổi bật, gồm kiểm tra tên, bảng màu mới, brief logo và quét tìm tên cũ còn sót lại.
replica-build
7.1kGiúp agent của bạn xây từng màn hình của ứng dụng mới từ bản đồ tính năng, bắt đầu bằng khung vỏ rồi đến luồng cốt lõi, và tất cả đều được viết mới.
replica-deploy
7.1kGiúp agent của bạn đưa ứng dụng mới lên tên miền riêng, với danh sách kiểm tra trước triển khai, bản ghi DNS, cấu hình production và bản build cho cửa hàng.
Skill tương tự
api-connector-builder
280kGiúp agent của bạn xây dựng kết nối API mới theo đúng mẫu đã có, dùng khi bạn cần thêm một tích hợp mà không tạo cách làm mới.
api-design
280kGiúp agent của bạn thiết kế REST API theo các thực hành tốt nhất, hữu ích để định nghĩa cách API giao tiếp, hiển thị lỗi và tổ chức dữ liệu.
backend-patterns
280kGiúp agent của bạn với các mẫu kiến trúc phía máy chủ và tối ưu cơ sở dữ liệu, hữu ích khi xây dựng hoặc rà soát code chạy trên máy chủ.