Favicon of cli-packaging-patterns

cli-packaging-patterns Skill

AI Agent SkillPythonOpen source

Use when building a new CLI tool that needs one-line install via uv or npm, subcommand dispatch with a default action, or 3-tier config resolution (CLI flags, config file, hardcoded defaults). Published by microsoft in amplifier-bundle-skills.

What is cli-packaging-patterns Skill?

Use when building a new CLI tool that needs one-line install via uv or npm, subcommand dispatch with a default action, or 3-tier config resolution (CLI flags, config file, hardcoded defaults). Published by microsoft in amplifier-bundle-skills. This profile combines repository metadata with install, compatibility, and usage signals so developers can quickly decide whether it fits their agent workflow before opening the source repository.

Trust signal
95/100
Maintenance signal
90/100
Adoption signal
26/100

Automated repository signals based on public metadata such as recency, license, installation evidence, and adoption. These are not a security audit or endorsement.

Key capabilities

  • Includes SKILL.md support
  • Reusable instructions support
  • Deployment
  • Design and media
  • Deployment use cases
  • Design and media use cases

Technical details

Copy skill directory
  • Install or run with Copy skill directory

When to use cli-packaging-patterns Skill

  • Use it for deployment.
  • Use it for design and media.

Built with

PythonCopy skill directory

Editorial notes

Source

  • Creator: microsoft
  • Repository: microsoft/amplifier-bundle-skills
  • Skill file: skills/cli-packaging-patterns/SKILL.md

What it does

Use when building a new CLI tool that needs one-line install via uv or npm, subcommand dispatch with a default action, or 3-tier config resolution (CLI flags, config file, hardcoded defaults).

Skill instructions

CLI Packaging & Distribution The Pattern Problem: You want a CLI tool that installs cleanly from a git URL with zero manual steps — no cloning, no virtual env, no PATH fiddling. Approach: Combine pyproject.toml [project.scripts] with hatchling build backend, a main.py dual entry point, and argparse with a default-action subcommand design so mytool and mytool serve do the same thing. Pattern proven in production across multiple Python CLI tools and web services. When this skill is NOT the right answer This skill assumes a pure Python CLI distributed via uv tool install. If your project does not fit that profile, use a different pattern: | Project shape | Use instead | |--------------|-------------| | Multi-language stack (Python + Node + Docker) | one-line-installer-patterns | | Raw TS/React app with no Python wrapper | one-line-installer-patterns (or publish to npm) | | Tool that bootstraps system prerequisites | one-line-installer-patterns | | Containerized multi-service app | Ship do

Explore related resources

Frequently asked questions

What is cli-packaging-patterns?

cli-packaging-patterns is a open-source AI agent skill with Copy skill directory. Use when building a new CLI tool that needs one-line install via uv or npm, subcommand dispatch with a default action, or 3-tier config resolution (CLI flags, config file, hardcoded defaults).

Who is cli-packaging-patterns best for?

cli-packaging-patterns is best for reusing agent instructions, scripts, and references, deployment workflows, design and media workflows.

How do I install cli-packaging-patterns?

Install or run cli-packaging-patterns using Copy skill directory. Check cli-packaging-patterns for the latest setup command.

Is cli-packaging-patterns actively maintained?

cli-packaging-patterns may need a closer maintenance check before production use.

Share:

Stars
10
Forks
9
Last commit
9 days ago
Repository age
5 months
License
MIT

Auto-fetched from GitHub.

Ad
Favicon

 

  
 

Similar to cli-packaging-patterns