replica-architect
できること
このスキルは、以前に作られた機能マップを使い、既存のアプリと同じ機能を持つ新しいアプリの技術設計を計画します。マネージドサービスと明確な構築順序を伴う、実践的な計画がほしい開発者向けです。
使う場面
- ✓あるアプリの機能マップがあり、自分のバージョンの技術スタックを選ぶ必要があるとき。
- ✓データモデルから、データベースのスキーマとAPIのルートを計画したいとき。
- ✓フルのアプリの前に、小さく動くスライスとして構築の順序を決めたいとき。
スキルのリンク
https://github.com/Jakeschincariol/replica-skill/blob/main/replica-architect/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“作り直したいアプリの機能マップがあります。その技術スタック、データベースのスキーマ、APIを計画してもらえますか?”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは既存の機能マップを読み、昔ながらで管理されたツールを、それぞれ一行の理由とともに選び、データモデルを、インデックスとアクセスルール付きのSQLテーブルにします。その後、フローごとにルートを並べ、構築の順序を決めます。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
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.
よくある質問
最初に機能マップが必要ですか?
はい。機能マップがない場合は停止します。記憶に頼った計画では機能を見落とすためです。
デフォルトのスタックは何ですか?
Next.js、Postgres、Stripe、Vercelなどのツールがデフォルトで、どれも置き換えられます。
元のアプリのアーキテクチャをコピーしますか?
いいえ。複製に必要なのは機能であり、元の内部のアーキテクチャではないとしています。
詳細
作者による元の説明
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.
人気
- GitHubのスター
- 7.1k
- ランキング
- #13575
- ライセンス
- MIT
- 更新日
- 2026/10/3
コメント
- …
このリポジトリの他のスキル
replica-backend
7.1kエージェントが、公式のAPIを使い、ログイン、データベースのルール、Stripeの支払い、メール、バックグラウンドジョブを持つアプリのサーバー側を構築できるよう支援します。
replica-brand
7.1kエージェントが、チェックすべき名前、新しいパレット、ロゴの指示書、残っている古い名前の洗い出しを使い、アプリに独自の名前とブランドを付けて際立たせられるよう支援します。
replica-build
7.1kエージェントが、機能マップをもとに、シェルから始めて中核のフローへ進み、すべてを新たに書いて、新しいアプリを一画面ずつ構築できるよう支援します。
replica-deploy
7.1kエージェントが、事前チェックリスト、DNSレコード、本番環境の設定、ストアのビルドを使って、新しいアプリを自分のドメインで公開できるよう支援します。
似ているスキル
diffs
394k編集内容の実際の共有可能な差分を、手書きの要約ではなく、ビューアーのリンクや画像ファイルとして作成するようエージェントを支援します。
coding-agent
394kCodex、Claude Code、OpenCodeに大きめのコーディング作業をバックグラウンドのワーカーとして渡し、その進捗を確認するようエージェントを支援します。
gh-issues
394kGitHubのイシューを探し、取り組むものを選び、修正を含むプルリクエストを開くようエージェントを支援します。レビューコメントへの対応も含みます。