AgentSkillsCN

twelve-factor-app

十二要素应用方法论,用于构建可扩展、可维护的云原生应用。适用于设计后端服务、API、微服务,或任何软件即服务应用时使用。适用于部署模式、配置管理、进程架构、日志记录,以及基础设施决策等任务时使用。

SKILL.md
--- frontmatter
name: twelve-factor-app
description: The Twelve-Factor App methodology for building scalable, maintainable cloud-native applications. Use when designing backend services, APIs, microservices, or any software-as-a-service application. Triggers on deployment patterns, configuration management, process architecture, logging, and infrastructure decisions.

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