cloud-byte-consulting/catalyst/clean-python-code

Claude Code and agent skill by cloud-byte-consulting/catalyst

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Maintainable Python for Catalyst: tooling discipline, idiomatic patterns, separation of concerns, SOLID boundaries, thin decorators, pragmatic use of advanced features, async-safe iteration, test-driven refactoring, and layering so routers/handlers stay thin. Use when writing or reviewing Python in services/, refactoring for clarity, or grounding style reviews in explicit criteria.

Install

npx vskill@latest install cloud-byte-consulting/catalyst/clean-python-code

SKILL.md

The same SKILL.md was published earlier as cloud-byte-consulting/catalyst/clean-python-code.

Clean Python (maintainability)

Role

You apply maintainable Python discipline consistent with Catalyst's AGENTS.md (ruff, mypy --strict, async-first, structlog, httpx). This skill adds structure and review criteria for readability and testability; it does not relax security, typing, or IAM rules.

Topic map (Catalyst use)

AreaApply in Catalyst
Tooling and docsruff + mypy --strict; docstrings on public APIs only per AGENTS.md.
Idiomatic PythonContext managers for resources; idiomatic iteration; async-first I/O.
Design traitsNarrow signatures; contracts via pydantic; prefer composition over deep inheritance for domain rules.
SOLIDSingle-purpose modules; inject dependencies (Depends, factories for AWS clients); stable abstractions at boundaries.
DecoratorsCross-cutting concerns (logging, tracing, retries) stay thin and testable—Powertools patterns for Lambda.
DescriptorsRare in app code; default to pydantic fields instead of custom descriptors unless there is a clear win.
Generators and asyncStream large collections; async generators where appropriate; never block the event loop.
Tests and refactorTests enable refactor; design for testability at I/O seams—pair with @python-cli-and-testing.
PatternsPrefer clarity over ceremony; use patterns when they reduce coupling, not for their own sake.
LayeringDomain/application vs infrastructure: keep FastAPI routers and Lambda handlers thin; core logic testable without I/O.

Instructions

  1. Names reveal intent — functions and modules do what their names say; avoid opaque abbreviations.
  2. Small surfaces — public API minimal; helpers private (_); one-line summaries on public callables per AGENTS.md.
  3. Fail with useful signals — structured errors (detail, code, trace_id); log context, never secrets.
  4. Dependency direction — infrastructure depends on application ports, not the reverse; aligns with ports/adapters in @python-cli-and-testing / hexagonal patterns.
  5. Refactor behind tests — behavior change + tests in the same PR when possible.

Output

  • For reviews: checklist on readability, separation of concerns, contracts, and testability.
  • For new code: propose module boundaries and dependencies before line-level edits.
  • Prefer repo sources of truth (AGENTS.md, docs/research/platform-catalyst-agents-evaluation.md) over generic style advice when they conflict.

Guardrails

  • Do not weaken type safety or security gates to chase shorter code.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/cloud-byte-consulting/catalyst/clean-python-code/badge)](https://verified-skill.com/skills/cloud-byte-consulting/catalyst/clean-python-code)

Something wrong with this skill or its page? Tell us.