Skill: content-balance
Use this skill for mission/sector/upgrade balancing and authored data changes.
When to use
- Tuning mission rewards, penalties, target counts, durations, or time limits.
- Adjusting sector hazard/enemy/cargo authored values.
- Balancing upgrade costs and effects while preserving gameplay progression.
When not to use
- Mechanics requiring algorithm/code changes in systems (use
gameplay-change). - State/menu screen flow updates (use
state-flow-ui).
Inspect first (required)
source/content/missions.luasource/content/sectors.luasource/content/upgrades.luasource/systems/mission_runtime.luasource/systems/game_state.luasource/core/constants.luaAGENT.md
Workflow
- Define target balancing intent (for example: mission pacing, economy pressure, upgrade unlock cadence).
- Edit only relevant content tables.
- Cross-check compatibility:
- Mission
archetypevalues are supported bymission_runtime. targetCount/duration/timeLimitcombinations are achievable.rewardandfailurePenaltykeep economy progression coherent.- Upgrade
applykeys match actual loadout fields used by systems.
- Mission
- Keep IDs stable. If new IDs are added, ensure references remain consistent.
- Run build and deterministic harness checklist.
- Run optional manual simulator smoke for affected content paths.
Definition of done
pdc source game.pdxsucceeds.lua tools/sim/run.luasucceeds.- Harness-backed scenarios completed:
- Start at least one affected mission and confirm objective progression.
- Trigger mission success or timeout failure and validate debrief deltas.
- Buy at least one affected upgrade and confirm gameplay impact appears.
- Optional manual simulator scenarios completed when balancing changes are broad/high-risk.
- Summary documents:
- changed content entries
- balancing rationale
- any observed side effects
Common pitfalls
- Archetype/objective mismatch (content defines unsupported objective semantics).
- Rewards/penalties creating negative-credit dead-ends too early.
- Upgrade effects using keys not consumed in runtime systems.
- Changing content IDs that existing save snapshots rely on.