/all-skills:twelve-factorfrom all-skills
Guide for 12-Factor cloud-native applications. Use when designing microservices, configuring containers, deploying to Kubernetes, or following cloud-native patterns.
Ships in all-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Guide for building scalable, maintainable, and portable cloud-native applications following the 12-Factor App principles and modern extensions.
This skill follows core:anti-fabrication. The 12 factors themselves are the
methodology cited in sources.md (12factor.net) — a stable, versionless reference, so
naming a factor correctly is low-risk. The risk sits in the worked examples: the
Kubernetes manifests, runtime.exs snippets, and Docker Compose configs in
references/kubernetes.md and references/factor-examples.md assert real API fields
(e.g. livenessProbe, ConfigMap keys) that do change across Kubernetes versions —
verify a manifest field against current API docs before asserting it applies, rather
than assuming an older example still matches the current API.
One codebase tracked in revision control, many deploys
Violations: multiple repositories for one application, per-environment codebases, copying code between repositories. Fix: consolidate to one repository and move the differences into environment config.
Explicitly declare and isolate dependencies
package-lock.json, mix.lock, Cargo.lock, go.sum)Worked Dockerfile and per-language manifest list: references/factor-examples.md.
Store config in the environment
All configuration comes from environment variables — anything that varies between deploys: credentials, hostnames, ports, pool sizes, backing service URLs, model names.
# Elixir - config/runtime.exs
config :my_app, MyApp.Repo,
hostname: System.get_env("DATABASE_HOST") || "localhost",
password: System.fetch_env!("DATABASE_PASSWORD"),
pool_size: String.to_integer(System.get_env("POOL_SIZE") || "10")
What makes a violation, and the smallest correct fix:
.example templateif env == "production") → one code path driven by a config valueLitmus test from 12factor.net: the codebase could be made open source at any moment without compromising any credentials.
Kubernetes ConfigMap/Secret wiring: references/kubernetes.md.
Treat backing services as attached resources
Strictly separate build and run stages
CI/CD pipeline example: references/factor-examples.md.
Execute the app as one or more stateless processes
Session-store example: references/factor-examples.md. Deployment manifest: references/kubernetes.md.
Export services via port binding
0.0.0.0, never localhost; take the port number from the environmentScale out via the process model
Maximize robustness with fast startup and graceful shutdown
Graceful-shutdown example: references/factor-examples.md.
Keep development, staging, and production as similar as possible
Docker Compose dev-environment example: references/factor-examples.md.
Treat logs as event streams
Run admin/management tasks as one-off processes
Kubernetes Job/CronJob examples: references/kubernetes.md.
Three extensions round out contemporary cloud-native practice — full detail and examples in references/modern-extensions.md:
/metrics endpoint, distributed tracing (OpenTelemetry), health check endpointsValidate required configuration at startup — fail fast, naming the missing variables:
function validateConfig() {
const required = ['DATABASE_URL', 'JWT_SECRET', 'REDIS_URL'];
const missing = required.filter(key => !process.env[key]);
if (missing.length > 0) {
throw new Error(`Missing required environment variables: ${missing.join(', ')}`);
}
}
// Call before starting server
validateConfig();
Health checks, graceful degradation, and the troubleshooting guide: references/operations.md.
// DON'T: branch on environment
if (process.env.NODE_ENV === 'production') { /* different behavior */ }
// DO: one code path, configured value
const timeout = parseInt(process.env.TIMEOUT || '5000');
// DON'T: write persistent data to local filesystem
fs.writeFile('/tmp/uploads/' + filename, data);
// DO: use object storage
await s3.putObject({ Bucket: process.env.S3_BUCKET, Key: filename, Body: data });
// DON'T: store state in memory
const sessions = new Map();
// DO: use external store
const session = await redis.get(`session:${sessionId}`);
// DON'T: hardcode service locations
const db = connect('localhost:5432');
// DO: use environment variables
const db = connect(process.env.DATABASE_URL);
"The twelve-factor methodology can be applied to apps written in any programming language, and which use any combination of backing services (database, queue, memory cache, etc)."
"The twelve-factor app never assumes that anything cached in memory or on disk will be available on a future request or job – with many processes of each type running, chances are high that a future request will be served by a different process." — Factor VI, Processes
Design applications from day one to be cloud-native, scalable, and maintainable.
references/factor-examples.md — per-factor worked code examples (Dockerfile, runtime config, session storage, graceful shutdown, Docker Compose, structured logging, CI/CD pipeline)references/kubernetes.md — Kubernetes manifests per factor (ConfigMaps, Secrets, Deployments, HPA, Jobs, probes) and Kubernetes-specific best practicesreferences/modern-extensions.md — API First, Telemetry, and Security extensions with examplesreferences/operations.md — health check endpoints, graceful degradation, troubleshooting guidereferences/infrastructure-conventions.md — NGINX upstream over community ingress; Kustomize + Helm layout; single universal secret store; IaC over manual UI; bind all interfaces in prodWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub vinnie357/claude-skills --plugin all-skills108 skills in this plugin
/accessibilityGuide for implementing web accessibility (WCAG). Use when designing UI components, reviewing interfaces for accessibility, or ensuring compliance with W3C WAI standards./actTest GitHub Actions locally using act. Use when debugging workflows locally, testing workflow changes before pushing, or troubleshooting action failures./actionsCreate and configure GitHub Actions. Use when building custom actions, setting up runners, implementing security practices, or publishing to the marketplace./agent-loopGeneric epic-to-PR agent workflow (codename Forge) with 4-phase execution, a 6-tier hierarchy, and paired-team fan-out. Use when coordinating any feature delivery, working an issue or epic ("work epic <id>", "work issue <id>", "use Forge on the next bees ready item", "forge <id>"), picking up an epic in a fresh session (decomposing path) or with pre-existing issues (dispatching path), implementing a multi-step task that benefits from plan→test→implement→review phases, asking clarifying questions before decomposing, forming a team and assigning models per tier, or orchestrating multi-agent workflows. Loads on casual feature requests too — not only when the word "epic" appears.2 plugins in one repository ship this exact skill · first indexed Aug 27, 2026
Other plugins' skills for the same job