Agent skill

Python Logging Reviewer

by areed1192 in areed1192/interactive-brokers-api

Audit, plan, and fix logging in any Python project. An agent skill from areed1192/interactive-brokers-api.

MITAuto-check passedDevOps & Cloud

Install Python Logging Reviewer

skills CLI
$ npx skills add areed1192/interactive-brokers-api --skill python-logging-reviewer -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install areed1192/interactive-brokers-api python-logging-reviewer --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/areed1192/interactive-brokers-api.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.github/skills/python-logging-review .claude/skills/python-logging-reviewer && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
python-logging-reviewer
GitHub stars
103
Token cost
~1.9k tokens
SKILL.md length
912 words
Files
2 (incl. references)
Skills in repo
3
Repo updated
First seen
Licence
MIT

At a glance

Audit, plan, and fix logging in any Python project. An agent skill from areed1192/interactive-brokers-api.

  • Works in 4 steps: Audit the codebase → Recommendations with sources → Implementation plan → …
  • Someone asks to review
  • SKILL.md covers Before you start, Workflow, Constraints and Output format
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Python Logging Reviewer is an agent skill from areed1192/interactive-brokers-api. Audit, plan, and fix logging in any Python project. Use this skill whenever someone asks to review, audit, improve, fix, or standardize logging in a Python codebase. Trigger on phrases like "check my logging", "improve observability", "standardize log output", "add structured logging", "review my logging setup", "fix my logs", "logging best practices", or any request that involves evaluating or improving how a Python project logs. Also trigger when someone mentions replacing print() with proper logging, adding…

Its SKILL.md is about 1.9k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including reference files (for example `references/best-practices.md`).

It sits in DevOps & Cloud, covering Observability. It works with Python. The repository describes itself as: A python application used to interact with the Interactive Brokers REST API. The licence is MIT.

When your agent uses it

  • Someone asks to review
  • Standardize logging in a Python codebase
  • Phrases like check my logging
  • Improve observability

Example prompts

  • “check my logging”
  • “improve observability”
  • “standardize log output”
  • “/python-logging-reviewer”

Requirements

  • Python 3

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. Audit the codebase
  2. Recommendations with sources
  3. Implementation plan
  4. Implement

What it can do on your machine

Read from SKILL.md and the folder at commit 6d19ac2. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Python Logging Reviewer loads about 1.9k tokens when it runs, and up to ~5.8k if it reads all its reference files. Until then it costs about 172 tokens; SKILL.md has 912 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~172
When it runs · the whole SKILL.md, loaded when a task matches
~1.9k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~5.8k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from areed1192/interactive-brokers-api at commit 6d19ac2, republished under its MIT licence (© areed1192). 912 words, ~1,891 tokens.

Download SKILL.mdSave it as .claude/skills/python-logging-reviewer/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
python-logging-reviewer
description
Audit, plan, and fix logging in any Python project. Use this skill whenever someone asks to review, audit, improve, fix, or standardize logging in a Python codebase. Trigger on phrases like "check my logging", "improve observability", "standardize log output", "add structured logging", "review my logging setup", "fix my logs", "logging best practices", or any request that involves evaluating or improving how a Python project logs. Also trigger when someone mentions replacing print() with proper logging, adding correlation IDs, or making logs machine-readable. Even if the user just says "my logs are a mess" or "I can't debug production", this skill applies.

Python Logging Reviewer

This skill audits a Python project's logging implementation against industry best practices, produces a prioritized improvement plan, and implements approved changes.

Before you start

Read the best-practices reference file to ground your audit:

cat references/best-practices.md

Use the practices and source citations in that file as your authoritative checklist. Do not invent rules — every finding you report should trace back to a named source in the reference file.

Workflow

Follow these four steps in order. Present the output of each step to the user and wait for approval before moving to the next.

Step 1 — Audit the codebase

Scan every Python file in the project. For each file, record:

  1. Logger instantiation — How loggers are created. Flag any use of the root logger, hardcoded logger names, or basicConfig() called outside the entry point.
  2. Log levels — Which levels are used and whether they match their semantic meaning. Flag DEBUG used for operational messages, WARNING used for expected behavior, etc.
  3. Format and structure — Whether output is plain text or structured (JSON). Note the formatter class, fields included, and timestamp format.
  4. Exception handling — Look for except blocks. Flag bare except: pass, exception handlers that log only the message string without exc_info=True, and duplicate exception logging across call layers.
  5. Lazy formatting — Flag f-strings, .format(), or string concatenation inside log calls. These evaluate eagerly even when the log level is disabled.
  6. Missing logging — Identify code paths with no logging: API/HTTP endpoints, database operations, retry loops, background tasks, signal handlers, and startup/shutdown.
  7. Output destination — Flag hardcoded file paths in handlers. Note whether the project writes to stdout or manages its own log files.
  8. Security — Flag any log call that could emit secrets, tokens, passwords, API keys, or PII. Look for logging of full request/response objects, auth headers, and database query parameters containing user data.
  9. Library vs. application — If the project is a library (or contains library modules), check that those modules use NullHandler and do not call basicConfig().
  10. Observability readiness — Note whether logs include correlation/request IDs, whether OpenTelemetry is present, and whether log attribute names follow OTel semantic conventions.

Produce a markdown table summarizing all findings. Group by file, and include the line number, the issue category (from the list above), a one-line description, and a severity tag: critical, recommended, or nice-to-have.

Severity guidelines:

  • Critical — Security risks (PII/secrets in logs), swallowed exceptions, missing error-path logging, root logger misuse in production code.
  • Recommended — Eager formatting, inconsistent log levels, plain-text format in production, missing correlation IDs, hardcoded file destinations.
  • Nice-to-have — Timestamp format improvements, OTel semantic convention alignment, adding DEBUG-level tracing to internal utilities.
Step 2 — Recommendations with sources

For each finding from Step 1, recommend a concrete fix. Every recommendation must cite the specific best practice it's based on. Use the source abbreviations defined in references/best-practices.md:

  • [PY-HOWTO] — Python logging HOWTO
  • [PY-COOKBOOK] — Python Logging Cookbook
  • [PY-STDLIB] — Python logging module docs
  • [12FACTOR] — 12-Factor App, Factor XI (Logs)
  • [OTEL] — OpenTelemetry Semantic Conventions
  • [SRE-BOOK] — Google SRE Book, Ch. 6 (Monitoring Distributed Systems)
  • [SRE-WORKBOOK] — Google SRE Workbook, Ch. 4 (Monitoring)
  • [REAL-PYTHON] — Real Python logging best practices
  • [HITCHHIKER] — The Hitchhiker's Guide to Python — Logging

Format each recommendation as:

### [severity] File: path/to/file.py, line N
**Finding:** <what's wrong>
**Fix:** <what to do>
**Source:** [SOURCE-TAG] — <one-sentence explanation of the cited practice>
Show full SKILL.md (389 more words)Show less
Step 3 — Implementation plan

Group the recommendations into logical PR-sized batches. A good grouping:

  • PR 1: Standardize logger initialization — Switch all modules to logging.getLogger(__name__), remove root logger usage, add NullHandler to library __init__.py files.
  • PR 2: Fix exception logging — Add exc_info=True or switch to logger.exception() in all except blocks, remove bare except: pass.
  • PR 3: Add structured formatting — Introduce a JSON formatter, configure it centrally, standardize timestamp to ISO 8601.
  • PR 4: Secure log output — Add scrubbing filters for sensitive fields, remove logging of full request/auth objects.
  • PR 5: Fill logging gaps — Add logging to unlogged code paths (API boundaries, retry loops, startup/shutdown).
  • PR 6: Observability alignment — Add correlation IDs, align attribute names with OTel semantic conventions, integrate trace context if OTel is present.

Not every PR group will apply to every project. Skip groups that have no findings. Add groups if the project has issues not covered above.

For each PR, list:

  1. The files to change
  2. A one-line summary of each change
  3. The severity of the most critical finding in that PR
  4. Estimated diff size (small / medium / large)

Present the plan and wait for user approval before implementing.

Step 4 — Implement

After the user approves (they may approve all PRs or select specific ones), implement the changes one PR-group at a time.

For each change:

  • Show a before/after diff
  • Explain in one sentence why the change matters
  • Ensure the change does not alter application logic — only logging

After implementing each PR group, pause and let the user review before continuing.

Constraints

These rules are non-negotiable:

  • Prefer stdlib logging unless the project already uses structlog, loguru, or another library. Do not introduce a new logging library without asking.
  • Never change application logic. Only add, fix, or restructure logging code.
  • Preserve existing log levels unless the audit found a clear semantic mismatch.
  • Never log secrets, tokens, passwords, or PII. If existing code does this, flag it as critical and fix it.
  • Do not remove existing log calls unless they are duplicates or security risks. The goal is to improve coverage, not reduce it.

Output format

  • The audit report (Step 1) is a markdown table.
  • The recommendations (Step 2) are structured markdown entries with source citations.
  • The implementation plan (Step 3) is a numbered list grouped by PR.
  • The implementation (Step 4) produces diffs with inline explanations.

© areed1192, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file (references) in .github/skills/python-logging-review of areed1192/interactive-brokers-api.

  • SKILL.md
  • references/best-practices.md

Open the folder on GitHubat commit 6d19ac2

Compare with similar skills

Python Logging Reviewer next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Python Logging Reviewer compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Python Logging Reviewer this skillareed1192/interactive-brokers-api103—~1.9kAutomated safety check: PassMIT
Agent Kill Switchvivekchand/clawmetry424—~1.1kAutomated safety check: PassMIT
Clawmetry Selfcheckvivekchand/clawmetry424—~515Automated safety check: PassMIT
New Pluginapache/skywalking-python219—~3.3kAutomated safety check: PassApache-2.0
Speculative Namingsgl-project/sglang37k2 repos~1.6kAutomated safety check: PassApache-2.0
Logfire Instrumentationbasicmachines-co/basic-memory4.1k—~2.3kAutomated safety check: PassAGPL-3.0

Similar skills

  • Agent Kill Switch

    vivekchand/clawmetry

    Give the human an off switch and a cost meter for the coding agents on this machine, using ClawMetry.

    424 GitHub stars~1.1k tokensUpdated today
    DevOps & CloudAuto-check passed
  • Clawmetry Selfcheck

    vivekchand/clawmetry

    Read your own agent telemetry from ClawMetry (waste, progress, cost) and act on it before finishing a task.

    424 GitHub stars~515 tokensUpdated today
    DevOps & CloudAuto-check passed
  • New Plugin

    apache/skywalking-python

    Scaffold a new SkyWalking Python instrumentation plugin with all required files (plugin code, tests, docker-compose, expected data, services)

    219 GitHub stars~3.3k tokensUpdated 15 days ago
    DevOps & CloudAuto-check passed
  • Speculative Naming

    sgl-project/sglang

    Naming conventions for SGLang speculative decoding identifiers.

    37k GitHub starsUsed in 2 repos~1.6k tokens
    DevOps & CloudAuto-check passed
  • Logfire Instrumentation

    basicmachines-co/basic-memory

    Adds Pydantic Logfire tracing, logging and metrics to Python, JavaScript or TypeScript and Rust projects, with the correct setup order and library extras.

    4.1k GitHub stars~2.3k tokensUpdated today
    DevOps & CloudAuto-check passed
  • Plugin Test

    apache/skywalking-python

    Build Docker test images and run SkyWalking Python plugin/unit/e2e tests locally, mirroring the CI pipeline

    219 GitHub stars~2.3k tokensUpdated 15 days ago
    DevOps & CloudAuto-check passed

More from areed1192/interactive-brokers-api

  • Changelog Review

    areed1192/interactive-brokers-api

    Audit, enforce, and maintain changelogs in Python projects. An agent skill from areed1192/interactive-brokers-api.

    103 GitHub stars~2.3k tokensUpdated 2 mo ago
    Auto-check passed
  • Package Audit

    areed1192/interactive-brokers-api

    Perform a comprehensive audit of a Python package and produce a phased improvement plan saved to IMPROVEMENT.md.

    103 GitHub stars~2.9k tokensUpdated 2 mo ago
    Auto-check passed

Works with

Categories

Questions about Python Logging Reviewer

What does Python Logging Reviewer do?

Audit, plan, and fix logging in any Python project. An agent skill from areed1192/interactive-brokers-api. Python Logging Reviewer is an agent skill from areed1192/interactive-brokers-api. Audit, plan, and fix logging in any Python project.

When should I use Python Logging Reviewer?

Python Logging Reviewer fits situations like: someone asks to review; standardize logging in a Python codebase; phrases like check my logging; improve observability.

How do I install Python Logging Reviewer in Claude Code?

Run `npx skills add areed1192/interactive-brokers-api --skill python-logging-reviewer -a claude-code`. Or copy the skill folder (.github/skills/python-logging-review in areed1192/interactive-brokers-api) into .claude/skills/python-logging-reviewer in your project. Claude Code loads it when a task matches its description.

How do I install Python Logging Reviewer in Codex?

Run `npx skills add areed1192/interactive-brokers-api --skill python-logging-reviewer -a codex`. Or copy the skill folder (.github/skills/python-logging-review in areed1192/interactive-brokers-api) into .agents/skills/python-logging-reviewer in your project. Codex loads it when a task matches its description.

Can I use Python Logging Reviewer in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add areed1192/interactive-brokers-api --skill python-logging-reviewer -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/python-logging-reviewer, .gemini/skills/python-logging-reviewer, .github/skills/python-logging-reviewer and .opencode/skills/python-logging-reviewer in your project.

What does Python Logging Reviewer need to run?

SKILL.md names no scripts, command-line tools or credentials: Python Logging Reviewer is instructions for the agent only. Our summary lists: Python 3.

Does Python Logging Reviewer access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Python Logging Reviewer safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Python Logging Reviewer use?

Python Logging Reviewer is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Python Logging Reviewer use?

About 1.9k tokens (SKILL.md is roughly 7.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 3.9k tokens, read only when the agent opens those files.

What are the alternatives to Python Logging Reviewer?

Skills that share tags, products or a category with Python Logging Reviewer: Agent Kill Switch (vivekchand/clawmetry, 424 stars), Clawmetry Selfcheck (vivekchand/clawmetry, 424 stars), New Plugin (apache/skywalking-python, 219 stars) and Speculative Naming (sgl-project/sglang, 37k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Python Logging Reviewer?

areed1192 (a GitHub user) maintains it in areed1192/interactive-brokers-api, which has 103 GitHub stars. The repository holds 3 skills in this directory. The repository was last updated on July 24, 2026.

Source: areed1192/interactive-brokers-api on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.