fastify-logging

fastify-logging is a skill for Claude Code from RadOrigin-LLC/RAD-Claude-Skills. It costs 81 tokens per session (2,082 once invoked), scanned A, original, Apache-2.0.

Guidance for setting up logging in Fastify, a Node.js web framework, using Pino, its built-in structured logger.

In plain words
What is it for?
Use it when adding or reviewing Fastify logs, child loggers, JSON output, development formatting, transports, correlation IDs, or asynchronous logging.
Why use it?
It helps configure useful application logs without blocking request handling and covers common concerns such as log levels, sensitive-data redaction, and request tracking.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the rad-fastify plugin — 8 skills, 1 agent shipped together

Good fit Use it when adding or reviewing Fastify logs, child loggers, JSON output, development formatting, transports, correlation IDs, or asynchronous logging.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/radorigin-llc/rad-claude-skills/fastify-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 RadOrigin-LLC/RAD-Claude-Skills --skill fastify-logging
Clone the repo
git clone --depth 1 https://github.com/RadOrigin-LLC/RAD-Claude-Skills

Made for: Claude Code.

Or install rad-fastify, the plugin that ships this one along with the rest of its 8 skills, 1 agent.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/radorigin-llc/rad-claude-skills/fastify-logging/github.svg)](https://agentmods.dev/skills/radorigin-llc/rad-claude-skills/fastify-logging)
Your own site
<a href="https://agentmods.dev/skills/radorigin-llc/rad-claude-skills/fastify-logging"><img src="https://agentmods.dev/badge/skills/radorigin-llc/rad-claude-skills/fastify-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 fastify-logging

Your own site · 80×15
<a href="https://agentmods.dev/skills/radorigin-llc/rad-claude-skills/fastify-logging"><img src="https://agentmods.dev/badge/skills/radorigin-llc/rad-claude-skills/fastify-logging.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 81 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,082 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.00081 $0.02082
Opus 5 $0.00041 $0.01041
Sonnet 5 $0.00016 $0.00416
Haiku 4.5 $0.00008 $0.00208

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

Security

Grade A, and why

fastify-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 10d 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.

archive/plugins/rad-fastify/skills/fastify-logging/SKILL.md · 215 lines

How it starts

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

Fastify Logging with Pino

You are configuring logging for a Fastify application. Fastify ships with Pino as its built-in logger. Follow these instructions precisely — they encode hard constraints and production-critical patterns.

Core Architecture

Pino is an asynchronous, zero-overhead, structured JSON logger. It maximizes throughput by offloading formatting and I/O to worker threads rather than performing them on the main event-loop thread. This is fundamental to how Fastify achieves its performance characteristics — never undermine it by adding synchronous formatting in-process.

Enable logging by passing logger: true in Fastify options for default behavior, or pass a custom Pino configuration object for fine-grained control. You can also pass a pre-configured Pino instance directly if you need to share the same logger across multiple parts of your application.

// Minimal — default Pino with info level
const fastify = require('fastify')({ logger: true })

// Custom configuration object
const fastify = require('fastify')({
  logger: {
    level: 'info',
    // additional Pino options here
  }
})

// Pre-configured Pino instance
const pino = require('pino')
const logger = pino({ level: 'debug' })
const fastify = require('fastify')({ logger })

Request Correlation

Fastify automatically generates and injects a reqId into every log message throughout the entire request lifecycle. This is a hard invariant — every log line produced within a request context carries this ID, enabling you to trace all activity for a single request across your log output.

Customize ID generation via the genReqId option when you need deterministic or externally-provided IDs (e.g., propagating a trace ID from an upstream load balancer):

const fastify = require('fastify')({
  logger: true,
  genReqId: (req) => req.headers['x-request-id'] || crypto.randomUUID()
})

Do not roll your own correlation mechanism. Use this built-in facility.

Child Loggers

Read the full file on GitHub · 215 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. 10d ago First seen · 215 lines · 81 tokens per session scan A af302ce12487

Subscribe to this mod's changes

fastify-logging is a skill published in the GitHub repository RadOrigin-LLC/RAD-Claude-Skills (5 stars, last pushed 24d ago), licensed Apache-2.0. It adds 81 tokens to every session and 2,082 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-31.

Related

Other skills, from other repositories

draper-decorators

This skill should be used when the user asks to "create a decorator", "write a decorator", "move logic into decorator", "clean logic out of the view", "isn't it decorator logic", "test a decorator", or mentions Draper, keeping views clean, or representation logic in decorators. Should also be used when editing…

hoblin/claude-ruby-marketplace · 131 tokens

rudder-mcp-workflow

Connects AI agents to RudderStack via MCP tool calls for catalog, sources, destinations, transformations, and live events. Use when connecting an AI agent to RudderStack's MCP server, driving RudderStack via MCP, or mentions of mcp.rudderstack.com.

rudderlabs/rudder-agent-skills · 63 tokens

helius

Skill "helius" from helius-labs/core-ai, covering helius — build on solana, prerequisites, 1. helius mcp server, 2. mcp router surface and 3. api key.

helius-labs/core-ai · 0 tokens

dependency-management

Python dependency and environment management for multi-service or monorepo python backends. Use when: (1) adding, upgrading, or removing a Python package, (2) responding to Dependabot or security vulnerability alerts (GHSA/CVE), (3) creating a new service that needs its own requirements files, (4) debugging pip…

richfrem/agent-plugins-skills · 114 tokens

vibe-domain-extractor

Extracts pure, framework-free, IO-free domain models and deterministic business rules from a rapid prototype with strict preservation vs replacement classification and purity audit enforcement.

richfrem/agent-plugins-skills · 36 tokens

api-contracts

API design and contract engineering — REST resource modelling, error envelopes, pagination, filtering, idempotency, versioning and deprecation, rate limiting, webhooks, OpenAPI, GraphQL schema and N+1 defence, and contract testing. Use when designing, reviewing or documenting an endpoint or integration; when the user…

Kin9Zeus/senior-engineer-skills · 148 tokens