jahro-production
关于
This skill configures Jahro's production safety controls to prevent debugging tools from leaking into release builds. It sets up a three-tier disable mechanism including compile-time flags, auto-disable for release builds, and runtime switches. Use it when handling production deployments, CI/CD pipelines, or implementing lifecycle controls.
快速安装
Claude Code
推荐npx skills add jahro-console/unity-agent-skills -a claude-code/plugin add https://github.com/jahro-console/unity-agent-skillsgit clone https://github.com/jahro-console/unity-agent-skills.git ~/.claude/skills/jahro-production在 Claude Code 中复制并粘贴此命令以安装该技能
技能文档
Jahro Production Readiness
Help users configure Jahro for safe production deployment so debugging tools never leak into release builds.
Three-Tier Disable Mechanism
Jahro evaluates these conditions at startup in priority order:
1. JAHRO_DISABLE defined? → Disabled (highest priority)
2. Auto-disable ON + Release build? → Disabled
3. Enable Jahro switch → Uses switch value (lowest priority)
Tier 1: JAHRO_DISABLE Preprocessor Define
What: Compile-time disable. When defined, Jahro exits at initialization regardless of all other settings.
How to set:
- Open Edit → Project Settings → Player
- Under Other Settings → Scripting Define Symbols
- Add
JAHRO_DISABLE(semicolon-separated if other defines exist:MY_DEFINE;JAHRO_DISABLE)
When to use: CI/CD pipelines, absolute control, platform-specific disabling (set per-platform defines).
Validation: Build logs show "Jahro Console: Disabled in this build".
Tier 2: Auto-disable in Release Builds
What: Runtime check. Jahro checks Debug.isDebugBuild at startup. If false (Release build) and this setting is ON, Jahro disables itself.
How to set:
- Open Tools → Jahro Settings → General Settings
- Enable Auto-disable in Release Builds
When to use: Recommended default for most projects. Development and Debug builds keep Jahro active; Release builds automatically disable it.
Validation: Same build log message when triggered.
Tier 3: Manual Enable/Disable
What: The master toggle in Jahro Settings.
How to set: Tools → Jahro Settings → General Settings → Enable Jahro
When to use: Temporarily disable during development (e.g., testing without Jahro interference).
Recommendation
For most projects:
- Enable Auto-disable in Release Builds (Tier 2) — this is sufficient
- Add JAHRO_DISABLE (Tier 1) in CI/CD for extra safety
- Leave the manual toggle ON for development
Lifecycle
Initialization (BeforeSplashScreen)
Jahro initializes via [RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSplashScreen)]:
- Loads settings from
Assets/Jahro/Resources/jahro-settings.asset - Evaluates the three-tier disable logic
- If disabled: logs "Jahro Console: Disabled in this build" and exits early — minimal overhead
- If enabled: sets up logging infrastructure, then continues to runtime boot
The BeforeSplashScreen timing ensures Jahro is ready before any game code runs, so it captures logs from the very start.
Runtime Boot
After initialization (if enabled):
- Initializes console storage and UI view
- Verifies API key, starts session
- Injects UI manager (window, tabs, launch button)
- Binds hotkeys and mobile activation
Shutdown
Triggered on app quit, assembly reload, or explicit Jahro.Release():
- Saves console state (window size, position, favorites)
- Disposes logger, destroys UI
- Ends Jahro session
CI/CD Guidance
Setting JAHRO_DISABLE per build configuration
In your build script or CI/CD pipeline:
// In a custom build script
PlayerSettings.SetScriptingDefineSymbolsForGroup(
BuildTargetGroup.Android,
"JAHRO_DISABLE;OTHER_DEFINES");
Or via command line:
unity -batchmode -executeMethod Build.PerformReleaseBuild \
-define "JAHRO_DISABLE"
Build log validation
After a Release build, verify Jahro is properly disabled:
// Expected in build log output:
Jahro Console: Disabled in this build
If this message is absent and Jahro was expected to be disabled, check:
JAHRO_DISABLEis in the correct platform's Scripting Define Symbols- Auto-disable is ON and the build is actually a Release build (not Development)
Runtime Validation Code
Add this to verify Jahro's state in a build:
void Start()
{
#if JAHRO_DISABLE
Debug.Log("JAHRO_DISABLE is defined — Jahro stripped at compile time");
#else
Debug.Log($"Jahro.Enabled: {Jahro.Enabled}");
if (Jahro.Enabled)
Debug.LogWarning("Jahro is ENABLED in this build — is this intentional?");
#endif
}
Production Readiness Checklist
Use this checklist before shipping:
- Auto-disable in Release Builds is ON in Tools → Jahro Settings
- (Optional) JAHRO_DISABLE added to Scripting Define Symbols for release platform
- Build configuration is Release (not Development Build)
- Build log contains "Jahro Console: Disabled in this build"
- Test the Release build: pressing ~ or triple-tap does NOT open console
-
Jahro.Enabledreturnsfalseat runtime in the Release build -
jahro-settings.assetis committed to version control with correct settings - API key is NOT exposed in public builds (Jahro handles this — when disabled, no network calls are made)
Role-Based Access (Team Projects)
For teams using the Jahro web console:
| Role | Permissions |
|---|---|
| Owner | Billing, subscription, team settings, role assignment, ownership transfer |
| Admin | Manage members (except Owner), configure integrations, access all content |
| Member | Create/view/edit snapshots, interact with assigned content |
Configure roles at console.jahro.io → Team Settings.
Contextual Awareness
| Pattern | Suggestion |
|---|---|
| User mentions "release build" or "shipping" | Guide through production checklist |
| User mentions CI/CD or build pipeline | Show JAHRO_DISABLE in build scripts |
| User has JAHRO_DISABLE but expects Jahro to work | Explain priority: define overrides everything |
| User asks about performance in production | Reassure: disabled Jahro exits early with near-zero overhead |
Verification
Verify: Make a Release build (not Development Build). Run it. Confirm:
- Build log shows "Jahro Console: Disabled in this build"
- Console does NOT open on ~ or triple-tap
Jahro.EnabledreturnsfalseThen make a Development Build and confirm Jahro works normally.
GitHub 仓库
相关推荐技能
content-collections
元Content Collections 是一个 TypeScript 优先的构建工具,可将本地 Markdown/MDX 文件转换为类型安全的数据集合。它专为构建博客、文档站和内容密集型 Vite+React 应用而设计,提供基于 Zod 的自动模式验证。该工具涵盖从 Vite 插件配置、MDX 编译到生产环境部署的完整工作流。
polymarket
元这个Claude Skill为开发者提供完整的Polymarket预测市场开发支持,涵盖API调用、交易执行和市场数据分析。关键特性包括实时WebSocket数据流,可监控实时交易、订单和市场动态。开发者可用它构建预测市场应用、实施交易策略并集成实时市场预测功能。
creating-opencode-plugins
元该Skill帮助开发者创建OpenCode插件,用于接入命令、文件、LSP等25+种事件。它提供了插件结构、事件API规范和JavaScript/TypeScript实现模式,适合需要拦截操作、扩展功能或自定义事件处理的场景。开发者可通过它快速构建响应式模块来增强OpenCode AI助手的能力。
sglang
元SGLang是一个专为LLM设计的高性能推理框架,特别适用于需要结构化输出的场景。它通过RadixAttention前缀缓存技术,在处理JSON、正则表达式、工具调用等具有重复前缀的复杂工作流时,能实现极速生成。如果你正在构建智能体或多轮对话系统,并追求远超vLLM的推理性能,SGLang是理想选择。
