Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

project-initialization-phase

БесплатноБез исполняемых скриптовНе проверен

Orchestrates /init-project command execution through interactive questionnaire (15 questions), brownfield codebase scanning (tech stack detection, ERD from…

marcusgollот marcusgoll★ 97 звёзд на GitHub

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

Guide execution of the /init-project command to generate 8 comprehensive project-level design documents through interactive questionnaire, brownfield codebase scanning, and cross-document consistency validation. Embodies "Planning is 80% of the project, 20% code" philosophy.

This skill orchestrates one-time project setup, producing foundation documentation that all features must align with.

Core responsibilities:

  • Detect project type (greenfield vs brownfield)
  • Run interactive questionnaire (15 questions covering vision, scale, tech stack, constraints)
  • Scan existing codebase (if brownfield) to auto-fill docs
  • Launch project-architect agent to generate 8 documentation files
  • Validate cross-document consistency
  • Present summary with [NEEDS CLARIFICATION] count

Inputs: User answers (15 questions), existing codebase (if brownfield), templates from .spec-flow/templates/project/ Outputs: 8 markdown files in docs/project/ (overview, architecture, tech-stack, data, API, capacity, deployment, workflow) Expected duration: 15-20 minutes (10 min questions + 5-10 min generation/review)

Execute /init-project workflow in 6 steps:
  1. Detect project type - Check for package.json, requirements.txt, etc. (greenfield vs brownfield)
  2. Interactive questionnaire - Ask 15 questions (project name, vision, scale, tech stack, constraints)
  3. Brownfield scanning (if applicable) - Auto-detect tech stack, ERD from migrations, architecture pattern
  4. Launch project-architect agent - Generate 8 docs from templates + answers + scan results
  5. Validate documentation - Verify all 8 files exist, [NEEDS CLARIFICATION] count < 20, Mermaid diagrams present
  6. Summary report - Show coverage (greenfield: 70% filled, brownfield: 80% filled), next steps

Key principle: Mark unknowns with [NEEDS CLARIFICATION] instead of hallucinating.

Project initialization phase complete when:
  • All 8 files generated in docs/project/ (overview, system-architecture, tech-stack, data-architecture, api-strategy, capacity-planning, deployment-strategy, development-workflow)
  • [NEEDS CLARIFICATION] count < 20 (indicates good coverage from questionnaire/scan)
  • Mermaid diagrams present and valid (C4 in system-architecture, ERD in data-architecture)
  • Cross-document consistency validated (tech stack, database, deployment model aligned)
  • Tech stack accurately detected (brownfield only)
  • User informed of next steps (review docs, fill clarifications, commit)

If [NEEDS CLARIFICATION] count > 30, re-run questionnaire with more detailed answers or manually fill post-generation.

Environment checks:

  • Templates exist in .spec-flow/templates/project/ (8 files: overview-template, system-architecture-template, etc.)
  • docs/ directory exists or can be created
  • Project-architect agent available at .claude/agents/phase/project-architect.md

Knowledge requirements:

  • Understanding of greenfield vs brownfield projects
  • Familiarity with tech stack detection strategies (package.json, requirements.txt parsing)
  • ERD generation from database migrations (Alembic, Prisma)
  • Cross-document consistency validation patterns

Before running: ⚠️ WARNING: /init-project generates 8 files in docs/project/. If directory already exists, offer user to:

  • A) Backup existing docs to docs/project-backup-{timestamp}/
  • B) Append to existing docs (merge new sections)
  • C) Abort (user will manually update)
**Detect Project Type (Greenfield vs Brownfield)**

Determine if starting from scratch (greenfield) or with existing codebase (brownfield).

Detection Logic:

# Check for existing codebase indicators
if [ -f "package.json" ]; then
  PROJECT_TYPE="brownfield"
  TECH_DETECTED="Node.js"
elif [ -f "requirements.txt" ] || [ -f "pyproject.toml" ]; then
  PROJECT_TYPE="brownfield"
  TECH_DETECTED="Python"
elif [ -f "Cargo.toml" ]; then
  PROJECT_TYPE="brownfield"
  TECH_DETECTED="Rust"
elif [ -f "go.mod" ]; then
  PROJECT_TYPE="brownfield"
  TECH_DETECTED="Go"
elif [ -f "Gemfile" ]; then
  PROJECT_TYPE="brownfield"
  TECH_DETECTED="Ruby"
else
  PROJECT_TYPE="greenfield"
fi

Inform user:

if [ "$PROJECT_TYPE" = "brownfield" ]; then
  echo "✅ Detected existing codebase ($TECH_DETECTED)"
  echo "   Will scan codebase to auto-fill project docs"
else
  echo "ℹ️  No existing codebase detected (greenfield project)"
  echo "   Will generate templates with [NEEDS CLARIFICATION] markers"
fi

Quality check: Correct project type detected? If unclear (e.g., multiple languages), ask user which is primary.

**Interactive Questionnaire (15 Questions)**

Gather essential project context to fill documentation templates.

Question Flow (full list in reference.md):

# Q1: Project name
read -p "Q1. Project n
Полный SKILL.md на GitHub

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

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

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

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

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

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

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

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

reference.md

FAQ

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

Orchestrates /init-project command execution through interactive questionnaire (15 questions), brownfield codebase scanning (tech stack detection, ERD from migrations), and 8-document generation (overview, architecture, tech-stack, data, API, capacity, deployment, workflow). Use when user runs /init-project, requests project documentation generation, or asks about architecture setup for greenfield/brownfield projects. (project)

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

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

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

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

Сравнить project-initialization-phase с