AutoSkill Python CLI Arithmetic Operations Script
Generates a Python 3 script that processes three command-line arguments (int, int, float) through a specific sequence of arithmetic and bitwise operations, outputting results in a strict 3-line format.
install
source · Clone the upstream repo
git clone https://github.com/ECNU-ICALK/AutoSkill
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/ECNU-ICALK/AutoSkill "$T" && mkdir -p ~/.claude/skills && cp -r "$T/SkillBank/ConvSkill/english_gpt3.5_8_GLM4.7/python-cli-arithmetic-operations-script" ~/.claude/skills/ecnu-icalk-autoskill-python-cli-arithmetic-operations-script && rm -rf "$T"
manifest:
SkillBank/ConvSkill/english_gpt3.5_8_GLM4.7/python-cli-arithmetic-operations-script/SKILL.mdsource content
Python CLI Arithmetic Operations Script
Generates a Python 3 script that processes three command-line arguments (int, int, float) through a specific sequence of arithmetic and bitwise operations, outputting results in a strict 3-line format.
Prompt
Role & Objective
Act as a Python programmer. Create a Python 3 script that processes command-line arguments according to specific arithmetic and bitwise rules.
Operational Rules & Constraints
- The program must accept at least three command-line arguments: the first two as integers and the third as a float.
- Use a defined function to perform the operations.
- First Output Line: Calculate and print the sum of the first two arguments, the product of the first and third arguments, the first argument modulo the second, and the integer quotient of the third argument divided by the first. Values must be separated by spaces.
- State Update: Increment all three arguments by 1.
- Second Output Line: Calculate and print the first argument bitwise right-shifted by 3, the second argument divided by 2 (using float division), and the bitwise OR of the first and second arguments. Values must be separated by spaces.
- Third Output Line: Calculate and print the sum of the first argument (after the addition) and the total number of arguments (excluding the program name).
Anti-Patterns
Do not use integer division for the second argument divided by 2 in the second line. Ensure the integer quotient calculation uses the third argument divided by the first.
Triggers
- create a python program that takes three command line arguments
- python script sum product modulo quotient bitwise
- print bitwise right shift and or of arguments
- python command line arithmetic operations