DATA-INTEGRITY
We earn commissions when you shop through the links below.
Ensure integrity of data in storage and transmission using checksums/CRCs/ECC, validation, and redundancy where needed for medical devices.
Unsigned, install at your own risk
UnverifiedThis skill has no cryptographic signature attached. We can't verify the contents match what the publisher intended.
Install this skill
No account required. Pick your tool, or use the command that detects it for you.
Run in your terminal. It detects your AI tool.
npx @skills-hub-ai/cli install meddev-skills-data-integrityManual setup by platform
Claude Code
~/.claude/skills/meddev-skills-data-integrity/SKILL.md
Instructions
Data Integrity
Purpose
Ensure integrity of data in storage and transmission using checksums/CRCs/ECC, validation, and redundancy where needed for medical devices.
When to Apply
- Storing or transmitting patient/therapy data, logs, configs, firmware.
- Safety-critical control or sensor data paths.
Requirements (testable)
- Checksums/CRCs: Apply CRC or MAC to critical data blobs and messages; verify before use. Rationale: detect corruption.
- ECC/Redundancy: Use ECC or redundancy for persistent storage where feasible; handle correction/failure paths. Rationale: reliability.
- Input Validation: Validate size/range/format before processing; reject malformed data. Rationale: prevent misuse and corruption.
- Error Handling: On integrity failure, enter safe handling (retry, request retransmit, or safe state); log event. Rationale: safe recovery.
- Versioning: Version stored data formats; migrate safely; verify after migration. Rationale: compatibility and integrity.
Recommended Practices
- Include length and CRC fields in messages; keep CRC separate from payload.
- Use HMAC for integrity when authenticity is also needed.
- Periodically scrub/read-verify important data (configs/calibration) to detect bitrot.
Patterns
CRC on message:
// REQ-DINT-CRC-01; TEST-DINT-03
bool validate_msg(const uint8_t *buf, size_t len, uint16_t expected_crc) {
return crc16(buf, len) == expected_crc;
}
ECC status handling:
// REQ-DINT-ECC-02; TEST-DINT-05
if (ecc_corrected) log_event("ECC_CORRECTED");
if (ecc_uncorrectable) { enter_safe_state(); }
Versioned config:
# REQ-DINT-VERS-03
config_version: 2
fields:
- name: calib_factor
crc: 0xABCD
Anti-Patterns (risks)
- No integrity check on stored configs -> risk: silent corruption affecting therapy.
- Ignoring CRC failures -> risk: using bad data.
- Mixing versioned/unversioned data without migration -> risk: misinterpretation.
Verification Checklist
- CRC/HMAC applied to critical data/messages and verified.
- ECC/redundancy used where feasible; correction paths handled.
- Inputs validated; malformed data rejected safely.
- Integrity failures trigger safe handling and logging.
- Data formats versioned; migrations verified.
Traceability
REQ-DINT-###toTEST-DINT-###; logs of integrity failures retained.
References
- IEC 62304 (data/control integrity expectations).
- NIST SP 800-38 (for MAC modes) as informative.
Changelog
- 1.0.0 (2026-01-04): Initial data integrity skill with CRC/ECC, validation, and versioning.
Audit History
- 2026-01-04: Audit performed. Verified:
- NIST SP 800-38 reference for MAC modes appropriate as informative
- CRC and ECC patterns technically accurate
Security
Reviews (0)
Related skills
Browse all →More from Medical Device Skills
View source →More Data skills
Browse category →Frequently asked questions about DATA-INTEGRITY
What does the DATA-INTEGRITY skill do?
Ensure integrity of data in storage and transmission using checksums/CRCs/ECC, validation, and redundancy where needed for medical devices. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.
How do I install the DATA-INTEGRITY skill?
Run `npx @skills-hub-ai/cli install meddev-skills-data-integrity` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/meddev-skills-data-integrity/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.
Which AI tools does DATA-INTEGRITY work with?
DATA-INTEGRITY runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.
Is the DATA-INTEGRITY skill free?
Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.
How do I use DATA-INTEGRITY after installing it?
In Claude Code, type `/meddev-skills-data-integrity` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.
Can I share the DATA-INTEGRITY skill with my team?
Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.