add-logging
What it does
This skill adds useful log lines to code before it ships, so problems can be understood later. It is for developers who want to avoid debugging blind.
When to use it
- ✓When you are writing or reviewing a feature or fix and want good logs in place.
- ✓When a bug was hard to diagnose because the logs were silent.
- ✓When you want to improve logging on a code path that is about to change.
Skill link
https://github.com/ParadevAI/Paradev/blob/main/plugins/sazabi/skills/add-logging/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Add logging to the checkout change I am making so we can tell later why a payment fell back to the backup route.”
5 new skills a week. 1 minute to read.
How it works
The agent matches the logging style the project already uses, then adds one line for each failure and each decision that changes behavior. It logs IDs rather than full data, and keeps secrets out of the logs.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Log what you will need to ask about
Every investigation in Sazabi is limited by what the code logged. The cheapest time to add the right lines is while the change is fresh. The job is a small number of structured lines that answer "what happened to this request, and why".
0. How the tools work
The Sazabi MCP server lists only two tools, search and execute. Browse
Sazabi's operations with search and namespace: "sazabi" (an empty query
without a namespace lists connected connectors, not Sazabi operations). Before
calling one, repeat search with namespace: "sazabi", the hit's full name as
the query, and includeInputSchema: true to load its arguments. Then run it
with execute as { name, arguments }, the name copied from the hit (for
example sazabi/logs.ask).
1. Match what is already there
Read how this repository logs: which logger, which field names, how request and
trace IDs are attached. Ask sazabi/logs.ask for a sample of this service's
recent lines to see the real shape. New lines must look like their neighbors;
an investigation that has to join two naming schemes is slower.
2. Pick the lines
On the changed path, log:
- Failures with the error, the input that caused it (IDs, not payloads), and what the code did next (retry, fallback, give up).
- Decisions that change behavior: a feature flag, a fallback, a skipped step, a limit hit.
- Boundaries: calls to other services or queues, with target, outcome and duration.
Skip lines that restate the obvious ("entering function").
3. Shape each line
- A stable event name (
checkout.payment_declined), so a question can count it. - Structured fields, not values glued into the message string.
- IDs that join the story: request or trace ID, user or tenant ID, order ID.
- The right level: ERROR for failures someone must act on, WARN for degraded but handled, INFO for decisions, DEBUG for detail that is off in production.
- Never secrets, tokens, passwords or full personal data. Redact or omit.
4. Check it
Run the path locally or in tests and read the lines it emits. After deploy, ask Sazabi for the new event name to confirm the lines arrive with their fields.
Anti-patterns
- Logging payloads. They leak data and cost money; log IDs and sizes.
- ERROR for expected outcomes. A declined card is INFO; an ERROR should mean a broken system.
- Many lines per request in a hot loop. Log the summary, not every iteration.
FAQ
Will the logs include customer data?
No. The skill logs IDs rather than full payloads and keeps secrets out of log lines.
Does it follow the project's existing style?
Yes. It reads how the code already logs so the new lines match their neighbors.
Why add logs before shipping?
Investigations are limited by what was logged, and adding the right lines is cheapest while the change is fresh.
Details
Original description by the author
Before shipping a change, add structured log lines to the code path it touches so the next investigation has evidence — one line per decision and failure, with stable event names and the IDs needed to join requests, at the right level and without secrets. Use when writing or reviewing a feature or fix, when a bug was hard to diagnose because the logs were silent, or when the user asks to improve logging or observability in code.
repo: ParadevAI/Paradev
Popularity
- GitHub stars
- 16k
- Ranking position
- #10841
- License
- —
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
decide
16kWalks you through design or code decisions one at a time, with clear options and a recommendation. Each answer is logged, and a final summary is given.
mobile-demo-film
16kTurns phone screen recordings into a polished demo video with title cards, a phone frame, and an end card. Good for feature demos and launch clips.
redesign
16kReviews an existing interface component and suggests concrete visual fixes for spacing, contrast, hierarchy, and layout. It can also apply the changes.
superset-settings
16kLets your agent view and change the Paradev desktop app's settings, such as theme, fonts, and notifications, from the command line.
Similar skills
api-connector-builder
280kHas your agent build new API connections following the existing pattern. Use when you need to add one more integration without creating a new way of doing things.
api-design
280kHelps your agent design REST APIs following best practices. It's useful for defining how APIs communicate, how errors are shown, and how to organize data.
backend-patterns
280kHelps your agent with server-side architecture patterns and database optimization. It's useful for building or reviewing code that runs on the server.