miniz-integration
Skill36 starsChanged 5 months agoMITView on GitHub
Use when integrating, configuring, or debugging miniz compression, DEFLATE, zlib streams, gzip-compatible data, ZIP archives, or embedded decompression buffers
In this repository75 other files it gives its agents.
- 8051-mcu-debugSkill
- avem-integrationSkill
- battery-charger-fuel-gauge-integrationSkill
- ble-gatt-integrationSkill
- bootloader-debugSkill
- canbus-integrationSkill
- canopen-integrationSkill
- cellular-at-modem-integrationSkill
- cmbacktrace-integrationSkill
- cmsis-dsp-integrationSkill
- cortex-m-debugSkill
- cortex-r5-debugSkill
- crc-checksum-integrationSkill
- easylogger-integrationSkill
- embedded-app-example-libsSkill
- embedded-buffer-queue-libsSkill
- embedded-data-parsing-libsSkill
- embedded-debug-entrySkill
- embedded-fault-debugSkill
- embedded-framework-libsSkill
- embedded-input-libsSkill
- embedded-library-entrySkill
- embedded-linux-login-debugSkill
- embedded-peripheral-bringupSkill
- embedded-serial-log-debugSkill
- embedded-state-machine-libsSkill
- embedded-timing-libsSkill
- epd-integrationSkill
- esp-idf-integrationSkill
- fatfs-integrationSkill
- flashdb-integrationSkill
- freemodbus-integrationSkill
- freertos-kernel-debugSkill
- freertos-plus-tcp-integrationSkill
- gnss-gps-integrationSkill
- hardware-interface-debugSkill
- heatshrink-integrationSkill
- letter-shell-integrationSkill
- littlefs-integrationSkill
- low-power-debugSkill
- lvgl-integrationSkill
- lwip-integrationSkill
- mbedtls-integrationSkill
- mcuboot-integrationSkill
- mcu-flashing-debugSkill
- micro-ecc-integrationSkill
- mqtt-embedded-integrationSkill
- nanopb-integrationSkill
- nrf-connect-sdk-integrationSkill
- nr-micro-shell-integrationSkill
- openocd-jlink-stlink-debugSkill
- openthread-integrationSkill
- ota-update-integrationSkill
- plooc-integrationSkill
- power-management-integrationSkill
- qspi-xip-flash-debugSkill
- readme-writingSkill
- riscv-mcu-debugSkill
- rtos-debugSkill
- rt-thread-integrationSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 7 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Use this skill to integrate miniz by separating format choice, memory budget, streaming strategy, and integrity checks.
- Distinctive: line 14
Use this skill when:
- Very specific: line 20
Do not use this skill for very small streaming compression windows.
- Distinctive: line 35
Do not mix raw DEFLATE streams, zlib headers, gzip files, and ZIP archives.
- Distinctive: line 40
Prefer streaming for large payloads.
- Distinctive: line 44
Check compressed length, decompressed length, CRC/hash, and destination capacity.
- Distinctive: line 47
Every read/write callback should report short I/O and decompressor errors distinctly.
- Distinctive: line 63
Before claiming miniz works:
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
miniz Integration
Overview
Use this skill to integrate miniz by separating format choice, memory budget, streaming strategy, and integrity checks. Compression bugs on MCUs usually come from buffer ownership, incomplete streams, or confusing raw DEFLATE, zlib, gzip, and ZIP containers.
When To Use
Use this skill when:
- The user wants miniz for firmware assets, logs, configuration packages, OTA payloads, filesystems, or embedded resources.
- The issue involves inflate errors, truncated output, high RAM use, ZIP archive handling, CRC mismatch, or streaming decompression.
- The project has constrained RAM/flash, external storage, OTA downloads, or filesystem integration.
Do not use this skill for very small streaming compression windows. Use heatshrink-integration when heatshrink is already selected for tiny MCU buffers.
First Questions
Ask for:
- Data format: raw DEFLATE, zlib, gzip-like stream, or ZIP archive.
- Compression/decompression direction, max input size, max output size, and RAM budget.
- Storage/transport path, chunk size, and whether streaming is required.
- Integrity requirement: CRC, hash, signature, or container metadata.
- Current error code, input sample, and expected decompressed length.
Integration Checklist
- Pick the exact format. Do not mix raw DEFLATE streams, zlib headers, gzip files, and ZIP archives.
- Budget memory before coding. Estimate output buffer, dictionary/window needs, file metadata, and stack usage.
- Prefer streaming for large payloads. Feed bounded chunks and write output incrementally instead of allocating the whole image.
- Validate sizes and integrity. Check compressed length, decompressed length, CRC/hash, and destination capacity.
- Handle partial and corrupt data. Every read/write callback should report short I/O and decompressor errors distinctly.
- Test worst-case input. Include incompressible data, empty streams, truncated streams, and oversized output.
Common Failures
- Feeding gzip or ZIP data to a raw DEFLATE API.
- Allocating output by trusting unverified metadata.
- Treating decompression success as authenticity.
- Ignoring short writes to flash or filesystem.
- Running decompression on a task stack that is too small.
- Using archive filenames directly without path validation.
Verification
Before claiming miniz works:
- State format, API path, chunk size, and max memory use.
- Confirm a known-good payload decompresses byte-for-byte.
- Confirm corrupt, truncated, and oversized payloads fail safely.
- Confirm integrity checks and destination bounds.
Example
User:
用 miniz 解 OTA 资源包偶尔失败。Agent:
- Confirms whether the package is ZIP, zlib, or raw DEFLATE.
- Checks chunked read/write callbacks and decompressed length bounds.
- Adds corrupt and truncated package tests before changing transport code.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

