administering-linux
Manage Linux systems covering systemd services, process management, filesystems, networking, performance tuning, and troubleshooting. Use when deploying…
Build professional command-line interfaces in Python, Go, and Rust using modern frameworks like Typer, Cobra, and clap. Use when creating developer tools, automation scripts, or infrastructure management CLIs with robust argument parsing, interactive features, and multi-platform
$ npx -y skills add ancoleman/ai-design-components --skill building-clis --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/building-clisContext preview
The summary Claude sees to decide when to auto-load this skill.
Build professional command-line interfaces in Python, Go, and Rust using modern frameworks like Typer, Cobra, and clap. Use when creating developer tools, automation scripts, or infrastructure management CLIs with robust argument parsing, interactive features, and multi-platform
name: building-clis description: Build professional command-line interfaces in Python, Go, and Rust using modern frameworks like Typer, Cobra, and clap. Use when creating developer tools, automation scripts, or infrastructure management CLIs with robust argument parsing, interactive features, and multi-platform distribution.
Build professional command-line interfaces across Python, Go, and Rust using modern frameworks with robust argument parsing, configuration management, and shell integration.
Use this skill when:
Common triggers: "create a CLI tool", "build a command-line interface", "add CLI arguments", "parse command-line options", "generate shell completions"
**Python Projects:**
**Go Projects:**
**Rust Projects:**
For detailed framework comparison and selection criteria, see [references/framework-selection.md](references/framework-selection.md).
**Positional Arguments:**
**Options:**
**Flags:**
**Decision Matrix:**
| Use Case | Type | Example | |----------|------|---------| | Primary required input | Positional Argument | `git commit -m "message"` | | Optional configuration | Option | `--config app.yaml` | | Boolean setting | Flag | `--verbose`, `--force` | | Multiple values | Variadic Argument | `files...` |
See [references/argument-patterns.md](references/argument-patterns.md) for comprehensive parsing patterns.
**Flat Structure (1 Level):**
app command1 [args] app command2 [args]
Use for: Small CLIs with 5-10 operations
**Grouped Structure (2 Levels):**
app group subcommand [args]
Use for: Medium CLIs with logical groupings (10-30 commands) Example: `kubectl get pods`, `kubectl create deployment`
**Nested Structure (3+ Levels):**
app group subgroup command [args]
Use for: Large CLIs with deep hierarchies (30+ commands) Example: `gcloud compute instances create`
See [references/subcommand-design.md](references/subcommand-design.md) for structuring strategies.
**Standard Precedence (Highest to Lowest):**
1. CLI Arguments/Flags (explicit user input) 2. Environment Variables (session overrides) 3. Config File - Local (`./config.yaml`) 4. Config File - User (`~/.config/app/config.yaml`) 5. Config File - System (`/etc/app/config.yaml`) 6. Built-in Defaults (hardcoded)
**Best Practices:**
See [references/configuration-management.md](references/configuration-management.md) for implementation patterns across languages.
**Format Selection:**
| Use Case | Format | When | |----------|--------|------| | Human consumption | Colored text, tables | Default interactive mode | | Machine consumption | JSON, YAML | `--output json`, piping | | Logging/debugging | Plain text | `--verbose`, stderr | | Progress tracking | Progress bars, spinners | Long operations |
**Best Practices:**
See [references/output-formatting.md](references/output-formatting.md) for formatting strategies.
**Installation:**
pip install "typer[all]" # Includes rich for colored output
**Basic Example:**
import typer
from typing import Annotated
app = typer.Typer()
@app.command()
def greet(
name: Annotated[str, typer.Argument(help="Name to greet")],
formal: Annotated[bool, typer.Option(help="Use formal greeting")] = False
):
"""Greet someone with a message."""
greeting = "Good day" if formal else "Hello"
typer.echo(f"{greeting}, {name}!")
if __name__ == "__main__":
app()**Key Features:**
See [examples/python/](examples/python/) for complete working examples including subcommands, config management, and interactive features.
**Installation:**
go get -u github.com/spf13/cobra@latest
**Basic Example:**
var rootCmd = &cobra.Command{
Use: "greet [name]",
Args: cobra.ExactArgs(1),
Run: func(cmd *cobra.Command, args []string) {
fmt.Printf("Hello, %s!\n", args[0])
},
}
rootCmd.Flags().Bool("formal", false, "Use formal greeting")
rootCmd.Execute()**Key Features:**
See [examp
Comprehensive UI/UX and Backend component design skills for AI-assisted development with Claude
Repo: ancoleman/ai-design-components
Manage Linux systems covering systemd services, process management, filesystems, networking, performance tuning, and troubleshooting. Use when deploying…
Data pipelines, feature stores, and embedding generation for AI/ML systems. Use when building RAG pipelines, ML feature serving, or data transformations.…
Strategic guidance for designing modern data platforms, covering storage paradigms (data lake, warehouse, lakehouse), modeling approaches (dimensional,…
Design cloud network architectures with VPC patterns, subnet strategies, zero trust principles, and hybrid connectivity. Use when planning VPC topology,…
Design comprehensive security architectures using defense-in-depth, zero trust principles, threat modeling (STRIDE, PASTA), and control frameworks (NIST CSF,…
Assembles component outputs from AI Design Components skills into unified, production-ready component systems with validated token integration, proper import…