replica-architect
Skill này làm gì
Skill này lên kế hoạch thiết kế kỹ thuật cho một ứng dụng mới sao chép các tính năng của một ứng dụng hiện có, dựa trên bản đồ tính năng đã lập trước đó. Skill dành cho lập trình viên muốn một kế hoạch thực tế với các dịch vụ được quản lý sẵn và thứ tự xây dựng rõ ràng.
Khi nào nên dùng
- ✓Khi bạn có bản đồ tính năng của một ứng dụng và cần chọn stack cho phiên bản của mình.
- ✓Khi bạn muốn lên kế hoạch schema cơ sở dữ liệu và các route API từ một mô hình dữ liệu.
- ✓Khi bạn muốn xây dựng theo thứ tự: một lát cắt nhỏ chạy được trước, rồi mới đến toàn bộ ứng dụng.
Liên kết skill
https://github.com/Jakeschincariol/replica-skill/blob/main/replica-architect/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
“Tôi có một bản đồ tính năng của một ứng dụng muốn xây lại. Bạn có thể lên kế hoạch stack, schema cơ sở dữ liệu và API cho nó không?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent đọc bản đồ tính năng có sẵn, chọn các công cụ đơn giản, quen thuộc và được quản lý sẵn, kèm một dòng lý do cho mỗi công cụ. Sau đó nó biến mô hình dữ liệu thành các bảng SQL với chỉ mục và quy tắc truy cập, liệt kê các route theo luồng và sắp xếp thứ tự xây dựng.
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-architect
Reads replica/recon.md and replica/features.csv. Writes
replica/architecture.md (template: architecture.md in this folder).
If there is no recon map, stop and run /replica-recon first. Planning a
clone from memory of what an app does is how you miss half of it.
Step 1: the stack
Use what the user already knows if they have a stack. Otherwise the default, because every part is managed, documented and cheap at zero users:
| layer | default | swap for |
|---|---|---|
| web app | Next.js (App Router) + TypeScript | Remix, SvelteKit, Rails |
| styling | Tailwind, tokens from replica-design | CSS modules |
| mobile | Expo (React Native) | SwiftUI, Kotlin |
| database | Postgres on Supabase or Neon | PlanetScale, SQLite (Turso) |
| ORM | Drizzle or Prisma | raw SQL |
| auth | Supabase Auth or Auth.js | Clerk |
| payments | Stripe Checkout + Billing | Lemon Squeezy, Paddle |
| Resend or Postmark | SES | |
| jobs | Vercel Cron, Inngest or Trigger.dev | a worker on Fly |
| files | Supabase Storage or Cloudflare R2 | S3 |
| hosting | Vercel | Netlify, Fly, Render |
Write each choice with one line of why. One database. No microservices. The clone does not need the original's architecture, it needs the original's features.
Step 2: the schema
Turn the inferred data model into SQL. For every table:
id uuid primary key default gen_random_uuid(),created_at,updated_at- an owner column (
user_idororg_id) on everything a user owns - foreign keys with an
on deleterule decided, not defaulted - indexes on every foreign key and every column you filter or sort by
- enums or check constraints for status fields
- times as
timestamptz, always, stored in UTC - money as integer cents plus a currency column
- access rules: Postgres row level security on Supabase, or one authorisation check per query in the data layer. Write which.
Example, for a booking app:
create table bookings (
id uuid primary key default gen_random_uuid(),
event_type_id uuid not null references event_types(id) on delete cascade,
host_id uuid not null references users(id) on delete cascade,
start_at timestamptz not null,
end_at timestamptz not null,
guest_name text not null,
guest_email text not null,
guest_timezone text not null,
status text not null default 'confirmed'
check (status in ('confirmed','cancelled','rescheduled')),
answers jsonb not null default '{}',
created_at timestamptz not null default now(),
constraint no_zero_length check (end_at > start_at)
);
create index on bookings (host_id, start_at);
Then the hard constraints the recon found. Two guests booking the same slot is a database problem (an exclusion constraint or a unique index), not a UI problem.
Step 3: the API
One table per flow from the recon map. For every route or server action:
method path | what it does | who can call it | input | output | flow
Plus webhooks in (Stripe, calendar providers) and out, and background jobs (reminders, sync, cleanup) with their schedule.
Only official, public APIs with the user's own keys. Never the original app's private endpoints, even if they are visible in a browser.
Step 4: the parts that bite
Write a line on each that applies: time zones and daylight saving, idempotency (webhooks arrive twice), race conditions, rate limits, file size limits, search, realtime, offline, email deliverability, multi-tenancy, GDPR deletion.
Step 5: build order
- Vertical slice. The core loop end to end, ugly: sign up, do the one thing, see the result. Proves the stack.
- Must-haves from
features.csv, by area. - Should-haves, then could-haves.
- The fixes replica-entrepreneur finds, once it has run.
Each milestone lists its screens (S-IDs), tables and routes.
Output
replica/architecture.md, the SQL in replica/schema.sql or as the first
migration, and a summary: stack in one line, table count, route count, the
three riskiest parts, and the next step: /replica-design.
Câu hỏi thường gặp
Tôi có cần bản đồ khảo sát trước không?
Có. Skill sẽ dừng nếu không có bản đồ tính năng, vì lập kế hoạch từ trí nhớ sẽ bỏ sót tính năng.
Stack mặc định là gì?
Mặc định là các công cụ như Next.js, Postgres, Stripe và Vercel, và bạn có thể thay bất kỳ công cụ nào.
Skill có sao chép kiến trúc gốc không?
Không. Skill nói bản sao cần các tính năng, chứ không cần kiến trúc nội bộ của bản gốc.
Chi tiết
Mô tả gốc của tác giả
Plans the stack, database schema and API for an app clone, from the recon map replica-recon wrote. Picks boring, managed tech, turns the inferred data model into real SQL with indexes and access rules, lists every route by flow, and orders the build as a thin vertical slice first. Use when the user says "plan the clone", "what stack should I use", "design the database", "write the schema", "plan the API", "architecture for my version of X", or after /replica-recon finishes.
Độ phổ biến
- Sao GitHub
- 7.1k
- Vị trí xếp hạng
- #13575
- 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-backend
7.1kGiúp agent của bạn xây phần máy chủ của ứng dụng với đăng nhập, quy tắc cơ sở dữ liệu, thanh toán Stripe, email và tác vụ nền bằng API chính thứ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ự
diffs
394kGiúp agent của bạn tạo một diff có thể chia sẻ về các chỉnh sửa, dưới dạng liên kết xem hoặc file ảnh, thay vì một bản tóm tắt viết tay.
coding-agent
394kGiúp agent của bạn giao một việc lập trình lớn cho Codex, Claude Code hoặc OpenCode chạy nền, rồi theo dõi tiến độ của nó.
gh-issues
394kGiúp agent của bạn tìm issue trên GitHub, chọn những issue cần xử lý và mở pull request với bản sửa, kể cả theo dõi nhận xét đánh giá.