Skip to content
Development
Skill

/miniz-integration

Use when integrating, configuring, or debugging miniz compression, DEFLATE, zlib streams, gzip-compatible data, ZIP archives, or embedded decompression buffers

From plugin
aix-skills
3976 skills

Claude Code

$ npx -y skills add easyzoom/aix-skills --skill miniz-integration --agent claude-code

SKILL.md

miniz-integration.SKILL.md
name: miniz-integration
description: Use when integrating, configuring, or debugging miniz compression, DEFLATE, zlib streams, gzip-compatible data, ZIP archives, or embedded decompression buffers

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

1. Pick the exact format. Do not mix raw DEFLATE streams, zlib headers, gzip files, and ZIP archives.

1. Budget memory before coding. Estimate output buffer, dictionary/window needs, file metadata, and stack usage.

1. Prefer streaming for large payloads. Feed bounded chunks and write output incrementally instead of allocating the whole image.

1. Validate sizes and integrity. Check compressed length, decompressed length, CRC/hash, and destination capacity.

1. Handle partial and corrupt data. Every read/write callback should report short I/O and decompressor errors distinctly.

1. 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:

1. Confirms whether the package is ZIP, zlib, or raw DEFLATE. 1. Checks chunked read/write callbacks and decompressed length bounds. 1. Adds corrupt and truncated package tests before changing transport code.

Read more
@easyzoom
Ships withaix-skills

AIX Skills is a public collection of Agent Skills, templates, and references for building repeatable AI workflows.

Stars on GitHub

Momentum

stars in total
39
Star history of easyzoom/aix-skills on GitHub, a chart by star-history.com

Other skills on aix-skills.

8051-mcu-debug

8051-mcu-debug

Use when debugging 8051-compatible microcontrollers, 51 MCU firmware, STC download issues, Keil C51 projects, interrupts, timers,…

@easyzoom@easyzoomInstall Skill
avem-integration

avem-integration

Use when integrating, evaluating, configuring, or debugging Avem embedded C framework modules, event-driven components, drivers,…

@easyzoom@easyzoomInstall Skill
ble-gatt-integration

ble-gatt-integration

Use when integrating, designing, or debugging BLE GATT services, characteristics, descriptors, MTU, notifications, indications,…

@easyzoom@easyzoomInstall Skill
bootloader-debug

bootloader-debug

Use when debugging embedded bootloaders, application jumps, vector table offsets, firmware upgrade flow, OTA state, image…

@easyzoom@easyzoomInstall Skill
canbus-integration

canbus-integration

Use when integrating, porting, configuring, or debugging CAN bus libraries, CANBus-Triple, MCP2515, CAN frames, bit timing,…

@easyzoom@easyzoomInstall Skill

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills2w309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc2w293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react5d252k
@facebook@facebookInstall Skill

Questions about miniz-integration.

Which coding agents can use miniz-integration?
miniz-integration installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.