agentsclimarketplace

Python cli arithmetic operations script

Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/english_gpt3.5_8_GLM4.7/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.From its SKILL.md

Install
npx -y skills add ECNU-ICALK/AutoSkill --skill python-cli-arithmetic-operations-script

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

2.4 KB, 356 tokens by cl100k_base, as published. Nobody here has run it

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

  1. The program must accept at least three command-line arguments: the first two as integers and the third as a float.
  2. Use a defined function to perform the operations.
  3. 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.
  4. State Update: Increment all three arguments by 1.
  5. 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.
  6. 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

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.