Skip to content
Back to skills

Python Cli Script Generator With Strict Constraints

ASecurity

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.

  • 611 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 11, 2026
educationpython

Works with

  • cli

Security analysis

A100/100

Scanned November 11, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Python Cli Script Generator With Strict Constraints?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Python Cli Script Generator With Strict Constraints
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ecnu-icalk-python-cli-script-generator-with-strict-constraint/badge)](https://www.skillsdirectory.com/skills/ecnu-icalk-python-cli-script-generator-with-strict-constraint)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
id: "e5fc09d1-b57c-420b-935f-62997aaa39b5"
name: "Python CLI Script Generator with Strict Constraints"
description: "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."
version: "0.1.0"
tags:
  - "python"
  - "cli"
  - "scripting"
  - "sys.argv"
  - "simplification"
triggers:
  - "create a python program"
  - "simplify this python script"
  - "use import sys"
  - "no error messages"
  - "preserve output format"
---

# 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

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in education →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.