jahro-logging

jahro-logging is a skill for Claude Code, Codex from jahro-console/unity-agent-skills. It costs 111 tokens per session (4,567 once invoked), scanned A, original, MIT.

A set of rules for writing and improving logs in Unity C# projects. It covers consistent labels, severity levels, useful context, and where logs should be placed.

In plain words
What is it for?
Use it when adding or reviewing Debug.Log, Debug.LogWarning, and Debug.LogError calls. It helps structure messages around system events, state changes, failures, and external operations.
Why use it?
It makes logs easier to filter and understand when diagnosing errors or unexpected behaviour. It helps avoid noisy logs, such as messages written on every frame in Update.

Skill for Claude CodeCodex

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

Good fit Use it when adding or reviewing Debug.Log, Debug.LogWarning, and Debug.LogError calls. It helps structure messages around system events, state changes, failures, and external operations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jahro-console/unity-agent-skills/jahro-logging
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-logging
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-logging

README.md
[![agentmods](https://agentmods.dev/badge/skills/jahro-console/unity-agent-skills/jahro-logging/github.svg)](https://agentmods.dev/skills/jahro-console/unity-agent-skills/jahro-logging)
Your own site
<a href="https://agentmods.dev/skills/jahro-console/unity-agent-skills/jahro-logging"><img src="https://agentmods.dev/badge/skills/jahro-console/unity-agent-skills/jahro-logging/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-logging

Your own site · 80×15
<a href="https://agentmods.dev/skills/jahro-console/unity-agent-skills/jahro-logging"><img src="https://agentmods.dev/badge/skills/jahro-console/unity-agent-skills/jahro-logging.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 111 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,567 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.00111 $0.04567
Opus 5 $0.00056 $0.02284
Sonnet 5 $0.00022 $0.00913
Haiku 4.5 $0.00011 $0.00457

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

Security

Grade A, and why

jahro-logging 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 10d 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-logging/SKILL.md · 456 lines

How it starts

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

Unity Logging Best Practices

Help developers implement effective, structured logging in Unity C# projects. This skill is principle-driven and tool-agnostic — all guidance works with raw Debug.Log. Jahro is mentioned where it adds specific value, not as a requirement.

Passive Rules (Always Apply)

When writing or editing Unity C# code, silently apply all of the following rules.

Structured format

Every log message follows this structure:

[Tag] Action — key=value, key=value

Examples:

[Save] File written — path=slot_01.sav, size=1.2MB, duration=340ms
[Network] Connection timeout — host=192.168.1.1, attempts=3, elapsed=15.2s
[Inventory] Item added — item=sword_01, slot=3, player=Player_7

Never write narrative-style logs like "The inventory system tried to add a sword but the slot was full." — they are impossible to filter or parse at scale.

Severity contract

Use the correct Unity call for each severity level:

Call Level Meaning Examples
Debug.LogError Error Unrecoverable failure Null refs past fallback, failed network with no retry, corrupt save
Debug.LogWarning Warning Unexpected but handled Fallback used, deprecated API, performance budget exceeded
Debug.Log Info Significant expected event System initialized, scene loaded, purchase completed
Debug.Log Debug Development-only detail State transitions, cache hits/misses, intermediate values

Unity maps Info and Debug to the same Debug.Log call. Convey the distinction through message detail level, not the API call.

Context tags

Every log message starts with a [Tag] prefix identifying the producing system. Tags are:

  • Short but descriptive: [Audio], [Inventory], [AI] — not [AudioManagerSystemController]
  • Consistent: one name per system project-wide. Never [Save] in one file and [SaveManager] in another.
  • Hierarchical when needed: [Network.Lobby], [AI.Pathfinding] for large systems.

Read the full file on GitHub · 456 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. 10d ago First seen · 456 lines · 111 tokens per session scan A 9d8d81330a25

Subscribe to this mod's changes

jahro-logging is a skill published in the GitHub repository jahro-console/unity-agent-skills (16 stars, last pushed 5mo ago), licensed MIT. It adds 111 tokens to every session and 4,567 once invoked, about $0.0006 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

git-advanced-workflows

Master advanced Git workflows including rebasing, cherry-picking, bisect, worktrees, and reflog to maintain clean history and recover from any situation. Use when managing complex Git histories, collaborating on feature branches, or troubleshooting repository issues.

wshobson/agents · 54 tokens

systematic-debugging

A step-by-step method for finding the underlying cause of technical problems before changing code. It covers reading errors, reproducing failures, checking recent changes, and tracing data across system components.

jnMetaCode/superpowers-zh · 24 tokens

console-get-logs

Retrieve Unity Editor logs from the MCP plugin's LogCollector, optionally filtered by log type or time window. Useful for debugging and monitoring Editor activity.

IvanMurzak/Unity-MCP · 35 tokens

diagnose-backend-bug

Diagnose a bounded backend or multi-service failure from GitHub Issues, Jira, Aone, user-provided exports, logs, traces, responses, stack traces, or job records. Use when a service, API, RPC, worker, queue, CLI, or scheduled job bug needs correlation through the project's existing observability route before repair; do…

QoderAI/better-harness · 87 tokens