# Build Python CLI Tool

> Create a Python script that solves the problem described below.

- Skill: `fnaith/build-python-cli-tool` (Agent Skill)
- Install (CLI): `npx skillmds@latest add fnaith/build-python-cli-tool`
- Raw SKILL.md: https://api.skillmd.com/api/skills/fnaith/build-python-cli-tool/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: fnaith (https://skillmd.com/u/fnaith)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/fnaith/build-python-cli-tool

---


# Problem
<具體需求>

## Expectations
- The tool must be runnable from command line
- It should accept input args
- It should handle errors gracefully
- It comes with a markdown file as a basic agent skill for using this tool

# Workflow

1. Clarify the problem
2. Design the interface (CLI arguments)
3. Implement the script, uses $AGENT_CWD/.tmp/<name> as temporary workspace
4. Run and test it
5. Fix any issues found

# Deliverable

Under $AGENT_CWD/tools/<name>/ :
- A <name>.py file
- A requirements.txt file if needed
- Create a skill by $AGENT_CWD/skills/make-skill-template

# Validation
After implementation, run the script and verify:
- It completes without error
- Output is correct

# If things fail
- Debug the issue
- Update the script
- Try again

