By JaviCeronn
Apply Clean Code and code-quality best practices when writing, refactoring, or reviewing Python and ML/MLOps code: SOLID principles, clean code rules, design patterns, ML-specific quality (data leakage, reproducibility, configuration), and tooling (ruff, black, mypy, pytest, pre-commit).
A Claude Code skill that makes Claude apply Clean Code and code-quality best practices when writing, refactoring, or reviewing Python — with a Machine Learning / MLOps slant.
This repo is a Claude Code plugin marketplace containing one plugin (code-quality):
.claude-plugin/
├── marketplace.json # declares this marketplace + its plugins
└── plugin.json # the code-quality plugin manifest
skills/
└── code-quality/
├── SKILL.md # skill entry point
└── references/ # deep-dive reference files
| File | Purpose |
|---|---|
| skills/code-quality/SKILL.md | Entry point: when to use it, how to apply it, golden-rule cheat sheet, and a full code-review checklist. Claude reads this first. |
| skills/code-quality/references/solid.md | The five SOLID principles with Python before/after — including the LSP and ISP examples the source slides leave out. |
| skills/code-quality/references/clean-code.md | 16 Clean Code rules with smell → fix examples (single-purpose functions, naming, few args, no flags, no side effects, polymorphism over conditionals, DRY/KISS/YAGNI, guard clauses, magic numbers, error handling, Python gotchas…). |
| skills/code-quality/references/design-patterns.md | Factory, Strategy, Adapter, Dependency Injection, Template Method, Builder, Singleton — and when not to use a pattern. |
| skills/code-quality/references/ml-code-quality.md | ML/MLOps-specific quality: separation of concerns, no data leakage, reproducibility, configuration management, logging & experiment tracking, data validation, efficiency, testing ML code, notebooks vs. production. |
| skills/code-quality/references/tooling.md | ruff, black, mypy, pytest, pre-commit, bandit — with a ready-to-paste pyproject.toml, .pre-commit-config.yaml, and CI workflow. |
The skill uses progressive disclosure: SKILL.md is concise; the detailed references/
files are pulled in only when depth is needed.
In the Claude Code panel (terminal or the VS Code extension), run these two commands:
/plugin marketplace add JaviCeronn/CleanCode_skill
/plugin install code-quality@cleancode-mlops
The first command registers this GitHub repo as a marketplace; the second installs the
code-quality plugin from it. No manual file copying. You can also browse interactively by
running /plugin and using the menu.
If you added the marketplace before the plugin metadata existed, refresh it first with
/plugin marketplace update cleancode-mlops(or remove and re-add it).
Once installed, Claude auto-loads the skill when a task matches its description (writing/refactoring/reviewing Python or ML code; questions about SOLID, clean code, patterns, or quality tooling). You can also trigger it explicitly:
/code-quality review this module
The Markdown files stand alone — read them directly as a Clean Code / code-quality handbook, or paste a single reference file into any chat as context for a review.
Pipeline / ColumnTransformer; Ruff, mypy, pytest, pre-commit docs.Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
npx claudepluginhub javiceronn/cleancode_skill_ml-mlops --plugin code-qualityComprehensive skill pack with 66 specialized skills for full-stack developers: 12 language experts (Python, TypeScript, Go, Rust, C++, Swift, Kotlin, C#, PHP, Java, SQL, JavaScript), 10 backend frameworks, 6 frontend/mobile, plus infrastructure, DevOps, security, and testing. Features progressive disclosure architecture for 50% faster loading.
A growing collection of Claude-compatible academic workflow bundles. Covers scientific figures, manuscript writing and polishing, reviewer assessment, citation retrieval, data availability, paper reading, literature search, response letters, paper-to-PPTX conversion, and evidence-grounded Chinese invention patent drafting. Rules are organized as reusable skill folders with explicit workflows and quality checks.
Develop, test, build, and deploy Godot 4.x games with Claude Code. Includes GdUnit4 testing, web/desktop exports, CI/CD pipelines, and deployment to Vercel/GitHub Pages/itch.io.
Comprehensive PR review agents specializing in comments, tests, error handling, type design, code quality, and code simplification
Comprehensive feature development workflow with specialized agents for codebase exploration, architecture design, and quality review
UI/UX design intelligence. 67 styles, 161 palettes, 57 font pairings, 25 charts, 15 stacks (React, Next.js, Vue, Svelte, Astro, SwiftUI, React Native, Flutter, Tailwind, shadcn/ui, Nuxt, Jetpack Compose). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient.