Skip to content
Development
Skill

/crc-checksum-integration

Use when implementing, verifying, or debugging CRC, checksum, hash-lite integrity checks, polynomial parameters, endian handling, or protocol frame validation in embedded systems

From plugin
aix-skills
3976 skills

Claude Code

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

SKILL.md

crc-checksum-integration.SKILL.md
name: crc-checksum-integration
description: Use when implementing, verifying, or debugging CRC, checksum, hash-lite integrity checks, polynomial parameters, endian handling, or protocol frame validation in embedded systems

CRC Checksum Integration

Overview

Use this skill to integrate CRCs and checksums by making the exact algorithm parameters explicit. Most CRC bugs come from two sides using the same name for different init, reflection, xorout, byte order, or covered range.

When To Use

Use this skill when:

  • The user needs CRC-8, CRC-16, CRC-32, additive checksum, Fletcher, Adler, or protocol frame validation.
  • The issue involves mismatched CRC values, boot image validation, Modbus, CAN, UART packets, storage records, or OTA packages.
  • The target uses hardware CRC units, DMA, endian-sensitive protocols, or streaming updates.

Do not use this skill for cryptographic authentication. Use `mbedtls-integration`, `tinycrypt-integration`, or `micro-ecc-integration` when adversarial tampering matters.

First Questions

Ask for:

  • Algorithm name plus polynomial, width, init, refin, refout, xorout, and check value if known.
  • Exact byte range covered, header/trailer inclusion, padding, and endian order.
  • Whether the implementation is table-driven, bitwise, hardware accelerated, or streaming.
  • Known-good sample input and expected output from the peer device or specification.
  • Current mismatch and where it is observed.

Integration Checklist

1. Write the full CRC tuple. Do not rely on names like CRC-16 unless the parameters are specified.

1. Verify with a golden vector. Test `123456789` or a protocol-provided frame before using live data.

1. Freeze byte coverage. Define start offset, length, skipped fields, padding, escaping, and final byte order.

1. Match streaming behavior. The incremental API must preserve state exactly across chunks and resets.

1. Compare hardware and software. Hardware CRC units often need byte reversal, word packing, or final xor handling.

1. Add negative tests. Flip one bit in payload and metadata to prove the check actually fails.

Common Failures

  • Wrong reflection settings for the named CRC variant.
  • Including the CRC field itself in the covered range.
  • Feeding words into a hardware CRC in host endian instead of wire order.
  • Using a checksum where collision resistance or authenticity is required.
  • Resetting incremental CRC state between chunks.
  • Comparing printed hex values with opposite byte order.

Verification

Before claiming the integrity check works:

  • State the full CRC/checksum parameters and covered byte range.
  • Confirm golden vector output.
  • Confirm peer frame or stored-image sample matches.
  • Confirm corrupted data is rejected.
  • Confirm hardware and software paths match if both exist.

Example

User:

Modbus CRC 算出来总和设备不一样。

Agent:

1. Checks CRC-16/Modbus parameters, byte coverage, and low-byte-first output. 1. Runs a known Modbus frame golden vector. 1. Verifies the serial frame excludes the CRC field while computing.

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 crc-checksum-integration.

Which coding agents can use crc-checksum-integration?
crc-checksum-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.