Unity Agent 调试技能

使用 Jahro 构建结构化 Unity 调试流程。

Jahro 的八技能包覆盖配置、日志、运行命令、观察器、快照、生产配置、迁移和排障。

适用场景

  • 添加结构化 Unity 日志
  • 通过命令与观察器检查运行状态
  • 配置或排查 Jahro

使用方法

提供 Unity 项目和调试问题,先通过配置技能准备支持的 Unity、Jahro 版本,再选择日志、状态检查或生产指导。

Skills

  • jahro-commands

    Analyzes C# classes and generates [JahroCommand] attributes with correct syntax, RegisterObject patterns, and group organization. Use when the user wants to add runtime commands, cheats, or debug actions to Unity classes, or mentions JahroCommand, console commands, runtime cheats, or debug actions.

    jahro-console/unity-agent-skills
  • jahro-logging

    Reviews and improves Debug.Log usage in Unity C# projects following structured logging principles: context tags, severity contracts, boundary-based placement, and criticality tiers. Detects common antipatterns (naked Debug.Log, logging in Update, stringly-typed errors), adds missing logs at system/state/error/external boundaries, and scaffolds project-wide logging infrastructure (LogTag constants, formatting helpers, conventions). Use when the user mentions logging, Debug.Log, log messages, debugging, or asks to improve observability in Unity code.

    jahro-console/unity-agent-skills
  • jahro-migration

    Analyzes existing debug systems (IMGUI menus, custom loggers, cheat frameworks, performance HUDs) and generates incremental migration plans to Jahro equivalents. Use when the user wants to replace a custom debug UI, migrate from an existing console or cheat system, switch to Jahro, or has OnGUI debug code they want to modernize.

    jahro-console/unity-agent-skills
  • jahro-production

    Configures Jahro lifecycle controls for safe production deployment including JAHRO_DISABLE, auto-disable, and build validation. Use when the user mentions production builds, release builds, disabling Jahro, shipping, CI/CD, lifecycle controls, or production safety.

    jahro-console/unity-agent-skills
  • jahro-setup

    Detects Jahro in Unity projects and guides installation, API key configuration, and feature overview. Use when the user mentions Jahro setup, installation, getting started, debug console, or asks what Jahro can do. Also triggers when no Jahro references are found in a Unity project and the user asks about debugging.

    jahro-console/unity-agent-skills
  • jahro-snapshots

    Guides snapshot mode selection, capture workflows, QA sharing, and team setup for Jahro Snapshots. Use when the user mentions snapshots, bug capture, sharing logs, streaming, recording, QA workflow, team collaboration, or wants to share debugging sessions with their team.

    jahro-console/unity-agent-skills
  • jahro-troubleshooting

    Diagnoses common Jahro issues using decision trees: commands not appearing, watcher not updating, console not opening, snapshots failing, launch button missing. Use when the user reports something not working, missing, broken, or unexpected with Jahro, or when generated Jahro code doesn't behave as expected.

    jahro-console/unity-agent-skills
  • jahro-watcher

    Analyzes C# fields and properties and generates [JahroWatch] attributes with groups and performance-safe patterns. Use when the user wants to monitor variables at runtime, add watchers, track game state, replace Debug.Log polling, or mentions JahroWatch, real-time inspection, or variable monitoring.

    jahro-console/unity-agent-skills