Borrowing it
Nothing to install: this file belongs to y5-snowies/nourish. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/y5-snowies/nourish/upstream-integration/.claude/skills/logging/SKILL.mdgit clone --depth 1 https://github.com/y5-snowies/nourishWrote 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.
[](https://agentmods.dev/skills/y5-snowies/nourish/logging)<a href="https://agentmods.dev/skills/y5-snowies/nourish/logging"><img src="https://agentmods.dev/badge/skills/y5-snowies/nourish/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.
<a href="https://agentmods.dev/skills/y5-snowies/nourish/logging"><img src="https://agentmods.dev/badge/skills/y5-snowies/nourish/logging.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00083 | $0.00803 |
| Opus 5 | $0.00042 | $0.00402 |
| Sonnet 5 | $0.00017 | $0.00161 |
| Haiku 4.5 | $0.00008 | $0.00080 |
Grade A, and why
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 9d 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.
How it starts
The opening of the file, as written. The whole thing — 66 lines — stays where its author put it; the contents beside it link to each section on GitHub.
y5 logging
y5 has its own structured logging system. Never use tracing, log, or println!/
eprintln! for diagnostics in compositor code. Use the macros from
compositor_model_debug_instance_record. Full reference: that crate's module docs
(compositor.model/model.debug/debug.instance/instance.record).
The rule
- Levels:
error!,warn!,info!,trace!— sameformat!args astracing. - Fatal:
abort!("msg {x}")— logs at Error and panics (synchronously flushed first). - No
tracing/log/tracing-subscriberdeps in new/changed crates. If a crate you touch still imports them only for logging, migrate the call sites and drop the deps.
Wiring a crate to log (one-time per crate)
The add-crate template already inserts this. If a crate lacks it, add to its lib.rs
(after any leading #![...] inner attributes):
#[macro_use]
extern crate compositor_model_debug_instance_record;
and ensure its Cargo.toml has (it resolves via the workspace links — run compositor.workspace/link.all.sh if
you just added the dep to a workspace that didn't have it):
compositor_model_debug_instance_record = { workspace = true }
Then call the macros from any module in the crate — no per-module use needed. The crate name
and function path are attached automatically as filter tags.
Migrating tracing
tracing::info!(...) → info!(...) (likewise error!/warn!/trace!). Confirm the two
lib.rs lines above exist, then remove tracing + tracing-subscriber from the crate's
Cargo.toml. Grep the crate for tracing:: to be sure none remain.
Levels: two independent controls
- Compile-time: cargo features
error/warn/info/traceon the record crate (set by the top-levelexecutedep). A disabled level compiles to nothing.abort!is never stripped. - Runtime:
COMPOSITOR_LOG_LEVEL(e.g.info,warn,error,trace) selects what is emitted among compiled-in levels.
Viewing logs
Records stream over gRPC (/tmp/y5-compositor-logs.sock) to the compositor.developer/developer.tool
Tauri viewer (filter by crate/function/level, timeline, presets, dumps). Run the compositor with
COMPOSITOR_LOG_LEVEL set, then cd compositor.developer/developer.tool/developer.tool.window/logs && npm run tauri dev. They also
print dmesg-style to the compositor's stderr.
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.
- 9d ago First seen · 66 lines · 83 tokens per session scan A 4d945c4bf725
logging is a skill published in the GitHub repository y5-snowies/nourish (229 stars, last pushed 5d ago), licensed Apache-2.0. It adds 83 tokens to every session and 803 once invoked, about $0.0004 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.
Other skills, from other repositories
agentsight-bugfix
A five-stage workflow for fixing bugs in AgentSight: understand the report, reproduce the problem, find its cause, make a small code change, and verify the result. AgentSight is a system that observes and analyses agent activity.
a0-debug-plugin
Diagnose and fix Agent Zero plugin problems. Covers plugin not appearing, won't enable, API endpoints not responding, frontend store errors, extension point injection, settings resolution, hooks.py issues, and log inspection. Use when a plugin is not working, not loading, crashing, missing from the list, or behaving…
gearsystem-debugging
Debug and trace Sega Master System, Game Gear, and SG-1000 games using the Gearsystem emulator MCP server. Provides workflows for Z80 CPU debugging, breakpoint management, VDP/PSG/YM2413 hardware inspection, disassembly analysis, execution tracing, and rewind/time-travel debugging. Use when the user wants to debug an…
self-healing
Detect service failures and system anomalies. Diagnose root causes. Auto-remediate using NixOS rollback, service restart, or config repair. Every action logged to the hash-chained audit ledger.
flight-recorder
Black box flight recorder for the server. Capture system state snapshots for forensic analysis after incidents. Continuous telemetry ring buffer.
generation-timeline
NixOS generation-aware debugging and time-travel. Correlate system state changes with application failures. Query "what changed and when.".