littlefs-integration — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited littlefs-integration (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Use this skill to integrate littlefs safely on embedded block devices. The core task is to make the lfs_config match the real storage geometry and prove mount, format, write, sync, power-loss, and remount behavior.
Use this skill when:
LFS_ERR_CORRUPT, read/write errors, wear leveling, block geometry, formatting, or data loss after reboot.lfs.h, lfs_file_*, lfs_dir_*, or struct lfs_config.Do not use this skill for generic flash programming failures before the block device driver works. Use mcu-flashing-debug first.
Ask for:
lfs_config, block device read/prog/erase/sync functions, and error codes.Set read_size, prog_size, block_size, block_count, cache_size, lookahead_size, and block_cycles from the real storage device, not guesses.
read, prog, erase, and sync must use block-relative offsets correctly and return negative error codes on failure.
Programming can only change erased bits in the supported direction, writes must be aligned, and erase must cover whole erase blocks.
Try lfs_mount first. Only call lfs_format after explicit user approval or when the product policy allows first-boot formatting.
Protect littlefs calls with a mutex if multiple tasks, interrupt contexts, or shell commands can access the filesystem.
Write a file, close/sync it, unmount if possible, reset, remount, and read back.
context points to the storage driver state if needed.block_size or block_count does not match the actual partition.Before claiming littlefs works:
lfs_config values.User:
littlefs 挂载总是 LFS_ERR_CORRUPT。Agent:
lfs_config, block driver functions, partition address, and whether format is allowed.~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.