nourish: Skill for Claude Code

.claude/skills/logging/SKILL.md

logging is a skill for Claude Code from y5-snowies/nourish. It costs 83 tokens per session (803 once invoked), scanned A, original, Apache-2.0.

A set of rules for structured logging in the y5 compositor, a software system for composing and displaying content.

In plain words
What is it for?
Use it when adding, changing, migrating, or debugging log messages in y5 compositor code.
Why use it?
It prevents new or changed compositor code from using logging tools that y5 does not support.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is y5-snowies/nourish's own configuration. It tells Claude Code how to work on nourish itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything nourish configures →

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/y5-snowies/nourish/upstream-integration/.claude/skills/logging/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/y5-snowies/nourish

Made for: Claude Code.

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 logging

README.md
[![agentmods](https://agentmods.dev/badge/skills/y5-snowies/nourish/logging/github.svg)](https://agentmods.dev/skills/y5-snowies/nourish/logging)
Your own site
<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.

agentmods 80×15 button for logging

Your own site · 80×15
<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>
Per session 83 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 803 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00083 $0.00803
Opus 5 $0.00042 $0.00402
Sonnet 5 $0.00017 $0.00161
Haiku 4.5 $0.00008 $0.00080

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

Security

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.

.claude/skills/logging/SKILL.md · 66 lines

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! — same format! args as tracing.
  • Fatal: abort!("msg {x}") — logs at Error and panics (synchronously flushed first).
  • No tracing / log / tracing-subscriber deps 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/trace on the record crate (set by the top-level execute dep). 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.

Read the full file on GitHub · 66 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. 9d ago First seen · 66 lines · 83 tokens per session scan A 4d945c4bf725

Subscribe to this mod's changes

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.

Related

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.

alibaba/anolisa · 67 tokens

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…

agent0ai/agent-zero · 68 tokens

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…

drhelius/Gearsystem · 178 tokens

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.

bolivian-peru/os-moda · 43 tokens

flight-recorder

Black box flight recorder for the server. Capture system state snapshots for forensic analysis after incidents. Continuous telemetry ring buffer.

bolivian-peru/os-moda · 27 tokens

generation-timeline

NixOS generation-aware debugging and time-travel. Correlate system state changes with application failures. Query "what changed and when.".

bolivian-peru/os-moda · 32 tokens