MuharremTozan/Agentic-Duel / .agent/skills/unity-assembly-management
unity-assembly-management
VerifiedManage project boundaries using Assembly Definitions (.asmdef) for faster compile times and modular architecture. Based on the patterns by Adam Myhre. Enforces responsibility-based organization and handles Runtime/Editor/Tests splits.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 1.2 KB |
| assets/code/AsmdefScaffolder.cs.txt | markdown | 1.7 KB |
| assets/code/AsmdefTemplate.json.txt | markdown | 610 B |
| assets/code/AsmdefValidator.cs.txt | markdown | 1023 B |
| references/guide.md | markdown | 2.1 KB |
assets/code/AsmdefScaffolder.cs.txt
View on GitHubusing UnityEditor;
using UnityEngine;
using System.IO;
namespace UnityAssemblyManagement.Editor {
public static class AsmdefScaffolder {
[MenuItem("Tools/Ohm-Yura/Assembly/Scaffold Module")]
public static void ScaffoldModule () {
string path = EditorUtility.OpenFolderPanel("Select Module Root", "Assets", "");
if ( string.IsNullOrEmpty(path) ) return;
string moduleName = Path.GetFileName(path);
CreateAssembly(Path.Combine(path, "Runtime"), moduleName);
CreateAssembly(Path.Combine(path, "Editor"), moduleName + ".Editor", true);
CreateAssembly(Path.Combine(path, "Tests"), moduleName + ".Tests", false, true);
AssetDatabase.Refresh();
Debug.Log($"[Assembly] Status: Scaffolding Complete | Data: Module={moduleName}");
}
private static void CreateAssembly (string folderPath, string name, bool isEditor = false, bool isTest = false) {
if ( !Directory.Exists(folderPath) ) Directory.CreateDirectory(folderPath);
string asmdefPath = Path.Combine(folderPath, name + ".asmdef");
if ( File.Exists(asmdefPath) ) return;
string content = $@"{{
""name"": ""{name}"",
""rootNamespace"": ""{name}"",
""references"": [],
""includePlatforms"": [{(isEditor ? "\"Editor\"" : "")}],
""excludePlatforms"": [],
""allowUnsafeCode"": false,
""overrideReferences"": false,
""precompiledReferences"": [],
""autoReferenced"": true,
""defineConstraints"": [],
""versionDefines"": [],
""noEngineReferences"": false
}}";
File.WriteAllText(asmdefPath, content);
}
}
}
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the work | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation code | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |