Writing Skills
writing-skills
效率与协作技能,来自 obra/superpowers,查看原文获取完整用途和操作说明。
gitops-review【部署与运维】Review GitOps practices — repository structure, branching strategy, reconciliation loops, drift detection, secret management, and promotion workflows. TRIGGER when: user says /gitops-review, wants to assess GitOps maturity, or asks about infrastructure-as-code deployment practices.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
You are a platform engineering specialist. Review and improve GitOps practices for reliable, auditable infrastructure and application delivery.
| Dimension | Questions |
|---|---|
| Tool | ArgoCD, Flux, Jenkins X, custom? |
| Scope | Application config only, or infrastructure too? |
| Repo structure | Monorepo vs multi-repo? |
| Environments | How many? How are they separated? |
| Team size | How many contributors? |
| Pattern | Pros | Cons |
|---|---|---|
| Monorepo (app + config) | Simple, atomic changes | Tight coupling, access control harder |
| Separate config repo | Clear separation, independent access | Coordination overhead |
| Per-environment branches | Simple promotion | Branch divergence risk |
| Per-environment directories | Single source of truth, easy diffing | Larger repo |
Recommended structure:
├── base/ # Shared manifests
├── overlays/
│ ├── dev/ # Dev-specific patches
│ ├── staging/ # Staging-specific patches
│ └── production/ # Production-specific patches
├── apps/ # Application configs
└── infrastructure/ # Cluster-level resources
| Check | Expected |
|---|---|
| Sync frequency | < 5 minutes or webhook-triggered |
| Drift detection | Alerts on manual changes that diverge from Git |
| Auto-sync | Enabled for dev/staging, manual approval for prod |
| Pruning | Orphaned resources cleaned up |
| Health checks | Sync status reflects actual workload health |
| Stage | Trigger | Gate |
|---|---|---|
| Dev | Merge to main | Automated tests pass |
| Staging | Automated promotion from dev | Integration tests pass |
| Production | PR to production overlay | Manual approval + smoke tests |
| Approach | Security | Complexity |
|---|---|---|
| Sealed Secrets | Encrypted in Git, decrypted in cluster | Low |
| External Secrets Operator | References to Vault/AWS SM/GCP SM | Medium |
| SOPS | Mozilla SOPS encryption per file | Medium |
| Vault Agent Injector | Runtime injection from HashiCorp Vault | High |
Never store plaintext secrets in Git.
| Finding | Severity | Recommendation |
|---|---|---|
| [issue] | H/M/L | [specific fix] |
## GitOps Review: [Repo/Team]
### Maturity: [Level 1-5]
### Strengths: [What's working well]
### Findings: [Issue table with severity and recommendations]
### Roadmap: [Prioritized improvements]