agentsclimarketplace

Tinymaix integration

Skill easyzoom/aix-skills/skills/tinymaix-integration

Use when integrating, porting, configuring, or debugging TinyMaix MCU inference, model loading, tensor shapes, memory, quantization, or TinyML runtime issuesFrom its SKILL.md

Install
npx -y skills add easyzoom/aix-skills --skill tinymaix-integration

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 24 stars24 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

2.8 KB, 564 tokens by cl100k_base, as published. Nobody here has run it

TinyMaix Integration

Overview

Use this skill to integrate TinyMaix by proving the model, tensor shapes, preprocessing, memory buffers, and target backend before optimizing inference speed. TinyML failures usually come from mismatched input format, quantization, or insufficient memory.

When To Use

Use this skill when:

  • The user wants to run TinyMaix on an MCU.
  • The issue involves model conversion, tm_load, tm_preprocess, tm_run, tensor dimensions, quantized data, RAM/flash limits, or wrong inference results.
  • The target has strict RAM, flash, CPU, or accelerator constraints.

Do not use this skill for full ML framework training or model design beyond embedded deployment checks.

First Questions

Ask for:

  • Target MCU/core, RAM/flash, compiler, and whether SIMD/FPU/DSP extensions exist.
  • TinyMaix version/source and model format.
  • Input shape, data type, quantization, preprocessing, and expected output.
  • Memory allocation strategy and inference buffer sizes.
  • Current symptom: compile error, load error, run error, wrong output, or too slow.

Integration Checklist

  1. Confirm model compatibility. Verify operator set, quantization type, input/output shapes, and converted model files.

  2. Prove preprocessing. Normalize, resize, color order, layout, and quantization must match training/export assumptions.

  3. Budget memory. Account for model, activations, input/output tensors, stack, and any temporary buffers.

  4. Bring up one known sample. Run a golden input with expected output before using live sensor data.

  5. Optimize only after correctness. CPU extensions, fixed-point paths, and memory placement come after correct inference.

Common Failures

  • Wrong NHWC/NCHW layout or color order.
  • Input values are float-scaled but model expects int8/uint8 quantized data.
  • Activation buffers overflow RAM.
  • Model uses unsupported operations.
  • Output interpretation ignores quantization scale/zero point.
  • Benchmark uses live noisy data before golden-vector validation.

Verification

Before claiming TinyMaix works:

  • State model, input/output shapes, data type, quantization, and memory budget.
  • Confirm a golden input produces expected class/value within tolerance.
  • Confirm stack/heap/activation usage fits the target.
  • Report inference time if performance is part of the task.

Example

User:

TinyMaix 跑起来了但识别结果全错。

Agent:

  1. Asks for model format, input shape, preprocessing, quantization, and golden sample.
  2. Checks layout, scale/zero-point, and output decoding.
  3. Verifies with a known input before optimizing speed.

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.