Langsung ke konten
Skillpedia
Pemrograman umum29k Β· #9701

spec-to-repo

Fungsinya

Skill ini membaca deskripsi aplikasi dalam bahasa biasa dan membuat proyek kode yang berfungsi darinya. Skill ini untuk orang yang punya ide atau kebutuhan dan menginginkan basis kode awal yang nyata.

Kapan dipakai

  • βœ“Saat Anda menjelaskan aplikasi dengan bahasa biasa dan ingin proyek yang berfungsi dibuat.
  • βœ“Saat Anda punya dokumen kebutuhan dan memerlukan basis kode untuk memulai.
  • βœ“Saat Anda ingin repositori awal dibuat dalam tumpukan seperti FastAPI, Rails, atau Next.js.

Link skill

https://github.com/alirezarezvani/claude-skills/blob/main/product-team/skills/spec-to-repo/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/alirezarezvani/claude-skills/blob/main/product-team/skills/spec-to-repo/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œBuatkan saya aplikasi FastAPI yang bisa dijalankan untuk melacak peminjaman buku, dengan basis data dan API dasar.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Skill membaca spesifikasi, mengambil nama aplikasi, fitur, tumpukan, dan kebutuhan data, menyimpulkan tumpukan jika tidak disebutkan, dan membuat proyek dengan kode yang dibutuhkan.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.

Spec to Repo

Turn a natural-language project specification into a complete, runnable starter repository. Not a template filler β€” a spec interpreter that generates real, working code for any stack.

When to Use

  • User provides a text description of an app and wants code
  • User has a PRD, requirements doc, or feature list and needs a codebase
  • User says "build me an app that...", "scaffold this", "bootstrap a project"
  • User wants a working starter repo, not just a file tree

Not this skill when the user wants a SaaS app with Stripe + Auth specifically β€” use product-team/saas-scaffolder instead.

Core Workflow

Phase 1 β€” Parse & Interpret

Read the spec. Extract these fields silently:

Field Source Required
App name Explicit or infer from description yes
Description First sentence of spec yes
Features Bullet points or sentences describing behavior yes
Tech stack Explicit ("use FastAPI") or infer from context yes
Auth "login", "users", "accounts", "roles" if mentioned
Database "store", "save", "persist", "records", "schema" if mentioned
API surface "endpoint", "API", "REST", "GraphQL" if mentioned
Deploy target "Vercel", "Docker", "AWS", "Railway" if mentioned

Stack inference rules (when user doesn't specify):

Signal Inferred stack
"web app", "dashboard", "SaaS" Next.js + TypeScript
"API", "backend", "microservice" FastAPI (Python) or Express (Node)
"mobile app" Flutter or React Native
"CLI tool" Go or Python
"data pipeline" Python
"high performance", "systems" Rust or Go

After parsing, present a structured interpretation back to the user:

## Spec Interpretation

**App:** [name]
**Stack:** [framework + language]
**Features:**
1. [feature]
2. [feature]

**Database:** [yes/no β€” engine]
**Auth:** [yes/no β€” method]
**Deploy:** [target]

Does this match your intent? Any corrections before I generate?

Flag ambiguities. Ask at most 3 clarifying questions. If the user says "just build it", proceed with best-guess defaults.

Phase 2 β€” Architecture

Design the project before writing any files:

  1. Select template β€” Match to a stack template from references/stack-templates.md
  2. Define file tree β€” List every file that will be created
  3. Map features to files β€” Each feature gets at minimum one file/component
  4. Design database schema β€” If applicable, define tables/collections with fields and types
  5. Identify dependencies β€” List every package with version constraints
  6. Plan API routes β€” If applicable, list every endpoint with method, path, request/response shape

Present the file tree to the user before generating:

project-name/
β”œβ”€β”€ README.md
β”œβ”€β”€ .env.example
β”œβ”€β”€ .gitignore
β”œβ”€β”€ .github/workflows/ci.yml
β”œβ”€β”€ package.json / requirements.txt / go.mod
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ ...
β”œβ”€β”€ tests/
β”‚   β”œβ”€β”€ ...
└── ...

Phase 3 β€” Generate

Write every file. Rules:

  • Real code, not stubs. Every function has a real implementation. No // TODO: implement or pass placeholders.
  • Syntactically valid. Every file must parse without errors in its language.
  • Imports match dependencies. Every import must correspond to a package in the manifest (package.json, requirements.txt, go.mod, etc.).
  • Types included. TypeScript projects use types. Python projects use type hints. Go projects use typed structs.
  • Environment variables. Generate .env.example with every required variable, commented with purpose.
  • README.md. Include: project description, prerequisites, setup steps (clone, install, configure env, run), and available scripts/commands.
  • CI config. Generate .github/workflows/ci.yml with: install, lint (if linter in deps), test, build.
  • .gitignore. Stack-appropriate ignores (node_modules, pycache, .env, build artifacts).

File generation order:

  1. Manifest (package.json / requirements.txt / go.mod)
  2. Config files (.env.example, .gitignore, CI)
  3. Database schema / migrations
  4. Core business logic
  5. API routes / endpoints
  6. UI components (if applicable)
  7. Tests
  8. README.md

Phase 4 β€” Validate

After generation, run through this checklist:

  • Every imported package exists in the manifest
  • Every file referenced by an import exists in the tree
  • .env.example lists every env var used in code
  • .gitignore covers build artifacts and secre
Pertanyaan umum

Tumpukan apa saja yang didukung?

Skill bekerja di banyak tumpukan, seperti Next.js, FastAPI, Rails, Go, Rust, dan Flutter.

Bagaimana jika saya tidak menyebutkan tumpukan?

Skill menyimpulkan tumpukan yang sesuai dari konteks deskripsi Anda.

Apakah ini untuk aplikasi SaaS dengan penagihan?

Untuk aplikasi SaaS dengan autentikasi dan Stripe secara khusus, skill SaaS scaffolder yang terpisah adalah pilihan yang lebih baik.

Detail

Deskripsi asli dari pembuat

Use when the user says 'build me an app', 'create a project from this spec', 'scaffold a new repo', 'generate a starter', 'turn this idea into code', 'bootstrap a project', 'I have requirements and need a codebase', or provides a natural-language project specification and expects a complete, runnable repository. Stack-agnostic: Next.js, FastAPI, Rails, Go, Rust, Flutter, and more.

repo: alirezarezvani/claude-skills

Popularitas

Bintang GitHub
29k
Peringkat
#9701
Lisensi
MIT
Diperbarui
2/11/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa