Build Python CLI Tool

Create a Python script that solves the problem described below.

fnaith b917c01 881 B Updated

File contents

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/ as temporary workspace
  4. Run and test it
  5. Fix any issues found

Deliverable

Under $AGENT_CWD/tools// :

  • A .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

fnaith/painting-goblin/tree/main/skills/build-python-cli-tool commit b917c01c23

Frequently asked questions

npx skillmds@latest add fnaith/build-python-cli-tool