agentleFS
NgducokNgducok/Minecraft-skills/skills/data/minecraft-persistence/SKILL.md

minecraft-persistence

Skill1 starsChanged 58 days agoMITView on GitHub

Design or repair Minecraft player, island, item and transaction persistence, migrations and recovery after restart or crash.

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

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

    Use transactions/constraints for money or shared balances when available.

    line 13
  2. Distinctive:

    Read references/durable-trades.md when handling the detailed cases above.

    line 27
  3. Very specific:

    Read contract.json for applicability and required outputs.

    line 31

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Persistent state and recovery

Identify authoritative state and durability needs before choosing storage. PDC suits metadata on supported holders; queryable/shared accounts may require a database. JDBC drivers are dependencies, not part of Java's standard library.

  • Choose stable UUID/key ownership and schema versioning. Distinguish an item instance, stack quantity, player profile and island account; do not use names or lore as identifiers.
  • Ordinary blocks do not expose item-style PDC. Store custom plant state using a persistent world/chunk/coordinate index and remove it when blocks change.
  • Capture immutable snapshots on the owner thread; persist off-thread with ordered writes. A stale asynchronous save must not overwrite newer state.
  • Use transactions/constraints for money or shared balances when available. Saving a player and saving an external ledger are not one atomic operation.
  • For file storage, write a temporary file and use an appropriate atomic replacement where supported. Preserve previous data on parse failure; migration must be rerunnable or guarded.
  • Back up consistent database/world/account state and test restoration. Include WAL/auxiliary files correctly rather than copying a live database file blindly.

Verification

Inject failure between commits, retry a migration and simulate out-of-order saves. Restore into an isolated runtime and reconcile balances/items.

Example request

A balance reverts after logout because an older asynchronous save finishes last.

Focused reference

Read references/durable-trades.md when handling the detailed cases above.

Contract and evidence

Read contract.json for applicability and required outputs; REFERENCE.md for evidence and version limits. No listed verified release means resolve the target before generation. examples/scenario.md contains a documented evaluation prompt, not proof that an agent passed.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.