Developer Documentation & Internal Systems Guide
StackPilot is built on three core pillars that work in sequence to move from a project description to a production-ready monorepo.
Uses LLMs (Gemini, Claude, GPT) to parse intent signals like "fast", "marketplace", or "real-time" into structured stack selections.
A deterministic rule engine that ensures selected components (e.g., Supabase + Prisma) are technically compatible before scaffolding.
The execution layer that copies templates, injects variables via Handlebars, and orchestrates dependency installation.
The CLI is distributed via NPM as stack-pilot-architect.
# Initialize your AI provider (Stored in local config)
stack-pilot-architect init
# Start the interactive AI scaffolding flow
stack-pilot-architect create
# Manually override or update specific stack configurations
stack-pilot-architect override
Config is stored in the CLI installation directory. The init command manages these keys, but they can be bypassed using environment variables:
STACKPILOT_GEMINI_API_KEYSTACKPILOT_OPENAI_API_KEYSTACKPILOT_AI_PROVIDERStackPilot maintains a strict project organization policy to keep your development machine head-clean.
Documents/StackPilot/projects/ by default.npm install, git init, and DB generation.Beyond core stack templates, StackPilot uses shared assets to handle platform-specific configurations.
Docker, Vercel, and Railway. These are injected into projects based on the user's choice, ensuring consistent infrastructure across different tech stacks.generate-templates.js is used to validate or pre-process the template registry before build.Templates live in the /templates directory. To add a new stack:
/templates/[stack-name].manifest.json defining the stack capabilities./root subfolder using .hbs extension for dynamic files.config/stacks.config.json to register the new valid options.