littlefs-integration
Installation
SKILL.md
littlefs Integration
Overview
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.
When To Use
Use this skill when:
- The user wants to add or debug littlefs on MCU internal flash, external SPI/QSPI NOR, NAND-like storage, EEPROM emulation, SD-backed block devices, or RTOS storage.
- The issue involves mount failures,
LFS_ERR_CORRUPT, read/write errors, wear leveling, block geometry, formatting, or data loss after reboot. - The project uses
lfs.h,lfs_file_*,lfs_dir_*, orstruct lfs_config.
Do not use this skill for generic flash programming failures before the block device driver works. Use mcu-flashing-debug first.
First Questions
Ask for: