Back to Skills

sdv-data-validation

This skill should be used when the user asks to "validate data structures", "check save format", "update config options", or discusses data persistence. Also use when modifying FavoritesModel.cs, ModConfig.cs, modData conventions, JSON save files, or when preparing migrations for breaking changes.

2starsUpdated 4/3/2026

Security Assessment

Safe(100/100)
Security Score100/100

About sdv-data-validation

The sdv-data-validation skill provides a robust framework for validating data structures, ensuring consistent save formats, and maintaining modData conventions within Stardew Valley modding projects. It is designed to prevent regressions when modifying critical files such as FavoritesModel.cs and ModConfig.cs, or when updating JSON save files. By systematically checking data integrity, this skill reduces the risk of runtime errors, preserves user data, and ensures smooth migrations when breaking changes are introduced. Its primary focus is on the correctness and completeness of mod-related data structures and configuration files.

FAQ

When should I use the sdv-data-validation skill?

You should use it when modifying FavoritesModel.cs, ModConfig.cs, adding new save fields, changing modData key conventions, or before committing changes that affect data persistence.

Does this skill check for valid modData key formats?

Yes, it ensures modData keys follow the mod's unique ID convention and validates that Items, ItemIds, and ItemColors dictionaries are consistent and correctly formatted.

Are there any requirements for config options when using this skill?

Yes, new config options should be added to ModConfig.cs with proper default values, registered with GMCM in StardewOutfitManager.cs, and documented with XML comments.

Can this skill validate item dye colors?

Yes, it checks that ItemColors values are in the 'R,G,B,A' format and only contain keys for dyeable items such as 'Shirt' and 'Pants'.

Who is the target user for this skill?

This skill is intended for mod developers working with Stardew Valley mods who need to ensure data consistency, validate save files, and follow modData conventions.

Install sdv-data-validation

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill