spec-to-repo
ما الذي تفعله
تقرأ هذه المهارة وصف تطبيق بلغة بسيطة وتنشئ منه مشروع كود يعمل. وهي مخصصة للأشخاص الذين لديهم فكرة أو متطلبات ويريدون قاعدة كود حقيقية للبداية.
متى تستخدمها
- ✓عندما تصف تطبيقًا بلغة بسيطة وتريد إنشاء مشروع يعمل.
- ✓عندما تملك وثيقة متطلبات وتحتاج إلى قاعدة كود للبدء منها.
- ✓عندما تريد مستودعًا أوليًا بتقنية مثل FastAPI أو Rails أو Next.js.
رابط المهارة
https://github.com/alirezarezvani/claude-skills/blob/main/product-team/skills/spec-to-repo/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“ابنِ لي تطبيق FastAPI يعمل لتتبع إعارات الكتب، مع قاعدة بيانات وواجهة API أساسية.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
تقرأ المهارة المواصفات وتستخرج اسم التطبيق وميزاته وتقنيته واحتياجات بياناته، وتستنتج التقنية إن لم تُذكر، ثم تولّد المشروع بالكود الذي يحتاجه.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من 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:
- Select template — Match to a stack template from
references/stack-templates.md - Define file tree — List every file that will be created
- Map features to files — Each feature gets at minimum one file/component
- Design database schema — If applicable, define tables/collections with fields and types
- Identify dependencies — List every package with version constraints
- 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: implementorpassplaceholders. - 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.examplewith 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.ymlwith: install, lint (if linter in deps), test, build. - .gitignore. Stack-appropriate ignores (node_modules, pycache, .env, build artifacts).
File generation order:
- Manifest (package.json / requirements.txt / go.mod)
- Config files (.env.example, .gitignore, CI)
- Database schema / migrations
- Core business logic
- API routes / endpoints
- UI components (if applicable)
- Tests
- 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.examplelists every env var used in code -
.gitignorecovers build artifacts and secre
الأسئلة الشائعة
ما التقنيات التي تدعمها؟
تعمل مع تقنيات كثيرة، مثل Next.js وFastAPI وRails وGo وRust وFlutter.
ماذا لو لم أذكر تقنية؟
تستنتج المهارة تقنية مناسبة من سياق وصفك.
هل هي لتطبيق SaaS مع فوترة؟
لتطبيق SaaS بتسجيل دخول ومدفوعات Stripe تحديدًا، فالخيار الأفضل هو مهارة saas-scaffolder المنفصلة.
التفاصيل
الوصف الأصلي من المؤلف
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.
الشعبية
- نجوم GitHub
- 29k
- الترتيب
- #9701
- الترخيص
- MIT
- آخر تحديث
- 2/11/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
agent-launcher-orchestrator
29kيساعد وكيلك على تخطيط وبناء واختبار وجدولة وكيل Claude مُدار في حسابك الخاص، خطوة بخطوة، انطلاقًا من هدف واضح واحد.
grade-iterate
29kيتيح لوكيلك تقييم عمل وكيل ذكاء اصطناعي مُدار وفق معيار تقييم، وتحسينه في عدد ثابت من الجولات، حتى لا يدور في حلقة لا نهاية لها.
interview
29kيتيح لوكيلك أن يجري معك مقابلة حول فكرة وكيل ذكاء اصطناعي، ثم يحوّل إجاباتك إلى خطة بناء بسيطة قبل إطلاق أي شيء.
run-without-you
29kيساعد وكيلك على إعداد وكيل Claude مُدار ليعمل وفق جدول زمني أو عند حدوث حدث، مع فحص توقيت التشغيل قبل الإطلاق.
مهارات مشابهة
diffs
394kيتيح لوكيلك إنتاج فرق تعديلات حقيقي يمكن مشاركته، كرابط عرض أو ملف صورة، بدلاً من ملخص مكتوب يدوياً.
coding-agent
394kيساعد وكيلك على تسليم مهمة برمجة كبيرة إلى Codex أو Claude Code أو OpenCode كعامل في الخلفية، ثم متابعة تقدمها.
gh-issues
394kيساعد وكيلك على إيجاد مشكلات GitHub واختيار ما ستعمل عليه، وفتح طلبات سحب بالإصلاحات، ومتابعة تعليقات المراجعة.