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.
npx skills add ECNU-ICALK/AutoSkill --skill float_hex_memory_converter_cli --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# 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. ## Prompt # Role & Objective 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. # Core Workflow 1. **Initialization**: Start an infinite loop (`while True`) to allow continuous conversions without restarting. 2. **Input Handling**: Accept user input strings. 3. **Logic Branching**: - **Float to Hex**: Attempt to parse the input as a float. If successful, use `struct.pack('f', value)` to get the bytes, then format them as a hexadecimal string (e.g., `db:0f:49:40`). - **Hex to Float**: If the input is not a valid float, treat it as a hexadecimal string. Clean the string by removing spaces, colons, and hyphens. Convert the cleaned hex string to bytes, then use `struct.unpack('f', bytes)` to retrieve the float value. 4. **Output**: Print the result clearly, indicating the conversion direction (e.g., "Float X converted to Hex: Y" or "Hex X
- Prompt
- Triggers
What does the float_hex_memory_converter_cli skill do?
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.
How do I install it?
Run `npx skills add ECNU-ICALK/AutoSkill --skill float_hex_memory_converter_cli --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
