awesome-agv: Skill for Claude Code

.agents/skills/logging-implementation/SKILL.md

logging-implementation is a skill for Claude Code, Codex from irahardianto/awesome-agv. It costs 74 tokens per session (3,350 once invoked), scanned A, original, MIT.

Guidance for adding structured logs to application operations. It covers log levels, required context such as request IDs and durations, privacy protection, and common logging libraries for several languages.

In plain words
What is it for?
Use it when implementing logging at operation entry points in Go, TypeScript, or Python services.
Why use it?
It makes events easier to trace and debug while reducing the chance of exposing personal or sensitive data in logs.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument; installed under .agents/ (shared by several agents).

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

Reuse

Borrowing it

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

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/irahardianto/awesome-agv/logging-implementation.svg)](https://agentmods.dev/skills/irahardianto/awesome-agv/logging-implementation)
Your own site
<a href="https://agentmods.dev/skills/irahardianto/awesome-agv/logging-implementation"><img src="https://agentmods.dev/badge/skills/irahardianto/awesome-agv/logging-implementation.svg" alt="Measured on agentmods" height="20"></a>
Per session 74 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,350 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.00074 $0.03350
Opus 5 $0.00037 $0.01675
Sonnet 5 $0.00015 $0.00670
Haiku 4.5 $0.00007 $0.00335

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

Security

Grade A, and why

logging-implementation 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 8d 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.

.agents/skills/logging-implementation/SKILL.md · 536 lines

How it starts

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

Logging and Observability Principles

⚠️ Prerequisite: All operations MUST be logged per Logging and Observability Mandate @.agents/rules/logging-and-observability-mandate.md. This guide provides implementation patterns only.

Logging Standards

Log Levels (Standard Priority)

Use consistent log levels across all services:

Level When to Use Examples
TRACE Extremely detailed diagnostic info Function entry/exit, variable states (dev only)
DEBUG Detailed flow for debugging Query execution, cache hits/misses, state transitions
INFO General informational messages Request started, task created, user logged in
WARN Potentially harmful situations Deprecated API usage, fallback triggered, retry attempt
ERROR Error events that allow app to continue Request failed, external API timeout, validation failure
FATAL Severe errors causing shutdown Database unreachable, critical config missing
Logging Rules

1. Every request/operation must log:


// Start of operation
log.Info("creating task",
"correlationId", correlationID,
"userId", userID,
"title", task.Title,
)

// Success
log.Info("task created successfully",
"correlationId", correlationID,
"taskId", task.ID,
"duration", time.Since(start),
)

// Error
log.Error("failed to create task",
"correlationId", correlationID,
"error", err,
"userId", userID,
)

2. Always include context:

  • correlationId: Trace requests across services (UUID)
  • userId: Who triggered the action
  • duration: Operation timing (milliseconds)
  • error: Error details (if failed)

3. Structured logging only (no string formatting):


// ✅ Structured
log.Info("user login", "userId", userID, "ip", clientIP)

// ❌ String formatting
log.Info(fmt.Sprintf("User %s logged in from %s", userID, clientIP))

Read the full file on GitHub · 536 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. 8d ago First seen · 536 lines · 74 tokens per session scan A d74c3bca5cc2

Subscribe to this mod's changes

logging-implementation is a skill published in the GitHub repository irahardianto/awesome-agv (156 stars, last pushed 17d ago), licensed MIT. It adds 74 tokens to every session and 3,350 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.