jahro-commands

jahro-commands is a skill for Claude Code, Codex from jahro-console/unity-agent-skills. It costs 66 tokens per session (2,012 once invoked), scanned A, original, MIT.

A workflow for analyzing C# classes and adding JahroCommand annotations so selected Unity methods can be called at runtime.

In plain words
What is it for?
Use it to add runtime cheats, debug commands, state changes, or diagnostics to Unity classes, then check them in Unity’s Commands tab.
Why use it?
It helps expose suitable testing, tuning, and diagnostic actions without manually working out the annotation syntax or object registration.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to add runtime cheats, debug commands, state changes, or diagnostics to Unity classes, then check them in Unity’s Commands tab.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jahro-console/unity-agent-skills/jahro-commands
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add jahro-console/unity-agent-skills --skill jahro-commands
Clone the repo
git clone --depth 1 https://github.com/jahro-console/unity-agent-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for jahro-commands

README.md
[![agentmods](https://agentmods.dev/badge/skills/jahro-console/unity-agent-skills/jahro-commands/github.svg)](https://agentmods.dev/skills/jahro-console/unity-agent-skills/jahro-commands)
Your own site
<a href="https://agentmods.dev/skills/jahro-console/unity-agent-skills/jahro-commands"><img src="https://agentmods.dev/badge/skills/jahro-console/unity-agent-skills/jahro-commands/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for jahro-commands

Your own site · 80×15
<a href="https://agentmods.dev/skills/jahro-console/unity-agent-skills/jahro-commands"><img src="https://agentmods.dev/badge/skills/jahro-console/unity-agent-skills/jahro-commands.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,012 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00066 $0.02012
Opus 5 $0.00033 $0.01006
Sonnet 5 $0.00013 $0.00402
Haiku 4.5 $0.00007 $0.00201

Measured 11d ago against content hash 25dbff184d8c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

jahro-commands scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

skills/jahro-commands/SKILL.md · 244 lines

How it starts

The opening of the file, as written. The whole thing — 244 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Jahro Commands

Help users add runtime-callable debug commands to Unity code using Jahro's [JahroCommand] attribute system.

Workflow

  1. Analyze the user's code — identify methods that are good command candidates
  2. Generate correct [JahroCommand] attributes with proper syntax
  3. Add registration if needed (instance methods require RegisterObject)
  4. VERIFY — "Enter Play Mode, press ~, check the Commands tab"

Analyzing Code for Command Candidates

When the user shares a class, identify methods worth exposing as commands:

Good candidates:

  • Public methods that change game state (damage, heal, spawn, teleport, reset)
  • Methods used for testing and tuning (set difficulty, add currency, skip level)
  • Diagnostic methods (print stats, dump state, force GC)
  • Methods with simple parameter types (int, float, bool, string, Vector2, Vector3, enum)

Skip these:

  • Unity lifecycle methods (Update, Start, Awake, OnEnable, OnDisable, OnDestroy)
  • Private implementation details the developer wouldn't want to call manually
  • Methods with complex parameter types (custom classes, interfaces, delegates)
  • Property getters/setters (use [JahroWatch] for monitoring instead)

Attribute Syntax

[JahroCommand("command-name", "GroupName", "Short description of what it does")]

Constructor: [JahroCommand(string name, string group, string description)]

All parameters are optional. Defaults: name = method name, group = "Default", description = "".

Naming conventions

  • Command name: kebab-case ("spawn-enemy", "add-gold", "set-difficulty")
  • Group name: PascalCase or Title Case ("Cheats", "Spawning", "Game")
  • Description: Imperative, concise ("Spawn enemy at position", "Add gold to player")

Complete example

using JahroConsole;
using UnityEngine;

public class PlayerController : MonoBehaviour
{
    public float health = 100f;

    [JahroCommand("heal", "Player", "Restore health by amount")]
    public void Heal(float amount) { health = Mathf.Min(health + amount, 100f); }

    [JahroCommand("teleport", "Player", "Teleport to position")]
    public void Teleport(Vector3 position) { transform.position = position; }

    [JahroCommand("reset-pos", "Player", "Reset to origin")]
    public void ResetPosition() { transform.position = Vector3.zero; }

    void OnEnable()  => Jahro.RegisterObject(this);
    void OnDisable() => Jahro.UnregisterObject(this);
}

Read the full file on GitHub · 244 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 244 lines · 66 tokens per session scan A 25dbff184d8c

Subscribe to this mod's changes

jahro-commands is a skill published in the GitHub repository jahro-console/unity-agent-skills (16 stars, last pushed 5mo ago), licensed MIT. It adds 66 tokens to every session and 2,012 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

ui-click-debug

A Unity troubleshooting skill for UI elements that do not respond to clicks. It uses a runtime raycast, a test that shows which object receives a pointer event, to find obstructions or interaction settings.

yangfch3/Unity-MCP-Server · 54 tokens

error-diagnosis

A Unity troubleshooting skill for errors shown in the Unity Console, the editor window that displays messages and failures. It reads the error and nearby logs, then checks related code to identify the cause.

yangfch3/Unity-MCP-Server · 124 tokens

assets-shader-get-data

Get detailed data about a shader asset — properties, subshaders, passes, compilation messages, and supported status. Supports token-saving path-scoped reads via paths or viewQuery. Use 'assets-find' with t:Shader or 'assets-shader-list-all' to locate the shader first.

IvanMurzak/Unity-MCP · 70 tokens

object-modify

Modify a Unity UnityEngine.Object's serializable fields/properties. Three modification surfaces are available (objectDiff, pathPatches, jsonPatch) — see the skill body. Use 'object-get-data' first to inspect the object structure.

IvanMurzak/Unity-MCP · 57 tokens

script-execute

Compiles and executes C# code dynamically using Roslyn. Supports a full-code mode (default) and a body-only mode — see the skill body for the difference and for how to pass Unity object references as parameters.

IvanMurzak/Unity-MCP · 48 tokens

unity-skill-create

Create a new skill (MCP tool) for the Unity Editor by writing a C# (.cs) file that Unity compiles into the project. After compilation the new tool becomes callable through MCP. The file must be a partial class decorated with [AiToolType], each tool method must be decorated with [AiTool], the class name should match…

IvanMurzak/Unity-MCP · 142 tokens