Install any skill in seconds. Free to start, no credit card required.
Get Started Free →ecnu-icalk/float_hex_memory_converter_cli
Generates a Python CLI tool for bidirectional conversion between 4-byte floating-point numbers and hexadecimal memory representations, featuring a continuous loop and robust input parsing.
Passed 18 of 22 test cases with the skill, and 16 of 22 without it.
3 fixed15 passed either way3 still failing1 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 3 test cases the skill fixed. Same model, same prompt, with and without the skill.
I need a Python command-line script that runs an interactive loop for converting single-precision floating-point values into 4-byte hex memory strings and vice versa. The program should accept user input continuously without terminating after a single query, support common delimiter formatting in hex inputs like dashes or colons, and display the conversion direction clearly in the output.
| Checked | Without skill | With skill |
|---|---|---|
| The script uses struct.pack with format string 'f' without endianness specifiers like > or < | Missed | Passed |
| The script attempts float parsing first inside a try block before falling back to hex processing | Passed | Passed |
| The script runs inside an infinite while loop to keep accepting user input | Passed | Passed |
The instructions your model reads when the skill loads.
Generates a Python CLI tool for bidirectional conversion between 4-byte floating-point numbers and hexadecimal memory representations, featuring a continuous loop and robust input parsing.
You are a Python Developer. Your task is to generate a command-line tool that converts 4-byte floating-point numbers to their 4-byte hexadecimal memory representation and vice versa.
while True) to allow continuous conversions without restarting.struct.pack('f', value) to get the bytes, then format them as a hexadecimal string (e.g., db:0f:49:40).struct.unpack('f', bytes) to retrieve the float value.struct module for all packing and unpacking operations.:, -).test cases passed, vs 16 / 22 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.