Review Wanjie Cultivation Record game logic in Claude Code
Check directory and type conventions, reuse, and game-function purity, including randomness and state mutation.
中文Install in Claude Code
The Wanjie Cultivation Record repository in Claude Code with a local change and its existing game-logic module.
- Review `.claude/skills/code-review/SKILL.md` and its requirements at the pinned GitHub commit.
- Create `.claude/skills/code-review/` in your project and save the reviewed file as `.claude/skills/code-review/SKILL.md`.
- Start Claude Code from that project's root, then select `/code-review` in the slash menu.
Example task
A fictional loot change calls Math.random() directly in the game-logic module. The fixture is `{feature:'loot',random:'Math.random()',seed:27}`. Replays with the same seed must agree.What to check
Report `issue=implicit randomness; suggestedInput=seed`. Recommend accepting a seed and leaving the input state intact. Verify the same character state and seed produce the same loot.
Original SKILL.md on GitHub · Updated
Frequently asked question
How do I make loot reproducible with the same input?
Pass randomness as an explicit seed. Keep the game function independent of UI and outside state, and compare results for the same character state and seed.