flashdb-integration
Skill36 starsChanged 5 months agoMITView on GitHub
Use when integrating, porting, configuring, or debugging FlashDB KVDB or TSDB on MCU flash, filesystems, RTOS, or bare-metal projects
In this repository75 other files it gives its agents.
- 8051-mcu-debugSkill
- avem-integrationSkill
- battery-charger-fuel-gauge-integrationSkill
- ble-gatt-integrationSkill
- bootloader-debugSkill
- canbus-integrationSkill
- canopen-integrationSkill
- cellular-at-modem-integrationSkill
- cmbacktrace-integrationSkill
- cmsis-dsp-integrationSkill
- cortex-m-debugSkill
- cortex-r5-debugSkill
- crc-checksum-integrationSkill
- easylogger-integrationSkill
- embedded-app-example-libsSkill
- embedded-buffer-queue-libsSkill
- embedded-data-parsing-libsSkill
- embedded-debug-entrySkill
- embedded-fault-debugSkill
- embedded-framework-libsSkill
- embedded-input-libsSkill
- embedded-library-entrySkill
- embedded-linux-login-debugSkill
- embedded-peripheral-bringupSkill
- embedded-serial-log-debugSkill
- embedded-state-machine-libsSkill
- embedded-timing-libsSkill
- epd-integrationSkill
- esp-idf-integrationSkill
- fatfs-integrationSkill
- freemodbus-integrationSkill
- freertos-kernel-debugSkill
- freertos-plus-tcp-integrationSkill
- gnss-gps-integrationSkill
- hardware-interface-debugSkill
- heatshrink-integrationSkill
- letter-shell-integrationSkill
- littlefs-integrationSkill
- low-power-debugSkill
- lvgl-integrationSkill
- lwip-integrationSkill
- mbedtls-integrationSkill
- mcuboot-integrationSkill
- mcu-flashing-debugSkill
- micro-ecc-integrationSkill
- miniz-integrationSkill
- mqtt-embedded-integrationSkill
- nanopb-integrationSkill
- nrf-connect-sdk-integrationSkill
- nr-micro-shell-integrationSkill
- openocd-jlink-stlink-debugSkill
- openthread-integrationSkill
- ota-update-integrationSkill
- plooc-integrationSkill
- power-management-integrationSkill
- qspi-xip-flash-debugSkill
- readme-writingSkill
- riscv-mcu-debugSkill
- rtos-debugSkill
- rt-thread-integrationSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 10 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈10
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Use this skill to integrate FlashDB as an embedded key-value or time-series database.
- Distinctive: line 14
Use this skill when:
- Very specific: line 20
Do not use this skill for raw filesystem work without FlashDB.
- Distinctive: line 36
Use KVDB for named settings and TSDB for append-style time records.
- Distinctive: line 45
Do not format, clean, or recreate the database unless the user approves data loss or confirms it is a first-boot path.
- Distinctive: line 47
Add locking when shared. Protect database operations if multiple tasks, shell commands, logging callbacks, or ISRs can access it.
- Distinctive: line 50
Verify both metadata and values.
- Distinctive: line 51
Read back keys or TSDB records after reboot, not only immediately after write.
- Distinctive: line 56
Write alignment and erased-state assumptions match the chip.
- Distinctive: line 58
Default KV values and schema migration strategy are explicit.
- Distinctive: line 74
Before claiming FlashDB works:
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
FlashDB Integration
Overview
Use this skill to integrate FlashDB as an embedded key-value or time-series database. The agent should confirm storage mode, flash/file backend, sector geometry, erase policy, and data-retention requirements before formatting or deleting database sectors.
When To Use
Use this skill when:
- The user wants to add FlashDB KVDB or TSDB for parameters, configuration, logs, events, or time-series records.
- The issue involves init failure, sector size, erase errors, lost keys, database full, migration, blob values, timestamps, or flash wear.
- The project mentions FlashDB,
fdb_kvdb,fdb_tsdb, KVDB, TSDB,fdb_cfg, orfdb_port.
Do not use this skill for raw filesystem work without FlashDB. Use littlefs-integration or storage-specific skills instead.
First Questions
Ask for:
- Database type: KVDB, TSDB, or both.
- Backend: raw flash, FAL partition, filesystem, or vendor storage layer.
- Sector size, partition size, erase value, write alignment, and flash driver status.
- RTOS or bare-metal environment and locking requirements.
- Whether existing database data must be preserved.
- Current error log, assert, return code, or database output.
Integration Checklist
- Confirm database purpose. Use KVDB for named settings and TSDB for append-style time records. Do not force both if one is enough.
- Confirm storage backend. Identify whether FlashDB talks to raw flash, FAL, filesystem, or a custom port.
- Match sector geometry. Sector size and partition boundaries must match the real erase granularity and FlashDB configuration.
- Preserve data by default. Do not format, clean, or recreate the database unless the user approves data loss or confirms it is a first-boot path.
- Add locking when shared. Protect database operations if multiple tasks, shell commands, logging callbacks, or ISRs can access it.
- Verify both metadata and values. Read back keys or TSDB records after reboot, not only immediately after write.
Porting Checks
- Flash read/write/erase operations return correct status.
- Write alignment and erased-state assumptions match the chip.
- Partition does not overlap firmware, bootloader, littlefs, logs, or calibration data.
- Default KV values and schema migration strategy are explicit.
- Blob size and RAM buffer requirements fit the target.
- TSDB timestamp source is monotonic enough for the product.
- Database full behavior is understood: rollover, cleanup, or failure.
Common Failures
- Database init formats existing production data unexpectedly.
- KV values disappear because default table reinitializes them incorrectly.
- TSDB records have bad order because timestamp source is wrong.
- Database full is handled as a generic write failure.
- Flash sector size in config differs from real erase size.
- Concurrent shell/log/task access corrupts records without locking.
Verification
Before claiming FlashDB works:
- State database type, backend, partition, sector size, and preservation policy.
- Confirm init result without unapproved formatting.
- Confirm write/read/delete or append/query behavior for the target use case.
- Confirm data survives reset or remount.
- Confirm full-database and migration behavior is defined or explicitly deferred.
Example
User:
想用 FlashDB 存设备参数,重启后有时候读不到。Agent:
- Asks for KVDB config, backend, sector size, flash driver, default table, and data preservation requirement.
- Checks whether init path reformats or overwrites defaults.
- Verifies set/get after reboot and confirms locking if shell or tasks can modify parameters.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

