CommunityCoding & Developmentgithub.com

DST Mod DevKit

An AI agent skill for building Don't Starve Together (DST) mods from scratch, featuring layered references, a crash playbook, and headless self-testing.

What is DST Mod DevKit?

The DST Mod DevKit is a specialized skill designed to teach AI agents how to create functional mods for Don't Starve Together (DST). It provides structured guidance from absolute zero, including a layered reference system for understanding DST's Lua API and modding conventions, a crash playbook to systematically troubleshoot and fix runtime errors, and headless self-testing capabilities to validate mods without launching the full game client. This skill is ideal for developers using AI coding tools like Claude Code, Cursor, or Codex, enabling them to generate robust, self-testing DST mods efficiently. By combining practical examples, common pitfalls, and automated validation, the DevKit accelerates the modding workflow and reduces manual debugging overhead.

Works with~Claude Code~Codex CLI~Cursor
npx skills add zhuchengguang317-eng/dst-mod-devkit

Installed? Explore more Coding & Development skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

What does DST Mod DevKit do?

Agent Skill: teach an AI to build Don't Starve Together (DST) mods from scratch - layered references, crash playbook, headless self-testing.

Overview

This skill provides an AI agent with everything needed to create Don't Starve Together mods from scratch. It uses a three-pronged approach:

  • Layered References: Step-by-step guides from fundamentals to advanced modding.
  • Crash Playbook: Systematic error handling and fix strategies.
  • Headless Self-Testing: Automatically test mods without launching the full game.

Supported Platforms

  • Claude Code
  • Cursor
  • Codex
  • Other AI agents with custom skill support

How to Use

  1. Load this skill into your AI agent.
  2. Describe the mod you want to build (e.g., "Add a new character that eats more").
  3. The AI will generate the mod code, test it headlessly, and apply fixes from the crash playbook if needed.

Layered References

The references are organized by experience level:

Level 1: Essentials

  • DST Lua API basics
  • Modinfo.lua and modmain.lua structure
  • Simple item/character creation

Level 2: Intermediate

  • Custom components, prefabs, and widgets
  • Networking and server-side logic
  • UI modding basics

Level 3: Advanced

  • Performance optimization
  • Multiplayer synchronization
  • Save/load system integration

Crash Playbook

When a mod crashes, follow this playbook:

  1. Check the log: Look for scripts/debug_log.txt in your DST documents folder.
  2. Common causes:
    • Missing component references
    • Nil errors on game objects
    • Incorrect prefab registration
  3. Fix pattern: Identified error → Look up in layered references → Apply fix → Re-test.

Headless Self-Testing

Mods can be tested without launching the full game using headless mode:

dedi_server_start_precompiled.sh -only_start_server -no_steam_client

This runs the server headlessly and validates mod loading, server initialization, and basic gameplay loops.

Example Workflow

  1. Prompt: "Create a mod that adds a new weapon."
  2. AI creates: modmain.lua with item registration, recipes, and components.
  3. AI tests: Launches headless server, checks for errors.
  4. AI fixes: Applies crash playbook if test fails.
  5. Result: A working, self-validated DST mod.

For more details, see the source repository at: zhuchengguang317-eng/dst-mod-devkit

Related Skills