code-writing-guide Skill
Provides coding guidelines for Unity projects. Make sure to use this skill whenever writing, creating, editing, or modifying code files. This includes implementing new features, fixing bugs, refactoring, adding tests, or any task that results in code changes. Even for small edits or one-line fixes, load this skill to ensure project conventions are followed.
- GitHub Stars
- 20
- Dateien
- 6
- Letzter Commit
- 12. Nov. 2026
- Lizenz
- Unlicense
- Erlaubte Tools
- —
Was macht der code-writing-guide Skill?
code-writing-guide ist ein Agent Skill. Provides coding guidelines for Unity projects. Make sure to use this skill whenever writing, creating, editing, or modifying code files. This includes implementing new features, fixing bugs, refactoring, adding tests, or any task that results in code changes. Even for small edits or one-line fixes, load this skill to ensure project conventions are followed.
So installierst du den code-writing-guide Skill
Jeder Befehl kopiert den Skill-Ordner in das Skills-Verzeichnis des Clients. Starte den Client neu oder beginne eine neue Session, um ihn zu laden.Den code-writing-guide Skill in Plugin installieren
/plugin marketplace add nowsprinting/unity-coding-skills /plugin install unity-coding-skills@nowsprinting-unity-coding-skills
Den code-writing-guide Skill in Claude Code installieren
~/.claude/skills/code-writing-guide/SKILL.md
$ npx degit nowsprinting/unity-coding-skills/skills/code-writing-guide ~/.claude/skills/code-writing-guideDen code-writing-guide Skill in Claude Code (project) installieren
.claude/skills/code-writing-guide/SKILL.md
$ npx degit nowsprinting/unity-coding-skills/skills/code-writing-guide .claude/skills/code-writing-guideDen code-writing-guide Skill in Codex installieren
~/.agents/skills/code-writing-guide/SKILL.md
$ npx degit nowsprinting/unity-coding-skills/skills/code-writing-guide ~/.agents/skills/code-writing-guideDen code-writing-guide Skill in Gemini CLI installieren
~/.gemini/skills/code-writing-guide/SKILL.md
$ npx degit nowsprinting/unity-coding-skills/skills/code-writing-guide ~/.gemini/skills/code-writing-guideDen code-writing-guide Skill in Claude.ai installieren
npx degit nowsprinting/unity-coding-skills/skills/code-writing-guide code-writing-guide && zip -r code-writing-guide.zip code-writing-guide # claude.ai → Customize → Skills → + → Create skill → Upload a skill → code-writing-guide.zip
SKILL.md
Auf GitHub ansehenGuide for writing code in Unity projects.
Rules
- Before modifying any code file, check if the editor is in Play Mode. If it is, stop it using the
unity_play_controltool first — Play Mode may skip recompilation, leaving stale code active. - When a change is a structural refactoring — renaming a symbol, extracting a method/interface/base class, changing a method signature, moving a type to another namespace, or deleting a symbol — use the Rider MCP refactoring tools (
rename_refactoring,extract_method,extract_interface,extract_base_class,change_api_signature,move_type_to_namespace,reorganize_namespaces,safe_delete) instead of text edits. They update all references and call sites across the solution. - Never create
.metafiles. Unity editor creates them automatically. - When editing (creating or modifying) scene (
.unity) or prefab (.prefab) files, use theedit-sceneskill. - When instantiating a prefab multiple times, give each instance a unique
GameObject.name; otherwise, automated tests cannot identify a specific instance. Use a concrete name (e.g.,"<PrefabName>(Hero)") or append an index (e.g.,"<PrefabName>(0)").
Resources
Read the appropriate resource file based on the situation:
- Before writing or modifying any code file: Read
${CLAUDE_SKILL_DIR}/resources/coding-guideline.md - Before writing or modifying any code file: Read
${CLAUDE_SKILL_DIR}/resources/unity-modern-guidelines.md - Before writing or modifying MonoBehaviour lifecycle or event-handling methods (Awake, Start, OnEnable, OnDisable, OnDestroy, Update, FixedUpdate, LateUpdate, OnCollision*, OnTrigger*, OnGUI, OnMouse*, OnBecame*, OnPreCull, OnPreRender, OnPostRender, OnRenderImage, OnRenderObject, OnWillRenderObject, OnAnimatorMove, OnAnimatorIK, OnDrawGizmos): Read
${CLAUDE_SKILL_DIR}/resources/unity-event-functions.md - Before referencing an API, verifying a package behavior, or looking up documentation: Read
${CLAUDE_SKILL_DIR}/resources/unity-references.md - When resolving diagnostics or handling code review feedback: Read
${CLAUDE_SKILL_DIR}/resources/diagnostics-review-feedback.md
Dateien in diesem Skill
6code-writing-guide Skill-Fragen
Wie installiere ich den code-writing-guide Skill in Claude Code?
Führe npx degit nowsprinting/unity-coding-skills/skills/code-writing-guide ~/.claude/skills/code-writing-guide aus. Claude Code lädt Skills aus ~/.claude/skills (alle Projekte) oder .claude/skills (ein Projekt) und nutzt einen Skill, wenn seine Beschreibung zur Aufgabe passt.
Welche Clients können den code-writing-guide Skill nutzen?
Jeder Client, der das Agent Skills-Format liest: Claude Code, Codex, Gemini CLI und claude.ai (als ZIP hochladen). Skripte im Skill laufen nur dort, wo der Client Codeausführung erlaubt.