Przejdź do treści
Biblioteka skilli
Programowanie · Budowanie i kod

crc-checksum-integration

/crc-checksum-integration

Pomaga implementować, weryfikować i debugować CRC, sumy kontrolne, parametry wielomianów, kolejność bajtów i walidację ramek protokołów w systemach wbudowanych.

Repozytorium
aix-skills ↗
Licencja
MIT
Ostatnia zmiana repozytorium
17.07.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 17.07.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Pomaga implementować, weryfikować i debugować CRC, sumy kontrolne, parametry wielomianów, kolejność bajtów i walidację ramek protokołów w systemach wbudowanych.

Oryginalny opis (EN)

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

Jak działa

  1. Overview
  2. When To Use
  3. First Questions
  4. Integration Checklist
  5. Common Failures
  6. Verification
  7. Example
Sekcje z nagłówków SKILL.md, w oryginale · 80 linii, 427 słów
Podgląd 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:

```text
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.

Wersje

W bazie nie ma innych skilli o nazwie crc-checksum-integration.

Migawka bazy z 28.10.2026 · wersja paczki 8f717cb892a0 (skrót SHA-256 całej paczki)

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100meddev-data-integrity
    Zapewnia integralność danych w przechowywaniu i transmisji w wyrobach medycznych przez sumy kontrolne, CRC, ECC, walidację i redundancję tam, gdzie jest potrzebna.
  • 100twitter-webhooks
    Odbiera i weryfikuje webhooki Account Activity API Twitter/X: podpis HMAC-SHA256, odpowiedź na CRC oraz zdarzenia tweet_create_events, favorite_events i direct_message_events.
  • 100ymodem-xmodem-integration
    Pomaga integrować, portować, konfigurować i debugować transfer szeregowy XMODEM i YMODEM: aktualizacje firmware bootloadera, CRC, limity czasu pakietów i zapis do flash.
  • 100nanopb-integration
    Pomaga integrować, przenosić, konfigurować i debugować nanopb Protocol Buffers w systemach wbudowanych: generowanie z .proto, pb_encode, pb_decode, callbacki i stałe rozmiary.
  • 100safety-critical-patterns
    Podpowiada wzorce w C dla oprogramowania układowego pod normy bezpieczeństwa funkcjonalnego: typy MISRA, jedno wyjście z funkcji, test RAM i ochronę CRC.
  • 100timing-analysis
    Analizuje ograniczenia czasu rzeczywistego w systemach wbudowanych: opóźnienia ISR, czas transferów DMA i zgodność z protokołem LED.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.