Skip to content

MuharremTozan/Agentic-Duel / .agent/skills/unity-assembly-management

unity-assembly-management

Verified

Manage 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.

assets/code/AsmdefValidator.cs.txt

View on GitHub
using UnityEditor;
using UnityEditorInternal;
using UnityEngine;
using System.Linq;

namespace UnityAssemblyManagement.Editor {
    public static class AsmdefValidator {
        [MenuItem("Tools/Ohm-Yura/Assembly/Validate Dependencies")]
        public static void ValidateAssemblies () {
            var allAsmdefs = AssetDatabase.FindAssets("t:AssemblyDefinitionAsset")
                .Select(guid => AssetDatabase.GUIDToAssetPath(guid))
                .ToList();

            foreach ( var path in allAsmdefs ) {
                var assembly = AssetDatabase.LoadAssetAtPath<AssemblyDefinitionAsset>(path);
                // In a real implementation, we would parse JSON here to check for 'Editor' platforms
                // for dependencies. For the skill asset, we provide the logic flow.
                Debug.Log($"[Assembly] Status: Validating | Data: Path={path}");
            }
            
            Debug.Log("[Assembly] Status: Validation Finished | Data: Count=" + allAsmdefs.Count);
        }
    }
}
finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the workStars: 322kUpdated Claude CodeCodexVerifiedInstall
systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixesStars: 322kUpdated Claude CodeCodexVerifiedInstall
test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation codeStars: 322kUpdated Claude CodeCodexVerifiedInstall
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: 198kUpdated Claude CodeCodexVerifiedInstall