ergopti: Skill for Claude Code

.agents/skills/logger/SKILL.md

logger is a skill for Claude Code, Codex from adrienm7/ergopti. It costs 25 tokens per session (810 once invoked), scanned A, original, MIT.

A guide for applying a shared logging contract to driver code. It defines log types, when to use them, and matching start and completion messages.

In plain words
What is it for?
Use it when adding, changing, or reviewing driver log statements, especially around state changes, decisions, failures, and operations that start and finish.
Why use it?
It prevents missing or misleading logs that make production failures hard to diagnose. It also catches lifecycle messages that do not have their required pair.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents); mentions AGENTS.md.

This is adrienm7/ergopti's own configuration. It tells Claude Code and Codex how to work on ergopti 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 ergopti configures →

Reuse

Borrowing it

Nothing to install: this file belongs to adrienm7/ergopti. 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/adrienm7/ergopti/main/.agents/skills/logger/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/adrienm7/ergopti

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 logger

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/adrienm7/ergopti/logger"><img src="https://agentmods.dev/badge/skills/adrienm7/ergopti/logger.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 25 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 810 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.00025 $0.00810
Opus 5.5 $0.00010 $0.00324
Sonnet 5.5 $0.00005 $0.00162
Haiku 4.5 $0.00003 $0.00081

Measured today against content hash ede091a52956, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

logger 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 today.

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.

.agents/skills/logger/SKILL.md · 69 lines

How it starts

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

Logging

The normative reference is the shared SPEC.md: it owns the eight variants, the importance/lifecycle grid, punctuation, and driver conformance contract. AGENTS.md owns the universal English and fail-fast rules. This skill covers how to apply and verify that contract in practice.

Log extensively

Under-logging is the default failure. Every meaningful state change, lifecycle event, decision and failure path gets a line. Future debugging depends on it — including yours, tomorrow, from a user's log file with no repro.

Selection heuristic: "would I need this line to diagnose a bug in production?" Yes → info or above. Only useful during active development → debug/trace/done. High-frequency events (per keystroke, per frame) → debug only.

The pairing rule is enforced

start ↔ success and trace ↔ done must always come in pairs. This is not cosmetic: a START with no matching SUCCESS in a log is the primary signal of a silent failure, and the whole convention exists to make that visible.

tests/meta/infra/logger/test_logger_pairing.ahk checks this. An unpaired lifecycle call fails the suite.

Practical consequence: if a function can return early between start and success, every early-return path needs its own terminal log — usually an error or warn, not a success.

Evidence records are never collapsed

info and debug lines are keyed by their unformatted template, so the repeat collapser (SPEC § 4.2) folds N lines that share a template into the first plus a summary that may never reach the file. That is right for status noise and wrong for data a person is asked to send back (one-click field checks, probes): use LoggerEvidence(Tag, Msg, Args*) / Logger.evidence(module, msg, ...) for those result records (SPEC § 4.3). It renders as [INFO], is never deduplicated or collapsed, and exists in the AHK logger, the shared Lua core, the macOS logger and logger.shim. Do not use it for ordinary status lines, in a loop, or in place of start/success; do not "fix" a flood by switching it back to info without moving the data elsewhere.

Read the full file on GitHub · 69 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. today Changed · +13 lines ede091a52956
  2. 10d ago Changed 7dbfb5cc7e32
  3. 15d ago First seen · 56 lines · 25 tokens per session scan A d5e465ff9535

Subscribe to this mod's changes

logger is a skill published in the GitHub repository adrienm7/ergopti (14 stars, last pushed today), licensed MIT. It adds 25 tokens to every session and 810 once invoked, about $0.0001 per session on Opus 5.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-10-14.