Przejdź do treści
Biblioteka skilli
Programowanie · Przegląd i audyt

hoi4-review-debug

/hoi4-review-debug

Przegląda, diagnozuje i testuje istniejące mody HOI4 na podstawie kodu, logów i gry, przy audytach i triażu błędów.

Licencja
CC-BY-SA-4.0
Ostatnia zmiana repozytorium
10.11.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
19
Skrypty
6
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 10.11.2026, bez odwołań do wycofanych modeli i API.

Licencja

CC-BY-SA-4.0, otwarta.

Co sprawdzić przed instalacją
  • 6 skryptów w paczce. Przejrzyj je przed instalacją, bo Claude może je uruchomić.

Skrypty: scripts/analyze-hoi4-log.ps1, scripts/audit-hoi4-map.ps1, scripts/audit-hoi4-mod.ps1, scripts/audit-localisation.ps1, scripts/audit-media-footprint.ps1, scripts/audit-vanilla-overrides.ps1

Co robi i kiedy

Przegląda, diagnozuje i testuje istniejące mody HOI4 na podstawie kodu, logów i gry, przy audytach i triażu błędów.

Oryginalny opis (EN)

Review, diagnose, and test existing Hearts of Iron IV mods using source, logs, installed-game evidence, and optional isolated runtime runs. Use for audits, defect or crash triage, balance/UX/performance/lifecycle analysis, migration, or explicitly requested fixes; use hoi4-content-builder for new content and hoi4-pdx-modding for ordinary implementation without a review goal.

Jak działa

  1. User guide delivery
  2. Set scope and choose one evidence lane
  3. Establish evidence
  4. Verify and hand off
Sekcje z nagłówków SKILL.md, w oryginale · 216 linii, 1 505 słów
Podgląd SKILL.md
---
name: hoi4-review-debug
description: Review, diagnose, and test existing Hearts of Iron IV mods using source, logs, installed-game evidence, and optional isolated runtime runs. Use for audits, defect or crash triage, balance/UX/performance/lifecycle analysis, migration, or explicitly requested fixes; use hoi4-content-builder for new content and hoi4-pdx-modding for ordinary implementation without a review goal.
---

# HOI4 review and debug

Apply [shared workflow boundaries](../hoi4-pdx-modding/references/workflow-boundaries.md)
for task size, evidence reuse, testing budgets, stopping, and handoff. Review
checklists and fix loops stay within those boundaries.

## User guide delivery

Serve-only artifacts: [English](../hoi4-pdx-modding/assets/user-guides/hoi4-modding-guide.en.md) |
[简体中文](../hoi4-pdx-modding/assets/user-guides/hoi4-modding-guide.zh-CN.md) |
[日本語](../hoi4-pdx-modding/assets/user-guides/hoi4-modding-guide.ja.md) |
[Русский](../hoi4-pdx-modding/assets/user-guides/hoi4-modding-guide.ru.md) |
[한국어](../hoi4-pdx-modding/assets/user-guides/hoi4-modding-guide.ko.md).
For capability/use questions, deliver the resolved file/link in the requested
language; otherwise match the user's language, falling back to English.
Do not preload or summarise guide bodies. Read a guide only when explicitly
asked to edit, translate or discuss its contents.

## Set scope and choose one evidence lane

A request to review, explain, or diagnose authorizes read-only investigation,
not edits. Enter the fix lane only when the user asks to change the mod. Treat
balance, narrative, and visual taste as design choices unless project guidance
defines an objective contract; obtain approval before changing them.

Choose the cheapest lane that can answer the request. Read only that lane's
references; do not preload references from unrelated lanes. Lead review output
with concrete findings ordered by impact and supported by file/line evidence;
if no defect is established, say so and list the remaining test gaps.

For any lane that judges or changes an existing player-facing feature, also
build the code-to-visible-meaning map in
[semantic-intent-audit.md](../hoi4-pdx-modding/references/semantic-intent-audit.md).
For a broad review or applied refactor, additionally use the base
[review-checklist.md](../hoi4-pdx-modding/references/review-checklist.md).

- **One symptom, parser/scope bug, or log triage:** read the matching section of
  [review-workflows.md](references/review-workflows.md), reproduce the symptom,
  and trace its first failing caller. Search
  [field-tested-pitfalls.md](references/field-tested-pitfalls.md) only after the
  evidence identifies a matching failure class. CWTools squiggles are not
  evidence by themselves; see
  [pdx-language.md](../hoi4-pdx-modding/references/pdx-language.md).
- **Several leader abilities disappear together:** read
  [leader-abilities.md](../hoi4-pdx-modding/references/leader-abilities.md).
  Find the first parser failure in their owning file before changing traits
  or each missing ability. Verify all affected later definitions and preserve
  stable IDs/order; append new abilities at the end of the owner block,
  before its closing brace.
- **Existing-feature review, refactor, or fix:** trace its caller, scope,
  player-visible promise, state lifecycle, AI path, and dependencies. Enter the
  edit loop only when the request authorizes a change.
- **Whole-mod health or improvement:** follow
  [improve-existing-mod.md](workflows/improve-existing-mod.md) and read
  [mod-doctor.md](references/mod-doctor.md) before running the baseline audit.
  Add [gameplay-balance-ux-review.md](references/gameplay-balance-ux-review.md)
  only when player experience, balance, or design is in scope.
- **Performance or lifecycle/save risk:** read
  [performance-debugging.md](../hoi4-pdx-modding/references/performance-debugging.md),
  then measure cadence, scope count, state creation, invalidation, cleanup, and
  save/reload behavior before proposing a change.
- **Localisation or dynamic text:** read
  [localisation-deep-dive.md](../hoi4-pdx-modding/references/localisation-deep-dive.md).
  Check visible values for leaked prompts, internal mod conventions, and
  developer-facing explanations; rewrite only when authorized, using the
  player's perspective. Do not flag a missing country-leader trait `_desc` as
  a defect: the native trait tooltip does not display it. Verify the leader's
  referenced description and preserve real custom consumers before cleanup.
  Search the localisation sections of `field-tested-pitfalls.md` only for a
  reproduced consumer-specific failure or a bulk cleanup.
- **GUI, GFX, or artwork:** use the base
  [GUI/localisation reference](../hoi4-pdx-modding/references/gui-localisation.md).
  Read [icon-audit.md](references/icon-audit.md) only for missing, default,
  mismatched, or dependency-bound artwork.
- **Shaders or map projection:** read the base
  [GUI shader contract](../hoi4-pdx-modding/references/gui-shader-effects.md)
  for state binding, masks, clocks and fixed hit regions; for world geometry
  read the
  [map projection reference](../hoi4-pdx-modding/references/shader-map-projection.md).
  Trace coordinate spaces and affected render passes, and distinguish source
  observations from observed/user-reported interaction results. Missing
  mod-side inverse-picking code alone does not establish broken clicking.
- **Map/history or version update:** use the matching section of
  `review-workflows.md`; for a game-version migration follow
  [version-migration.md](workflows/version-migration.md).
- **Template audit:** follow the builder's
  [verify-template.md](../hoi4-content-builder/workflows/verify-template.md) and
  verify the target build, placeholders, schema, current consumer, dependency
  chain, and runtime status separately.
- **Media footprint or conversion:** follow
  [optimize-media.md](workflows/optimize-media.md).
- **Native crash:** ask for the exact pre-crash action timeline and governing
  jurisdiction, then read
  [native-crash-reverse-engineering.md](references/native-crash-reverse-engineering.md)
  before native analysis, and perform its live legal/terms lookup for the
  actual jurisdiction and operation. Never infer jurisdiction from language or
  broaden one authorization into tool installation, static decompilation, or live
  debugging.
- **Runtime test:** follow the builder's
  [test-mod.md](../hoi4-content-builder/workflows/test-mod.md) for native-tool
  capability, user-willingness summary, one-request limit, authorization, and
  quota. A GPT-series model, especially GPT-6astra or GPT-6.1sol, applies
  that file's necessity gate before this lane becomes a launch. Prefer an
  existing playset with only the required mods enabled. For short/simple
  tests, use console preparation and only the agreed observations; follow
  that workflow's elapsed-time and restoration limits.

When writing diagnostic or repair helpers in a Git repository, follow
[tool placement by audience](../hoi4-pdx-modding/SKILL.md#place-generated-tools-by-audience):
keep reusable team tools in shared version-controlled directories, personal
tools in a directory covered by `.gitignore`, and one-off helpers out of Git
history. A review request still does not authorize modifying the mod.

## Establish evidence

Inspect target guidance, version, dependencies, playset, `git status`, changed
files, definitions, callers, and the newest relevant log. Use installed schema
and current vanilla/dependency consumers for unfamiliar tokens. Distinguish
parser errors, semantic errors, runtime behavior, and optional-media warnings.

Judge implementation against current vanilla code and bundled templates/kits,
checking the exact dependency for overridden systems. The Wiki is optional
background reference only and may be long outdated; a Wiki disagreement alone
does not establish a defect. Do not require a Wiki lookup. Resolve template
conflicts against current vanilla/runtime evidence and mark unsupported details
unverified. Follow the sibling skill's
[source order](../hoi4-pdx-modding/references/pdx-script.md#source-order).

Before judging or optimizing a feature, read its names, descriptions, options,
tooltips, scripted-localisation branches, GUI labels, and character text. Map
each code ID to its visible meaning and player-facing promise. Never identify a
character or mechanic by transliterating an internal token. Treat any
code/localisation disagreement as a finding to resolve, not as permission to
ignore the localisation.

Select only the cheapest matching read-only tool:

- When the plugin's `hoi4_local` MCP server is available, use
  `read_hoi4_logs` for bounded current-log tails, `trace_hoi4_identifier` for
  cross-root source links, and `inspect_hoi4_media` for targeted metadata.
  MCP output is evidence collection, not diagnosis by itself. Fall back to the
  scripts below and ordinary local inspection when the server is unavailable.

- `scripts/audit-hoi4-mod.ps1`: build a cross-file health baseline covering
  event and scripted-object graphs, strong localisation/GFX/resource links,
  duplicate/orphan definitions, periodic hot-path heuristics, and comment
  coverage. It can resolve the active playset, compare changed files or a prior
  baseline, apply expiring suppressions, audit media, and emit JSON, Markdown,
  or SARIF. When `-GameRoot` is supplied it also target-scans installed DLC
  interface trees and distinguishes same-basename texture extension mismatches.
  Treat `lead` findings as investigation targets, not edit authority.
- `scripts/analyze-hoi4-log.ps1`: prioritize and compare logs.
- `scripts/audit-localisation.ps1`: inspect BOMs, headers, suffixes, duplicate
  keys, colour markers, nested tokens, dynamic variables, and functions.
- `../hoi4-pdx-modding/scripts/audit-visible-flag-localisation.ps1`: find
  `has_country_flag` requirements that would expose an unlocalised internal
  flag ID in generated check/cross tooltips; distinguish visible requirements,
  potential visibility paths, and `hidden_trigger` exclusions.
- `scripts/audit-hoi4-map.ps1`: check map IDs/colors and history membership.
- `scripts/audit-vanilla-overrides.ps1`: inventory overrides, `replace_path`,
  sizes, and migration gates; `-CompareContent` opts into exact comparison.

Follow the base skill's **File comparison and hashes** rule. Ordinary review,
media inventory, copying, and delivery do not require file digests. Media tools
hash same-size candidates only with `-FindDuplicates`; diagnostic fingerprints
remain stable for existing baselines without reading or hashing file contents.

Native crash tools and authorization stages are defined only in the native
crash reference. Do not import that workflow into ordinary script or log
diagnosis.

Fix the first parser failure in each file before cascades. For every finding,
state the triggering path, failure mechanism, user-visible effect, and smallest
remedy. Do not apply conventions from another mod or old version universally.

When reviewing generated content, search for `MOD`, sample tags, example IDs,
placeholder text, copied asset paths, unresolved localisation, and conflict
markers. Brace balance alone does not prove scopes, lifecycle, AI behavior,
history IDs, or GUI/GFX wiring.

## Verify and hand off

Follow the sibling `hoi4-pdx-modding` **Validate proportionally** lanes.
Do not run the full validator, Mod Doctor, focused audits, or a fresh-log
comparison because a small edit exists. User AI quota is not free.
Inspect-only diffs are complete after a careful read.

When scripts are warranted, run the cheapest matching check on the edited
paths. Broader audits and log comparison belong to whole-mod, rename,
GUI/map, compatibility, release, or migration work. For non-trivial static
work, follow the builder's `workflows/test-mod.md` for its willingness,
capability, and quota decision. A GPT-series model, especially GPT-6astra
or GPT-6.1sol, applies that workflow's necessity gate before asking or
launching, and does not add defensive code in place of a skipped test.
Never open Steam, change launch options,
alter a playset, or start HOI4 without current or still-applicable standing
authorization. Ask at most once per task and do not ask when native computer-use
is unavailable or the user already declined. Inspect-only work needs no prompt.

When a fix or refactor changes a documented contract, update its canonical
documentation and relevant comments under the sibling
[documentation policy](../hoi4-pdx-modding/references/development-documentation.md).
Keep handoff proportional; a small correction does not require new documents.

For a whole-mod improvement, fill the bundled
`assets/templates/mod-improvement-report.md` with the before/after baseline,
approved scope, evidence, deferred design choices, and remaining risks. Never
silently turn a balance preference or narrative taste into a defect.

For an approved test, follow the builder's runtime workflow, including existing
playset reuse, console shortcuts, and the bounded short-test path. Do not turn
one session into a full playthrough or an automatic fix-and-relaunch loop.
Report confirmed results, actual restoration status, reasoned risks, and any
interactions still requiring the user.
Pliki w paczce (19)
  • SKILL.md 13 KB
  • agents/openai.yaml 1 KB
  • assets/templates/mod-doctor-suppressions.json 1 KB
  • assets/templates/mod-improvement-report.md 1 KB
  • references/field-tested-pitfalls.md 14 KB
  • references/gameplay-balance-ux-review.md 5 KB
  • references/icon-audit.md 9 KB
  • references/mod-doctor.md 5 KB
  • references/native-crash-reverse-engineering.md 14 KB
  • references/review-workflows.md 10 KB
  • scripts/analyze-hoi4-log.ps1 5 KB
  • scripts/audit-hoi4-map.ps1 7 KB
  • scripts/audit-hoi4-mod.ps1 61 KB
  • scripts/audit-localisation.ps1 9 KB
  • scripts/audit-media-footprint.ps1 10 KB
  • scripts/audit-vanilla-overrides.ps1 6 KB
  • workflows/improve-existing-mod.md 4 KB
  • workflows/optimize-media.md 6 KB
  • workflows/version-migration.md 2 KB

Wersje

W bazie nie ma innych skilli o nazwie hoi4-review-debug.

Migawka bazy z 13.11.2026 · wersja paczki 0d133cf9be5b (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 3 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100hoi4-pdx-modding
    Pisze, wyjaśnia i sprawdza przenośne mody HOI4 w skryptach PDX: deskryptory, zmienne, eventy, GUI, lokalizację i migracje wersji.
  • 90hoi4-content-builder
    Zamienia opisy pomysłów na pełne mody do Hearts of Iron IV: wydarzenia, decyzje, fokusy, postacie i pakowanie wydania.
  • 100review-game
    Przegląda istniejący kod gry pod kątem architektury, wydajności i dobrych praktyk, bez wprowadzania zmian.
  • 93worldbox-modder
    Pisze, kompiluje i debuguje mody do gry WorldBox na API NeoModLoader w C#, także dodaje cechy, moce i budynki.
  • 100hoi4-modding
    Podaje sprawdzoną wiedzę o modach HOI4 i skryptach Paradox: eventy, drzewka fokusów, decyzje, zmienne, lokalizację i logi błędów.
  • 98cs2-modding-setup
    Przygotowuje lokalne źródła do modowania Cities: Skylines II: dekompilację i czytelną kopię interfejsu gry oraz listę pomocnych modów.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.