twelve-factor-app-principles

twelve-factor-app-principles is a skill for Claude Code from shennawardana23/skillme. It costs 118 tokens per session (1,766 once invoked), scanned A, original, Apache-2.0.

A set of guidelines for building services that can run consistently across development, testing, and production. It explains where configuration belongs and how to avoid relying on hidden machine-specific state.

In plain words
What is it for?
Use it when designing or reviewing a backend service, creating a microservice, containerizing an application, or investigating production differences.
Why use it?
It reduces problems such as “works on my machine,” mismatched environments, and deployments that depend on local files or settings.

Skill for Claude Code

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

Part of the skillme plugin — 137 skills, 2 commands shipped together

Good fit Use it when designing or reviewing a backend service, creating a microservice, containerizing an application, or investigating production differences.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/shennawardana23/skillme/twelve-factor-app-principles
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 shennawardana23/skillme --skill twelve-factor-app-principles
Clone the repo
git clone --depth 1 https://github.com/shennawardana23/skillme

Made for: Claude Code.

Or install skillme, the plugin that ships this one along with the rest of its 137 skills, 2 commands.

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-app-principles

README.md
[![agentmods](https://agentmods.dev/badge/skills/shennawardana23/skillme/twelve-factor-app-principles/github.svg)](https://agentmods.dev/skills/shennawardana23/skillme/twelve-factor-app-principles)
Your own site
<a href="https://agentmods.dev/skills/shennawardana23/skillme/twelve-factor-app-principles"><img src="https://agentmods.dev/badge/skills/shennawardana23/skillme/twelve-factor-app-principles/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-app-principles

Your own site · 80×15
<a href="https://agentmods.dev/skills/shennawardana23/skillme/twelve-factor-app-principles"><img src="https://agentmods.dev/badge/skills/shennawardana23/skillme/twelve-factor-app-principles.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 118 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,766 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.
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.00118 $0.01766
Opus 5 $0.00059 $0.00883
Sonnet 5 $0.00024 $0.00353
Haiku 4.5 $0.00012 $0.00177

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

Security

Grade A, and why

twelve-factor-app-principles 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 8d 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.

skills/twelve-factor-app-principles/SKILL.md · 145 lines

How it starts

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

Twelve-Factor App Principles

The Twelve-Factor App (12factor.net) is a methodology for building services that can be deployed, scaled, and handed off between engineers without hidden local state or environment-specific assumptions. This skill paraphrases its own principles — for the canonical text, see the source website rather than copying prose from here.

Rather than restate all twelve one by one, group them by the failure mode each one prevents — this is more useful for review than memorizing a list.

Group 1: One codebase, config and environment kept out of code

  • One codebase tracked in version control, many deploys from it. Every running instance — local, staging, production — traces back to the same repository at different points in its history; if two environments are running code that lives in genuinely different repositories (a fork, a copy-pasted variant), you no longer have one deployable app, you have two apps pretending to be one. A service should never require its own divergent copy of the repo per environment.
  • Config in the environment, not in code. Anything that varies between deploys (database URLs, API keys, feature flags, hostnames) belongs in environment variables or a secrets manager, never hardcoded or committed in a config file checked into version control. A quick test: could you make the repository public without leaking a secret or an environment-specific value? If not, something in "config" is misplaced.
  • Dev/prod parity. Keep the gap between local, staging, and production as small as possible — same backing service types (don't run SQLite locally and Postgres in prod), same dependency versions, short lead time between a code change and its deploy. Most "works on my machine" bugs trace back to a parity gap here.

Group 2: Backing services are attached resources, not internal state

  • Every external system a service talks to — its database, a queue, a cache, a third-party API — should be swappable purely by changing a config value, with no code change required. A service shouldn't need a code change to point at a different Postgres instance — only a changed connection string. This makes it easy to point a local dev environment at a throwaway instance without touching the code that talks to it.
  • Explicit, declared dependencies. Every library the service needs is declared in a manifest (go.mod, package.json) and pinned — never relying on something happening to be present on the host system.

Read the full file on GitHub · 145 lines

Files

What ships with it

1 file 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. 8d ago First seen · 145 lines · 118 tokens per session scan A 890e04c7162d

Subscribe to this mod's changes

twelve-factor-app-principles is a skill published in the GitHub repository shennawardana23/skillme (2 stars, last pushed 13d ago), licensed Apache-2.0. It adds 118 tokens to every session and 1,766 once invoked, about $0.0006 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-09-03.

Related

Other skills, from other repositories

spring-boot-project-creator

Creates and scaffolds a new Spring Boot project (3.x or 4.x) by downloading from Spring Initializr, generating package structure (DDD or Layered architecture), configuring JPA, SpringDoc OpenAPI, and Docker Compose services (PostgreSQL, Redis, MongoDB). Use when creating a new Java Spring Boot project from scratch…

giuseppe-trisciuoglio/developer-kit · 89 tokens

temporal-developer

Develop, debug, and manage Temporal applications across Python, TypeScript, Go, Java, .NET, Ruby, and Rust. Use when the user is building workflows, activities, or workers with a Temporal SDK, debugging issues like non-determinism errors, stuck workflows, or activity retries, using Temporal CLI, Temporal Server, or…

temporalio/skill-temporal-developer · 161 tokens

upstash-box-js

Work with the @upstash/box TypeScript/JavaScript SDK for sandboxed cloud containers with AI agents, shell, filesystem, git, cron schedules, snapshots, and a headless browser. Use when building with Upstash Box, creating a sandbox or isolated environment to run untrusted or agent-generated code, running AI coding…

upstash/skills · 112 tokens

configure-reverse-proxy

Configure reverse proxy patterns across multiple tools including Nginx, Traefik, and ShinyProxy. Covers WebSocket proxying, path-based and host-based routing, SSL termination, and Docker label auto-discovery. Use when routing multiple services behind a single entry point, proxying WebSocket connections (Shiny…

pjt222/agent-almanac · 98 tokens

wp-env-local-dev

Run a local WordPress development environment with wp-env (the official @wordpress/env Docker wrapper) — the default choice for plugin and block development. Covers the npx @wordpress/env command (and the trap that bare "npx wp-env" installs an unrelated stub package), the .wp-env.json config (core, phpVersion…

Lonsdale201/wp-agent-skills · 210 tokens

k8s-yaml-generator

Comprehensive toolkit for generating, validating, and managing Kubernetes YAML resources. Use this skill when creating Kubernetes manifests (Deployments, Services, ConfigMaps, StatefulSets, etc.), working with Custom Resource Definitions (CRDs), or generating production-ready K8s configurations.

pantheon-org/tekhne · 60 tokens