Enforce VPK manifest updates whenever VPK files are created, moved, renamed, enabled, disabled, or deleted. Use when modifying VPK-related Rust code, touching vpk_manager, manager.rs, mods.rs, profiles.rs, or any code that mutates the addons directory. Prevents state drift between on-disk VPKs and the .dmm.json manifest.
Instalação
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Enforce VPK manifest updates whenever VPK files are created, moved, renamed, enabled, disabled, or deleted. Use when modifying VPK-related Rust code, touching vpk_manager, manager.rs, mods.rs, profiles.rs, or any code that mutates the addons directory. Prevents state drift between on-disk VPKs and the .dmm.json manifest.
disable-model-invocation
true
VPK Manifest Hygiene
Every mutation to VPK files on disk must be followed by a corresponding update to the ProfileVpkManifest (.dmm.json). Skipping this causes state drift: the manifest no longer reflects reality, leading to ghost mods, missing mods, and broken enable/disable cycles.
The Manifest
File: .dmm.json inside the profile's addons directory
Struct: ProfileVpkManifest in apps/desktop/src-tauri/src/mod_manager/vpk_manifest.rs
Tracks per-mod: enabled, current_vpks, disabled_vpks, original_vpk_names, order
The Rule
If you touch VPKs on disk, you must update and save the manifest in the same operation.
Concretely, any code path that does one of the following must call the corresponding manifest method and then manifest.save():