twelve-factor

twelve-factor is a skill for Claude Code from vinnie357/claude-skills. It costs 33 tokens per session (2,274 once invoked), scanned A, original, MIT.

A guide to the 12-Factor App method for building cloud applications that are easier to deploy and maintain. It covers practices for services, containers, Kubernetes, and other cloud setups.

In plain words
What is it for?
Use it when designing microservices, setting up containers, deploying to Kubernetes, or reviewing cloud-application structure.
Why use it?
It helps avoid common deployment and configuration problems when an application runs in multiple environments.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the core plugin — 14 skills, 5 commands, 7 agents, 1 hook shipped together

Good fit Use it when designing microservices, setting up containers, deploying to Kubernetes, or reviewing cloud-application structure.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/vinnie357/claude-skills/twelve-factor
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add vinnie357/claude-skills --skill twelve-factor
Clone the repo
git clone --depth 1 https://github.com/vinnie357/claude-skills

Made for: Claude Code.

Or install core, the plugin that ships this one along with the rest of its 14 skills, 5 commands, 7 agents, 1 hook.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for twelve-factor

README.md
[![agentmods](https://agentmods.dev/badge/skills/vinnie357/claude-skills/twelve-factor/github.svg)](https://agentmods.dev/skills/vinnie357/claude-skills/twelve-factor)
Your own site
<a href="https://agentmods.dev/skills/vinnie357/claude-skills/twelve-factor"><img src="https://agentmods.dev/badge/skills/vinnie357/claude-skills/twelve-factor/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for twelve-factor

Your own site · 80×15
<a href="https://agentmods.dev/skills/vinnie357/claude-skills/twelve-factor"><img src="https://agentmods.dev/badge/skills/vinnie357/claude-skills/twelve-factor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,274 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00033 $0.02274
Opus 5 $0.00016 $0.01137
Sonnet 5 $0.00007 $0.00455
Haiku 4.5 $0.00003 $0.00227

Measured 10d ago against content hash b0fe0d3272b2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

twelve-factor scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/core/skills/twelve-factor/SKILL.md · 264 lines

How it starts

The opening of the file, as written. The whole thing — 264 lines — stays where its author put it; the contents beside it link to each section on GitHub.

12-Factor App Methodology

Guide for building scalable, maintainable, and portable cloud-native applications following the 12-Factor App principles and modern extensions.

Anti-fabrication

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.

The 12 Factors

I. Codebase

One codebase tracked in revision control, many deploys

  • Single Git repository for the application; every environment deploys from it
  • Environment-specific config lives outside the code
  • Use GitOps (ArgoCD, Flux) for deployment automation

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.

II. Dependencies

Explicitly declare and isolate dependencies

  • Declare every dependency in the package manager manifest; never rely on system-wide packages
  • Commit lock files for reproducible builds (package-lock.json, mix.lock, Cargo.lock, go.sum)
  • Multi-stage container builds isolate build-time dependencies from the runtime image

Worked Dockerfile and per-language manifest list: references/factor-examples.md.

III. Config

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")

Read the full file on GitHub · 264 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 264 lines · 33 tokens per session scan A b0fe0d3272b2

Subscribe to this mod's changes

twelve-factor is a skill published in the GitHub repository vinnie357/claude-skills (25 stars, last pushed today), licensed MIT. It adds 33 tokens to every session and 2,274 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

azd-deployment

Deploy containerized frontend + backend applications to Azure Container Apps with remote builds, managed identity, and idempotent infrastructure.

sickn33/agentic-awesome-skills · 29 tokens

openshell-cli

Guide agents through using the OpenShell CLI (openshell) for sandbox management, gateway registration, provider configuration and refresh, policy iteration, settings, service exposure, BYOC workflows, and inference routing. Covers basic through advanced multi-step workflows. Trigger keywords - openshell, sandbox…

NVIDIA/OpenShell · 127 tokens

langbot-deploy

Deploy and configure a LangBot instance — Docker / Docker Compose, Kubernetes, the config.yaml model, the Box sandbox runtime, the plugin runtime, and the global API key. Use when installing, deploying, upgrading, or configuring LangBot in production or self-hosted environments. Triggers on "deploy langbot", "langbot…

langbot-app/LangBot · 104 tokens

compute-env-setup

Set up a compute environment on a remote provider so Claude Science jobs can run there. Covers direct SSH/conda hosts, Slurm clusters, container-via-bridge runners, and managed-API providers (Modal, GCP, RunPod). Use when standing up a new provider, porting an env to a different backend, adding a tool that needs its…

UnicomAI/wanwu · 134 tokens

azure-cloud-migrate

Assess and migrate cross-cloud workloads to Azure with reports and code conversion. Supports Lambda→Functions, Beanstalk/Heroku/App Engine→App Service, Fargate/Kubernetes/Cloud Run/Spring Boot→Container Apps. WHEN: migrate Lambda to Functions, AWS to Azure, migrate Beanstalk, migrate Heroku, migrate App Engine, Cloud…

microsoft/skills · 106 tokens

atmos-helmfile

Helmfile orchestration: sync/apply/destroy/diff, Kubernetes deployments, varfile generation, EKS integration, source management.

cloudposse/atmos · 33 tokens