Platform engineering

From ancoleman/ai-design-components · View interactive version

Platform engineering is an AI agent skill from the GitHub repository ancoleman/ai-design-components. Design and implement Internal Developer Platforms (IDPs) with self-service capabilities, golden paths, and developer experience optimization. Covers platform strategy, IDP architecture (Backstage, Port), infrastructure orchestration (Crossplane), GitOps (Argo CD), and adoption patterns. Use when bui

How to use this skill

Skill file

Platform Engineering

Purpose

Build Internal Developer Platforms (IDPs) that provide self-service infrastructure, reduce cognitive load, and accelerate developer productivity through golden paths and platform-as-product thinking.

Platform engineering represents the evolution beyond traditional DevOps, focusing on creating product-quality internal platforms that treat developers as customers. The discipline addresses the developer productivity crisis where engineers spend 30-40% of time on infrastructure and tooling instead of features.

When to Use This Skill

Trigger this skill when:

Core Concepts

Platform as Product

Treat internal platforms with the same rigor as customer-facing products:

Product Management Approach:

Key Differences from Traditional DevOps:

Internal Developer Platform (IDP) Architecture

Three-Layer Architecture:

1. Developer Portal (Frontend)

2. Platform Orchestration (Backend)

3. Integration Layer (Glue)

For detailed architecture patterns and component breakdowns, see references/idp-architecture.md.

Golden Paths and Scaffolding

Golden Path Principle:

Provide opinionated templates that handle 80% of use cases while allowing escape hatches for the remaining 20%.

Template Components:

Constraint Mechanisms:

For template design patterns and examples, see references/golden-paths.md.

Developer Experience (DevEx) Optimization

Cognitive Load Reduction:

Key Metrics:

DORA Metrics:

SPACE Framework:

Platform-Specific Metrics:

Platform Maturity Assessment

Assess current platform capabilities using a 5-level maturity model:

Level 0: Ad-Hoc - Manual provisioning, no standardization

Level 1: Basic Automation - Some IaC and CI/CD, limited self-service

Level 2: Paved Paths - Golden path templates, early portal, limited coverage

Level 3: Self-Service Platform - Comprehensive portal, 80%+ self-service

Level 4: Product-Driven Platform - Data-driven, product team structure, FinOps integration

Level 5: AI-Augmented Platform - AI-assisted troubleshooting, predictive optimization

For detailed assessment framework, gap analysis, and improvement roadmap, see references/maturity-model.md.

Decision Frameworks

Build vs. Buy IDP

Choose Open Source (Backstage) when:

Choose Commercial IDP (Port, Humanitec, Cortex) when:

Choose Hybrid Approach when:

For complete decision tree, selection criteria, and ROI calculations, see references/decision-frameworks.md.

Golden Path Design: Flexibility vs. Standardization

Spectrum of Control:

High Standardization (Regulated Industries):

Balanced Approach (Recommended for Most):

High Flexibility (Innovative Organizations):

For detailed guidance on choosing the right balance and enforcement strategies, see references/decision-frameworks.md.

Platform Team Structure

Centralized Model:

Federated Model:

Hub-and-Spoke Model:

For team sizing, roles, responsibilities, and governance models, see references/decision-frameworks.md.

Tool Recommendations

Developer Portals

Backstage (Open Source, CNCF)

Port (Commercial)

Cortex (Commercial SaaS)

Platform Orchestration

Crossplane (Open Source, CNCF)

Humanitec (Commercial)

Terraform Cloud (Commercial)

GitOps Continuous Delivery

Argo CD (Open Source, CNCF) - RECOMMENDED

Flux (Open Source, CNCF)

For detailed tool comparisons, integration patterns, and selection criteria, see references/tool-recommendations.md.

Implementation Guides

Bootstrapping a Platform

Foundation Phase (Months 1-3):

  1. Define platform vision and form platform team (3-5 members)
  2. Interview developers to identify pain points
  3. Set up developer portal (Backstage or commercial)
  4. Create initial service catalog and first golden path template

Pilot Phase (Months 4-6):

  1. Select 2-3 pilot teams for white-glove onboarding
  2. Rapid iteration based on feedback
  3. Expand to 3-5 golden path templates
  4. Integrate key tools (CI/CD, monitoring, secrets)

Expansion Phase (Months 7-12):

  1. Scale to 20-50% of engineering teams
  2. Build self-service documentation and training
  3. Establish platform SLOs and on-call rotation
  4. Internal evangelization (demos, champions program)

Maturity Phase (Year 2+):

  1. 80%+ adoption across organization
  2. Platform team operates as product team
  3. Continuous improvement via metrics and feedback
  4. AI-assisted capabilities, policy-as-code expansion

For detailed implementation steps and bootstrapping code, see references/implementation-backstage.md.

Creating Golden Path Templates

Template Design Process:

  1. Identify most common use case (web app, API, data pipeline)
  2. Define opinionated choices (language, framework, deployment pattern)
  3. Create repository structure and infrastructure manifests
  4. Configure CI/CD pipeline with security scanning
  5. Instrument observability and document usage
  6. Test with pilot team before broad rollout

Template Categories:

For template examples, scaffolding code, and customization patterns, see references/golden-paths.md and examples/ directory.

Driving Platform Adoption

Evangelization Strategies:

Incentive Alignment:

For adoption metrics, tracking dashboards, and success patterns, see references/maturity-model.md.

Quick Reference

Platform Engineering Checklist

Strategy and Vision:

IDP Foundation:

Self-Service Capabilities:

Security and Compliance:

Operations and Support:

Common Pitfalls

Building Too Much Upfront:

Ignoring Developer Feedback:

Over-Standardization:

Under-Measuring Success:

Treating Platform as IT Project:

Integration with Other Skills

Related Skills:

Cross-Skill Workflows:

Platform Bootstrapping:

  1. Use infrastructure-as-code to provision platform infrastructure
  2. Use kubernetes-operations to configure clusters
  3. Deploy developer portal (Backstage) on platform infrastructure
  4. Integrate gitops-workflows (Argo CD) for continuous delivery
  5. Add observability integrations (Prometheus, Grafana plugins)

Golden Path Creation:

  1. Design template based on common use case
  2. Use building-ci-pipelines patterns for CI/CD configuration
  3. Apply security-hardening best practices (SAST, container scanning)
  4. Integrate secret-management (Vault, encrypted configs)
  5. Add observability instrumentation (metrics, logging, tracing)

Example Use Cases

Use Case 1: E-Commerce Platform Team

Context: 300-engineer e-commerce company, microservices architecture, manual provisioning causing bottlenecks.

Approach: Deploy Backstage, create 3 golden paths, integrate Argo CD, pilot with 3 teams, expand to 20 teams over 6 months.

Results: Onboarding time 2 days → 2 hours, deployment frequency 2x/week → 10x/day, developer NPS +35.

Use Case 2: Financial Services Platform

Context: 1500-engineer bank, strict compliance, legacy infrastructure, fragmented tooling.

Approach: Adopt Port (commercial), high standardization golden paths, OPA Gatekeeper, federated model, Terraform Cloud.

Results: Compliance audit prep 3 weeks → 3 days, infrastructure drift incidents 90% reduction, per-service cost attribution.

Use Case 3: Startup Platform

Context: 50-engineer startup, rapid growth, need fast developer onboarding.

Approach: Lightweight Backstage (2 engineers), 2 golden paths, GitHub Actions, PaaS infrastructure (Fly.io), documentation focus.

Results: New engineer to production 1 day (vs. 2 weeks), 100% self-service, 2 engineers supporting 50 developers.

For code examples and template structures, see examples/ directory.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.