love-data

Encode, decode, compress, and decompress data using the LÖVE love.data API.

1|Updated Jan 23, 2026
One-click install
npx skills add https://github.com/RedKenrok/skills --skill love-data
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: love-data
Source: https://github.com/RedKenrok/skills/tree/main/skills/love-data
Command: npx skills add https://github.com/RedKenrok/skills --skill love-data

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill simplifies data handling in LÖVE games by enabling seamless creation, encoding, decoding, compression, and transformation of data, reducing boilerplate and potential errors when working with game state and assets.

Core Features & Use Cases

  • Encoding and decoding data formats for storage and interop
  • Data compression and decompression for memory/network efficiency
  • Serialization and deserialization of game state for save/load
  • Working with ByteData and CompressedData types for raw buffers
  • Use case: serialize a player profile, compress it, and save it to disk

Quick Start

To get started, encode a string using love.data.encode and decode it back with love.data.decode to verify data integrity.

Frequently Asked Questions about love-data

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I serialize and compress game state data in Love2D for saving to disk?

To save game state in Love2D, you serialize the data into a string or ByteData, then apply data compression using love.data.compress. This reduces the memory footprint of the save file before writing it to disk.

What is the difference between ByteData and CompressedData types in Love2D?

ByteData represents a raw sequence of bytes for binary data manipulation, while CompressedData is the specific output generated by applying data compression. Both are used for efficient memory and network workflows in Love2D.

How can I decode and decompress binary data received over a network in a Love2D game?

You decode and decompress binary network data by passing the received ByteData through love.data.decompress. This reverses the compression and transforms the raw buffer back into its original format for game state synchronization.

Does Love2D provide built-in utilities for base64 encoding and data transformation?

Yes, Love2D exposes built-in encoding and decoding utilities through the love.data API. You can use love.data.encode and love.data.decode to handle data formats like base64 for storage and metadata interchange without external libraries.

What is the best way to handle binary data manipulation and reduce boilerplate in LÖVE games?

Using the love.data API for binary data manipulation is the best way to reduce boilerplate in LÖVE games. It provides direct utilities for packing, unpacking, and transforming raw buffers securely within your project modules.

Why does my Love2D data decompression fail when loading a compressed save file?

Data decompression in Love2D fails if the compression format used during encoding does not match the format specified during decoding. You must verify that the algorithm parameter passed to love.data.decompress aligns with the original compression.