Test plan

From MillenniumDawn/Millennium-Dawn · View interactive version

Test plan is an AI agent skill from the GitHub repository MillenniumDawn/Millennium-Dawn. Generate an approximate playthrough test plan for the current branch. Run after /open-pr to attach a test plan, or standalone to draft test steps for a diff.

How to use this skill

Skill file

Generate an approximate playthrough test plan for the current branch. The model cannot run the game, so the output is a draft the human verifies and trims.

Arguments (optional, space-separated):

Requested arguments: $ARGUMENTS

Steps

1. Gather context

git rev-parse --abbrev-ref HEAD
git log origin/main..HEAD --oneline
git diff origin/main...HEAD --stat
git diff origin/main...HEAD

If the branch has no commits ahead of main, stop: "No commits ahead of main, nothing to test."

For each issue number in $ARGUMENTS, run gh issue view <N> --repo MillenniumDawn/Millennium-Dawn --json number,title,body to label which checks cover which issue. If gh errors, skip that number.

2. Derive the tests

From the diff, identify the affected country tags and systems (focus tree, events, decisions, ideas, AI, GUI, etc.). For each, infer the concrete in-game action a tester would take and the outcome they should confirm. Group checks into playthroughs keyed by country tag and start year (a tester loads one save and runs all its checks together). Keep every check grounded in what actually changed in the diff. Do not invent coverage for untouched systems.

3. Emit the test plan block

Use this exact structure:

### Test plan

**Playthrough A: <TAG> <year> (covers #N, #M)**

<phase header, e.g. "Game start, before unpausing:">

- [ ] `tag <TAG>`, <action>, confirm <expected outcome> (#N).
- [ ] <next checkbox> (#M).

<next phase header, e.g. "Mid-game checks (advance several in-game weeks first):">

- [ ] <action>, confirm <expected outcome> (#N).

**Playthrough B: <TAG> <year> (covers #X)**

- [ ] <action>, confirm <expected outcome> (#X).

Rules:

4. Output

  1. Print the test plan block for the user to paste.
  2. If a PR already exists for the branch (gh pr view --repo MillenniumDawn/Millennium-Dawn --json number,body), offer to add the ### Test plan section to the PR body via gh pr edit, above the closing BLUF line. Do not overwrite an existing test plan without confirmation.
  3. State plainly that the plan is approximate and needs human review before it is trusted.
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.