mainframe-logging

mainframe-logging is a skill for Claude Code, Codex from CATWILLgh/MAINFRAME. It costs 30 tokens per session (1,057 once invoked), scanned A, original, MIT.

Guidance for application logs and error diagnostics. Logs are records emitted by software while it runs; this guidance covers structured events, request or job links, useful failure context, and removal of sensitive values.

In plain words
What is it for?
Use it when adding or repairing logs, tracing a request or background job across components, recording errors, choosing event fields and severity, or checking that sensitive data is redacted.
Why use it?
It helps developers produce logs that answer operational questions instead of scattered messages that are hard to search or connect. It also keeps new events consistent with the project's existing logging tools and field names.

Skill for Claude CodeCodex

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

Good fit Use it when adding or repairing logs, tracing a request or background job across components, recording errors, choosing event fields and severity, or checking that sensitive data is redacted.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/catwillgh/mainframe/mainframe-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 CATWILLgh/MAINFRAME --skill mainframe-logging
Clone the repo
git clone --depth 1 https://github.com/CATWILLgh/MAINFRAME

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 mainframe-logging

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

agentmods 80×15 button for mainframe-logging

Your own site · 80×15
<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>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,057 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.00030 $0.01057
Opus 5.5 $0.00012 $0.00423
Sonnet 5.5 $0.00006 $0.00211
Haiku 4.5 $0.00003 $0.00106

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

Security

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.

skills/mainframe-logging/SKILL.md · 84 lines

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

Read the full file on GitHub · 84 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. 13d ago First seen · 84 lines · 30 tokens per session scan A d80863457aec

Subscribe to this mod's changes

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.

Related

mainframe-logging compared with skills from other repositories

mainframe-logging next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mainframe-loggingCATWILLgh/MAINFRAMESkill213d agoMITA30Claude Code, Codex
root-causehamr0/liteagentsSkill283d agoApache-2.0A56Claude Code
refactorhamr0/liteagentsSkill283d agoApache-2.0A10Claude Code
ai-slop-cleanerYeachan-Heo/oh-my-claudecodeSkill41ktodayMITA25Claude Code
debugYeachan-Heo/oh-my-claudecodeSkill41ktodayMITA22Claude Code
rubber-duckkirodotdev/KiroCrewSkill5.1ktodayApache-2.0A161Claude Code, Codex
aoe-runtime-lifecycleagent-of-empires/agent-of-empiresSkill5.2ktodayMITA76Claude Code, Codex