Skip to content
Back to skills

Add Logging

ASecurity

Adds structured log lines to one flow at the points that help debugging, with levels, context fields and no sensitive data.

  • 3 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added November 15, 2026
ai-agentsdebugging

Security analysis

A100/100

Scanned November 15, 2026

npx -y skills add workspace-templates/ai-agent-templates --skill add-logging --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Add Logging?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Add Logging
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/workspace-templates-add-logging-ai-agent-templates/badge)](https://www.skillsdirectory.com/skills/workspace-templates-add-logging-ai-agent-templates)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: add-logging
description: Adds structured log lines to one flow at the points that help debugging, with levels, context fields and no sensitive data.
disable-model-invocation: true
---

Add structured logging to this flow: $ARGUMENTS

1. Find the project's logger (winston, pino, structlog, logging, slog, zap, log4j) and one well-logged file. Match its import, field names and level usage. If there is no logger, stop and ask before adding a dependency.
2. Trace the flow from entry to exit. Mark: start and end with duration, each external call, each branch that changes the outcome, retries, and every caught error.
3. Choose levels: debug for internals, info for business events, warn for recovered problems, error for failures with the cause attached.
4. Log fields, not sentences: request id, user id, order id, counts, elapsed ms. Reuse a correlation id if one exists.
5. Never log passwords, tokens, card numbers, full emails, request bodies or raw headers. Redact or log only an id.
6. No logging inside tight loops.

Show the diff plus a list of the lines added with their level. Run the tests. Ask before changing logger configuration.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.