Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Guides building, refactoring, testing, and reviewing Cobra and Viper Go CLI applications with typed config, context, and generated docs.
95% 100%+5 ptsof test cases passed
Passed 22 of 22 test cases with the skill, and 21 of 22 without it.
3 of 3 safety checks passed
21 agent runs
Keep Cobra and Viper at the application edge. Construct a fresh command tree per execution and translate CLI state into typed application calls.
| Task | Load |
|---|---|
| Build or restructure a Cobra application | guidelines.md, workflows/build-cobra-command-tree.md |
| Apply command-tree, flag, config, and testing rules | references/cobra-applications/rules.md |
| Use constructors and focused implementation examples | references/cobra-applications/examples.md |
| Inject services or resolve configuration | references/cobra-applications/patterns.md |
| Review a Cobra/Viper application | references/cobra-applications/checklist.md |
| Understand architecture, completion, and docs | references/cobra-applications/knowledge.md |
init-driven application wiring.Guidance is transformed and paraphrased from Ricardo Gerardi, Powerful Command-Line Applications in Go (Pragmatic Bookshelf, 2021),
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.