plugins/build/skills/go-cli-architecture/SKILL.md
Build Kubernetes-native CLIs in Go with type safety, testability, and complex orchestration logic for deployment tools and cluster automation.
npx skillsauth add adaptive-enforcement-lab/claude-skills go-cli-architectureInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Go vs Shell Scripts
Start with shell scripts for prototyping. Graduate to Go when you need type safety, testability, or complex orchestration logic.
Use Go when you need:
Use shell scripts when you need:
See the full implementation guide in the source documentation.
| Principle | Description |
| ----------- | ------------- |
| Separation of concerns | Commands handle CLI logic; pkg/ handles business logic |
| Testable by default | Interfaces for external dependencies enable fake clients |
| Fail fast | Validate configuration and connectivity before operations |
| Structured output | JSON output for machine consumption, human-friendly by default |
| Graceful degradation | Clear error messages with actionable context |
Building CLIs that operators trust.
See examples.md for code examples.
documentation
Workload Identity Federation implementation guide. GKE setup, IAM bindings, ServiceAccount configuration, migration from service account keys, and troubleshooting patterns.
development
Secure GitHub Actions trigger patterns for pull requests, forks, and reusable workflows. Preventing privilege escalation and code injection through trigger misconfiguration.
development
Structured framework for evaluating GitHub Actions security before adoption. Trust tiers, risk assessment checklist, and decision tree for action evaluation.
testing
Securely store GitHub App credentials across different environments. GitHub Actions secrets, external CI, Kubernetes, and automated rotation patterns.