core/internal/
├── domain/ # Entidades puras (0 deps)
│ ├── project.go # Project, Environment, CLIProfile, ScriptHook
│ ├── skill.go # Skill, SkillResult, SkillCategory
│ └── audit.go # AuditEntry
│
├── port/ # Interfaces (contratos)
│ └── ports.go # CLIProfiler, ConfigReader, AuditLogger, ScriptGenerator
│
├── service/ # Lógica de negocio
│ └── orchestrator.go # Orchestrator: skills + hooks pre/post
│
└── adapter/ # Implementaciones
├── cli/ # Comandos Cobra
│ ├── root.go # Root command + banner
│ ├── init.go # Interactive project init
│ ├── switch.go # Context switch (main flow)
│ ├── list.go # List projects from YAML
│ └── profiles.go # Show CLI profiles
├── config/
│ └── yaml_reader.go # Lee nexus.yaml (flat structure)
├── executor/ # CLI Profilers
│ ├── github.go # gh auth switch
│ ├── aws.go # aws sso login
│ ├── supabase.go # supabase link
│ ├── vercel.go # vercel switch
│ └── mongo.go # atlas config set
├── audit/
│ └── jsonl_logger.go # Append-only JSONL file
└── script/
└── env_generator.go # PowerShell/Bash env injection