Skip to content
Skillpedia
General coding29k Β· #9701

spec-to-repo

What it does

This skill reads a plain-language app description and creates a working code project from it. It is for people who have an idea or requirements and want a real starting codebase.

When to use it

  • βœ“When you describe an app in plain language and want a working project created.
  • βœ“When you have a requirements document and need a codebase to start from.
  • βœ“When you want a starter repository scaffolded in a stack such as FastAPI, Rails or Next.js.

Skill link

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

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/alirezarezvani/claude-skills/blob/main/product-team/skills/spec-to-repo/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute β†’

Example of what to ask your AI

β€œBuild me a runnable FastAPI app for tracking book loans, with a database and a basic API.”

5 new skills a week. 1 minute to read.

How it works

It reads the spec, extracts the app name, features, stack and data needs, infers a stack when none is given and generates a project with the code it needs.

Technical content (original SKILL.md)

Original text by the author, straight from 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
FAQ

What stacks does it support?

It works across many stacks, such as Next.js, FastAPI, Rails, Go, Rust and Flutter.

What if I do not name a stack?

The skill infers a suitable stack from the context of your description.

Is it for a SaaS app with billing?

For a SaaS app with auth and Stripe specifically, a separate SaaS scaffolder skill is the better choice.

Details

Original description by the author

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

Popularity

GitHub stars
29k
Ranking position
#9701
License
MIT
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills