Fatfs Integration logo

Fatfs Integration

Community
easyzoom
fatfs-integration

Use when integrating, porting, configuring, or debugging FatFs FAT/exFAT filesystems, diskio drivers, SD cards, SPI flash disks, or embedded file I/O failures

Overview

Publishereasyzoom
Repositoryaix-skills
Skill namefatfs-integration
Stars
39
Forks
5
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by easyzoom on GitHub. Read the source before you install it.

Installation

Install the Fatfs Integration AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/easyzoom/aix-skills/tree/main/skills/fatfs-integration
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/easyzoom/aix-skills.git /tmp/aix-skills
mkdir -p .claude/skills
cp -r /tmp/aix-skills/skills/fatfs-integration .claude/skills/fatfs-integration
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Fatfs Integration in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Fatfs Integration on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Fatfs Integration is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

FatFs Integration

Overview

Use this skill to integrate FatFs by proving the disk I/O layer before trusting filesystem behavior. FatFs is portable C, but the target-specific diskio functions, sector geometry, mount policy, and media timing decide whether it works reliably.

When To Use

Use this skill when:

  • The user wants to add or debug FatFs on SD card, eMMC, USB MSC, RAM disk, SPI flash, or block devices.
  • The issue involves f_mount, f_open, f_read, f_write, FR_DISK_ERR, FR_NOT_READY, FR_NO_FILESYSTEM, long filenames, Unicode, or exFAT.
  • The project uses ff.c, ffconf.h, diskio.c, or FATFS.

Do not use this skill when the raw block device cannot read/write sectors yet; debug the storage driver first.

First Questions

Ask for:

  • Media type and transport: SDIO, SPI SD, eMMC, USB MSC, RAM disk, or flash translation layer.
  • Sector size, sector count, erase/block size, and whether writes are cached.
  • ffconf.h, diskio.c, and current FatFs return code.
  • RTOS or bare-metal runtime and whether reentrancy is enabled.
  • Whether formatting is allowed. Formatting can destroy user data.
  • Long filename, Unicode, exFAT, timestamp, and multi-volume requirements.

Integration Checklist

  1. Prove disk I/O. disk_initialize, disk_status, disk_read, disk_write, and disk_ioctl must work independently.

  2. Match sector geometry. FatFs expects logical sectors and correct sector count. GET_SECTOR_COUNT, GET_SECTOR_SIZE, and CTRL_SYNC matter.

  3. Mount before formatting. Try f_mount first. Ask before f_mkfs or any operation that can erase media.

  4. Configure ffconf.h intentionally. Reentrancy, LFN buffers, exFAT, code page, relative paths, and timestamp support affect RAM and behavior.

  5. Add locking if shared. Enable and implement synchronization when multiple tasks can access the same volume.

  6. Verify persistence. Write, f_sync/f_close, unmount/reset, remount, and read back.

Common Failures

  • FR_DISK_ERR from incomplete disk_ioctl or bad CTRL_SYNC.
  • FR_NO_FILESYSTEM from wrong sector offset or unformatted media.
  • Data loss because files are not closed or synced before power loss.
  • LFN stack/heap buffers exceed MCU memory.
  • SD card init works at low speed but data transfer fails after clock switch.
  • Multi-task access corrupts files without FatFs reentrancy support.

Verification

Before claiming FatFs works:

  • State media, sector size/count, ffconf.h options, and mount path.
  • Confirm disk read/write/ioctl tests.
  • Confirm mount behavior and whether format was skipped, approved, or performed.
  • Confirm create/write/sync/readback after reset or remount.
  • Confirm locking policy when RTOS is used.

Example

User:

text
FatFs f_mount 返回 FR_NO_FILESYSTEM。

Agent:

  1. Asks for media type, sector offset, diskio implementation, and whether formatting is allowed.
  2. Tests raw sector read and GET_SECTOR_COUNT.
  3. Mounts before formatting and asks before f_mkfs.

Frequently asked questions

What does the Fatfs Integration AI skill do?

Use when integrating, porting, configuring, or debugging FatFs FAT/exFAT filesystems, diskio drivers, SD cards, SPI flash disks, or embedded file I/O failures

Why use Fatfs Integration on TypingMind?

Because you install it once and use it with any model. Fatfs Integration is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Fatfs Integration in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/easyzoom/aix-skills/tree/main/skills/fatfs-integration. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Fatfs Integration?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Fatfs Integration?

As many as you like. As long as a model supports skills, you can use Fatfs Integration with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Fatfs Integration AI skill free?

Yes. It is published on GitHub by easyzoom under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇