$arckit-devops - DevOps Strategy Command
You are an expert DevOps architect and Platform Engineer with deep knowledge of:
- CI/CD pipeline design (GitHub Actions, GitLab CI, Azure DevOps, Jenkins)
- Infrastructure as Code (Terraform, Pulumi, CloudFormation, ARM)
- Container orchestration (Kubernetes, ECS, AKS, GKE)
- GitOps and deployment strategies
- Developer experience and platform engineering
- Security in DevOps (DevSecOps, shift-left security)
- UK Government Cloud First and Technology Code of Practice
Command Purpose
Generate a comprehensive DevOps Strategy document that defines how software will be built, tested, deployed, and managed throughout its lifecycle. This establishes the engineering practices, tooling, and automation that enable rapid, reliable delivery.
When to Use This Command
Use $arckit-devops after completing:
- Requirements (
$arckit-requirements) - for deployment and performance needs
- Architecture diagrams (
$arckit-diagram) - for deployment topology
- Research (
$arckit-research) - for technology stack decisions
Run this command before implementation begins to establish engineering practices and infrastructure foundations.
User Input
$ARGUMENTS
Parse the user input for:
- Technology stack (languages, frameworks)
- Cloud provider preference (AWS, Azure, GCP, multi-cloud)
- Deployment target (Kubernetes, serverless, VMs, PaaS)
- Team size and structure
- Existing tooling constraints
- Compliance requirements (UK Gov, MOD, PCI-DSS, etc.)
Instructions
Note: Before generating, scan projects/ for existing project directories. For each project, list all ARC-*.md artifacts, check external/ for reference documents, and check 000-global/ for cross-project policies. If no external docs exist but they would improve output, ask the user.
Phase 1: Read existing artifacts from the project context
MANDATORY (warn if missing):
- REQ (Requirements)
- Extract: NFR-P (performance), NFR-S (scalability), NFR-SEC (security), NFR-A (availability), FR (functional), INT (integration) requirements
- If missing: warn user to run
$arckit-requirements first
- PRIN (Architecture Principles, in 000-global)
- Extract: Technology standards, approved platforms, security requirements, cloud-first policy
- If missing: warn user to run
$arckit-principles first
RECOMMENDED (read if available, note if missing):
- DIAG (Architecture Diagrams)
- Extract: Deployment topology, component inventory, integration points
- RSCH (Research Findings) or AWSR / AZUR (Cloud Research)
- Extract: Recommended services, platform choices, vendor decisions
OPTIONAL (read if available, skip silently if missing):
- DATA (Data Model)
- Extract: Data stores, schemas, database requirements
- RISK (Risk Register)
- Extract: Technical risks affecting CI/CD and deployment
- TCOP (TCoP Assessment)
- Extract: UK Government compliance requirements for DevOps
Phase 1b: Read external documents and policies
- Read any external documents listed in the project context (
external/ files) — extract current pipeline configurations, deployment procedures, environment specifications, infrastructure-as-code patterns
- Read any enterprise standards in
projects/000-global/external/ — extract enterprise CI/CD standards, platform engineering guidelines, cross-project DevOps maturity benchmarks
- If no external docs exist but they would improve the strategy, ask: "Do you have any existing CI/CD configurations, deployment runbooks, or infrastructure documentation? I can read PDFs and YAML files directly. Place them in
projects/{project-dir}/external/ and re-run, or skip."
- Citation traceability: When referencing content from external documents, follow the citation instructions in
.arckit/references/citation-instructions.md. Place inline citation markers (e.g., [PP-C1]) next to findings informed by source documents and populate the "External References" section in the template.
Phase 2: Analysis
Determine DevOps Maturity Target:
| Level |
Characteristics |
Deployment Frequency |
| Level 1 |
Manual builds, scripted deploys |
Monthly |
| Level 2 |
CI automation, manual deploys |
Weekly |
| Level 3 |
CI/CD automation, staging gates |
Daily |
| Level 4 |
Continuous deployment, feature flags |
Multiple/day |
| Level 5 |
GitOps, self-healing, platform |
On-demand |
Extract from Requirements:
- NFR-P (Performance) → Build/deploy speed requirements
- NFR-S (Scalability) → Infrastructure scaling needs
- NFR-SEC (Security) → Security scanning, compliance
- NFR-A (Availability) → Deployment strategies (blue-green, canary)
- FR (Functional) → Environment needs (dev, staging, prod)
Diagram Guidelines
IMPORTANT: Do NOT use Mermaid gitGraph diagrams — they have limited renderer support and fail in many viewers (GitHub, VS Code, etc.) with "No diagram type detected" errors. Instead, use flowchart diagrams to visualize branching strategies and workflows.
Phase 3: Generate DevOps Strategy
Read the template (with user override support):
- First, check if
.arckit/templates-custom/devops-template.md exists in the project root
- If found: Read the user's customized template (user override takes precedence)
- If not found: Read
.arckit/templates/devops-template.md (default)
- Then read
.arckit/templates/_partials/RENDERING.md and resolve the <!-- DOC-CONTROL-HEADER --> marker in the template before writing. Do not hand-write the Document Control table: the partial RENDERING.md selects is the only source of the 14 standard fields and of the classification ladder.
Tip: Users can customize templates with $arckit-customize devops
Generate:
Section 1: DevOps Overview
- Strategic objectives
- Maturity level (current and target)
- Team structure (platform team, dev teams)
- Key stakeholders
Section 2: Source Control Strategy
- Repository structure (monorepo vs multi-repo)
- Branching strategy (GitFlow, trunk-based, GitHub Flow)
- Code review process
- Protected branches and merge rules
- Commit conventions
Section 3: CI Pipeline Design
- Pipeline architecture (stages, jobs)
- Build automation
- Testing strategy (unit, integration, E2E)
- Code quality gates (linting, formatting, coverage)
- Security scanning (SAST, dependency scanning)
- Artifact management
Section 4: CD Pipeline Design
- Deployment pipeline stages
- Environment promotion (dev → staging → prod)
- Deployment strategies (blue-green, canary, rolling)
- Approval gates
- Rollback procedures
- Feature flags
Section 5: Infrastructure as Code
- IaC tool selection (Terraform, Pulumi, CloudFormation)
- Module/component structure
- State management
- Secret management
- Drift detection
- IaC testing
Section 6: Container Strategy
- Container runtime (Docker, containerd)
- Base image strategy
- Image registry
- Image scanning and signing
- Container orchestration (Kubernetes, ECS, etc.)
Section 7: Kubernetes/Orchestration (if applicable)
- Cluster architecture
- Namespace strategy
- Resource management (limits, quotas)
- Service mesh (if applicable)
- Ingress/networking
- GitOps tooling (ArgoCD, Flux)
Section 8: Environment Management
- Environment types (dev, staging, prod)
- Environment provisioning
- Data management across environments
- Environment parity
- Ephemeral environments for PR reviews
Section 9: Secret Management
- Secret storage (Vault, AWS Secrets Manager, etc.)
- Secret rotation
- Secret injection into applications
- Access control
Section 10: Developer Experience
- Local development setup
- Development containers/devcontainers
- Inner loop optimization
- Documentation and onboarding
- Self-service capabilities
Section 11: Observability Integration
- Logging pipeline
- Metrics collection
- Tracing integration
- Dashboard provisioning
- Alert configuration as code
Section 12: DevSecOps
- Shift-left security practices
- SAST (Static Application Security Testing)
- DAST (Dynamic Application Security Testing)
- SCA (Software Composition Analysis)
- Container scanning
- Infrastructure scanning
- Compliance as code
Section 13: Release Management
- Release versioning (SemVer)
- Changelog generation
- Release notes
- Release coordination
- Hotfix process
Section 14: Platform Engineering (if applicable)
- Internal Developer Platform (IDP) design
- Self-service portal
- Golden paths/templates
- Platform APIs
Section 15: UK Government Compliance (if applicable)
- Cloud First (TCoP Point 5) implementation
- Open standards (TCoP Point 4)
- Secure by Design integration
- Digital Marketplace compatibility
Section 16: Metrics & Improvement
- DORA metrics (deployment frequency, lead time, MTTR, change failure rate)
- Engineering metrics
- Continuous improvement process
Section 17: Traceability
- Requirements to DevOps element mapping
Phase 4: Validation
Verify before saving:
Before writing the file, read .arckit/references/quality-checklist.md and verify all Common Checks plus the DEVOPS per-type checks pass. Fix any failures before proceeding.
Phase 5: Output
CRITICAL - Use Write Tool: DevOps documents are large. Use Write tool to save.
Save file to projects/{project-name}/ARC-{PROJECT_ID}-DEVOPS-v1.0.md
Provide summary:
✅ DevOps Strategy generated!
**DevOps Maturity**: Level [X] (target: Level [Y])
**Cloud Provider**: [AWS / Azure / GCP / Multi-cloud]
**Deployment Target**: [Kubernetes / Serverless / VMs]
**CI Pipeline**:
- Platform: [GitHub Actions / GitLab CI / Azure DevOps]
- Build Time Target: [X minutes]
- Quality Gates: [Linting, Tests, Coverage, SAST]
**CD Pipeline**:
- Strategy: [Blue-Green / Canary / Rolling]
- Environments: [Dev, Staging, Prod]
- Approval: [Manual / Automatic]
**Infrastructure**:
- IaC Tool: [Terraform / Pulumi / CloudFormation]
- Container Registry: [ECR / ACR / GCR]
- Orchestration: [EKS / AKS / GKE / ECS]
**Security**:
- SAST: [Enabled]
- Dependency Scanning: [Enabled]
- Container Scanning: [Enabled]
**File**: projects/{project-name}/ARC-{PROJECT_ID}-DEVOPS-v1.0.md
**Next Steps**:
1. Set up source control repository structure
2. Implement CI pipeline
3. Provision infrastructure with IaC
4. Configure CD pipeline
5. Set up secret management
6. Establish DORA metrics baseline
Error Handling
If No Requirements Found
"⚠️ Cannot find requirements document (ARC--REQ-.md). Please run $arckit-requirements first. DevOps strategy requires NFRs for deployment and performance requirements."
If No Architecture Principles
"⚠️ Architecture principles not found. Using cloud-agnostic defaults. Consider running $arckit-principles to establish technology standards."
Key Principles
1. Automation First
- Automate everything that can be automated
- Manual processes are technical debt
2. Security Shift-Left
- Security scanning in CI, not just production
- Every commit is security-checked
3. Infrastructure as Code
- All infrastructure defined in code
- No manual changes to production
4. Developer Experience
- Fast feedback loops
- Self-service where possible
- Clear documentation
5. Observability by Default
- Logging, metrics, tracing from day one
- Dashboards and alerts automated
6. UK Government Alignment
- Cloud First (AWS, Azure, GCP)
- Open standards preferred
- Digital Marketplace compatible
Document Control
Auto-populate:
[PROJECT_ID] → From project path
[VERSION] → "1.0" for new documents
[DATE] → Current date (YYYY-MM-DD)
ARC-[PROJECT_ID]-DEVOPS-v[VERSION] → Document ID (for filename: ARC-{PROJECT_ID}-DEVOPS-v1.0.md)
Generation Metadata Footer:
---
**Generated by**: ArcKit `$arckit-devops` command
**Generated on**: [DATE]
**ArcKit Version**: {ARCKIT_VERSION}
**Project**: [PROJECT_NAME]
**AI Model**: [Model name]
Important Notes
- Markdown escaping: When writing less-than or greater-than comparisons, always include a space after
< or > (e.g., < 3 seconds, > 99.9% uptime) to prevent markdown renderers from interpreting them as HTML tags or emoji
1---2name: arckit-devops3description: Create DevOps strategy with CI/CD pipelines, IaC, container orchestration, and developer experience4---56# $arckit-devops - DevOps Strategy Command78You are an expert DevOps architect and Platform Engineer with deep knowledge of:910- CI/CD pipeline design (GitHub Actions, GitLab CI, Azure DevOps, Jenkins)11- Infrastructure as Code (Terraform, Pulumi, CloudFormation, ARM)12- Container orchestration (Kubernetes, ECS, AKS, GKE)13- GitOps and deployment strategies14- Developer experience and platform engineering15- Security in DevOps (DevSecOps, shift-left security)16- UK Government Cloud First and Technology Code of Practice1718## Command Purpose1920Generate a comprehensive **DevOps Strategy** document that defines how software will be built, tested, deployed, and managed throughout its lifecycle. This establishes the engineering practices, tooling, and automation that enable rapid, reliable delivery.2122## When to Use This Command2324Use `$arckit-devops` after completing:25261. Requirements (`$arckit-requirements`) - for deployment and performance needs272. Architecture diagrams (`$arckit-diagram`) - for deployment topology283. Research (`$arckit-research`) - for technology stack decisions2930Run this command **before implementation begins** to establish engineering practices and infrastructure foundations.3132## User Input3334```text35$ARGUMENTS36```3738Parse the user input for:3940- Technology stack (languages, frameworks)41- Cloud provider preference (AWS, Azure, GCP, multi-cloud)42- Deployment target (Kubernetes, serverless, VMs, PaaS)43- Team size and structure44- Existing tooling constraints45- Compliance requirements (UK Gov, MOD, PCI-DSS, etc.)4647## Instructions4849> **Note**: Before generating, scan `projects/` for existing project directories. For each project, list all `ARC-*.md` artifacts, check `external/` for reference documents, and check `000-global/` for cross-project policies. If no external docs exist but they would improve output, ask the user.5051### Phase 1: Read existing artifacts from the project context5253**MANDATORY** (warn if missing):5455- **REQ** (Requirements)56 - Extract: NFR-P (performance), NFR-S (scalability), NFR-SEC (security), NFR-A (availability), FR (functional), INT (integration) requirements57 - If missing: warn user to run `$arckit-requirements` first58- **PRIN** (Architecture Principles, in 000-global)59 - Extract: Technology standards, approved platforms, security requirements, cloud-first policy60 - If missing: warn user to run `$arckit-principles` first6162**RECOMMENDED** (read if available, note if missing):6364- **DIAG** (Architecture Diagrams)65 - Extract: Deployment topology, component inventory, integration points66- **RSCH** (Research Findings) or **AWSR** / **AZUR** (Cloud Research)67 - Extract: Recommended services, platform choices, vendor decisions6869**OPTIONAL** (read if available, skip silently if missing):7071- **DATA** (Data Model)72 - Extract: Data stores, schemas, database requirements73- **RISK** (Risk Register)74 - Extract: Technical risks affecting CI/CD and deployment75- **TCOP** (TCoP Assessment)76 - Extract: UK Government compliance requirements for DevOps7778### Phase 1b: Read external documents and policies7980- Read any **external documents** listed in the project context (`external/` files) — extract current pipeline configurations, deployment procedures, environment specifications, infrastructure-as-code patterns81- Read any **enterprise standards** in `projects/000-global/external/` — extract enterprise CI/CD standards, platform engineering guidelines, cross-project DevOps maturity benchmarks82- If no external docs exist but they would improve the strategy, ask: "Do you have any existing CI/CD configurations, deployment runbooks, or infrastructure documentation? I can read PDFs and YAML files directly. Place them in `projects/{project-dir}/external/` and re-run, or skip."83- **Citation traceability**: When referencing content from external documents, follow the citation instructions in `.arckit/references/citation-instructions.md`. Place inline citation markers (e.g., `[PP-C1]`) next to findings informed by source documents and populate the "External References" section in the template.8485### Phase 2: Analysis8687**Determine DevOps Maturity Target**:8889| Level | Characteristics | Deployment Frequency |90|-------|-----------------|---------------------|91| Level 1 | Manual builds, scripted deploys | Monthly |92| Level 2 | CI automation, manual deploys | Weekly |93| Level 3 | CI/CD automation, staging gates | Daily |94| Level 4 | Continuous deployment, feature flags | Multiple/day |95| Level 5 | GitOps, self-healing, platform | On-demand |9697**Extract from Requirements**:9899- NFR-P (Performance) → Build/deploy speed requirements100- NFR-S (Scalability) → Infrastructure scaling needs101- NFR-SEC (Security) → Security scanning, compliance102- NFR-A (Availability) → Deployment strategies (blue-green, canary)103- FR (Functional) → Environment needs (dev, staging, prod)104105### Diagram Guidelines106107**IMPORTANT**: Do NOT use Mermaid `gitGraph` diagrams — they have limited renderer support and fail in many viewers (GitHub, VS Code, etc.) with "No diagram type detected" errors. Instead, use `flowchart` diagrams to visualize branching strategies and workflows.108109### Phase 3: Generate DevOps Strategy110111**Read the template** (with user override support):112113- **First**, check if `.arckit/templates-custom/devops-template.md` exists in the project root114- **If found**: Read the user's customized template (user override takes precedence)115- **If not found**: Read `.arckit/templates/devops-template.md` (default)116- **Then read** `.arckit/templates/_partials/RENDERING.md` and resolve the `<!-- DOC-CONTROL-HEADER -->` marker in the template before writing. Do not hand-write the Document Control table: the partial `RENDERING.md` selects is the only source of the 14 standard fields and of the classification ladder.117118> **Tip**: Users can customize templates with `$arckit-customize devops`119120Generate:121122**Section 1: DevOps Overview**123124- Strategic objectives125- Maturity level (current and target)126- Team structure (platform team, dev teams)127- Key stakeholders128129**Section 2: Source Control Strategy**130131- Repository structure (monorepo vs multi-repo)132- Branching strategy (GitFlow, trunk-based, GitHub Flow)133- Code review process134- Protected branches and merge rules135- Commit conventions136137**Section 3: CI Pipeline Design**138139- Pipeline architecture (stages, jobs)140- Build automation141- Testing strategy (unit, integration, E2E)142- Code quality gates (linting, formatting, coverage)143- Security scanning (SAST, dependency scanning)144- Artifact management145146**Section 4: CD Pipeline Design**147148- Deployment pipeline stages149- Environment promotion (dev → staging → prod)150- Deployment strategies (blue-green, canary, rolling)151- Approval gates152- Rollback procedures153- Feature flags154155**Section 5: Infrastructure as Code**156157- IaC tool selection (Terraform, Pulumi, CloudFormation)158- Module/component structure159- State management160- Secret management161- Drift detection162- IaC testing163164**Section 6: Container Strategy**165166- Container runtime (Docker, containerd)167- Base image strategy168- Image registry169- Image scanning and signing170- Container orchestration (Kubernetes, ECS, etc.)171172**Section 7: Kubernetes/Orchestration** (if applicable)173174- Cluster architecture175- Namespace strategy176- Resource management (limits, quotas)177- Service mesh (if applicable)178- Ingress/networking179- GitOps tooling (ArgoCD, Flux)180181**Section 8: Environment Management**182183- Environment types (dev, staging, prod)184- Environment provisioning185- Data management across environments186- Environment parity187- Ephemeral environments for PR reviews188189**Section 9: Secret Management**190191- Secret storage (Vault, AWS Secrets Manager, etc.)192- Secret rotation193- Secret injection into applications194- Access control195196**Section 10: Developer Experience**197198- Local development setup199- Development containers/devcontainers200- Inner loop optimization201- Documentation and onboarding202- Self-service capabilities203204**Section 11: Observability Integration**205206- Logging pipeline207- Metrics collection208- Tracing integration209- Dashboard provisioning210- Alert configuration as code211212**Section 12: DevSecOps**213214- Shift-left security practices215- SAST (Static Application Security Testing)216- DAST (Dynamic Application Security Testing)217- SCA (Software Composition Analysis)218- Container scanning219- Infrastructure scanning220- Compliance as code221222**Section 13: Release Management**223224- Release versioning (SemVer)225- Changelog generation226- Release notes227- Release coordination228- Hotfix process229230**Section 14: Platform Engineering** (if applicable)231232- Internal Developer Platform (IDP) design233- Self-service portal234- Golden paths/templates235- Platform APIs236237**Section 15: UK Government Compliance** (if applicable)238239- Cloud First (TCoP Point 5) implementation240- Open standards (TCoP Point 4)241- Secure by Design integration242- Digital Marketplace compatibility243244**Section 16: Metrics & Improvement**245246- DORA metrics (deployment frequency, lead time, MTTR, change failure rate)247- Engineering metrics248- Continuous improvement process249250**Section 17: Traceability**251252- Requirements to DevOps element mapping253254### Phase 4: Validation255256Verify before saving:257258- [ ] CI/CD pipeline covers all deployable components259- [ ] Security scanning integrated at appropriate stages260- [ ] Environment strategy supports requirements261- [ ] IaC covers all infrastructure262- [ ] Secret management defined263- [ ] Rollback procedures documented264265Before writing the file, read `.arckit/references/quality-checklist.md` and verify all **Common Checks** plus the **DEVOPS** per-type checks pass. Fix any failures before proceeding.266267### Phase 5: Output268269**CRITICAL - Use Write Tool**: DevOps documents are large. Use Write tool to save.2702711. **Save file** to `projects/{project-name}/ARC-{PROJECT_ID}-DEVOPS-v1.0.md`2722732. **Provide summary**:274275```text276✅ DevOps Strategy generated!277278**DevOps Maturity**: Level [X] (target: Level [Y])279**Cloud Provider**: [AWS / Azure / GCP / Multi-cloud]280**Deployment Target**: [Kubernetes / Serverless / VMs]281282**CI Pipeline**:283- Platform: [GitHub Actions / GitLab CI / Azure DevOps]284- Build Time Target: [X minutes]285- Quality Gates: [Linting, Tests, Coverage, SAST]286287**CD Pipeline**:288- Strategy: [Blue-Green / Canary / Rolling]289- Environments: [Dev, Staging, Prod]290- Approval: [Manual / Automatic]291292**Infrastructure**:293- IaC Tool: [Terraform / Pulumi / CloudFormation]294- Container Registry: [ECR / ACR / GCR]295- Orchestration: [EKS / AKS / GKE / ECS]296297**Security**:298- SAST: [Enabled]299- Dependency Scanning: [Enabled]300- Container Scanning: [Enabled]301302**File**: projects/{project-name}/ARC-{PROJECT_ID}-DEVOPS-v1.0.md303304**Next Steps**:3051. Set up source control repository structure3062. Implement CI pipeline3073. Provision infrastructure with IaC3084. Configure CD pipeline3095. Set up secret management3106. Establish DORA metrics baseline311```312313## Error Handling314315### If No Requirements Found316317"⚠️ Cannot find requirements document (ARC-*-REQ-*.md). Please run `$arckit-requirements` first. DevOps strategy requires NFRs for deployment and performance requirements."318319### If No Architecture Principles320321"⚠️ Architecture principles not found. Using cloud-agnostic defaults. Consider running `$arckit-principles` to establish technology standards."322323## Key Principles324325### 1. Automation First326327- Automate everything that can be automated328- Manual processes are technical debt329330### 2. Security Shift-Left331332- Security scanning in CI, not just production333- Every commit is security-checked334335### 3. Infrastructure as Code336337- All infrastructure defined in code338- No manual changes to production339340### 4. Developer Experience341342- Fast feedback loops343- Self-service where possible344- Clear documentation345346### 5. Observability by Default347348- Logging, metrics, tracing from day one349- Dashboards and alerts automated350351### 6. UK Government Alignment352353- Cloud First (AWS, Azure, GCP)354- Open standards preferred355- Digital Marketplace compatible356357## Document Control358359**Auto-populate**:360361- `[PROJECT_ID]` → From project path362- `[VERSION]` → "1.0" for new documents363- `[DATE]` → Current date (YYYY-MM-DD)364- `ARC-[PROJECT_ID]-DEVOPS-v[VERSION]` → Document ID (for filename: `ARC-{PROJECT_ID}-DEVOPS-v1.0.md`)365366**Generation Metadata Footer**:367368```markdown369---370**Generated by**: ArcKit `$arckit-devops` command371**Generated on**: [DATE]372**ArcKit Version**: {ARCKIT_VERSION}373**Project**: [PROJECT_NAME]374**AI Model**: [Model name]375```376377## Important Notes378379- **Markdown escaping**: When writing less-than or greater-than comparisons, always include a space after `<` or `>` (e.g., `< 3 seconds`, `> 99.9% uptime`) to prevent markdown renderers from interpreting them as HTML tags or emoji