agentleFS
NgducokNgducok/Minecraft-skills/skills/modding/minecraft-network-payloads/SKILL.md

minecraft-network-payloads

Skill1 starsChanged 58 days agoMITView on GitHub

Design or debug Fabric/NeoForge custom network payloads, menu synchronization and validated client requests.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    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:

    Treat a client message as a request, not proof of inventory, permission, price or cooldown.

    line 8
  2. Distinctive:

    Verify registration/handshake requirements and byte limits on the target loader.

    line 10
  3. Distinctive:

    Read the documented execution thread.

    line 11
  4. Distinctive:

    Test malformed/oversized payloads, stale sessions, duplicate messages and unsupported clients.

    line 19
  5. Distinctive:

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

    line 27
  6. 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

Mod payloads and client authority

Treat a client message as a request, not proof of inventory, permission, price or cooldown. Define direction, channel identity, codec/schema, size limit and handler ownership for each payload.

  • Verify registration/handshake requirements and byte limits on the target loader. Validate lengths, ranges, identifiers and remaining state before performing an action.
  • Read the documented execution thread; marshal world/player mutation only when necessary onto its owner. Do not blindly enqueue or assume every handler is already safe.
  • Send only state the client needs to render or act on. Never send secrets or implement economic validation solely in the screen.
  • Include session/version or sequence where stale messages could act on another menu/job. Rate-limit repeated requests and make valuable operations replay-safe.
  • Resolve positions/entities within the authenticated player's permitted scope. A packet containing an entity ID does not authorize editing that entity.
  • Separate server authoritative state from optimistic visual feedback. Correct the display on denial, reconnect and out-of-order synchronization.

Verification

Test malformed/oversized payloads, stale sessions, duplicate messages and unsupported clients. Exercise high latency and a dedicated server with client code absent.

Example request

A modded purchase screen sends price and amount; validate a product request server-side instead.

Focused reference

Read references/network-cases.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.