Agent skill

Go Cobra Applications

by hashgraph-online in hashgraph-online/awesome-codex-plugins

Build, refactor, test, and review Cobra-based Go applications with intentional command trees, fresh constructors, suggestions, typed boundaries, scoped flags, local or remote configuration, explicit…

MITAuto-check passed

Install Go Cobra Applications

skills CLI
$ npx skills add hashgraph-online/awesome-codex-plugins --skill go-cobra-applications -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install hashgraph-online/awesome-codex-plugins go-cobra-applications --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/hashgraph-online/awesome-codex-plugins.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/LVTD-LLC/skills/skills/go-cobra-applications .claude/skills/go-cobra-applications && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
go-cobra-applications
GitHub stars
1.3k
Token cost
~836 tokens
SKILL.md length
301 words
Files
9 (incl. references)
Skills in repo
716
Repo updated
First seen
Licence
MIT

At a glance

Build, refactor, test, and review Cobra-based Go applications with intentional command trees, fresh constructors, suggestions, typed boundaries, scoped flags, local or remote configuration, explicit…

  • Works in 7 steps: Model the tree around user resources,… → Define invocation contracts, argument… → Construct fresh root and subcommands… → …
  • Viper CLI architecture and implementation
  • SKILL.md covers Core Workflow, Read Next, Guardrails and Source Notes
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Go Cobra Applications is an agent skill from hashgraph-online/awesome-codex-plugins. Build, refactor, test, and review Cobra-based Go applications with intentional command trees, fresh constructors, suggestions, typed boundaries, scoped flags, local or remote configuration, explicit precedence, safe live reload, context propagation, stable streams, shell completion, and generated documentation. Use for Cobra or Viper CLI architecture and implementation.

Its SKILL.md is about 840 tokens, which your agent loads only when the skill is triggered. The skill folder holds 12 other files, including reference files (for example `agents/openai.yaml`, `guidelines.md` and `references/cobra-applications/checklist.md`). Compatibility notes: Codex, Claude Code, and other Agent Skills-compatible clients.

The repository describes itself as: A curated list of awesome OpenAI Codex / ChatGPT plugins, skills, and resources. The 1 Codex Marketplace. See live plugins at: https://hol.org/plugins/best-codex-plugins. The licence is MIT.

When your agent uses it

  • Viper CLI architecture and implementation

Example prompts

  • “/go-cobra-applications”

Requirements

  • Compatibility (from SKILL.md): Codex, Claude Code, and other Agent Skills-compatible clients.

Workflow steps

7 steps, taken from the first numbered list in SKILL.md.

  1. Model the tree around user resources, workflows, and operations.
  2. Define invocation contracts, argument validation, examples, and flag scope.
  3. Construct fresh root and subcommands with explicit dependencies and streams.
  4. Keep handlers thin, propagate context, and return errors.
  5. Resolve defaults, config, environment, and flags into a validated typed config.
  6. Test parsing, inheritance, precedence, help, errors, and repeated execution.
  7. Generate completion and documentation from the same runtime tree.

What it can do on your machine

Read from SKILL.md and the folder at commit 3e1456a. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • pragprog.com
    • cobra.dev
    • github.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

  • Compatibility

    Codex, Claude Code, and other Agent Skills-compatible clients.

    From compatibility in the SKILL.md frontmatter.

Context cost

Go Cobra Applications loads about 836 tokens when it runs, and up to ~7.9k if it reads all its reference files. Until then it costs about 99 tokens; SKILL.md has 301 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~99
When it runs · the whole SKILL.md, loaded when a task matches
~836
With references · SKILL.md plus every file in references/, read only if the agent opens them
~7.9k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from hashgraph-online/awesome-codex-plugins at commit 3e1456a, republished under its MIT licence (© hashgraph-online). 301 words, ~836 tokens.

Download SKILL.mdSave it as .claude/skills/go-cobra-applications/SKILL.md (or your agent's skills folder). This skill also uses 8 other files; get the full folder from GitHub.
name
go-cobra-applications
description
Build, refactor, test, and review Cobra-based Go applications with intentional command trees, fresh constructors, suggestions, typed boundaries, scoped flags, local or remote configuration, explicit precedence, safe live reload, context propagation, stable streams, shell completion, and generated documentation. Use for Cobra or Viper CLI architecture and implementation.
compatibility
Codex, Claude Code, and other Agent Skills-compatible clients.
license
MIT
metadata.version
0.4.0
metadata.displayName
Go Cobra Applications
metadata.category
Go
metadata.tags
go,golang,cli,cobra,viper,command-tree,configuration

Go Cobra Applications

Keep Cobra and Viper at the application edge. Construct a fresh command tree per execution and translate CLI state into typed application calls.

Core Workflow

  1. Model the tree around user resources, workflows, and operations.
  2. Define invocation contracts, argument validation, examples, and flag scope.
  3. Construct fresh root and subcommands with explicit dependencies and streams.
  4. Keep handlers thin, propagate context, and return errors.
  5. Resolve defaults, config, environment, and flags into a validated typed config.
  6. Test parsing, inheritance, precedence, help, errors, and repeated execution.
  7. Generate completion and documentation from the same runtime tree.
TaskLoad
Build or restructure a Cobra applicationguidelines.md, workflows/build-cobra-command-tree.md
Apply command-tree, flag, config, and testing rulesreferences/cobra-applications/rules.md
Use constructors and focused implementation examplesreferences/cobra-applications/examples.md
Inject services or resolve configurationreferences/cobra-applications/patterns.md
Review a Cobra/Viper applicationreferences/cobra-applications/checklist.md
Understand architecture, completion, and docsreferences/cobra-applications/knowledge.md

Guardrails

  • Avoid mutable package-global commands and init-driven application wiring.
  • Domain packages must not import Cobra or Viper.
  • Use persistent flags only when descendants genuinely share the option.
  • Treat configuration as validated runtime policy, not mutable application storage.
  • Validate reload candidates and atomically publish only last-known-good state.
  • Show usage for syntax errors, not routine operational failures.
  • Verify generator, completion, docs, and configuration APIs against pinned versions.

Source Notes

Guidance is transformed and paraphrased from Ricardo Gerardi, Powerful Command-Line Applications in Go (Pragmatic Bookshelf, 2021), especially Chapter 7. Examples are original adaptations.

Book: https://pragprog.com/titles/rggo/powerful-command-line-applications-in-go/

The book's 2021 generator flow is historical. Verify current APIs and tooling against https://cobra.dev/ and https://github.com/spf13/viper before use.

Suggestion, remote configuration, and live-reload guidance also incorporates transformed material from Marian Montagnino, Building Modern CLI Applications in Go (Packt, 2023), especially Chapter 4.

Parser-boundary guidance also incorporates transformed material from Inanc Gumus, Go by Example: Programmer's Guide to Idiomatic and Testable Programs (Manning, 2025), Chapter 4.

© hashgraph-online, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 8 other files (references) in plugins/LVTD-LLC/skills/skills/go-cobra-applications of hashgraph-online/awesome-codex-plugins.

  • SKILL.md
  • agents/openai.yaml
  • guidelines.md
  • references/cobra-applications/checklist.md
  • references/cobra-applications/examples.md
  • references/cobra-applications/knowledge.md
  • references/cobra-applications/patterns.md
  • references/cobra-applications/rules.md
  • workflows/build-cobra-command-tree.md

Open the folder on GitHubat commit 3e1456a

Compare with similar skills

Go Cobra Applications next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Go Cobra Applications compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Go Cobra Applications this skillhashgraph-online/awesome-codex-plugins1.3k—~836Automated safety check: PassMIT
Refactorgithub/awesome-copilot40k6 repos~4.2kAutomated safety check: PassMIT
Component Refactoringlangflow-ai/langflow155k—~3.5kAutomated safety check: PassMIT
Openclaw Refactor Docsopenclaw/openclaw392k—~1.9kAutomated safety check: PassMIT
Code Refactoring Workflowluongnv89/claude-howto42k—~3.1kAutomated safety check: PassMIT
Refactoring Skill (Vietnamese)luongnv89/claude-howto42k—~3.1kAutomated safety check: PassMIT

Similar skills

  • Refactor

    github/awesome-copilot

    Official

    Surgical code refactoring to improve maintainability without changing behavior.

    40k GitHub starsUsed in 6 repos~4.2k tokens
    DevelopmentAuto-check passed
  • Component Refactoring

    langflow-ai/langflow

    Refactor high-complexity React components in Langflow frontend.

    155k GitHub stars~3.5k tokensUpdated today
    DevelopmentAuto-check passed
  • Openclaw Refactor Docs

    openclaw/openclaw

    Refactor an existing OpenClaw docs page with source-audited preservation, restructuring, and verification.

    392k GitHub stars~1.9k tokensUpdated today
    DevelopmentAuto-check passed
  • Code Refactoring Workflow

    luongnv89/claude-howto

    Guides systematic, test-backed refactoring in the style of Martin Fowler, moving through research, planning and small incremental changes with your approval at each phase.

    42k GitHub stars~3.1k tokensUpdated 10 days ago
    DevelopmentAuto-check passed
  • Refactoring Skill (Vietnamese)

    luongnv89/claude-howto

    Vietnamese edition of a systematic refactoring skill based on Martin Fowler's book, working in approved phases with small, test-backed changes.

    42k GitHub stars~3.1k tokensUpdated 10 days ago
    DevelopmentAuto-check passed
  • Systematic Code Refactoring

    luongnv89/claude-howto

    Guides refactoring in phases based on Martin Fowler's method: research, test coverage check, planning and small tested steps, with your approval at each phase.

    42k GitHub stars~3k tokensUpdated 10 days ago
    DevelopmentAuto-check passed

More from hashgraph-online/awesome-codex-plugins

All 716 skills in this repo
  • Anime Reaction Gif

    hashgraph-online/awesome-codex-plugins

    Create original anime-style reaction stickers as looping GIFs and MP4 previews, using generated character pose sheets and timed key poses.

    1.3k GitHub stars~922 tokensUpdated today
    Auto-check passed
  • Calibredb

    hashgraph-online/awesome-codex-plugins

    Manage and query Calibre libraries with the calibredb CLI (local paths or Calibre Content server URLs).

    1.3k GitHub stars~1k tokensUpdated today
    Auto-check passed
  • Rust API Test Harness

    hashgraph-online/awesome-codex-plugins

    A skill your agent uses when adding, changing, testing, or debugging Rust HTTP APIs and services, especially when Codex needs black-box integration tests, random-port app startup, real database test…

    1.3k GitHub stars~1.7k tokensUpdated today
    Auto-check passed
  • Art

    hashgraph-online/awesome-codex-plugins

    Make a studio's game look like something at build time — a cover from a real frame of the game (free), painted covers, backdrops, textures and character plates from image models through the…

    1.3k GitHub stars~2.4k tokensUpdated today
    Auto-check passed
  • Calle

    hashgraph-online/awesome-codex-plugins

    Use CALL-E from Codex through the calle CLI. An agent skill from hashgraph-online/awesome-codex-plugins.

    1.3k GitHub stars~2.9k tokensUpdated today
    Auto-check passed
  • Game Balance Economy

    hashgraph-online/awesome-codex-plugins

    Balance game difficulty, resources, rewards, probability, progression, economies, and dominant strategies.

    1.3k GitHub stars~618 tokensUpdated today
    Auto-check passed

Questions about Go Cobra Applications

What does Go Cobra Applications do?

Build, refactor, test, and review Cobra-based Go applications with intentional command trees, fresh constructors, suggestions, typed boundaries, scoped flags, local or remote configuration, explicit…. Go Cobra Applications is an agent skill from hashgraph-online/awesome-codex-plugins. Build, refactor, test, and review Cobra-based Go applications with intentional command trees, fresh constructors, suggestions, typed boundaries, scoped flags, local or remote configuration, explicit precedence, safe live reload, context propagation, stable streams, shell completion, and generated documentation.

When should I use Go Cobra Applications?

Go Cobra Applications fits situations like: viper CLI architecture and implementation.

How do I install Go Cobra Applications in Claude Code?

Run `npx skills add hashgraph-online/awesome-codex-plugins --skill go-cobra-applications -a claude-code`. Or copy the skill folder (plugins/LVTD-LLC/skills/skills/go-cobra-applications in hashgraph-online/awesome-codex-plugins) into .claude/skills/go-cobra-applications in your project. Claude Code loads it when a task matches its description.

How do I install Go Cobra Applications in Codex?

Run `npx skills add hashgraph-online/awesome-codex-plugins --skill go-cobra-applications -a codex`. Or copy the skill folder (plugins/LVTD-LLC/skills/skills/go-cobra-applications in hashgraph-online/awesome-codex-plugins) into .agents/skills/go-cobra-applications in your project. Codex loads it when a task matches its description.

Can I use Go Cobra Applications in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add hashgraph-online/awesome-codex-plugins --skill go-cobra-applications -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/go-cobra-applications, .gemini/skills/go-cobra-applications, .github/skills/go-cobra-applications and .opencode/skills/go-cobra-applications in your project.

What does Go Cobra Applications need to run?

SKILL.md names no scripts, command-line tools or credentials: Go Cobra Applications is instructions for the agent only. Compatibility (from SKILL.md): Codex, Claude Code, and other Agent Skills-compatible clients..

Does Go Cobra Applications access the network?

SKILL.md names 3 domains. As links in the text: pragprog.com, cobra.dev and github.com. This is read from the text; nothing was executed.

Is Go Cobra Applications safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Go Cobra Applications use?

Go Cobra Applications is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Go Cobra Applications use?

About 836 tokens (SKILL.md is roughly 3.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 7.1k tokens, read only when the agent opens those files.

What are the alternatives to Go Cobra Applications?

Skills that share tags, products or a category with Go Cobra Applications: Refactor (github/awesome-copilot, 40k stars), Component Refactoring (langflow-ai/langflow, 155k stars), Openclaw Refactor Docs (openclaw/openclaw, 392k stars) and Code Refactoring Workflow (luongnv89/claude-howto, 42k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Go Cobra Applications?

hashgraph-online (a GitHub organization) maintains it in hashgraph-online/awesome-codex-plugins, which has 1,267 GitHub stars. The repository holds 716 skills in this directory. The repository was last updated on October 10, 2026.

Source: hashgraph-online/awesome-codex-plugins on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.