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.
npx skills add CATWILLgh/MAINFRAME --skill mainframe-logginggit clone --depth 1 https://github.com/CATWILLgh/MAINFRAMEWrote 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/catwillgh/mainframe/mainframe-logging)<a href="https://agentmods.dev/skills/catwillgh/mainframe/mainframe-logging"><img src="https://agentmods.dev/badge/skills/catwillgh/mainframe/mainframe-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/catwillgh/mainframe/mainframe-logging"><img src="https://agentmods.dev/badge/skills/catwillgh/mainframe/mainframe-logging.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.00030 | $0.01057 |
| Opus 5.5 | $0.00012 | $0.00423 |
| Sonnet 5.5 | $0.00006 | $0.00211 |
| Haiku 4.5 | $0.00003 | $0.00106 |
Grade A, and why
mainframe-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 13d 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 — 84 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Application logging
Start with the operation someone needs to diagnose and the decision the log
should support. Find the existing logger, access logs, error reporting, and
correlation at the affected boundary. Apply the baseline to the new or changed
events. Reuse existing fields and sinks. If a project uses different names,
types, or formatting, map the common meanings at its existing boundary and
keep the mapping with the project's logging guidance. For example, map
ts, severity, and msg to timestamp, level, and message while
preserving the names consumed by existing tools. Resolve material conflicts
with the project owner.
Common event fields
Use structured fields for new events. Existing serializers may provide equivalent fields, and trusted deployment or collector metadata may supply the emitter identity.
| Field | Meaning |
|---|---|
timestamp |
UTC event time, in RFC 3339 when serialized as text |
level |
DEBUG for bounded diagnostics, INFO for normal outcomes, WARN for recoverable degradation, ERROR for unexpected failures requiring investigation. Map additional native levels by meaning |
event, message |
Stable event name such as stock.update.completed and a short, safe human-readable summary |
service, environment, version |
Stable component identity, deployment environment when applicable, and actual release identity when available |
request_id, job_id or operation_id |
Applicable opaque correlation from the owning context. Carry it across queue and retry boundaries |
trace_id, span_id |
Active trace context when available. In JSON use top-level lowercase hexadecimal values from the tracing context |
outcome, duration_ms |
Actual result and elapsed monotonic time at the event boundary. For terminal results use success, rejected, failed, cancelled, skipped, or unknown as applicable, or map equivalent existing values |
phase, error_kind, error_code |
On relevant failures, the observed phase, stable error category, and useful safe code such as SQLSTATE or upstream status |
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.
- 13d ago First seen · 84 lines · 30 tokens per session scan A d80863457aec
mainframe-logging is a skill published in the GitHub repository CATWILLgh/MAINFRAME (2 stars, last pushed 13d ago), licensed MIT. It adds 30 tokens to every session and 1,057 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-11-17.
mainframe-logging compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| mainframe-loggingCATWILLgh/MAINFRAME | Skill | 2 | 13d ago | MIT | A | 30 | Claude Code, Codex |
| root-causehamr0/liteagents | Skill | 28 | 3d ago | Apache-2.0 | A | 56 | Claude Code |
| refactorhamr0/liteagents | Skill | 28 | 3d ago | Apache-2.0 | A | 10 | Claude Code |
| ai-slop-cleanerYeachan-Heo/oh-my-claudecode | Skill | 41k | today | MIT | A | 25 | Claude Code |
| debugYeachan-Heo/oh-my-claudecode | Skill | 41k | today | MIT | A | 22 | Claude Code |
| rubber-duckkirodotdev/KiroCrew | Skill | 5.1k | today | Apache-2.0 | A | 161 | Claude Code, Codex |
| aoe-runtime-lifecycleagent-of-empires/agent-of-empires | Skill | 5.2k | today | MIT | A | 76 | Claude Code, Codex |