cobra-scaffolder
Generate Cobra/Viper-based Go CLI applications with persistent flags, subcommands, and configuration management. Creates production-ready Go CLI with modern patterns.
npx skills add a5c-ai/babysitter --skill cobra-scaffolder --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Cobra Scaffolder Generate a complete Cobra CLI application with Viper configuration, proper Go module structure, and best practices. ## Capabilities - Generate Go-based Cobra CLI projects - Create command hierarchy with persistent and local flags - Integrate Viper for configuration management - Set up automatic environment variable binding - Implement shell completion generation - Configure go.mod and build workflows ## Usage Invoke this skill when you need to: - Bootstrap a new CLI application using Cobra - Create a Go CLI with hierarchical commands - Integrate Viper for multi-source configuration - Build cross-platform native binaries ## Inputs | Parameter | Type | Required | Description | |-----------|------|----------|-------------| | projectName | string | Yes | Name of the CLI project (kebab-case) | | modulePath | string | Yes | Go module path (e.g., github.com/user/project) | | description | string | Yes | Short description of the CLI | | commands | array | No | List of commands to scaffold | | useViper | boolean | No | Integrate Viper config (default: true) | | useCobra | boolean | No | Use cobra-cli generator patterns (default: true) | ### Command Structure ```json { "co
- Capabilities
- Usage
- Inputs
- Command Structure
- Output Structure
- Generated Code Patterns
- Root Command (cmd/root.go)
- Command Template (cmd/serve.go)
- Dependencies
- Workflow
- Best Practices Applied
- References
- Target Processes
What does the cobra-scaffolder skill do?
Generate Cobra/Viper-based Go CLI applications with persistent flags, subcommands, and configuration management. Creates production-ready Go CLI with modern patterns.
How do I install it?
Run `npx skills add a5c-ai/babysitter --skill cobra-scaffolder --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From a5c-ai/babysitter, a repository with 1,642 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
