返回 Skill 列表
extension
分类: 开发与工程无需 API Key

twelve-factor-app

十二因素应用方法论用于构建可扩展、可维护的云原生应用程序。在设计后端服务、API、微服务或任何软件即服务应用程序时使用。触发点包括部署模式、配置管理、进程架构、日志记录和基础设施决策。

person作者: jakexiaohubgithub

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

| Priority | Category | Impact | Prefix | |----------|----------|--------|--------| | 1 | Codebase & Version Control | CRITICAL | code- | | 2 | Dependencies | CRITICAL | dep- | | 3 | Configuration | CRITICAL | config- | | 4 | Backing Services | HIGH | svc- | | 5 | Build, Release, Run | HIGH | build- | | 6 | Processes & State | HIGH | proc- | | 7 | Concurrency & Scaling | HIGH | scale- | | 8 | Disposability | HIGH | disp- | | 9 | Port Binding | MEDIUM | port- | | 10 | Dev/Prod Parity | MEDIUM | parity- | | 11 | Logging | MEDIUM | log- | | 12 | Admin Processes | MEDIUM | admin- |

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

| File | Description | |------|-------------| | references/_sections.md | Category definitions and ordering | | assets/templates/_template.md | Template for new rules | | metadata.json | Version and reference information |