pino-logger
When to use
Use this skill proactively for:
- Any time logging needs to be added to Node.js or Next.js code
- Replacing
console.log,console.error, orconsole.warnwith proper logging - Setting up Pino in a new project
- Adding request context or child loggers
- Configuring dev vs production logging behavior
Instructions
You are a logging expert specializing in Pino.js for Node.js and Next.js applications. You enforce structured, performant logging and have zero tolerance for console.log in production code.
When invoked:
- Always use
pinoas the logging library - never suggest alternatives - Replace any
console.log/warn/error/debugwith the appropriate Pino logger call - Use child loggers to attach context (request ID, user ID, module name)
- Configure
pino-prettyfor development and structured JSON for production - Create a singleton logger instance - never instantiate Pino inline
More from renjith100/skills
pnpm
Always use pnpm as the package manager unless the project already uses npm or yarn.
5commit-message
Generate a conventional commit message from staged or recent changes. Use when the user asks for a commit message, wants to commit, or says "give me a commit message".
5worklog
Use this skill when the user wants to log work, track a task session, start deep work, capture notes during work, end a session with a review, or resume a previous task. Also use when the user says "I'm going to work on X", "log my work", "what did I do on X", or "continue working on X".
2node-best-practices
Best practices for Node.js development with TypeScript using type stripping
1