qwen-web-arwaky: Skill for Claude Code

.agents/skills/cleanup-consolidate-python/SKILL.md

cleanup-consolidate-python is a skill for Claude Code, Codex from rakaarwaky/qwen-web-arwaky. It costs 36 tokens per session (9,696 once invoked), scanned A, original, MIT.

A Python code-cleanup process that removes unused code and files, then combines overlapping modules into clearer single modules.

In plain words
What is it for?
Use it to remove dead code, stubs, thin wrappers, and duplicate files, merge related Python modules, update exports, and run linting and tests.
Why use it?
It reduces clutter and duplicate logic while checking that cleanup does not break the package.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is rakaarwaky/qwen-web-arwaky's own configuration. It tells Claude Code and Codex how to work on qwen-web-arwaky itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything qwen-web-arwaky configures →

Reuse

Borrowing it

Nothing to install: this file belongs to rakaarwaky/qwen-web-arwaky. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/rakaarwaky/qwen-web-arwaky/main/.agents/skills/cleanup-consolidate-python/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/rakaarwaky/qwen-web-arwaky

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-consolidate-python

README.md
[![agentmods](https://agentmods.dev/badge/skills/rakaarwaky/qwen-web-arwaky/cleanup-consolidate-python/github.svg)](https://agentmods.dev/skills/rakaarwaky/qwen-web-arwaky/cleanup-consolidate-python)
Your own site
<a href="https://agentmods.dev/skills/rakaarwaky/qwen-web-arwaky/cleanup-consolidate-python"><img src="https://agentmods.dev/badge/skills/rakaarwaky/qwen-web-arwaky/cleanup-consolidate-python/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-consolidate-python

Your own site · 80×15
<a href="https://agentmods.dev/skills/rakaarwaky/qwen-web-arwaky/cleanup-consolidate-python"><img src="https://agentmods.dev/badge/skills/rakaarwaky/qwen-web-arwaky/cleanup-consolidate-python.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 9,696 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 3 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Tool Misuse · line 730
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
  • high Tool Misuse · line 881
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
  • medium Excessive Agency · line 951
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
How audits are shown
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.00036 $0.09696
Opus 5 $0.00018 $0.04848
Sonnet 5 $0.00007 $0.01939
Haiku 4.5 $0.00004 $0.00970

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

Security

Grade A, and why

cleanup-consolidate-python 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 9d 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.

.agents/skills/cleanup-consolidate-python/SKILL.md · 1,030 lines

How it starts

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

cleanup-consolidate-python

Purpose

Unified Python codebase cleanup skill combining dead code removal and file consolidation. First find and remove dead code, unused files, stubs, thin wrappers, and duplicates. Then detect overlapping files that share the same domain and merge them into single cohesive modules. The result is a cleaner codebase with fewer files, less bloat, and maximum signal-to-noise ratio.

CRITICAL: Two-Phase Approach — Phase 1 removes dead code. Phase 2 merges overlapping files. Never skip Phase 1 — consolidating files with dead code wastes effort.


Rules

  • Never remove real logic — only remove code not relevant to FRD scope
  • Always update __all__ — when removing functions/classes, remove from __all__ too
  • Always update __init__.py — when deleting modules, remove their imports/re-exports
  • Always run lint + tests after changes — verify no breakage
  • Always snapshot before cleanup — git commit or stash before any deletion
  • Respect # noqa — developer explicitly suppressed a lint; investigate intent before removing
  • Respect # type: ignore — may indicate intentional dynamic typing
  • Respect # pragma: no cover — code intentionally excluded from coverage; investigate why
  • Respect decorator-registered code@app.route, @pytest.fixture, @celery.task, @receiver etc. are NOT dead code even if never directly called
  • Respect if TYPE_CHECKING: blocks — these imports are used by type checkers, not at runtime
  • Respect try/except ImportError fallbacks — conditional imports for optional dependencies
  • File with 0 inbound imports AND not an entry point = likely unused (verify with multi-pattern check)
  • File with only re-exports in __init__.py = evaluate whether re-export adds value
  • Single Responsibility (consolidation): each file should have ONE clear purpose
  • Related classes/functions belong in the same file (consolidation)

When to Use

Read the full file on GitHub · 1,030 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. 9d ago First seen · 1,030 lines · 36 tokens per session scan A 7d232818496e

Subscribe to this mod's changes

cleanup-consolidate-python is a skill published in the GitHub repository rakaarwaky/qwen-web-arwaky (12 stars, last pushed today), licensed MIT. It adds 36 tokens to every session and 9,696 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-30.

Related

Other skills, from other repositories

matlab

Build, review, migrate, and safely plan MATLAB or GNU Octave numerical workflows, including arrays, tabular/time data, tests, projects, graphics, MAT files, and explicit Python interoperability.

K-Dense-AI/scientific-agent-skills · 42 tokens

pennylane

Hardware-agnostic quantum ML framework with automatic differentiation. Use when training quantum circuits via gradients, building hybrid quantum-classical models, or needing device portability across IBM/Google/Rigetti/IonQ. Best for variational algorithms (VQE, QAOA), quantum neural networks, and integration with…

K-Dense-AI/scientific-agent-skills · 98 tokens

dd-code-generation

Use pup CLI for immediate Datadog operations or generate code for integration into applications.

DataDog/pup · 16 tokens

rocm-kernels

Provides guidance for writing and benchmarking optimized Triton kernels for AMD GPUs (MI355X, R9700) on ROCm, targeting HuggingFace diffusers (LTX-Video, SD3, FLUX) and transformers. Core kernels: RMSNorm, RoPE 3D, GEGLU, AdaLN. Includes XCD swizzle, autotune, diffusers integration patterns, and LTX-Video pipeline…

huggingface/kernels · 93 tokens

holoscan-install-wheel

Install Holoscan SDK Python wheel via pip into a venv. Use for Python installs; not for native C++/apt or Conda installs.

NVIDIA/skills · 37 tokens

typing-exclusion-worker

Python typing exclusion worker: remove assigned mypy exclusion modules in small scoped batches, fix typing issues, run validation, and produce a structured completion summary. Use when running parallel typing-debt workers or when asked to remove modules from pyproject mypy exclusion overrides.

getsentry/skills · 57 tokens