git clone https://github.com/Logiiiii/unity-agent-skills.git--- name: jahro-production description: > 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 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:** 1. Open **Edit → Project Settings → Player** 2. Under **Other Settings → Scripting Define Symbols** 3. 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:** 1. Open **Tools → Jahro Settings → General Settings** 2. 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: 1. Enable **Auto-disable in Release Builds** (Tier 2) — this is sufficient 2. Add **JAHRO_DISABLE** (Tier 1) in CI/CD for extra safety 3. Leave the manual toggle ON for development ## Lifecycle ### Initialization (BeforeSplashScreen) Jahro initializes via `[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSplashScreen)]`: 1. Loads settings from `Assets/Jahro/Resources/jahro-settings.asset` 2. Evaluates the three-tier disable logic 3. If disabled: logs "Jahro Console: Disabled in this build" and **exits early** — minimal overhead 4. 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: ```csharp // In a custom build script PlayerSettings.SetScriptingDefineSymbolsForGroup( BuildTargetGroup.Android, "JAHRO_DISABLE;OTHER_DEFINES"); ``` Or via command line: ```bash 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_DISABLE` is 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: ```csharp 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.Enabled` returns `false` at runtime in the Release build - [ ] `jahro-settings.asset` is 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: > 1. Build log shows "Jahro Console: Disabled in this build" > 2. Console does NOT open on ~ or triple-tap > 3. `Jahro.Enabled` returns `false` > > Then make a Development Build and confirm Jahro works normally.
1. **Define Your Core Elements:** Fill in [VIDEO_TYPE], [AUDIENCE], [KEY_MESSAGE], and other placeholders with your specific project details. Be as precise as possible—e.g., instead of "explainer video," specify "product demo for a SaaS tool targeting HR managers." 2. **Customize the Structure:** Use the shot-by-shot breakdown as a template. Adjust the number of shots, pacing, and visuals to match your brand’s style. For example, if your video is for LinkedIn, add more professional shots (e.g., a CEO testimonial) and a more formal tone. 3. **Refine the Script:** Replace placeholder dialogue with your actual messaging. Use tools like [Grammarly](https://www.grammarly.com/) to polish voiceovers or [Descript](https://www.descript.com/) to edit audio. For visuals, reference stock footage sites like [Pexels](https://www.pexels.com/) or [Artgrid](https://artgrid.io/) to find matching clips. 4. **Optimize for Platform:** Tailor the script to the platform’s requirements. For Instagram Reels, keep it under 30 seconds; for YouTube, aim for 60-90 seconds. Use platform-specific hooks (e.g., "Swipe up to learn more" for Instagram Stories). 5. **Test and Iterate:** Share the script with stakeholders or a small focus group. Use tools like [Loom](https://www.loom.com/) to create a quick mockup and gather feedback before full production. Adjust timing, messaging, or visuals based on responses.
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/Logiiiii/unity-agent-skills/tree/main/skills/jahro-productionCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
Generate a production-ready script for a [VIDEO_TYPE] (e.g., explainer video, product demo, social media ad) targeting [AUDIENCE] with the key message: '[KEY_MESSAGE]'. Include a shot-by-shot breakdown, suggested visuals, dialogue/voiceover script, and background music recommendations. Specify the ideal runtime and platform for distribution.
### **Production Script: "EcoClean Laundry Detergent – The Future of Clean"** **Video Type:** Explainer Video **Target Audience:** Eco-conscious millennials and Gen Z (ages 18-35) **Key Message:** "EcoClean uses plant-based ingredients and 90% less water to deliver powerful cleaning without harming the planet." **Runtime:** 60 seconds **Platform:** Instagram Reels, TikTok, YouTube Shorts --- #### **Shot 1 (0:00 - 0:05) – Hook (Close-up)** *Visual:* A slow-motion shot of a muddy soccer jersey being submerged in water. Text overlay: "Dirty clothes? We’ve got you covered." *Audio:* Sound of water splashing. Voiceover (VO): "Tired of harsh chemicals ruining your clothes—and the planet?" *Music:* Upbeat, modern electronic track (e.g., "Daylight" by David Kushner). #### **Shot 2 (0:05 - 0:12) – Problem (Montage)** *Visual:* Quick cuts of: - A person scrubbing a stain aggressively. - A bottle of traditional detergent with a skull-and-crossbones symbol. - A polluted river with text: "1 billion plastic bottles end up in landfills yearly." *Audio:* VO: "Most detergents are packed with toxins that fade fabrics and pollute our waterways." *Music:* Builds intensity. #### **Shot 3 (0:12 - 0:25) – Solution (Product Showcase)** *Visual:* A sleek, refillable EcoClean bottle being poured into a washing machine. Close-up of suds forming—bright green and frothy. Text overlay: "Powerful. Planet-friendly." *Audio:* VO: "Meet EcoClean: plant-based, biodegradable, and tough on stains—without the guilt." *Music:* Transition to a lighter, hopeful melody. #### **Shot 4 (0:25 - 0:45) – Benefits (Lifestyle Shots)** *Visual:* Montage of: - A family laughing as they hang freshly washed clothes on a line. - A close-up of a child’s hands holding a bright white t-shirt. - A split-screen: Left side shows a traditional detergent bottle; right side shows EcoClean’s refill pouch with text: "30% less plastic." *Audio:* VO: "EcoClean keeps your clothes vibrant, your conscience clear, and your home safer. Plus, our refill pouches cut plastic waste by 30%." *Music:* Uplifting, feel-good vibe. #### **Shot 5 (0:45 - 0:55) – Call to Action (Branding)** *Visual:* A split-screen: Left side shows a traditional detergent bottle with a red "X"; right side shows EcoClean with a green checkmark. Text overlay: "Switch today!" *Audio:* VO: "Try EcoClean today and join the clean revolution. Scan the QR code to get 20% off your first order." *Music:* Fades out with a memorable jingle. #### **Shot 6 (0:55 - 1:00) – Closing (Logo Reveal)** *Visual:* EcoClean logo appears with a tagline: "Clean never looked this good." Background fades to a serene nature shot. *Audio:* VO: "EcoClean—because the planet deserves a break too." *Music:* Ends with a soft, satisfying chord. --- **Technical Notes:** - **Color Grade:** Bright, vibrant colors with a slight teal tint to evoke freshness. - **Font:** Clean, modern sans-serif (e.g., Montserrat Bold for headings, Inter Regular for body). - **Pacing:** 12-15 cuts per minute to match Gen Z’s attention span. - **Hashtags for Social:** #EcoClean #CleanRevolution #SustainableLiving #DitchTheChemicals **Distribution:** - **Instagram Reels/TikTok:** Optimize for vertical (9:16 aspect ratio). - **YouTube Shorts:** Use the same vertical format. - **Website:** Embed with a "Shop Now" button overlay.
skills-collection
Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan