Command Palette

Search for a command to run...

Назад к скиллам
скилл № 82181

project-init

Use when the user asks to scaffold a project, create the project structure, initialize a new repo from scratch, set up folders and config files or generate…

БесплатноЗапускает вложенные скрипты
j4flmaoот j4flmao★ 47 звёзд на GitHub

Установить project-init в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Project Init

Purpose

Scaffold a complete, production-ready project folder structure with AGENTS.md, .gitignore, and docs/ skeleton. Does not write any implementation code.

The first 5 minutes of a project determine its structural quality for years. A well-organized scaffold enforces separation of concerns, establishes naming conventions, and provides a clear home for every file type. Poor scaffolding leads to entropy-driven reorganization, tech-debt accumulation, and discovery friction for new contributors. This skill produces a deliberate, intentional structure that communicates architectural decisions before a single line of business logic is written.

Agent Protocol

Trigger

Exact user phrases: "create project structure", "scaffold project", "initialize project", "set up folder structure", "new project from scratch", "create new project", "start new project".

Input Context

  • User has specified or you have detected: backend stack, frontend framework, monorepo preference, project name
  • Working directory is the parent of the intended project
  • If user says "scaffold" without specifying stack, ask: "Which backend stack? (nestjs, golang, rust, fastapi, django, spring, none)"

Output Artifact

  • Creates directories and placeholder files matching selected stack template
  • Writes AGENTS.md at project root with stack-specific rules
  • Writes .gitignore at project root with stack-appropriate patterns
  • Writes docs/ skeleton with decisions/, stories/, specs/ subdirectories

Response Format

After scaffolding, output exactly:

Scaffolded {project-name} at {path}.
Folders created: {n}
Config files: .gitignore, AGENTS.md, docs/

Then output the folder tree as a code block. No commentary. No congratulations. No preamble. No postamble. No explanations.

Completion Criteria

  • Folder tree matches selected stack template
  • AGENTS.md contains project-specific rules (stack, test/lint/build commands, architectural rules)
  • .gitignore is stack-appropriate
  • docs/ has decisions/, stories/, specs/ subdirectories with .gitkeep
  • User confirmed folder tree before creation
  • No implementation code written

Max Response Length

After creation: folder tree block (unlimited lines) + 2-line summary. No more.

Decision Trees

Stack Detection Flow

User says "scaffold project":
├── Stack specified?
│   ├── YES → Use specified stack
│   └── NO → Ask ONE question at a time:
│       ├── Q1: "Backend stack? (nestjs, golang, rust, fastapi, django, spring, none)"
│       ├── Q2: "Frontend framework? (react, nextjs, vue, nuxt, angular, none)"
│       └── Q3: "Project name? (default: my-app)"
├── Directory exists?
│   ├── NO → Create directory, scaffold
│   └── YES → Ask: "Directory {name} already exists. Overwrite specific files? (yes/no/list)"
└── Generate tree → Show user → Wait for confirmation → Create

Template Selection

Backend + Frontend combo:
├── Both specified → Monorepo structure with /packages or /apps
├── Backend only → Single backend structure
├── Frontend only → Single frontend structure
└── None → Generic project (flat, minimal)

Monorepo preference:
├── User specified monorepo → /packages/app (frontend), /packages/api (backend), /packages/shared
├── User specified polyrepo → Separate directories, separate scaffolds
└── Not specified → Ask: "Monorepo or separate repos?"

Workflow

Step 1: Gather Requirements (One Question at a Time)

First: "Backend stack? (nestjs, golang, rust, fastapi, django, spring, none)" Second: "Frontend framework? (react, nextjs, vue, nuxt, angular, none)"
Third: "Project name? (default: my-app)" Do NOT list all questions at once. Ask sequentially.

Step 2: Generate Folder Tree as Markdown

Show tree to user. Wait for explicit confirmation ("yes", "looks good", "proceed"). Do NOT create anything before confirmation.

Step 3: Create Directories

Run commands to create folder structure matching selected template.

Step 4: Write AGENTS.md

Must contain: stack and framework, testing command (inferred from stack), lint command (inferred from stack), build command (inferred from stack), key architectural rules from relevant skill, standard workflow ("run tests before commit", "follow conventional commits"). AGENTS.md must be under 30 lines.

Step 5: Write .gitignore

Stack-appropriate. Include at minimum: node_modules/, target/, build/, dist/, .env, *.log, .DS_Store, coverage/, .idea/, *.iml, .vscode/. Under 20 lines.

Step 6: Write docs/ Skeleton

Empty placeholder files with .gitkeep:

  • docs/decisions/.gitkeep
  • docs/stories/.gitkeep
  • docs/specs/.gitkeep

Stack Templates

Backend Templates

NestJS: src/modules/ src/shared/ src/config/ test/

Go: cmd/server/ internal/domain/ internal/application/ internal/infrastructure/ internal/config/ api/ migrations/

Rust: crates/domain/src/ crates/application/src/ crates/infrastructure/src/ crates/api/src/

FastAPI: `src/api/v1/end

Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • references/boilerplate-generation.md
  • references/config-reference.md
  • references/config-templates.md
  • references/project-init-advanced.md
  • references/project-init-checklist.md
  • references/project-init-fundamentals.md
  • references/project-scaffold.md
  • references/stack-templates.md
  • scripts/scaffold.sh

FAQ

Что делает скилл project-init?

Use when the user asks to scaffold a project, create the project structure, initialize a new repo from scratch, set up folders and config files or generate AGENTS.md. Scaffolds the directory tree and starter config for the detected or stated stack. Not for onboarding people (use core-onboarding) or dev containers (use dev-loop-dev-container).

Как установить скилл project-init?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл project-init запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить project-init с