add-command-simple

Official

Add a simple CLI command with plain text output

Authoropenkaiden
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This skill helps you add a simple CLI command that outputs plain text (no JSON output support) to accelerate task automation in Go projects.

Core Features & Use Cases

  • Command scaffolding: generate a Cobra-based command file at pkg/cmd/<command>.go with standard Use, Short, Long, and Example fields.
  • Argument and flag patterns: supports required args, PreRun, RunE, and flag binding via BoolVarP/StringVarP, enabling consistent behavior.
  • Integration patterns: demonstrates how to wire the command into root.go and group categorization for help output.
  • Use Case: quickly add a new CLI action like "clean" or "validate" to streamline workflows in a workspace.

Quick Start

Create a new Cobra command file under pkg/cmd for your <command> and wire it into root.go to expose the command.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: add-command-simple
Download link: https://github.com/openkaiden/kdn/archive/main.zip#add-command-simple

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 510,000+ vetted skills library on demand.