Skip to content
Development
Skill

/flashdb-integration

Use when integrating, porting, configuring, or debugging FlashDB KVDB or TSDB on MCU flash, filesystems, RTOS, or bare-metal projects

From plugin
aix-skills
3976 skills

Claude Code

$ npx -y skills add easyzoom/aix-skills --skill flashdb-integration --agent claude-code

SKILL.md

flashdb-integration.SKILL.md
name: flashdb-integration
description: Use when integrating, porting, configuring, or debugging FlashDB KVDB or TSDB on MCU flash, filesystems, RTOS, or bare-metal projects

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`, or `fdb_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

1. Confirm database purpose. Use KVDB for named settings and TSDB for append-style time records. Do not force both if one is enough.

1. Confirm storage backend. Identify whether FlashDB talks to raw flash, FAL, filesystem, or a custom port.

1. Match sector geometry. Sector size and partition boundaries must match the real erase granularity and FlashDB configuration.

1. 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.

1. Add locking when shared. Protect database operations if multiple tasks, shell commands, logging callbacks, or ISRs can access it.

1. 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:

1. Asks for KVDB config, backend, sector size, flash driver, default table, and data preservation requirement. 1. Checks whether init path reformats or overwrites defaults. 1. Verifies set/get after reboot and confirms locking if shell or tasks can modify parameters.

Read more
@easyzoom
Ships withaix-skills

AIX Skills is a public collection of Agent Skills, templates, and references for building repeatable AI workflows.

Stars on GitHub

Momentum

stars in total
39
Star history of easyzoom/aix-skills on GitHub, a chart by star-history.com

Other skills on aix-skills.

8051-mcu-debug

8051-mcu-debug

Use when debugging 8051-compatible microcontrollers, 51 MCU firmware, STC download issues, Keil C51 projects, interrupts, timers,…

@easyzoom@easyzoomInstall Skill
avem-integration

avem-integration

Use when integrating, evaluating, configuring, or debugging Avem embedded C framework modules, event-driven components, drivers,…

@easyzoom@easyzoomInstall Skill
ble-gatt-integration

ble-gatt-integration

Use when integrating, designing, or debugging BLE GATT services, characteristics, descriptors, MTU, notifications, indications,…

@easyzoom@easyzoomInstall Skill
bootloader-debug

bootloader-debug

Use when debugging embedded bootloaders, application jumps, vector table offsets, firmware upgrade flow, OTA state, image…

@easyzoom@easyzoomInstall Skill
canbus-integration

canbus-integration

Use when integrating, porting, configuring, or debugging CAN bus libraries, CANBus-Triple, MCP2515, CAN frames, bit timing,…

@easyzoom@easyzoomInstall Skill

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills2w309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc2w293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react5d252k
@facebook@facebookInstall Skill

Questions about flashdb-integration.

Which coding agents can use flashdb-integration?
flashdb-integration installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.