Opinionated golden paths for building, assessing, and safely improving production-minded repositories.
Website Β· Quick start Β· Golden paths Β· Repository engineering Β· Architecture Β· Ecosystem Β· Development
StackPilot is a Rust-powered golden-path engine for both new and existing repositories. It scaffolds opinionated backend projects, inspects existing repositories, calculates a deterministic production-readiness score, previews safe remediation, and upgrades StackPilot-managed foundations over time.
PROJECT INTENT OR EXISTING REPOSITORY
β
STACKPILOT
β
βββββββββββββΌβββββββββββββ
β β β
SCAFFOLD INSPECT UPGRADE
β β β
GOLDEN READINESS MANAGED
PATH + FIX PLAN LIFECYCLE
For deployable services, StackPilot defaults toward PostgreSQL, AWS, Docker, CI, and Terraform. Every generated backend service begins from the same contract: /health, port 3000, container support, language-native CI, environment metadata, optional Terraform infrastructure, and golden-path lifecycle metadata.
v0.2 focus: backend golden paths plus deterministic repository intelligence, safety-first remediation, security foundations, AWS ECS/Fargate deployment intelligence, and managed golden-path upgrades. Additional deployment targets and frontend/full-stack golden paths remain roadmap work.
StackPilot recommends one production-minded framework per supported backend ecosystem.
| Language | Golden path | Typical output |
|---|---|---|
| π¦ Rust | Axum | Backend API / service |
| πΉ Go | Chi | Backend API / service |
| π¦ TypeScript | NestJS | Backend API / service |
| π Python | FastAPI | Backend API / service |
| β Java | Spring Boot | Backend API / service |
| π£ C# | ASP.NET Core | Backend API / service |
The normal workflow recommends instead of overwhelming. Automation can still override supported infrastructure choices when required.
Linux / macOS:
curl -fsSL https://raw.githubusercontent.com/gODtECH-Ctl-Create/StackPilot/main/scripts/install.sh | shWindows PowerShell:
irm https://raw.githubusercontent.com/gODtECH-Ctl-Create/StackPilot/main/scripts/install.ps1 | iexInteractive:
stackpilot newNamed project:
stackpilot new payment-service --recipe basePreview before writing anything:
stackpilot plan payment-service \
--non-interactive \
--kind "Backend API" \
--language Go \
--framework Auto \
--database PostgreSQL \
--cloud AWS \
--docker true \
--ci true \
--terraform trueThen generate the same plan:
stackpilot new payment-service \
--recipe base \
--non-interactive \
--kind "Backend API" \
--language Go \
--framework Auto \
--database PostgreSQL \
--cloud AWS \
--docker true \
--ci true \
--terraform true01 Use this template
02 Open Actions β Configure StackPilot Template
03 Choose a language
04 Adjust infrastructure only when necessary
05 Run the workflow
06 Review the generated repository
For local interactive setup after cloning the template:
stackpilot bootstrapKeep the engine while testing bootstrap:
stackpilot bootstrap --keep-enginestackpilot inspect .inspect is deterministic and read-only. It detects language/framework, Docker, CI/CD, Terraform, health checks, environment hygiene, security foundations, StackPilot metadata, and supported deployment signals.
The versioned readiness-v1 model scores repositories out of 100 across Runtime, Delivery, Infrastructure, Security, and Operability.
Use it as a CI quality gate:
stackpilot inspect . --fail-below 80stackpilot fix .Preview is the default. Nothing is written until --apply is supplied:
stackpilot fix . --applyExplicit options include:
stackpilot fix . --cloud AWS
stackpilot fix . --security
stackpilot fix . --deployment aws-ecs-fargateStackPilot only mutates verified deterministic foundations. Ambiguous layouts are deferred instead of guessed, application changes use compare-before-write protection, and symlinked targets are refused.
Preview a lifecycle migration:
stackpilot upgrade .Apply it explicitly:
stackpilot upgrade . --applyGolden-path versioning is independent from the .stackpilot.toml schema version. V0.2 introduces golden path v2 and a deterministic migration from legacy v1 projects. The first lifecycle migration normalizes legacy metadata and brings CI-enabled StackPilot projects onto the managed V0.2 security foundation while preserving application source files.
CI-enabled V0.2 golden paths include ecosystem-aware Dependabot configuration plus a hardened security workflow with dependency, secret and misconfiguration scanning, CycloneDX SBOM generation, conditional container image scanning, and explicit read-only GitHub Actions permissions.
For verified Dockerized AWS backend golden paths, inspect can recommend AWS ECS/Fargate. Explicit remediation can generate additive Terraform for:
- Amazon ECR
- ECS/Fargate cluster, task and service
- Application Load Balancer and target group
- IAM execution/task roles
- CloudWatch logs and container insights
/healthload-balancer health checks- deployment variables and outputs
VPC and subnet topology remain explicit inputs. StackPilot generates the deployment foundation; it does not become a long-running cloud deployment control plane.
flowchart LR
A[Project intent / existing repo] --> B[StackPilot CLI]
B --> C{Workflow}
C -->|new / bootstrap| D[Golden-path selector]
C -->|inspect| E[Deterministic repository intelligence]
C -->|fix| F[Safety-first remediation planner]
C -->|upgrade| G[Managed lifecycle migration]
D --> H[Recipe renderer]
H --> I[Generated repository]
E --> J[Readiness-v1]
F --> K[Preview / explicit apply]
G --> L[Versioned managed foundation]
The engine stays independent from generated project languages. Recipes own stack-specific output; the Rust core owns selection, validation, rendering, repository inspection, safety, and lifecycle behavior.
| Area | StackPilot provides |
|---|---|
| Scaffolding | Native Rust CLI, template bootstrap, interactive and non-interactive project generation |
| Golden paths | One opinionated backend framework per supported language, with deterministic recipe rendering |
| Repository intelligence | Read-only inspection plus versioned readiness-v1 scoring and CI thresholds |
| Remediation | Preview-first deterministic fixes for env hygiene, Docker, CI, Terraform, health checks and StackPilot metadata |
| Security | Dependabot, dependency/secret/misconfiguration scanning, SBOM generation, container scanning and least-privilege workflow permissions |
| Deployment | AWS ECS/Fargate recommendation and additive Terraform deployment foundation |
| Lifecycle | .stackpilot.toml, golden_path_version, preview-first stackpilot upgrade, source-preserving managed migrations |
| Safety | Symlink refusal, ambiguity deferral, non-destructive previews, compare-before-write source protection |
| Distribution | Cross-platform release workflow, bundled recipes, checksums and installed-release smoke tests |
Supported alternatives include MySQL, MongoDB, SQLite, or no database, plus Azure, GCP, or no cloud where the recipe supports them.
StackPilot, gODtECH FORGE, and gODtECH Steward are independent products with deliberately separated responsibilities.
FORGE
ORCHESTRATE / GOVERN / VERIFY
|
+-------------+-------------+
| |
v v
StackPilot Steward
BUILD IT KEEP IT HEALTHY
| |
+-------------+-------------+
v
TARGET PROJECT
StackPilot owns project scaffolding, golden paths, stack-aware readiness/remediation, deployment foundations, and managed golden-path lifecycle upgrades.
Steward owns deterministic repository housekeeping, health findings, stable scan/report contracts, and conservative remediation.
FORGE owns AI-assisted engineering orchestration, bounded context, risk classification, approvals, resumable workflows, evidence-aware delivery, and cross-tool governance.
StackPilot can optionally consume a versioned Steward scan report as observational input. It does not copy Steward rules, invoke Steward remediation, or fold Steward health into readiness-v1.
FORGE may orchestrate StackPilot and Steward through their public interfaces when a workflow needs both project engineering and repository-health evidence.
Boundary rule: golden-path and stack-aware semantics belong in StackPilot; generic repository housekeeping belongs in Steward; cross-product workflow and governance belong in FORGE.
See the full ecosystem overview and the Steward integration contract.
graph TD
U[Developer / CI] --> CLI[StackPilot CLI]
CLI --> SEL[Golden-path selector]
CLI --> INS[Repository inspection]
CLI --> FIX[Remediation planner]
CLI --> UP[Lifecycle upgrader]
SEL --> REC[Recipe manifests]
REC --> MJ[MiniJinja renderer]
MJ --> OUT[Generated / managed repository]
INS --> SCORE[Readiness-v1]
FIX --> OUT
UP --> OUT
OUT --> APP[Application code]
OUT --> DOC[Docker / Compose]
OUT --> CI[CI + security]
OUT --> INF[Terraform / ECS foundation]
OUT --> CFG[.stackpilot.toml]
/health health endpoint
:3000 default application port
Docker container-ready output
CI language-native validation/build pipeline
Security managed baseline for CI-enabled projects
.stackpilot.toml persisted profile + golden-path version
Terraform optional infrastructure foundation
| Command | Purpose |
|---|---|
stackpilot bootstrap |
Turn the current template repository into the selected project |
stackpilot new |
Generate a separate project |
stackpilot plan |
Preview exactly what would be generated without writing files |
stackpilot inspect |
Inspect an existing repository and calculate readiness-v1 |
stackpilot fix |
Preview or apply safe deterministic remediation |
stackpilot upgrade |
Preview or apply a StackPilot-managed golden-path lifecycle migration |
stackpilot recipes |
Discover available recipes |
stackpilot doctor |
Run StackPilot environment and recipe diagnostics |
StackPilot release tags use semantic versioning in the form vMAJOR.MINOR.PATCH. The release workflow publishes native binaries for Linux x86_64, macOS Intel, macOS Apple Silicon, and Windows x86_64, plus a SHA256SUMS file. Release archives also contain StackPilot's recipe library, and the installer places those recipes beside the executable so commands work from any directory.
Linux / macOS installer:
curl -fsSL https://raw.githubusercontent.com/gODtECH-Ctl-Create/StackPilot/main/scripts/install.sh | shWindows PowerShell:
irm https://raw.githubusercontent.com/gODtECH-Ctl-Create/StackPilot/main/scripts/install.ps1 | iexIf a tagged binary release is not yet available, run StackPilot from source:
git clone https://github.com/gODtECH-Ctl-Create/StackPilot.git
cd StackPilot
cargo run -- --helpMaintainers should follow the release checklist in docs/releasing.md. A release should not be announced as installable until all expected platform archives and SHA256SUMS are present and the installed-release matrix is green.
See CHANGELOG.md for release highlights.
Before opening a pull request, run:
cargo fmt --all -- --check
cargo clippy --all-targets --all-features -- -D warnings
cargo test --allStackPilot CI also validates the engine, website, all six generated golden paths, remediation adapters, security baseline, AWS ECS/Fargate foundation, and lifecycle upgrade contract.
StackPilot is available under the MIT License. See LICENSE.
Build from a golden path. Know your readiness. Improve safely.