{{SKILL_DESCRIPTION}} Use this skill when working with file operations, directory management, file reading/writing, or any filesystem-related operations in LÖVE games.
-- Read the contents of a file
local content = love.filesystem.read("data.txt")
print(content)
Writing to a file
-- Write data to a file
local success = love.filesystem.write("savegame.dat", gameData)
if success then
print("Game saved successfully!")
end
Best practices
Use love.filesystem for all file operations to ensure cross-platform compatibility
Handle file operations in love.load() or during non-critical game moments
Always check if files exist before attempting to read them
Use appropriate file formats for different data types
Be mindful of filesystem permissions, especially on mobile platforms
Platform compatibility
Desktop (Windows, macOS, Linux): Full filesystem support
Mobile (iOS, Android): Limited to sandboxed storage, some restrictions apply
Web: Very limited filesystem access, mostly read-only operations
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: redkenrok-skills-love-filesystem3description: When to use this skill4---56## When to use this skill7{{SKILL_DESCRIPTION}} Use this skill when working with file operations, directory management, file reading/writing, or any filesystem-related operations in LÖVE games.89## Common use cases10- Reading and writing files11- Managing directories and file paths12- Handling game save data and configuration files13- Working with compressed files and archives14- Accessing filesystem information and metadata1516{{MODULES_LIST}}17{{FUNCTIONS_LIST}}18{{CALLBACKS_LIST}}19{{TYPES_LIST}}20{{ENUMS_LIST}}2122## Examples2324### Reading a file25```lua26-- Read the contents of a file27local content = love.filesystem.read("data.txt")28print(content)29```3031### Writing to a file32```lua33-- Write data to a file34local success = love.filesystem.write("savegame.dat", gameData)35if success then36 print("Game saved successfully!")37end38```3940## Best practices41- Use love.filesystem for all file operations to ensure cross-platform compatibility42- Handle file operations in love.load() or during non-critical game moments43- Always check if files exist before attempting to read them44- Use appropriate file formats for different data types45- Be mindful of filesystem permissions, especially on mobile platforms4647## Platform compatibility48- **Desktop (Windows, macOS, Linux)**: Full filesystem support49- **Mobile (iOS, Android)**: Limited to sandboxed storage, some restrictions apply50- **Web**: Very limited filesystem access, mostly read-only operations5152---53> Converted and distributed by [TomeVault](https://tomevault.io/claim/redkenrok) — claim your Tome and manage your conversions.54<!-- tomevault:4.0:skill_md:2026-04-15 -->
Run npx skillmds@latest add tomevault-io/redkenrok-skills-love-filesystem in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
When to use this skill It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
tomevault-io (@tomevault-io) published this skill. Their other Agent Skills are listed on their SkillMD profile.