code-writing-guide
Provides coding guidelines for Unity projects. Make sure to use this skill whenever writing, creating, editing, or modifying code files. This includes…
Diagnoses and fixes bugs using a test-first workflow (reproduce, diagnose, fix). Use this skill whenever the user reports a bug, describes unexpected behavior, or asks to investigate or fix a defect. Even if the user says "something's broken", "this isn't working", "fix this
$ npx -y skills add nowsprinting/unity-coding-skills --skill fix-bug --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/fix-bugContext preview
The summary Claude sees to decide when to auto-load this skill.
Diagnoses and fixes bugs using a test-first workflow (reproduce, diagnose, fix). Use this skill whenever the user reports a bug, describes unexpected behavior, or asks to investigate or fix a defect. Even if the user says "something's broken", "this isn't working", "fix this
name: fix-bug description: >- Diagnoses and fixes bugs using a test-first workflow (reproduce, diagnose, fix). Use this skill whenever the user reports a bug, describes unexpected behavior, or asks to investigate or fix a defect. Even if the user says "something's broken", "this isn't working", "fix this bug", or "why does X happen", load this skill to guide the full reproduce → diagnose → fix cycle. argument-hint: "[incident or failing-test-name]" license: Unlicense metadata: author: Koji Hasegawa
Guide for diagnosing and fixing bugs. This skill defines a test-first debugging workflow: reproduce the bug with a failing test, diagnose the root cause, then fix it.
This skill must be used **outside plan mode**. Before doing anything else, check the current mode:
> "This skill (`/fix-bug`) must be used outside plan mode. Please exit plan mode first."
**Recording implementation notes:** Notes for this run go in `/tmp/fix-bug-notes-$CLAUDE_CODE_SESSION_ID.md`. Immediately before your **first** append in this run — and only then — delete that file if it exists (usually it will not), so this run starts from an empty one: the session id is shared by every `/fix-bug` run in the session, so an earlier run abandoned before Step 9 would otherwise leak its notes into this one. Never delete it again afterwards, including when Step 3 sends you back to Step 1 or Step 2; those loops are part of the same run and their notes must survive.
While working through Steps 1-8, whenever one of the following occurs, immediately append a line to that file — do not wait until the end to reconstruct these from memory:
Append with `Bash` so the shell expands `$CLAUDE_CODE_SESSION_ID` — the `Write` tool cannot append and does not expand environment variables:
cat >> "/tmp/fix-bug-notes-$CLAUDE_CODE_SESSION_ID.md" <<'EOF' - **Root cause**: <one line> EOF
When a step delegates to a subagent or another skill (`test-designer` in Step 2; `test-deduplicator`, `/simplify`, and `/resolve-diagnostics` in Step 8), append the note yourself from what it returns — they do not write to this file.
> **Do not read code files during this step.** You may only read specs and design docs.
Extract the following from the user's prompt:
If any of the three cannot be determined from the prompt, use `AskUserQuestion` to ask the user before proceeding. All three must be known before moving to Step 2.
Also determine the **report type**:
Also check the relevant documentation (specs, design docs) for consistency with the user's bug report. If the documentation and the report conflict, use `AskUserQuestion` to clarify with the user which is correct. If the docs contain errors or are missing relevant information, add them to the list of files to be modified in this bug fix.
> **Skip this step** if Step 1 identified this as an **existing test failure** case. Proceed directly to Step 3.
Search the project's test code for existing tests closest to the bug scenario. These serve two purposes:
**When the bug condition involves on-screen display or a user-facing UI operation**, search for **integration tests with UI operations or visual verification tests** — the reproduction test must be at that layer, so the placement anchor and style reference must be too.
Use Explore agents to locate relevant test files and test cases.
Launch the `test-designer` agent to design the reproduction test case — do not design it in the main context; the agent is pinned to Opus so test design stays on the stronger model even when the implementation model is faster. Use the following prompt structure:
## Requirements [Bug report from Step 1: Condition / Expected / Actual. Task type: bug-fix — design a reproduction test and regression tests per the reproduction-tests section of the guide.] ## Implementation Design [Existing class/method structure of the affected production code, from the Explore results — this is the design; there is no new design for a bug fix] ## Existing Code Context [Nearby test files, test classes, and conventions found above] ## Language Convention [Project language resolved from CLAUDE.md; default English]
From the agent's output, take the test case marked `(reproduction test)`. Keep any regression test cases for Step 6 — do not implement them yet.
Then load the `test-writing-g
A Claude Code plugin for Unity development that enables coding agents to work autonomously through a test-first workflow — writing reliable, maintainable tests before production code, then iterating to completion without constant oversight.
Provides coding guidelines for Unity projects. Make sure to use this skill whenever writing, creating, editing, or modifying code files. This includes…
Creates and modifies Unity scene and prefab files. Use this skill whenever creating, editing, or modifying .unity scene files or .prefab prefab files. This…
Orchestrates the test-first implementation planning workflow for feature implementation and spec changes. Use this skill whenever plan mode is active and the…
Reviews existing test code for conformance to the test-designing-guide and test-writing-guide, then applies the refinements. Use this skill when the user wants…
Resolves IDE diagnostics (inspections and analyzer findings) at the `warning` or higher severity level for a given set of files, then applies the solution's…
Provides guidelines for running Unity tests using the run_unity_tests tool. Make sure to use this skill whenever running, executing, or re-running tests on the…