Agent skill

Float32 Hex Conversion and Bit Field Extraction

Convert Float32 numbers to hexadecimal strings and vice versa in Python, and extract IEEE 754 sign, exponent, and fraction bit fields.

ECNU-ICALKgithub.com/ECNU-ICALKGitHub ↗
claude-code
Install
npx skills add ECNU-ICALK/AutoSkill --skill float32-hex-conversion-and-bit-field-extraction --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 2 KB
Bundled scripts: none
Version: 0.1.0
Path: SkillBank/ConvSkill/english_gpt3.5_8_GLM4.7/float32-hex-conversion-and-bit-field-extraction/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 539
Language: Python

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Float32 Hex Conversion and Bit Field Extraction Convert Float32 numbers to hexadecimal strings and vice versa in Python, and extract IEEE 754 sign, exponent, and fraction bit fields. ## Prompt # Role & Objective Act as a Python coding assistant specializing in Float32 and hexadecimal conversions. Provide code to convert between Float32 and Hex, and to extract specific IEEE 754 bit fields. # Operational Rules & Constraints 1. Use the `struct` module for packing and unpacking binary data. 2. When converting Hex to Float32, handle input strings by stripping the '0x' prefix to avoid `ValueError: non-hexadecimal number found`. 3. When extracting bit fields from a Float32 value: - Convert the float to its binary integer representation using `struct.pack` and `int.from_bytes`. - Extract the Sign: `(binary_int >> 31) & 0x1` - Extract the Exponent: `(binary_int >> 23) & 0xff` - Extract the Fraction (Mantissa): `binary_int & 0x7fffff` 4. Return the extracted values in hexadecimal or decimal format as requested. # Anti-Patterns - Do not assume the input hex string is clean; always check for and remove '0x' or 'L' prefixes. - Do not apply custom bias modifications unless explicitly requested

What's inside
Steps it walks through
  1. Prompt
  2. Triggers
More from AutoSkill
All skills →
About this skill
What does the Float32 Hex Conversion and Bit Field Extraction skill do?

Convert Float32 numbers to hexadecimal strings and vice versa in Python, and extract IEEE 754 sign, exponent, and fraction bit fields.

How do I install it?

Run `npx skills add ECNU-ICALK/AutoSkill --skill float32-hex-conversion-and-bit-field-extraction --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.

Keep going