Agent skill

Update Logging

by red-hat-storage in red-hat-storage/ocs-ci

Apply OCS-CI logging guidelines to a Python test file or module

MITAuto-check passed

Install Update Logging

skills CLI
$ npx skills add red-hat-storage/ocs-ci --skill update-logging -a claude-code

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

GitHub CLI
$ gh skill install red-hat-storage/ocs-ci update-logging --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/red-hat-storage/ocs-ci.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/update-logging .claude/skills/update-logging && 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
update-logging
GitHub stars
109
Token cost
~825 tokens
SKILL.md length
362 words
Files
1
Skills in repo
1
Repo updated
First seen
Licence
MIT

At a glance

Apply OCS-CI logging guidelines to a Python test file or module

  • Works in 4 steps: Identify File Type → Scan for Issues → Fix Issues → …
  • SKILL.md covers What This Skill Does, Execution Workflow, Decision References and Usage, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Update Logging is an agent skill from red-hat-storage/ocs-ci. Apply OCS-CI logging guidelines to a Python test file or module

Its SKILL.md is about 830 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It works with Python. The licence is MIT.

Example prompts

  • “/update-logging”

Requirements

  • Python 3

Workflow steps

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

  1. Identify File Type
  2. Scan for Issues
  3. Fix Issues
  4. Add Strategic Logging

What it can do on your machine

Read from SKILL.md and the folder at commit a3fb951. 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 (its code samples are bash).

    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

Update Logging loads about 825 tokens when it runs. Until then it costs about 20 tokens; SKILL.md has 362 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~20
When it runs · the whole SKILL.md, loaded when a task matches
~825

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 red-hat-storage/ocs-ci at commit a3fb951, republished under its MIT licence (© red-hat-storage). 362 words, ~825 tokens.

Download SKILL.mdSave it as .claude/skills/update-logging/SKILL.md (or your agent's skills folder).
name
update-logging
description
Apply OCS-CI logging guidelines to a Python test file or module
authoritative_source
docs/logging_guide.md
last_synced
2026-05-01

Update Logging

Applies OCS-CI logging guidelines from docs/logging_guide.md to Python files.

Authoritative Source: docs/logging_guide.md contains ALL guidelines, patterns, anti-patterns, examples, log levels, and decision criteria. This skill is purely an automation wrapper.

What This Skill Does

  1. Reads the target file: {{ file_path }}
  2. Scans for logging issues using criteria from docs/logging_guide.md
  3. Fixes anti-patterns following patterns from docs/logging_guide.md
  4. Adds strategic logging based on file type guidance in docs/logging_guide.md
  5. Ensures log messages have appropriate context and structure per docs/logging_guide.md

Execution Workflow

CRITICAL - Read the Guide First: Before making ANY changes, read docs/logging_guide.md in full. It is your complete instruction set.

Step 1: Identify File Type

Determine which category the file belongs to (see guide's "Usage by Code Type" section):

  • Test files (tests/)
  • Deployment code (ocs_ci/deployment/)
  • Helper/utility files (ocs_ci/helpers/, ocs_ci/utility/)
  • Resource classes (ocs_ci/ocs/resources/)
  • Framework modules (ocs_ci/framework/)

Each type has different logging expectations documented in the guide.

Step 2: Scan for Issues

Read the file and identify all logging issues documented in the guide's "Anti-Patterns to Avoid" section.

Step 3: Fix Issues

Apply fixes using patterns from the guide's "Common Patterns" and level-specific sections (CRITICAL, ERROR, WARNING, TEST_STEP, INFO, ASSERTION, DEBUG, AI_DATA).

Step 4: Add Strategic Logging

Add missing logging at key points based on file type guidance and the guide's examples.

Show full SKILL.md (151 more words)Show less

Decision References

All decisions about logging come from docs/logging_guide.md:

  • Which log level? → See guide's "Log Level Selection Guide" section
  • What patterns to apply? → See guide's "Common Patterns" section
  • What anti-patterns to fix? → See guide's "Anti-Patterns to Avoid" section
  • How to structure messages? → See guide's "Special Topics" and level-specific examples
  • Exception handling? → See guide's "Exception Logging" section
  • File type guidance? → See guide's "Usage by Code Type" section
  • Test assertions? → See guide's "Assertions: Before or After?" section
  • Loop/iteration logging? → See guide's "Pattern: Iteration Logging" section
  • Performance concerns? → See guide's "Performance-Sensitive Code" section

Usage

bash
/update-logging tests/functional/test_example.py

or

bash
/update-logging ocs_ci/helpers/helpers.py

Maintenance

When logging guidelines evolve:

  1. Update docs/logging_guide.md (the authoritative source)
  2. Update last_synced date in this file's frontmatter
  3. Test the skill against sample files to verify it applies updated guidelines

Note: If the guide's structure or workflow changes significantly, this SKILL.md may need updates to its workflow steps. Otherwise, all content changes happen in the guide only.

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

Files

Just SKILL.md in .claude/skills/update-logging of red-hat-storage/ocs-ci.

Open the folder on GitHubat commit a3fb951

Compare with similar skills

Update Logging 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.

Update Logging compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Update Logging this skillred-hat-storage/ocs-ci109—~825Automated safety check: PassMIT
MCP Server Builderanthropics/skills180k63 repos~2.3kAutomated safety check: PassApache-2.0
PDF Processinganthropics/skills180k47 repos~2kAutomated safety check: PassProprietary
NotebookLM Research AssistantPleasePrompto/notebooklm-skill7.8k14 repos~2.4kAutomated safety check: NotesMIT
Manim Video Productionbrowser-use/video-use29k6 repos~3kAutomated safety check: PassMIT
PPT Masterhugohe3/ppt-master59k1 repos~2.5kAutomated safety check: PassMIT

Similar skills

  • MCP Server Builder

    anthropics/skills

    Official

    Guides the design and implementation of Model Context Protocol servers in TypeScript or Python, from tool naming and error messages to evaluation.

    180k GitHub starsUsed in 63 repos~2.3k tokens
    Agent WorkflowsAuto-check passed
  • PDF Processing

    anthropics/skills

    Official

    Handles everyday PDF jobs in Python and on the command line: extract text and tables, merge, split, rotate, watermark, fill forms, encrypt and OCR.

    180k GitHub starsUsed in 47 repos~2k tokens
    Documents & OfficeAuto-check passed
  • NotebookLM Research Assistant

    PleasePrompto/notebooklm-skill

    Lets Claude Code ask questions of your Google NotebookLM notebooks through browser automation and return answers grounded in your uploaded sources.

    7.8k GitHub starsUsed in 14 repos~2.4k tokens
    Knowledge ManagementAuto-check: notes
  • Manim Video Production

    browser-use/video-use

    Produces math and technical explainer videos with Manim Community Edition: concept animations, equation derivations, algorithm walkthroughs and data stories.

    29k GitHub starsUsed in 6 repos~3k tokens
    Media & CreativeAuto-check passed
  • PPT Master

    hugohe3/ppt-master

    Generates editable PowerPoint decks, rebuilds slides from images, fills .pptx templates and polishes existing presentations through routed workflows.

    59k GitHub starsUsed in 1 repo~2.5k tokens
    Documents & OfficeAuto-check passed
  • Scikit Learn

    zLanqing/codex-claude-academic-skills

    Machine learning in Python with scikit-learn. An agent skill from zLanqing/codex-claude-academic-skills.

    4.7k GitHub starsUsed in 16 repos~3.9k tokens
    Data & AnalyticsAuto-check passed

Works with

Questions about Update Logging

What does Update Logging do?

Apply OCS-CI logging guidelines to a Python test file or module. Update Logging is an agent skill from red-hat-storage/ocs-ci.

How do I install Update Logging in Claude Code?

Run `npx skills add red-hat-storage/ocs-ci --skill update-logging -a claude-code`. Or copy the skill folder (.claude/skills/update-logging in red-hat-storage/ocs-ci) into .claude/skills/update-logging in your project. Claude Code loads it when a task matches its description.

How do I install Update Logging in Codex?

Run `npx skills add red-hat-storage/ocs-ci --skill update-logging -a codex`. Or copy the skill folder (.claude/skills/update-logging in red-hat-storage/ocs-ci) into .agents/skills/update-logging in your project. Codex loads it when a task matches its description.

Can I use Update Logging 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 red-hat-storage/ocs-ci --skill update-logging -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/update-logging, .gemini/skills/update-logging, .github/skills/update-logging and .opencode/skills/update-logging in your project.

What does Update Logging need to run?

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

Does Update Logging 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 Update Logging 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 Update Logging use?

Update Logging 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 Update Logging use?

About 825 tokens (SKILL.md is roughly 3.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Update Logging?

Skills that share tags, products or a category with Update Logging: MCP Server Builder (anthropics/skills, 180k stars), PDF Processing (anthropics/skills, 180k stars), NotebookLM Research Assistant (PleasePrompto/notebooklm-skill, 7.8k stars) and Manim Video Production (browser-use/video-use, 29k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Update Logging?

red-hat-storage (a GitHub organization) maintains it in red-hat-storage/ocs-ci, which has 109 GitHub stars. The repository was last updated on October 10, 2026.

Source: red-hat-storage/ocs-ci on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.