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.
curl -O https://raw.githubusercontent.com/rakaarwaky/qwen-web-arwaky/main/.agents/skills/cleanup-consolidate-python/SKILL.mdgit clone --depth 1 https://github.com/rakaarwaky/qwen-web-arwakyWrote 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.
[](https://agentmods.dev/skills/rakaarwaky/qwen-web-arwaky/cleanup-consolidate-python)<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.
<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>- NVIDIA SkillSpector warn
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.
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.
| Model | Per session | Once 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 |
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.
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,@receiveretc. 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 ImportErrorfallbacks — 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
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.
- 9d ago First seen · 1,030 lines · 36 tokens per session scan A 7d232818496e
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.
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.
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…
dd-code-generation
Use pup CLI for immediate Datadog operations or generate code for integration into applications.
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…
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.
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.