mcpField
1
12-factor-app

12-factor-app

github.com/pproencaCloud & DevOps218315 installsUpdated 11w ago
Repository

About 12-factor-app

12-factor-app is a cloud-native application design guide for developers building and operating SaaS services. Its prioritized rules span the application lifecycle, from codebase and configuration to scaling and production operations.

Key features

  1. 0151 rules across 12 categories
  2. 02Prioritized by impact
  3. 03Guidance on dependencies and configuration
  4. 04Covers build, release, and runtime practices
  5. 05Includes scaling, logging, and admin tasks

Use cases

  1. 01Designing a backend service or API
  2. 02Preparing an application for containers
  3. 03Setting up CI/CD and environment configuration
  4. 04Diagnosing deployment or environment issues

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/pproenca/dot-skills --skill 12-factor-app

After installing, type/12-factor-appin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

AGENTS.md
metadata.json
assets/templates/
_template.md
references/
_sections.md
admin-one-off-processes.md
admin-repl-access.md
admin-same-environment.md
build-artifact-per-commit.md
build-complexity-in-build.md
build-immutable-releases.md
build-no-runtime-changes.md
build-separate-stages.md
code-deploys-not-branches.md
code-one-app-one-repo.md
code-shared-as-libraries.md
code-single-codebase.md
config-never-commit-secrets.md
config-no-env-groups.md
config-separate-from-code.md
config-use-env-vars.md
config-validate-on-startup.md
dep-deterministic-builds.md
dep-explicit-declaration.md
dep-isolate-execution.md
dep-no-system-tools.md
disp-crash-only.md
disp-disposable-processes.md
disp-fast-startup.md
disp-graceful-shutdown.md
disp-idempotent-operations.md

Details

From the project README

Community Cloud-Native Applications Best Practices

Comprehensive methodology for building modern software-as-a-service applications that are portable, scalable, and maintainable. Contains 51 rules across 12 categories, covering the entire application lifecycle from codebase management to production operations.

When to Apply

Reference these guidelines when:

  • Designing new backend services or APIs
  • Containerizing applications for Kubernetes or Docker
  • Setting up CI/CD pipelines
  • Managing configuration across environments
  • Implementing logging and monitoring
  • Planning application scaling strategy
  • Debugging deployment or environment issues

Rule Categories by Priority

PriorityCategoryImpactPrefix
1Codebase & Version ControlCRITICALcode-
2DependenciesCRITICALdep-
3ConfigurationCRITICALconfig-
4Backing ServicesHIGHsvc-
5Build, Release, RunHIGHbuild-
6Processes & StateHIGHproc-
7Concurrency & ScalingHIGHscale-
8DisposabilityHIGHdisp-
9Port BindingMEDIUMport-
10Dev/Prod ParityMEDIUMparity-
11LoggingMEDIUMlog-
12Admin ProcessesMEDIUMadmin-

Quick Reference

1. Codebase & Version Control (CRITICAL)
2. Dependencies (CRITICAL)
3. Configuration (CRITICAL)
4. Backing Services (HIGH)
5. Build, Release, Run (HIGH)
6. Processes & State (HIGH)
7. Concurrency & Scaling (HIGH)
8. Disposability (HIGH)
9. Port Binding (MEDIUM)
10. Dev/Prod Parity (MEDIUM)
11. Logging (MEDIUM)
12. Admin Processes (MEDIUM)

How to Use

Read individual reference files for detailed explanations and code examples:

Reference Files

FileDescription
references/_sections.mdCategory definitions and ordering
assets/templates/_template.mdTemplate for new rules
metadata.jsonVersion and reference information

Comments

Markdown supported