7DaysToDieSkill: Enable Agents to Create XML Modlets for 7 Days to Die According to Original Specifications

Introduction

Most mods for 7 Days to Die rely on XML patches to modify configurations like buffs.xml and items.xml. The vanilla files contain numerous entries and require precise XPath syntax. Furthermore, Buff passive_effect and triggered_effect definitions must align exactly with those already existing in Data\Config. Relying solely on memory or general coding assistants often leads to creating tags or enums that don’t exist in the vanilla game, resulting in errors in the logs only when the game starts.

The following introduces 7DaysToDieSkill (@user_10330f97/7daytodie) on SkillHub. It codifies the workflow of “first reading the player’s local installation directory, then checking the vanilla files, and only writing Modlets” into an Agent skill description. It is suitable for developers who already use clients with Skills support (like Cursor or Claude Code) and need to reliably produce XML Mods.

What is this

7DaysToDieSkill is an Agent-oriented skill document for creating 7 Days to Die XML Mods (following the universal SKILL.md format). It is version 1.0.0, sourced from the SkillHub community, categorized under life-service, with the coordinate @user_10330f97/7daytodie. The SkillHub page lists the author as Niko妮可 (Publisher ID: user_10330f97). The tag requires_api_key=false indicates that no additional API Key is needed after installation.

It solves a core problem: when creating Mods for Buffs, items, recipes, etc., within a conversation, it forces the Agent to read Data\Config and Localization.txt from the current player’s $GameRoot (Game Root). It prohibits the invention of XML entries out of thin air and defaults to writing only to Mods\YourModName\Config (creating Modlets) rather than modifying vanilla files.

Core Features

The following capabilities are derived from the SKILL.md within the skill package and are executed by the Agent according to the documentation after installation.

Vanilla File Location

  • Uses $GameRoot to represent the game root directory, determining it from the workspace, user-provided paths, or Steam library, rather than hardcoding drive letters.
  • Validates directory validity: checks for the existence of Data\Config and 7DaysToDie_Data\Managed.
  • Lists common vanilla XML files: buffs.xml, items.xml, blocks.xml, recipes.xml, loot.xml, progression.xml, entityclasses.xml, entitygroups.xml, traders.xml, Localization.txt.
  • Provides PowerShell examples: searching for the occurrence of passive_effect, trigger, ModifyCVar, etc., within Data\Config\*.xml.

Strict XML Creation Standards

  • No Inventing Entries: Tag names, attribute names, enums, action, trigger, requirement, passive_effect name, etc., must be verified in the vanilla XML first.
  • Workflow: Requirements → Locate vanilla files → Search and copy syntax → Modify only necessary values → Write to Modlet → Check XPath and formatting.
  • Do Not Modify Directly: Vanilla files under Data\Config must not be modified.

Buff System Development Standards

  • Treats $GameRoot\Data\Config\buffs.xml and its comments as the authoritative source.
  • Standardizes the syntax for effect_group, passive_effect, triggered_effect, and requirement, providing search command examples.

Standard Modlet Structure

  • Recommended directory: ModInfo.xml + Config\ (containing buffs.xml, items.xml, etc.).
  • Provides ModInfo.xml templates and XPath patch examples (append, set, etc.), emphasizing that every entry in the template must still be confirmed in the vanilla files.

Localization

  • Vanilla path: $GameRoot\Data\Config\Localization.txt (CSV header and column order are fixed).
  • Modlet side: Add translation lines in Config\Localization.txt that match name_key, description_key, etc. Do not directly modify vanilla translation files.

Vanilla DLLs and Best Practices

  • Client managed assemblies: $GameRoot\7DaysToDie_Data\Managed (e.g., Assembly-CSharp.dll).
  • Dedicated server (if exists): $GameRoot\7DaysToDieServer_Data\Managed.
  • Explains read-only decompilation principles using ILSpy, dnSpyEx, dotPeek, and provides search priorities and a pre-delivery checklist.

Installation and Activation

SkillHub crawl data shows: Rating 100000, Downloads 851 (page data changes over time; refer to SkillHub for the latest).

1. Install SkillHub CLI (if not already installed)

command -v skillhub && skillhub --version

If not installed, follow the SkillHub Installation Guide to perform a full installation or just the CLI:

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

2. Install 7DaysToDieSkill

When installing, you must use --dir to point to the current Agent’s skills directory; otherwise, it defaults to ./skills/ which might not be recognized.

skillhub install 7daytodie --namespace user_10330f97 --dir ~/.cursor/skills/

Alternatively, send the following prompt to your Agent to let it handle the installation via the official documentation:

Please install `@user_10330f97/7daytodie` based on https://skillhub.cn/install/skillhub.md.

Common skills directories (excerpted from SkillHub installation docs):

  • Cursor: ~/.cursor/skills/
  • Claude Code: ~/.claude/skills/
  • Codex: ~/.codex/skills/ or .agents/skills/ in the project

After installing or updating skills, restart or refresh the Agent according to your client’s requirements to activate the skill.

Typical Usage

The skill itself does not contain standalone executable scripts. The typical usage is to: describe your Mod requirements in the conversation and provide or confirm $GameRoot, allowing the Agent to read the local Data\Config and output a Modlet.

Example conversation direction (requires the corresponding installation directory to exist on your machine):

  1. Explain the goal, e.g.: “Append a base_add for RunSpeed to a specific vanilla Buff, lasting 10 seconds.”
  2. Provide the game root directory, or let the Agent resolve $GameRoot from the current workspace / Steam library.
  3. The Agent follows the skill requirements to first Select-String search buffs.xml for RunSpeed, onSelfBuffStart, etc., then generates the XPath patch for Mods\ExampleMod\Config\buffs.xml and ModInfo.xml.
  4. If display names are involved, synchronously generate consistent CSV lines in Config\Localization.txt matching the keys.

The Modlet patch skeleton in the skill documentation is as follows (actual name and values must be based on the vanilla files you find):

<?xml version="1.0" encoding="UTF-8"?>
<configs>
    <append xpath="/buffs">
        <buff name="exampleBuff">
            <stack_type value="ignore"/>
            <duration value="10"/>
            <effect_group>
                <passive_effect name="RunSpeed" operation="base_add" value="0.1"/>
            </effect_group>
        </buff>
    </append>
</configs>

Applicable Scenarios and Notes

Who is it for

  • Users writing 7 Days to Die XML Modlets with AI Agents who want to reduce “inventing entries” and accidental modifications to vanilla configurations.
  • Users who need a fixed retrieval and delivery checklist when dealing with multi-file linkage involving Buffs, items, recipes, and localization.

Limitations and Notes

  • The skill constrains Agent behavior but cannot replace having the game installed locally, placing the Mod in Mods, and verifying it yourself in-game or via server logs.
  • The PowerShell examples in the documentation are aimed at common Windows installation paths; on Linux (if running via Steam), you still need to confirm if $GameRoot and path separators match the examples.
  • Regarding DLL decompilation, the skill requires read-only analysis; if complex logic cannot be expressed in XML, you need to evaluate whether to create a C# Mod yourself. The skill prioritizes XML by default.
  • The “Install” count in SkillHub statistics may not sync with local installations across different clients; what matters is whether you have placed the package in the Agent’s skills directory.

Conclusion

7DaysToDieSkill solidifies the most error-prone parts of 7 Days to Die Mod development—cross-referencing vanilla Configs, writing only Modlets, localization, and Buff standards—into an Agent skill description. It is suitable for use alongside the SkillHub distribution flow. No API Key is required; once installed, it can be activated immediately in clients supporting Skills.

  • SkillHub Page: https://www.skillhub.cn/skills/user_10330f97/7daytodie
  • API Coordinate Page: https://api.skillhub.cn/user_10330f97/7daytodie
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye