cli

Designs Cobra-based CLI command trees with dynamic discovery and dual-layer TUI wrappers for Invowk.

Updated Jan 8, 2026
One-click install
npx skills add https://github.com/invowk/invowk --skill cli-invowk
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cli
Source: https://github.com/invowk/invowk/tree/main/.claude/skills/cli
Command: npx skills add https://github.com/invowk/invowk --skill cli-invowk

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides a structured approach to building and maintaining a Cobra-based CLI, with clear command hierarchy, runtime execution flow, and strict handling of hidden internal commands. It helps teams standardize how commands are defined, discovered, and executed across the Invowk toolkit.

Core Features & Use Cases

  • Dynamic command registration and discovery across multiple sources
  • Dual-layer TUI component wrappers for standalone and server contexts
  • Clear policy for hidden internal commands and robust error handling

Quick Start

Edit the cmd/invowk files and run invowk cmd to verify dynamic command registration and execution.

Frequently Asked Questions about cli

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I structure dynamic command registration in a Cobra-based CLI?

Dynamic command registration in a Cobra-based CLI uses multi-source discovery to populate the command tree at runtime. This enforces a clear execution flow and standardizes command hierarchy across the toolkit.

What is the best way to manage hidden internal commands in Go CLI applications?

Managing hidden internal commands in Go CLI applications requires a strict execution flow policy within the Cobra architecture. This approach isolates internal utilities while maintaining a robust error handling pipeline.

How do I integrate a dual-layer TUI with Cobra command execution?

Integrating a dual-layer TUI with Cobra involves wrapping command execution flow in standalone and server contexts. This provides interactive terminal interfaces while preserving the underlying configuration and flag handling pipeline.

Does this CLI architecture support multi-source command discovery for Go projects?

Yes, this CLI architecture supports multi-source command discovery for Go projects. It dynamically registers and executes commands across multiple sources, ensuring consistent configuration and flag handling throughout the execution flow.

How do I verify command tree execution and registration after editing CLI files?

To verify command tree execution and registration after editing CLI files, run the main command execution script. This triggers the dynamic discovery process and validates the updated Cobra command structure.