A Civilization-style strategy game about governing Israel from 15 May 1948. Real ministers, real map, every fact sourced. Unity + deterministic C# sim.
docs: add a UX writing skill with implementation-backed examples (#1137)
Jeremy Hooveraec492560754
diff --git a/.github/skills/statecraft-ux-writing/SKILL.md b/.github/skills/statecraft-ux-writing/SKILL.mdnew file mode 100644index 000000000..c3eee38cf--- /dev/null+++ b/.github/skills/statecraft-ux-writing/SKILL.md@@ -0,0 +1,41 @@+---+name: statecraft-ux-writing+description: 'Draft or review Statecraft: Israel interface labels, warnings, tooltips, help and onboarding against the implemented player flow. Use for new UI copy or improvements to existing strings, including English/Hebrew review handoffs.'+---++# Statecraft UX writing++Use this workflow for interface copy. For historical events, use the historical-content and writing-voice skills and their sourcing rules.++## Establish the player need++1. Read [CONTRIBUTING](../../../CONTRIBUTING.md), the [writing guide](../../../docs/WRITING_GUIDE.md) and [content policy](../../../docs/CONTENT_POLICY.md). Historical claims also follow [sourcing guidance](../../../docs/SOURCING_FOR_CONTRIBUTORS.md).+2. Find the actual string, its caller and the simulation condition behind it. Read the surrounding screen and the next available action. A label alone cannot establish how a feature works.+3. State what the player needs to understand or do. Separate a wording problem from missing functionality or an unresolved design decision.+4. Check for current UX guidance. [PR #970](https://github.com/eyalgolan/statecraft-israel/pull/970) proposes a UI guide and glossary; treat them as proposals until accepted. Use accepted repository guidance when available, and identify terminology choices that still need the owner's decision.++## Draft from the implemented behavior++- Use concrete words for the action, consequence and available recovery step. Explain why an action is unavailable when the player can act on that reason.+- Do not promise a recovery action, outcome, undo option or safety guarantee the code does not provide.+- Read warnings as part of the full flow: what happened, what the player can still do, and whether continuing has consequences.+- Keep each message proportionate to its screen. Remove technical detail unless it changes the player's decision; do not expose internal identifiers or exceptions.+- Preserve localization keys, formatting tokens such as `{0}`, office placeholders and supported markup. Do not replace a dynamic value with a fixed one.+- Use the same term for the same concept. Flag conflicting existing usage rather than silently expanding a small copy change into a glossary migration.+- Keep mechanics in the simulation. A prose change cannot repair a simulation or presenter bug.+- Source historical claims before adding them. Never invent quotes or mark AI-assisted drafts as human reviewed.++## Produce a reviewable change++For each string, give the player need, current wording, candidate wording, implementation evidence and review status. See the [worked examples](references/worked-examples.md).++Apply changes to the real localization file when the task authorizes it. A proposal document is useful for unresolved choices, but does not replace implementing agreed copy.++English and Hebrew need to convey the same behavior and preserve tokens. Identify whether each language has had a native review. Do not treat a machine translation as approved Hebrew, change human review fields, or claim paired review when only English was edited. Keep a PR in draft if a required language or runtime gate is outstanding.++## Validate and hand off++1. Inspect the diff for keys, token parity and scope. Read the complete message in its screen context, including disabled states and recovery paths.+2. Run the repository's applicable validation commands. Changes under `unity/` require an Unreleased changelog entry and local Unity EditMode results under CONTRIBUTING. Record an unavailable or failing check accurately; passing YAML checks does not prove the UI fits or the Hebrew reads naturally.+3. Include before/after wording, evidence and outstanding owner/native decisions in the PR. Disclose AI assistance and leave personal contributor declarations for the contributor.+4. After acceptance, update examples or terminology references to the accepted wording. An unmerged example remains a proposal.diff --git a/.github/skills/statecraft-ux-writing/references/worked-examples.md b/.github/skills/statecraft-ux-writing/references/worked-examples.mdnew file mode 100644index 000000000..e03ab0089--- /dev/null+++ b/.github/skills/statecraft-ux-writing/references/worked-examples.md@@ -0,0 +1,34 @@+# Worked UX copy proposals++These examples were checked against main at `e1251750` on 19 October 2026. They illustrate the workflow; they are proposed English wording, not an accepted glossary or native-reviewed Hebrew. Recheck the current implementation before reusing them.++## Changed save content++- **Player need:** understand why loading a save might produce different events.+- **Key:** `save.warning.content_changed` in [English strings](../../../../unity/Assets/UI/strings.en.yaml).+- **Current:** This save is from an earlier version of the game, so events may unfold a little differently.+- **Candidate:** The game has changed since this save was made. Events may unfold differently.+- **Evidence:** [GameSession](../../../../sim/Statecraft.Sim/GameSession.cs) compares the saved content hash with the current content hash. A mismatch establishes changed content, not which version is older.+- **Review:** owner wording choice and paired Hebrew review pending.++## A restored game differs++- **Player need:** understand the warning and decide whether to continue the restored game.+- **Key:** `save.warning.replay_differs` in [English strings](../../../../unity/Assets/UI/strings.en.yaml).+- **Current:** The game was restored, but not exactly as it was saved.+- **Candidate:** Some parts of your restored game differ from the save. Check your position before continuing.+- **Evidence:** [GameSession](../../../../sim/Statecraft.Sim/GameSession.cs) can return a changed-content replay with a different final hash. [GameStart](../../../../unity/Assets/Scripts/UI/GameStart.cs) resumes the loaded session and presents its warnings. The message must not claim the save is unusable or promise a repair button.+- **Review:** owner wording choice and paired Hebrew review pending; inspect the full warning in the load flow.++## A map action limit++- **Player need:** understand when another map action becomes possible.+- **Key:** `info.map_action_reason.turn_cap` in [English strings](../../../../unity/Assets/UI/strings.en.yaml).+- **Current:** No more than {0} map actions in one turn+- **Candidate:** The limit is {0} map actions per turn. Try again next turn.+- **Evidence:** [MapActions](../../../../sim/Statecraft.Sim/MapActions.cs) counts actions for the current turn date. A new date resets that count; other placement constraints can still apply. Preserve `{0}` and do not promise that the placement will succeed next turn.+- **Review:** owner wording choice and paired Hebrew review pending; inspect the message beside the unavailable action.++## Recording the next example++Use the same fields: player need, key or screen, current wording, candidate, evidence and review status. For new content, record the implemented entry point instead of inventing a before state. Keep accepted examples distinct from proposals, with the accepting PR as evidence.