Agent Skills: cobra-patterns
Production-ready Cobra CLI patterns including command structure, flags (local and persistent), nested commands, PreRun/PostRun hooks, argument validation, and initialization patterns used by kubectl and hugo. Use when building Go CLIs, implementing Cobra commands, creating nested command structures, managing flags, validating arguments, or when user mentions Cobra, CLI development, command-line tools, kubectl patterns, or Go CLI frameworks.
ID: vanman2024/cli-builder/cobra-patterns
Install this agent skill to your local
Skill Files
The files that make up cobra-patterns.
Loading file tree…
More agent skills
- nlp-research-repo-package-installmentAlign Python version and repo-declared dependencies (requirements.txt / environment.yml) before installing packages for NLP research code reproduction.
- add-setting-envAdd server-side environment variables that control default values for user settings.
- apollo-security-basics'Apply Apollo.io API security best practices.
- studioStart Remotion Studio from packages/example and open it in the Codex browser. Use when the user invokes /studio or $studio, asks to launch the example Studio, or wants the Remotion Studio dev UI available locally.
- account-stateAccount state and in-memory event store patterns in Amethyst. Use when working with `Account.kt` (per-user state objects — `kind3FollowList`, `nip65RelayList`, `muteList`, `bookmarkState`, each exposing a `.flow` StateFlow), `LocalCache` (the object-level event store backed by `LargeCache`), `User`/`Note` model classes, or any ViewModel that reads user-specific state. Covers how account events cascade from relay arrival to UI state, how to add a new account-scoped setting, and when to read from `LocalCache` vs subscribe to a StateFlow.
- labarchive-integrationSecurely integrate with the official LabArchives ELN REST-like API and Inventory API v1. Use for regional endpoint selection, signed-request construction, user authorization and UID flows, local LA container validation, and verified LabArchives integration workflows.