Standardize

From MillenniumDawn/Millennium-Dawn · View interactive version

Standardize is an AI agent skill from the GitHub repository MillenniumDawn/Millennium-Dawn. Auto-standardize a MD focus/event/decision/idea/MIO/technology/history file, or fix tabs and spacing in an AI equipment, character, scripted effect, or scripted trigger file, with the tools/standardization/ scripts and report what changed. Use when asked to standardize, reformat, or bring a mod file

How to use this skill

Skill file

Standardize a Millennium Dawn mod file using the standardization tools.

File to standardize: $ARGUMENTS

Steps:

  1. Determine the file type from the path:

If the type cannot be determined, ask the user to clarify.

  1. Run from the tools/standardization/ directory:

```

python3 standardize.py <type> <absolute_file_path> --backup --verbose

```

For focus trees, add --check-naming to also enforce TAG_snake_case on country-specific MODIFIER names. It scans the whole file, so a tree carrying pre-existing violations will fail without writing anything — only use it when you intend to clean those up.

  1. Report what changed: list each block that was reformatted and what was fixed (missing logging, property reordering, removed performance-hurting patterns, etc.)
  1. If any issues were warned about but not auto-fixed, list them so the user can address them manually.
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.