|
# Workflow: /init
<meta>
<trigger>/init</trigger>
<description>Runs the full project initialization protocol — collects context, scaffolds proportional structure with progressive typing, installs only confirmed dependencies, generates config files, creates a detailed README with True North, initializes Git, and generates the Workspace MD.</description>
</meta>
## Step 1 — Discovery Protocol
Collect fundamental project information: name, goal, stack (Next.js, Node/Express, etc.), TypeScript rigor level, and architectural preferences.
## Step 2 — Validation and Scaffolding
Folder structure creation based on Step 1 choices. Applies appropriate file extensions (.js vs .ts) and architectural patterns (Layered, Feature-based, or Clean Architecture).
## Step 3 — Dependencies & Toolchain
Selection and installation of core packages and tools like Prisma, NextAuth, or Shadcn/ui, always requesting confirmation before execution.
## Step 4 — Configuration Files
Generation of files like `.prettierrc`, `.eslintrc.json`, `tsconfig.json`, and `.nvmrc`, specifically adapted to the technical rigor defined for the project.
## Step 5 — Strategic README & Workspace MD
Delivery of the project's "True North": a navigation guide in the README and context documentation in Workspace MD to ensure AntiGravity understands all repository rules.