cleanup

cleanup is a skill for Claude Code, Codex from holoviz-dev/holoviz-skills. It costs 38 tokens per session (1,152 once invoked), scanned A, original, BSD-3-Clause.

Code-review and refactoring guidance for HoloViz Python packages, including Panel, hvPlot, HoloViews, and Param. HoloViz is a group of tools for making interactive charts and data applications.

In plain words
What is it for?
Reviewing pull requests, improving code structure, checking naming and defaults, deciding between shared helpers and duplicated code, and checking code style in HoloViz repositories.
Why use it?
It helps reviewers find simpler solutions, preserve existing behavior, follow project conventions, and catch problems in changes, including code written with AI assistance.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Reviewing pull requests, improving code structure, checking naming and defaults, deciding between shared helpers and duplicated code, and checking code style in HoloViz repositories.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/holoviz-dev/holoviz-skills/cleanup
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add holoviz-dev/holoviz-skills --skill cleanup
Clone the repo
git clone --depth 1 https://github.com/holoviz-dev/holoviz-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cleanup

README.md
[![agentmods](https://agentmods.dev/badge/skills/holoviz-dev/holoviz-skills/cleanup/github.svg)](https://agentmods.dev/skills/holoviz-dev/holoviz-skills/cleanup)
Your own site
<a href="https://agentmods.dev/skills/holoviz-dev/holoviz-skills/cleanup"><img src="https://agentmods.dev/badge/skills/holoviz-dev/holoviz-skills/cleanup/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cleanup

Your own site · 80×15
<a href="https://agentmods.dev/skills/holoviz-dev/holoviz-skills/cleanup"><img src="https://agentmods.dev/badge/skills/holoviz-dev/holoviz-skills/cleanup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,152 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00038 $0.01152
Opus 5 $0.00019 $0.00576
Sonnet 5 $0.00008 $0.00230
Haiku 4.5 $0.00004 $0.00115

Measured 10d ago against content hash 477cab7a4a27, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

cleanup scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

contributing-to-holoviz/skills/cleanup/SKILL.md · 100 lines

How it starts

The opening of the file, as written. The whole thing — 100 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Cleanup

This skill covers code quality patterns and common pitfalls when reviewing or refactoring HoloViz code.

Contents

Review

  • Perform a git diff from the PR branch to the main branch and review for potential issues, improvements, and adherence to best practices.
  • Consider the full set of changes and whether there is a simpler way to achieve the same result. A PR that touches five files to work around a problem may have a two-line fix elsewhere.
  • Explain why this approach over the alternatives (mixin vs. inheritance vs. duplication); reviewers consistently ask for that rationale.
  • Reuse the naming and option behavior of similar existing components instead of inventing a new spelling for the same idea (e.g. font_size to match a sibling element, not fontsize).
  • Don't change an existing default or signature — that breaks users — unless a breaking change is the explicit goal of the PR.
  • Share cross-backend/variant logic via a mixin or helper, but extract only what is genuinely common.
  • Scrutinize AI-assisted code like any other; flag it and verify the behavior yourself.

Code Style

  • Leave formatting and style enforcement (including type hint syntax) to linters and pre-commit hooks. Run via pixi run lint.
  • Top-level imports should only be from the standard library, required dependencies, and relative imports. Imports of optional or slow-loading dependencies should go inside the function that uses them.
  • Prefer direct attribute access when the attribute is known to exist. getattr with a default is appropriate when the attribute may be absent (e.g. checking across class hierarchies or optional mixins) and the caller handles the fallback.
  • Order file contents: imports, constants, functions (or a utils module), then classes.
  • @staticmethod is fine when the method is part of the class's public interface or is only meaningful in the context of that class. Move to module level or a utils module only if it has clear reuse elsewhere.
  • Return or continue early to avoid deep nesting. Prefer comprehensions over loops that just build a list. Refactor code with more than three levels of nesting into helper functions.
  • Use consistent naming. If a class is FollowUpSuggestion, the variable should be follow_up_suggestion, not followup_suggestion or follow_up_suggestions.
  • Sort param declarations alphabetically with a blank line between each.
  • Include doc="""...""" on every public param, starting on a new line.
  • Ensure comments are about why and what must remain true, not what the syntax does. Good comments explain intent, constraints, workarounds, performance rationale, or API quirks. Avoid restating obvious code or narrating line-by-line. Keep them concise; over-explaining is also a smell.
  • Compute derived values (ranges, extents, validation scans) once and reuse them; don't rescan the data in every method or on every render.
  • Place internal _-prefixed params after public params. Use a _-prefixed param (e.g. _cache = param.Dict()) when the value needs to trigger watches or be serialized. Use a plain class/instance variable (e.g. self._cache = {} in __init__) for transient internal state that doesn't need param machinery.

Read the full file on GitHub · 100 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 100 lines · 38 tokens per session scan A 477cab7a4a27

Subscribe to this mod's changes

cleanup is a skill published in the GitHub repository holoviz-dev/holoviz-skills (5 stars, last pushed yesterday), licensed BSD-3-Clause. It adds 38 tokens to every session and 1,152 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.