Hoi4 pdx modding
Skill Fostanico/hoi4-ai-modding-skills/skills/hoi4-pdx-modding
Portable AI Agent Skills for building Hearts of Iron IV mods from natural-language requests
npx -y skills add Fostanico/hoi4-ai-modding-skills --skill hoi4-pdx-moddingAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- 22 days oldThe repository was created 22 days ago. New is not bad, but a brand new repository carrying a familiar-sounding name is the shape a typosquat arrives in, and there has been no time for anyone else to find a problem with it.
- 1 stars1 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 author says it does
Copied from the file, not written here
Implement, explain, refactor, and validate portable Hearts of Iron IV mods written in Paradox/PDX script. Use for descriptors, scopes, variables, arrays, events, decisions, focuses, ideas, characters, history, on_actions, GUI/GFX, localisation, AI, performance, compatibility, version migration, logs, encoding, or cross-file identifiers. Works from natural-language requests and verifies version-sensitive syntax against the target installation.
SKILL.md
7.2 KB, ~1.5k tokens by cl100k_base, as published. Nobody here has run it
HOI4 PDX modding
Establish the target
- Locate the actual mod root, launcher-side
.modfile,descriptor.mod, and repository guidance such asAGENTS.md,CLAUDE.md,GEMINI.md, or a project technical handoff. Project guidance overrides generic examples. - Record the target HOI4 build, DLCs, dependencies, load order, and whether the work is a standalone mod, submod, compatibility patch, or vanilla override.
- Inspect
replace_pathand the active playset before assuming vanilla or a dependency supplies a database. - Search definitions and callers across the target mod before editing. Treat
identifiers, paths, sprite names, equipment archetypes, and localisation
keys as case-sensitive. Localisation entries must use
key: "Text";key:0 "Text"and every other numeric key-version suffix are errors. - Read the affected feature's names, descriptions, options, tooltips, scripted localisation, GUI text, and character descriptions before inferring its purpose. Build the code-to-visible-meaning map in semantic-intent-audit.md; never infer proper names or gameplay intent from IDs, filenames, or variable names.
- Use the Wiki to understand concepts. Prove uncertain fields, scopes, tokens, and file layout with the installed build's generated documentation, current vanilla consumers, and exact dependency version.
Never require the user to know PDX syntax. Translate ordinary-language goals into scopes, lifecycle, content objects, files, identifiers, visible behavior, AI behavior, compatibility assumptions, and tests. Ask only questions whose answers cannot be discovered or safely defaulted.
Select references
- pdx-script.md: scopes, variables, arrays, loops, effects, triggers, identifiers, and source verification.
- project-structure-history.md:
descriptors, roots,
replace_path, tags, characters, countries, states, provinces, and map/history risk. - content-objects.md: events, decisions, focuses, ideas, MIOs, on_actions, and dynamic modifiers.
- ai-and-military-content.md: AI strategies, equipment designs, division templates, OOBs, variants, and names.
- diplomacy-factions-assets.md: diplomacy, factions, peace conferences, entities, landmarks, music, sound.
- gui-localisation.md: GUI, GFX, scripted GUI, scripted localisation, sprites, tooltips, encodings, and localisation.
- localisation-deep-dive.md: colours, icons, formatted variables, scope functions, nested and bound text, formatters, dynamic consumers, templates, and localisation diagnostics.
- semantic-intent-audit.md: mandatory code-to-localisation mapping before existing-feature fixes, refactors, performance work, migration, or documentation.
- performance-debugging.md: hot paths, caching, log triage, debug mode, and runtime evidence.
- version-migration.md: game updates and full-file vanilla overrides.
- media-models-shaders.md: textures, entities, animations, models, audio, and shaders.
- vanilla-documentation-map.md: choosing installed schema sources and debug commands.
- review-checklist.md: reviews, renames, regression checks, encoding, and handoff.
- development-documentation.md: mandatory technical documentation, change handoff, and readable code-comment contracts for every implementation or repair.
- source-attribution.md: provenance and licensing when maintaining or redistributing these skills.
Use sibling hoi4-content-builder for end-to-end construction and templates.
Use sibling hoi4-review-debug for diagnosis, adversarial review, migration,
performance analysis, and runtime testing.
Implement safely
- Convert the request into a content contract: caller, starting scope, visible result, AI behavior, lifecycle, DLC/dependency gates, IDs, assets, save impact, and acceptance tests.
- For existing content, derive the visible result from the actual localisation and scripted-localisation consumers. Reconcile their promised names, dates, costs, cooldowns, and failure behavior with project guidance and code before editing.
- Trace scope from each real caller through scripted effects, triggers, events, decisions, on_actions, and GUI callbacks. Guard optional scopes.
- Reuse tokens proven in the current target. A generated modifier proves engine recognition, not that every consumer accepts it; require a working consumer for database-specific fields.
- Create definitions before consumers and wire the complete dependency chain, including localisation, GUI/GFX, assets, history, AI, and lifecycle cleanup.
- Preserve unrelated changes and stable flags/variables unless an explicit migration plan covers old saves. Prefer event-driven or batched updates to global daily scans when behavior permits.
- Treat copied templates as parameterized skeletons. Replace every placeholder and revalidate against the target build and dependencies.
- Update the mod's canonical technical documentation and current development handoff in the same change. Add readable comments at file/subsystem boundaries and around non-obvious scope, state, lifecycle, performance, compatibility, and engine-workaround logic.
Validate proportionally
Run the bundled validator against the target mod or explicit changed paths:
& <SKILL_ROOT>/scripts/validate-hoi4.ps1 -ModRoot <MOD_ROOT>
Then search for stale/sample IDs, duplicate definitions, missing localisation
or GFX links, descriptor/load-root mistakes, conflict markers, and encoding
violations. Run the repository's diff/format checks when available. Inspect a
fresh error.log; fix the earliest parser error in each file before cascades.
Treat current technical documentation, handoff evidence, and meaningful code
comments as part of completion, not optional cleanup after the code works.
Static checks cannot prove scope, timing, GUI interaction, AI choice, history loading, or asset rendering. After static validation, use the sibling runtime test workflow, which must ask the user before controlling Steam or launching the game. Report static and in-game evidence separately.
After a game update, rebuild the installed documentation inventory with an explicit game root:
& <SKILL_ROOT>/scripts/index-vanilla-docs.ps1 -GameRoot <HOI4_GAME_ROOT>
What ships with it: 20 files
133.9 KB alongside SKILL.md, 2 of them executable
agents/
- openai.yaml309 B
references/
- ai-and-military-content.md5.2 KB
- community-tool-index.md6.4 KB
- content-objects.md9.1 KB
- development-documentation.md3.5 KB
- diplomacy-factions-assets.md3.3 KB
- gui-localisation.md6.9 KB
- localisation-deep-dive.md17.1 KB
- media-models-shaders.md3.1 KB
- pdx-script.md10.1 KB
- performance-debugging.md6.0 KB
- project-structure-history.md5.2 KB
- recent-official-modding-changes.md14.0 KB
- review-checklist.md6.5 KB
- semantic-intent-audit.md2.9 KB
- source-attribution.md9.0 KB
- vanilla-documentation-map.md12.6 KB
- version-migration.md4.4 KB
scripts/
- index-vanilla-docs.ps1runs575 B
- validate-hoi4.ps1runs7.8 KB