golden-paths
10
总安装量
5
周安装量
#29671
全站排名
安装命令
npx skills add https://github.com/melodic-software/claude-code-plugins --skill golden-paths
Agent 安装分布
antigravity
4
trae
3
windsurf
3
codex
3
gemini-cli
3
Skill 文档
Golden Paths
Patterns for designing standardized, opinionated development workflows that make the right way the easy way.
When to Use This Skill
- Designing standardized developer workflows
- Creating paved roads for common patterns
- Building template-based service creation
- Implementing guardrails with flexibility
- Optimizing developer onboarding
- Reducing cognitive load for developers
Golden Path Fundamentals
What is a Golden Path?
Golden Path Definition:
An opinionated, well-supported workflow that makes best practices
the path of least resistance while not blocking alternatives.
Key Characteristics:
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â GOLDEN PATH â
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ¤
â â
â â Opinionated: Clear decisions made for you â
â â Supported: First-class documentation and tooling â
â â Optimized: Fastest path to production â
â â Maintained: Kept up-to-date by platform team â
â â Escapable: Can deviate when needed â
â â
â "Make the right way the easy way" â
â â
â Golden Path â The Only Path â
â Golden Path = The Recommended Path â
â â
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
vs Paved Road vs Rails:
âââ Golden Path: Recommended workflow with alternatives
âââ Paved Road: Same concept, Spotify terminology
âââ Rails: More rigid, harder to deviate (often negative)
Golden Path vs Custom
Golden Path Benefits:
Developer Time:
âââ New service: 15 min (golden) vs 2 days (custom)
âââ Setup CI/CD: Automatic vs 4-8 hours
âââ Observability: Built-in vs manual integration
âââ Security: Automatic vs checklist review
Platform Support:
âââ Golden path: Full support, rapid fixes
âââ Custom: Best-effort support, lower priority
âââ Hybrid: Support for platform components only
Example Journey:
Golden Path:
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â 1. Choose template â node-api-template â
â 2. Answer questions â name, team, database? â
â 3. Generate repo â automatic â
â 4. First deployment â automatic via CI â
â 5. Start coding â focus on business logic â
â â
â Time: ~15 minutes â
â Result: Production-ready service â
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
Custom Path:
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â 1. Create repo â manual setup â
â 2. Choose framework â research options â
â 3. Setup build â configure bundler/compiler â
â 4. Add observability â integrate logging, metrics â
â 5. Security review â checklist, manual fixes â
â 6. Setup CI/CD â write pipeline config â
â 7. Deploy pipeline â debug issues â
â 8. Documentation â write from scratch â
â â
â Time: 2-5 days â
â Result: May miss best practices â
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
Designing Golden Paths
Identifying Candidates
Golden Path Selection Criteria:
High-Value Candidates:
âââ Frequent: Done by many teams regularly
âââ Complex: Easy to get wrong
âââ Critical: Security/compliance implications
âââ Costly: Takes significant time manually
âââ Standardizable: Common pattern across teams
Assessment Matrix:
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â Frequency â
â Low High â
â âââââââââââââââ¬ââââââââââââââ â
â High â Custom â GOLDEN PATH â â High Impact â
â â Solution â PRIORITY â â
â Impact âââââââââââââââ¼âââââââââââââ⤠â
â Low â Ignore â Document/ â â
â â â Automate â â
â âââââââââââââââ´ââââââââââââââ â
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
Common Golden Paths:
1. New service creation (by service type)
2. Database provisioning
3. CI/CD pipeline setup
4. Security scanning integration
5. Observability setup
6. Environment creation
7. API development workflow
8. Frontend application setup
Template Design Principles
Template Design:
1. Opinionated Defaults
âââ Make decisions so developers don't have to
âââ Choose proven technologies
âââ Use sensible configurations
âââ Document why choices were made
2. Minimal Required Input
âââ Service name
âââ Team/owner
âââ 1-3 key configuration choices
âââ Everything else has defaults
3. Complete Package
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â Template Contents: â
â â
â Application Layer: â
â âââ Application code skeleton â
â âââ Configuration management â
â âââ Health check endpoints â
â âââ API documentation setup â
â â
â Quality Layer: â
â âââ Unit test framework â
â âââ Integration test setup â
â âââ Linting and formatting â
â âââ Pre-commit hooks â
â â
â Operations Layer: â
â âââ Dockerfile â
â âââ Kubernetes manifests â
â âââ CI/CD pipeline â
â âââ Infrastructure as Code â
â â
â Observability Layer: â
â âââ Structured logging â
â âââ Metrics instrumentation â
â âââ Distributed tracing â
â âââ Dashboard templates â
â â
â Documentation Layer: â
â âââ README template â
â âââ ADR templates â
â âââ Runbook templates â
â âââ API specification â
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
4. Clear Extension Points
âââ Where to add business logic
âââ How to add new endpoints
âââ How to integrate dependencies
âââ How to customize behavior
Template Architecture
Template Implementation Patterns:
1. Scaffolding/Generation (Backstage, Yeoman)
Input â Template + Variables â Generated Repo
Pros: Simple, full control
Cons: Generated code diverges over time
2. Cookiecutter/Copier
Template repo â Variable substitution â New repo
Pros: Easy to maintain templates
Cons: Post-generation updates hard
3. Base Image/Library Pattern
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â Application Code â
â â â
â â¼ â
â âââââââââââââââââââââââââââââââââââââââââââââââââââ â
â â Company Base Library â â
â â âââ Logging (preconfigured) â â
â â âââ Metrics (preconfigured) â â
â â âââ Tracing (preconfigured) â â
â â âââ HTTP client (with retry) â â
â â âââ Health checks (standard) â â
â âââââââââââââââââââââââââââââââââââââââââââââââââââ â
â â â
â â¼ â
â âââââââââââââââââââââââââââââââââââââââââââââââââââ â
â â Company Base Image â â
â â âââ Runtime (Node, Go, .NET) â â
â â âââ Security patches â â
â â âââ Standard tooling â â
â âââââââââââââââââââââââââââââââââââââââââââââââââââ â
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
Pros: Updates propagate automatically
Cons: Requires versioning strategy
4. Mono-Repo with Generators
Centralized templates â Generated into mono-repo
Pros: Consistency, shared tooling
Cons: Mono-repo complexity
Guardrails and Flexibility
Guardrail Design
Guardrails: Automatic enforcement of standards without blocking.
Types of Guardrails:
1. Preventive (Block before it happens)
âââ Pre-commit hooks
âââ PR checks
âââ Template validation
âââ Infrastructure policies
2. Detective (Alert after it happens)
âââ Compliance scans
âââ Drift detection
âââ Audit logs
âââ Security scanning
3. Corrective (Auto-fix issues)
âââ Auto-formatting
âââ Auto-remediation
âââ Self-healing infrastructure
âââ Automated rollbacks
Guardrail Implementation:
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â DEVELOPMENT LIFECYCLE â
â â
â Code ââ⺠Commit ââ⺠PR ââ⺠Merge ââ⺠Deploy ââ⺠Production â
â â â â â â â â
â â¼ â¼ â¼ â¼ â¼ â¼ â
â [Lint] [Pre- [PR [Build [Deploy [Runtime â
â [Format] commit] checks] gates] policies] monitoring] â
â â
â Guardrails at each stage: â
â âââ IDE: Real-time feedback, auto-fix â
â âââ Commit: Secrets scan, lint â
â âââ PR: Tests, security scan, approval â
â âââ Build: Vulnerability scan, compliance â
â âââ Deploy: Canary, health checks â
â âââ Runtime: Anomaly detection, auto-scale â
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
Escape Hatches
Escape Hatches: How to deviate from golden path when needed.
Principles:
âââ Make deviation possible but intentional
âââ Require justification, not approval
âââ Don't punish teams for legitimate needs
âââ Learn from deviations to improve paths
Escape Hatch Patterns:
1. Documented Exception
# .platform/exceptions.yaml
exceptions:
- rule: must-use-company-base-image
reason: "ML workload requires specific CUDA version"
approved-by: platform-team
expires: 2024-12-31
review-issue: PLAT-1234
2. Tiered Support
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â Tier 1: Golden Path â
â - Full support â
â - Automatic updates â
â - Priority bug fixes â
â â
â Tier 2: Supported Deviation â
â - Documented exception â
â - Best-effort support â
â - Manual updates may be needed â
â â
â Tier 3: Custom â
â - Self-supported â
â - No guarantees â
â - Must meet minimum security standards â
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
3. Override Mechanism
# pipeline.yaml
lint:
enabled: true
override: true # Skip for this repo
override-reason: "Legacy code, lint fix scheduled for Q2"
Common Golden Paths
Service Creation Path
Service Creation Golden Path:
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â Step 1: Select Template â
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ¤
â â
â Available Templates: â
â â REST API (Node.js) - Standard HTTP API â
â â REST API (Go) - High-performance API â
â â REST API (.NET) - Enterprise API â
â â GraphQL Service - Flexible API layer â
â â Event Consumer - Kafka/message processing â
â â Scheduled Job - Batch/cron workloads â
â â
â [Continue with GraphQL Service] â
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â Step 2: Configure Service â
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ¤
â â
â Service Name: _________ (kebab-case, e.g., user-service) â
â Owner Team: [â¼ Select team ] â
â Description: _________________________________________ â
â â
â Optional Features: â
â â Database (PostgreSQL) â
â â Cache (Redis) â
â â Message Queue (Kafka consumer) â
â â External API Client â
â â
â [Create Service] â
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â Step 3: Automatic Setup (60 seconds) â
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ¤
â â
â â Repository created github.com/org/user-service â
â â CI/CD pipeline configured Actions workflow created â
â â Dev environment ready user-service.dev.internal â
â â Database provisioned PostgreSQL on RDS â
â â Secrets configured Vault paths created â
â â Monitoring setup Datadog dashboards created â
â â Registered in catalog Backstage entry created â
â â
â [Open Repository] [View in Catalog] [Start Coding] â
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
Deployment Path
Deployment Golden Path:
Developer Workflow:
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â â
â 1. Developer pushes to feature branch â
â âââ Automatic: lint, test, build, security scan â
â â
â 2. Developer opens PR â
â âââ Automatic: preview environment, E2E tests â
â â
â 3. PR approved and merged â
â âââ Automatic: deploy to staging â
â â
â 4. Staging validation (automated + manual) â
â âââ Automatic: smoke tests, synthetic monitoring â
â â
â 5. Production deployment â
â âââ Automatic: canary â gradual rollout â
â â
â No manual steps required for standard deployments â
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
Pipeline Configuration:
# Comes pre-configured in template
# Developers only modify if needed
deploy:
staging:
trigger: merge-to-main
strategy: rolling
tests: [smoke, integration]
production:
trigger: staging-success
strategy: canary
canary-percentage: 5
canary-duration: 15m
rollback: automatic
Adoption Strategy
Rolling Out Golden Paths
Adoption Phases:
Phase 1: Pilot (1-2 teams, 1-2 months)
âââ Partner with friendly teams
âââ Gather intensive feedback
âââ Iterate rapidly
âââ Build success stories
âââ Document learnings
Phase 2: Early Adopters (5-10 teams, 2-3 months)
âââ Expand to interested teams
âââ Refine based on feedback
âââ Build champions network
âââ Create training materials
âââ Measure adoption metrics
Phase 3: Early Majority (30-50% teams, 3-6 months)
âââ Marketing and communication
âââ Training sessions
âââ Self-service documentation
âââ Deprecate old paths
âââ Track DORA metrics
Phase 4: Late Majority (70-90% teams, 6-12 months)
âââ Mandate for new services
âââ Migration support for existing
âââ Advanced features
âââ Refinement and optimization
âââ Continuous improvement
Adoption Tactics:
âââ Make golden path faster than alternatives
âââ Provide migration tooling
âââ Celebrate early adopters
âââ Address blockers quickly
âââ Don't force premature adoption
âââ Listen to resistors (they find real issues)
Measuring Success
Golden Path Metrics:
Adoption Metrics:
âââ % new services using templates
âââ % teams with at least one golden path service
âââ Template usage by type
âââ Deviation rate (why teams don't use)
âââ Migration rate (legacy to golden path)
Efficiency Metrics:
âââ Time to first deployment (new service)
âââ Time to production change
âââ PR cycle time
âââ Incident resolution time
âââ Developer time saved
Quality Metrics:
âââ Deployment success rate
âââ Security scan pass rate
âââ Change failure rate
âââ Incident rate (golden vs custom)
âââ Compliance audit findings
Satisfaction Metrics:
âââ Developer NPS for platform
âââ Template satisfaction surveys
âââ Support ticket volume
âââ Documentation effectiveness
âââ Onboarding experience rating
Anti-Patterns
Golden Path Anti-Patterns:
1. "One Golden Path for All"
â Same template for microservices and ML workloads
â Multiple paths for different use cases
2. "Rails, Not Paths"
â Making deviation impossible or punished
â Deviation possible with justification
3. "Technical Purity Over Practicality"
â Choosing trendy tech that teams struggle with
â Use tech teams can actually use
4. "Set and Forget"
â Creating path once and never updating
â Continuous improvement based on feedback
5. "Mandate Without Value"
â Forcing adoption before path is good
â Make path so good teams want to use it
6. "Complexity Hiding"
â Hiding all complexity, no learning opportunity
â Progressive disclosure of complexity
7. "No Escape Hatch"
â Blocking legitimate deviations
â Clear process for exceptions
Best Practices
Golden Path Best Practices:
1. Start with Pain Points
âââ Interview developers about friction
âââ Measure current time-to-production
âââ Identify most common tasks
âââ Focus on highest-impact paths first
2. Make Right Way Easy
âââ Golden path should be faster than alternatives
âââ Defaults should be secure and compliant
âââ Documentation integrated into workflow
âââ Errors should guide to solutions
3. Iterate Based on Feedback
âââ Regular user research
âââ Fast iteration cycles
âââ A/B test improvements
âââ Deprecate gracefully
4. Balance Opinionation and Flexibility
âââ Strong defaults with clear rationale
âââ Document why choices were made
âââ Allow overrides with justification
âââ Learn from deviations
5. Invest in Documentation
âââ Getting started guides
âââ Decision explanations
âââ Troubleshooting guides
âââ Migration guides
6. Build Community
âââ Champions in each team
âââ Regular office hours
âââ Contribution guidelines
âââ Celebrate successes
Related Skills
internal-developer-platform– Platform engineering overviewself-service-infrastructure– Infrastructure provisioning patternsdesign-interview-methodology– Interview preparationquality-attributes-taxonomy– Understanding quality requirements