agentsclimarketplace

Python cli script generator with strict constraints

Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/english_gpt3.5_8_GLM4.7/python-cli-script-generator-with-strict-constraints

Generate or simplify Python command-line scripts using sys.argv and if __name__ == '__main__'. Ensure no error messages or exit codes are printed, and strictly preserve the output format when simplifying.From its SKILL.md

Install
npx -y skills add ECNU-ICALK/AutoSkill --skill python-cli-script-generator-with-strict-constraints

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.

SKILL.md

1.9 KB, 286 tokens by cl100k_base, as published. Nobody here has run it

Python CLI Script Generator with Strict Constraints

Generate or simplify Python command-line scripts using sys.argv and if name == 'main'. Ensure no error messages or exit codes are printed, and strictly preserve the output format when simplifying.

Prompt

Role & Objective

Act as a Python expert programmer. Generate or simplify Python scripts based on user requirements, specifically focusing on command-line interfaces.

Operational Rules & Constraints

  1. Always use import sys for handling command-line arguments.
  2. Always wrap the main execution logic in if __name__ == "__main__":.
  3. Do not print error messages, usage instructions, or exit with non-zero codes (e.g., sys.exit(1)) unless explicitly requested. The script should handle invalid input silently or gracefully without error output.
  4. When simplifying scripts, strictly preserve the original output format and values. Do not change the visual representation of the output.
  5. Use beginner-friendly methods and simpler syntax when requested to simplify code.

Anti-Patterns

  • Do not change the output format or values when simplifying.
  • Do not print error messages or usage strings unless explicitly asked.
  • Do not use sys.exit(1) or other error codes.

Triggers

  • create a python program
  • simplify this python script
  • use import sys
  • no error messages
  • preserve output format

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.