AgentStack
SKILL verified MIT Self-run

Pino

skill-jesus-seijas-sp-claude-node-setup-pino · by jesus-seijas-sp

Guides AI agents to use Pino logging correctly — levels, structured logs, child loggers, and Fastify integration.

No reviews yet
0 installs
9 views
0.0% view→install

Install

$ agentstack add skill-jesus-seijas-sp-claude-node-setup-pino

✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

Are you the author of Pino? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Pino Skill

Use this skill when writing any logging code with Pino: creating loggers, choosing log levels, adding context, or configuring Fastify's built-in logger.

When to Use

  • Configuring the Fastify logger at startup
  • Adding log statements to route handlers, plugins, or services
  • Creating child loggers with bound context
  • Logging errors with full detail
  • Configuring log output for development vs. production

Rules

  1. [rules/levels.md](rules/levels.md) — When to use each log level (trace, debug, info, warn, error, fatal).
  2. [rules/structured-logging.md](rules/structured-logging.md) — How to write structured log entries with context objects.
  3. [rules/child-loggers.md](rules/child-loggers.md) — Creating child loggers to bind persistent context (request ID, user ID, module name).
  4. [rules/fastify-integration.md](rules/fastify-integration.md) — Fastify logger configuration, request.log, and serializers.

Quick Reference

// Fastify uses Pino by default — enable it at startup
const app = Fastify({ logger: true });

// In route handlers, always use request.log (bound to request id)
fastify.get('/users/:id', async (request) => {
  request.log.info({ userId: request.params.id }, 'fetching user');
  const user = await db.findUser(request.params.id);
  if (!user) {
    request.log.warn({ userId: request.params.id }, 'user not found');
    throw fastify.httpErrors.notFound();
  }
  return user;
});

// Log errors with the err key — Pino serializes Error objects automatically
try {
  await riskyOp();
} catch (err) {
  request.log.error({ err }, 'riskyOp failed');
  throw err;
}

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.