Hoi4 modding
Creates, edits, reviews, and debugs Hearts of Iron IV mods. Use for HOI4 focus trees, events, decisions, ideas, countries, states, history files, localization, GFX/interface references, scripted effects/triggers, descriptors, mod folder structure, and error.log issues.From its SKILL.md
npx -y skills add postigodev/hoi4-agent-skill --skill hoi4-moddingAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its file declares
Copied from the file, not written here
The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.
SKILL.md
4.6 KB, 911 tokens by cl100k_base, as published. Nobody here has run it
HOI4 Modding Agent Skill
Use this skill when working on Hearts of Iron IV mods.
Operating Model
Treat HOI4 mods as Paradox data-script projects, not normal software projects.
Prioritize:
- small loadable edits
- existing project conventions
- valid folder structure
- unique IDs
- correct event namespaces
- correct scopes
- localization for all visible player-facing content
error.log-driven debugging- compatibility with the current mod structure
Avoid:
- large speculative rewrites
- inventing syntax when a nearby project or vanilla-style pattern exists
- editing vanilla installation files directly
- copying proprietary game files or assets into public repositories
- adding GFX references without checking whether sprites/files exist
- adding visible UI content without localization keys
First Actions
Before editing:
- Inspect the active mod root.
- Identify the descriptor file and mod folder.
- Identify relevant country tags, file prefixes, event namespaces, idea prefixes, and localization prefixes.
- Search nearby files for existing conventions.
- Determine whether the requested change affects focus trees, events, decisions, ideas, history, localization, GFX, scripted effects, scripted triggers, map/state data, or descriptor files.
- If debugging, inspect
error.logbefore guessing from symptoms.
Reference Loading
Read the relevant reference files only when needed:
references/01-folder-structure.mdfor mod layout and descriptor issues.references/02-paradox-script.mdfor Paradox script syntax, braces, scopes, triggers, and effects.references/03-focus-trees.mdfor national focus trees.references/04-events.mdfor event namespaces, event IDs, options, and event firing.references/05-decisions.mdfor decision categories, visibility, availability, costs, and effects.references/06-ideas-and-modifiers.mdfor ideas, national spirits, modifiers, andadd_ideas.references/07-countries-history-states.mdfor country setup, history files, states, and related references.references/08-localization.mdfor localization files, keys, formatting, and visible text.references/09-gfx-interface-icons.mdfor sprites, focus icons,.gfx,.dds,.tga, and interface references.references/10-scripted-effects-triggers.mdfor reusable scripted logic and expected scopes.references/11-debugging-error-log.mdfor debugging workflows.references/13-common-failure-modes.mdfor known HOI4 modding mistakes.
Examples
Use examples/ for small original ABC placeholder snippets and examples/broken-cases/ for debugging patterns. Treat examples as educational starting points, not files to paste blindly into every mod.
Editing Checklist
Before finishing, verify:
- IDs are unique in the affected files.
- Event IDs match declared namespaces.
- Visible focus, event, decision, idea, and GUI text has localization.
- Localization keys match script references.
- Braces are balanced.
- Effects and triggers are used in valid scopes.
- Focus prerequisites reference existing focuses.
- Event calls reference existing events.
- Idea additions reference existing ideas.
- GFX references point to existing sprites/files or clearly marked placeholders.
- The change does not silently overwrite vanilla files unless intended.
- The change avoids bundling proprietary game assets.
- Do not claim in-game validation unless HOI4 was actually launched and tested.
Debugging Workflow
When a mod does not load or content does not appear:
- Check whether the mod is enabled in the active playset.
- Check descriptor and path issues.
- Read
error.log. - Fix parse and syntax errors first.
- Fix missing or invalid scope errors.
- Fix missing localization.
- Fix missing sprite or GFX references.
- If HOI4 can be launched, test the smallest affected feature in-game. Otherwise, report this as a manual test step for the user.
- Summarize remaining risks.
If error.log is unavailable, ask the user for the relevant excerpt or explain what to inspect manually.
Response Format
When done, report:
- files changed
- IDs added or modified
- localization keys added
- what to test in HOI4
- likely risks
- whether validation was static-only or actually tested in-game
What ships with it: 22 files
33.5 KB alongside SKILL.md
examples/
- broken-cases/broken-event-namespace/README.md1.5 KB
- broken-cases/invisible-focus-tree/README.md2.1 KB
- broken-cases/missing-localization/README.md1.5 KB
- minimal-decision.txt548 B
- minimal-event.txt448 B
- minimal-focus-tree.txt827 B
- minimal-goals.gfx416 B
- minimal-idea.txt427 B
- minimal-localisation_l_english.yml1.2 KB
references/
- 01-folder-structure.md2.1 KB
- 02-paradox-script.md2.4 KB
- 03-focus-trees.md2.1 KB
- 04-events.md1.9 KB
- 05-decisions.md1.4 KB
- 06-ideas-and-modifiers.md1.5 KB
- 07-countries-history-states.md1.7 KB
- 08-localization.md2.1 KB
- 09-gfx-interface-icons.md1.4 KB
- 10-scripted-effects-triggers.md1.4 KB
- 11-debugging-error-log.md2.3 KB
- 13-common-failure-modes.md3.2 KB
- LICENSE.txt1.0 KB