agentleFS
easyzoomeasyzoom/aix-skills/skills/cmsis-dsp-integration/SKILL.md

cmsis-dsp-integration

Skill36 starsChanged 5 months agoMITView on GitHub

Use when integrating, configuring, or debugging CMSIS-DSP, ARM math functions, FFT, filters, fixed-point DSP, vector math, or Cortex-M signal processing

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

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

    Use this skill to integrate CMSIS-DSP by matching the target core, FPU/DSP extensions, data type, scaling, and buffer alignment.

    line 10
  2. Distinctive:

    Use this skill when:

    line 14
  3. Very specific:

    Do not use this skill for TinyML inference runtime integration.

    line 20
  4. Distinctive:

    Use known input/output before live sensor data.

    line 44
  5. Distinctive:

    Before claiming CMSIS-DSP works:

    line 60

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

CMSIS-DSP Integration

Overview

Use this skill to integrate CMSIS-DSP by matching the target core, FPU/DSP extensions, data type, scaling, and buffer alignment. DSP bugs often come from numeric format and build flags rather than function calls.

When To Use

Use this skill when:

  • The user wants CMSIS-DSP or ARM math functions on Cortex-M or Cortex-A/R targets.
  • The task involves FFT, FIR/IIR filters, matrix math, statistics, PID, Q15/Q31/f32, or optimized vector operations.
  • Results are wrong, saturated, NaN, too slow, or differ from desktop reference output.

Do not use this skill for TinyML inference runtime integration. Use tinymaix-integration or ML-specific skills instead.

First Questions

Ask for:

  • MCU/core, FPU/DSP extension, compiler, and build flags.
  • CMSIS-DSP version and how it is included.
  • Function family and data type: f32, f16, q7, q15, q31, or mixed.
  • Input range, expected output, reference data, and buffer sizes.
  • Whether performance, code size, or accuracy is the primary goal.

Integration Checklist

  1. Match core flags. Compiler options must match FPU, ABI, and DSP extensions.
  2. Choose numeric format deliberately. Fixed-point Q formats need scaling, saturation, and headroom analysis.
  3. Validate buffers. FFT/filter/state buffers must be sized and aligned as required.
  4. Compare with golden vectors. Use known input/output before live sensor data.
  5. Measure performance on target. Desktop estimates do not prove MCU timing.

Common Failures

  • FPU ABI mismatch between objects.
  • Q15/Q31 overflow from missing scaling.
  • FFT length or bit-reversal config wrong.
  • Filter state buffer too small.
  • Cache/DMA buffer incoherency around ADC/audio data.
  • Reference output uses different normalization.

Verification

Before claiming CMSIS-DSP works:

  • State core, build flags, data type, function, and buffer sizes.
  • Confirm golden-vector output within tolerance.
  • Confirm no saturation/NaN unless expected.
  • Report runtime cycles/time if performance is in scope.

Example

User:

CMSIS-DSP 做 FFT 结果不对。

Agent:

  1. Asks for core flags, FFT length, data type, input scaling, and reference output.
  2. Checks buffer sizes and normalization.
  3. Verifies with a single-tone golden vector before live ADC data.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.