cli-generator

Generate Python CLI scaffolds with Click, Pydantic, and uv.

3|Updated Jan 1, 2026
One-click install
npx skills add https://github.com/kjgarza/marketplace-claude --skill cli-generator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cli-generator
Source: https://github.com/kjgarza/marketplace-claude/tree/main/plugins/senior-software-developer/skills/cli-generator
Command: npx skills add https://github.com/kjgarza/marketplace-claude --skill cli-generator

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps developers rapidly bootstrap AI-friendly Python CLIs by generating a clean, opinionated project skeleton that adheres to best practices for agentic coding environments.

Core Features & Use Cases

  • Automated CLI scaffolding: Create a runnable Click-based CLI with Pydantic data validation and Rich-powered output templates.
  • Structured project layout: Produces a reusable src/my_cli layout (commands, models, output, core) and a test scaffold.
  • Use Case: When a developer wants to launch a new CLI tool that follows robust architectures, including type-safe responses and AI-friendly prompts, this Skill provides a solid starting point and examples.

Quick Start

To generate a new AI-friendly CLI template, request a starter project named my-cli and outline the desired command surface.

Frequently Asked Questions about cli-generator

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

FAQPage Schema
How do I generate an AI-friendly Python CLI using Click and Pydantic?

Generate an AI-friendly Python CLI by requesting a starter project with a desired command surface, which produces a Click-based scaffold with Pydantic validation and structured src/my_cli layout.

What is the best way to structure a Python CLI for agentic coding environments?

The best way to structure a Python CLI for agentic coding is using a modular src/my_cli layout with commands, models, output, and core directories, plus a test scaffold for deterministic agent interactions.

Does this CLI generator include data validation and formatted output templates?

Yes, the CLI generator includes Pydantic for type-safe data validation and Rich-powered output templates to ensure type-safe responses across all generated commands.

Can I use uv to manage dependencies in a Python CLI scaffold?

Yes, you can use uv to manage dependencies, as the CLI generator leverages Click, Pydantic, and uv to enforce best practices for deterministic CLI scaffolds.

Why do I need type-safe responses and clear prompts in a Python CLI for agents?

Type-safe responses and clear prompts are needed to provide deterministic outputs and structured interactions, ensuring AI agents can reliably parse and execute CLI commands without ambiguity.

What are the limitations of using a generated Python CLI scaffold?

The generated Python CLI scaffold provides an opinionated starting point with a fixed src/my_cli structure, meaning developers must manually adapt the predefined commands, models, and output templates for complex custom architectures.