py-clean-general

py-clean-general is a skill for Claude Code from CasLubbers/code-design-skills. It costs 0 tokens per session (1,124 once invoked), scanned A, original, no licence file.

A set of guidelines for writing, fixing, editing, and reviewing Python code. It focuses on avoiding duplication, keeping each part focused, making intent clear, and replacing unexplained values with named ones.

In plain words
What is it for?
Use it when reviewing Python code, removing repeated logic, simplifying long conditional chains, replacing hardcoded values, or choosing clearer abstractions.
Why use it?
It helps address common code-quality problems that make Python harder to read, change, and maintain.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the code-design-skills plugin — 28 skills shipped together

Good fit Use it when reviewing Python code, removing repeated logic, simplifying long conditional chains, replacing hardcoded values, or choosing clearer abstractions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/caslubbers/code-design-skills/py-clean-general
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 CasLubbers/code-design-skills --skill py-clean-general
Clone the repo
git clone --depth 1 https://github.com/CasLubbers/code-design-skills

Made for: Claude Code.

Or install code-design-skills, the plugin that ships this one along with the rest of its 28 skills.

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 py-clean-general

README.md
[![agentmods](https://agentmods.dev/badge/skills/caslubbers/code-design-skills/py-clean-general/github.svg)](https://agentmods.dev/skills/caslubbers/code-design-skills/py-clean-general)
Your own site
<a href="https://agentmods.dev/skills/caslubbers/code-design-skills/py-clean-general"><img src="https://agentmods.dev/badge/skills/caslubbers/code-design-skills/py-clean-general/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 py-clean-general

Your own site · 80×15
<a href="https://agentmods.dev/skills/caslubbers/code-design-skills/py-clean-general"><img src="https://agentmods.dev/badge/skills/caslubbers/code-design-skills/py-clean-general.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,124 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 unknown 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.00000 $0.01124
Opus 5 $0.00000 $0.00562
Sonnet 5 $0.00000 $0.00225
Haiku 4.5 $0.00000 $0.00112

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

Security

Grade A, and why

py-clean-general 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.

skills/py-clean-general/SKILL.md · 141 lines

The source is not reproduced here

A licence we could not identify

The repository carries a LICENSE file, but it is custom or dual enough that GitHub cannot name it and neither can this catalogue. Unknown terms are not permission, so the body is not copied here. Read the licence at the source and decide for yourself.

Read it on GitHub

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 · 141 lines · 0 tokens per session scan A ac47ecfbfaa3

Subscribe to this mod's changes

py-clean-general is a skill published in the GitHub repository CasLubbers/code-design-skills (1 stars, last pushed 15d ago), with no licence file. It costs nothing until one of its globs matches a file; then it loads 1,124 tokens. 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.

Related

Other skills, from other repositories

121-java-object-oriented-design

Use when reviewing, improving, or refactoring Java object-oriented design, including applying SOLID, DRY, or YAGNI; improving classes and interfaces; correcting encapsulation, inheritance, or polymorphism; resolving God Class, Feature Envy, or Data Clumps; and improving object creation, methods, or exception…

jabrena/plinth · 107 tokens

053-design-simple-rules

Use when Java design, refactoring, or implementation tradeoffs should be evaluated with Kent Beck's simple design rules, including passes the tests, reveals intention, has no duplication, and has the fewest elements. This should trigger for requests such as Apply simple design rules; Review this design with Beck's…

jabrena/plinth · 86 tokens

java-api-consistency-validator

Validate API consistency between two versions of Java libraries. Use when you need to compare API behavior, signatures, and exceptions between Java library versions to identify breaking changes, incompatible modifications, and behavior differences. The skill performs static analysis of Java code, compares method…

ArabelaTso/Skills-4-SE · 95 tokens

go-code-review

Invoke this skill to systematically review a Go change against community style standards before merging. Walks the diff topic by topic — formatting, errors, naming, concurrency, interfaces, data structures, security, declarations, functions, style, logging, imports, generics, testing — flagging issues with line…

muratmirgun/gophers · 85 tokens

language-java

Java idioms — records, sealed types, virtual threads, and JDK 21+ patterns. Auto-load when working with .java files, pom.xml, build.gradle, or when the user mentions Java, JVM, Spring, Maven, Gradle, sealed classes, or virtual threads.

lugassawan/swe-workbench · 61 tokens

faces-review

Review Jakarta Faces code for common mistakes, anti-patterns, and rule violations.

omnifaces/claude-faces-expert · 18 tokens