本文へ移動
cccskills
無料GitHub で公開

twelve-factor-app

Reference guide for the Twelve-Factor App methodology — 15 principles (12 original + 3 modern extensions) for building portable, resilient, cloud-native applications. Use when evaluating application architecture, designing cloud-native services, reviewing codebases for methodology compliance, advising on configuration, scaling, observability, security, and deployment patterns. Incorporates the 2025 open-source community evolution and cloud-native reinterpretations of each factor.

インストール方法を見る

含まれるファイル(32)

  • SKILL.md6.1 KB
  • assets/example_asset.txt865 B
  • references/admin-processes/admin-processes.md2.2 KB
  • references/admin-processes/index.md386 B
  • references/build-release-run/build-release-run.md3.5 KB
  • references/build-release-run/index.md344 B
  • references/codebase-and-dependencies/codebase.md1.9 KB
  • references/codebase-and-dependencies/dependencies.md3.3 KB
  • references/codebase-and-dependencies/index.md399 B
  • references/concurrency-and-disposability/concurrency.md2.1 KB
  • references/concurrency-and-disposability/disposability.md2.1 KB
  • references/concurrency-and-disposability/index.md488 B
  • references/configuration-and-backing-services/backing-services.md1.9 KB
  • references/configuration-and-backing-services/config.md3.2 KB
  • references/configuration-and-backing-services/index.md456 B
  • references/dev-prod-parity-and-logs/dev-prod-parity.md3.5 KB
  • references/dev-prod-parity-and-logs/index.md459 B
  • references/dev-prod-parity-and-logs/logs.md1.8 KB
  • references/methodology-overview/background.md2.2 KB
  • references/methodology-overview/index.md422 B
  • references/methodology-overview/introduction.md2.2 KB
  • references/modern-evolution-research.md27.0 KB
  • references/modern-evolution/beyond-15-factor.md8.7 KB
  • references/modern-evolution/governance.md6.8 KB
  • references/modern-evolution/index.md973 B
  • references/modern-evolution/monolith-modernization.md8.8 KB
  • references/modern-evolution/reactive-principles.md6.6 KB
  • references/processes-and-port-binding/index.md455 B
  • references/processes-and-port-binding/port-binding.md1.9 KB
  • references/processes-and-port-binding/processes.md3.1 KB
  • scripts/example.py807 B
  • twelve-factor-app.TODO.md2.0 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Twelve Factor App

The Twelve-Factor App is a methodology for building software-as-a-service applications that are portable, deployable on modern cloud platforms, and scalable without significant architectural changes. Originally published in 2011 by Adam Wiggins (Heroku), the methodology was open-sourced in November 2024 and is now actively maintained at github.com/heroku/12factor with community-driven updates for Kubernetes, containers, and GitOps workflows.

SOURCE: https://12factor.net/blog/open-source-announcement (accessed 2026-02-26)

The Twelve Factors

FactorPrinciple
I. CodebaseOne codebase tracked in revision control, many deploys
II. DependenciesExplicitly declare and isolate dependencies
III. ConfigStore config in the environment
IV. Backing servicesTreat backing services as attached resources
V. Build, release, runStrictly separate build and run stages
VI. ProcessesExecute the app as one or more stateless processes
VII. Port bindingExport services via port binding
VIII. ConcurrencyScale out via the process model
IX. DisposabilityMaximize robustness with fast startup and graceful shutdown
X. Dev/prod parityKeep development, staging, and production as similar as possible
XI. LogsTreat logs as event streams
XII. Admin processesRun admin/management tasks as one-off processes

Modern Extensions (Beyond 12-Factor)

Three additional factors are widely adopted in cloud-native practice, established by Kevin Hoffman's Beyond the Twelve-Factor App (O'Reilly, 2016) and formalized in the 15-factor methodology:

FactorPrinciple
XIII. API-FirstDesign and publish the service API contract before implementing the backing logic
XIV. TelemetryTreat observability (metrics, traces, structured logs) as a first-class operational requirement
XV. Authentication and AuthorizationElevate identity, authn, and authz to first-class concerns in service design

SOURCE: https://www.oreilly.com/library/view/beyond-the-twelve-factor/9781492042631/ (accessed 2026-02-26)

Reference Categories

Methodology Overview

Background, goals, target audience, and design philosophy.

Codebase and Dependencies (Factors I and II)

Version control discipline and explicit dependency management.

Configuration and Backing Services (Factors III and IV)

Environment-based config and treating backing services as swappable attached resources.

Build, Release, Run (Factor V)

Strict separation of the three stages that transform a codebase into a running deploy.

Processes and Port Binding (Factors VI and VII)

Stateless share-nothing process execution and self-contained service export via port binding.

Concurrency and Disposability (Factors VIII and IX)

Scaling via the process model and building robust disposable processes.

Dev/Prod Parity and Logs (Factors X and XI)

Minimizing environment gaps and treating logs as event streams.

Admin Processes (Factor XII)

Running one-off administrative and maintenance tasks as processes in the same environment as the app.

Modern Evolution

Open-source governance, narrow-conduit concept, 15-factor extensions, Reactive Principles, and monolith modernization patterns.

Quick Compliance Checklist

Use this to audit an application against the methodology:

  • Single codebase in VCS; shared code extracted to libraries (I)
  • All dependencies declared in manifest; isolation tool in use (II)
  • All deploy-varying config in env vars; no config in code (III)
  • Backing services accessed via URL/credentials from config; swappable without code changes (IV)
  • Build, release, run stages strictly separated; releases immutable with unique IDs (V)
  • Processes stateless and share-nothing; no sticky sessions; session state in external store (VI)
  • App self-contained; webserver library bundled; service exported via port binding (VII)
  • Scale via adding processes, not growing single process; no daemonizing or PID files (VIII)
  • Fast startup; graceful SIGTERM handling; robust against sudden death (IX)
  • Dev and prod use same backing service types; time/personnel/tools gaps minimized (X)
  • All log output to stdout; no log file management in app code (XI)
  • Admin tasks run as one-off processes against same release and config as regular processes (XII)
  • Service API contract defined and documented before implementation (XIII)
  • Metrics, distributed traces, and structured logs emitted; observability platform configured (XIV)
  • Authentication and authorization handled as first-class concerns; no ad-hoc security (XV)

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Add automated documentation updater to any Claude skill. Creates a Python sync script that downloads upstream docs, processes markdown for AI consumption, and maintains local cache with configurable refresh. Collects template variables, then delegates implementation through 5-phase workflow. Use when adding auto-updating reference documentation to plugins or skills.

日本語の概要は準備中です。原文の説明を表示しています。

Jamie-BitFlight/claude_skills672026年10月12日 更新

SAM-style feature initiation workflow — discovery through codebase analysis, architecture spec, task decomposition, validation, and context manifest. Use when a user asks to add a feature, plan a feature, or convert an idea into an executable SAM plan.

日本語の概要は準備中です。原文の説明を表示しています。

Jamie-BitFlight/claude_skills672026年10月12日 更新

Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to "open a website", "fill out a form", "click a button", "take a screenshot", "scrape data from a page", "test this web app", "login to a site", "automate browser actions", or any task requiring programmatic web interaction.

日本語の概要は準備中です。原文の説明を表示しています。

Jamie-BitFlight/claude_skills672026年10月12日 更新

Browser automation for AI agents using the agent-browser CLI and Playwright. Use when navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, logging into sites, or automating any browser task. Triggers on "open a website", "fill out a form", "click a button", "scrape data", "test this web app", "automate browser actions", or any programmatic web interaction request.

日本語の概要は準備中です。原文の説明を表示しています。

Jamie-BitFlight/claude_skills672026年10月12日 更新

Runs the description-drift experiment — spawns all Claude Code agents simultaneously to collect self-reported capabilities, then compares them against static frontmatter descriptions to reveal how reliable orchestrator routing based on descriptions actually is. Use when measuring description drift across the agent fleet, re-running the capability collection experiment, analyzing a specific agent's self-reported capabilities, or auditing whether frontmatter descriptions accurately reflect agent behavior.

日本語の概要は準備中です。原文の説明を表示しています。

Jamie-BitFlight/claude_skills672026年10月12日 更新

Create or adapt Claude Code agent definitions. Use when creating an agent, changing subagent configuration, selecting agent scope, or designing a specialized delegation role.

日本語の概要は準備中です。原文の説明を表示しています。

Jamie-BitFlight/claude_skills672026年10月12日 更新

Jamie-BitFlight のスキルをすべて見る

このスキルの問題を報告する