From server-side-swift
Bootstrap new Vapor server-side Swift services with the official Vapor CLI, Vapor Environment, Fluent ORM, PostgreSQL, CLI-generated Dockerfile and Docker Compose support, generated AGENTS guidance, and SwiftPM validation. Use when creating a fresh Vapor service from scratch or maintaining this skill's bootstrap defaults.
How this skill is triggered — by the user, by Claude, or both
Slash command
/server-side-swift:bootstrap-vapor-serviceThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Create a new Vapor service repository from nothing to a consistent, database-backed local baseline.
Create a new Vapor service repository from nothing to a consistent, database-backed local baseline.
The practical decision is not whether Vapor should use the CLI, Fluent, PostgreSQL, Docker, or its built-in Environment system. The default is already chosen: start with the official Vapor CLI, use Vapor's Environment API for runtime environment and process settings, choose Fluent ORM with PostgreSQL, and preserve the CLI-generated Dockerfile and Docker Compose Postgres surface during bootstrap.
AGENTS.md guidance.vapor-server-workflow.persistence-workflow.docker-workflow.Use repo-local Swift files, checked-out dependency sources, Dash MCP or Dash HTTP for installed Vapor DocC first, then official Vapor documentation when Dash/local coverage is missing or stale:
Use SwiftPM and Swift.org documentation for package, toolchain, and Linux behavior when Vapor docs do not own the rule being used.
namedestinationdatabase_namedatabase_userdatabase_passwordskip_validationswiftgitvaporvapor new <name>
Sources/App/configure.swiftSources/App/routes.swiftEnvironment for runtime behavior:
app.environmentEnvironment.get or Environment.process for process settings.env content as a safe template only.env.* overrides ignored when they may contain local or secret values.dockerignore, Dockerfile, and Compose file.env templateassets/AGENTS.md into the new repository rootAGENTS.md is not visible inside ordinary service repositoriestemplates/codex-local-environments/vapor.toml into .codex/environments/vapor.tomlAppswift buildswift testdocker compose configdocker build .docker compose up -d postgresswift run App migrate after confirming the generated database config and migration listswift run App serve only when runtime startup validation is requestedvapor new <name>AGENTS.mdEnvironmentlocalhost5432development-passwordskip_validation is requestedstatus
success: service scaffold, repo guidance, and requested validation completedblocked: prerequisites, target-directory constraints, or unsupported CLI choices prevented the runfailed: the scaffold started but generation, dependency wiring, or validation failedpath_type
primary: official Vapor CLI bootstrap pathfallback: non-mutating guidance only because the CLI path could not safely runoutput
Environment and dotenv sourcecompose.yaml shapeAGENTS.md installedvapor new, Vapor Environment, Fluent ORM, PostgreSQL, and Docker Compose for every fresh Vapor service unless the user explicitly approves a project-specific exception.vapor new; validate and keep them in the initial scaffold.Environment with a second settings framework for standard runtime configuration..env.* files with sensitive values, machine-local paths, or private dependency URLs.vapor --help, or generated scaffold files.docker-workflow only when changing beyond the CLI-generated Docker baseline, such as adding nonstandard services, registry publishing, CI image builds, deployment-runtime tuning, or image hardening.vapor is missing and Homebrew is acceptable, install with:
brew install vapor
vapor is unavailable and cannot be installed, stop with a non-mutating fallback plan. Do not silently switch to a manual SwiftPM scaffold.vapor-server-workflow for routes, controllers, middleware, commands, app configuration, and Vapor tests.persistence-workflow for models, migrations, query design, transactions, and database-backed tests after the initial baseline exists.docker-workflow for production Dockerfiles, multi-stage images, image validation, registries, or container deployment.fly-io-deployment-workflow for Fly.io apps, Fly Postgres, secrets, health checks, and deploy validation.assets/AGENTS.mdnpx claudepluginhub gaelic-ghost/socket --plugin server-side-swiftCreates, edits, and verifies skills using a test-driven development approach with pressure scenarios and subagents.