clean-python-code
Maintainable Python for Catalyst: tooling discipline, idiomatic patterns, separation of concerns, SOLID boundaries, thin decorators, pragmatic use of advanced…
Skill by Cloud-Byte-Consulting
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/cloud-byte-consulting-clean-python-code
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: testing, writing
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/clean-python-code
What's inside
- Skill name
clean-python-code- Description
- 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.
- License
- BSD-3-Clause
- Instructions
- 41 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
<!-- Vendored from: platform-catalyst/skills/clean-python-code/SKILL.md (BittahCriminal/platform-catalyst, BSD-3-Clause). Adapted for Catalyst: PLAN.md/CLAUDE.md/DECISIONS.md scrubbed; ADR-008->ADR-001, ADR-009->ADR-002. --> # 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) | Area | Apply in Catalyst | |------|---------------------| | Tooling and docs | ruff + mypy --strict; docstrings on **public** APIs only per `AGENTS.md`. | | Idiomatic Python | Context managers for resources; idiomatic iteration; async-first I/O. | | Design traits | Narrow signatures; contracts via pydantic; prefer composition over deep inheritance for domain rules. | | SOLID | Single-purpose modules; inject dependencies (`Depends`, factories for AWS clients); stable abstractions at boundaries. | | Decorators | Cross-cutting concerns (logging, tracing, retries) stay thin and testable—Powertools patterns for Lambda. | | Descriptors | Rare in app code; default to pydantic fields instead of custom descriptors unless there is a clear win. | | Generators and async | Stream large collections; async generators where appropriate; never block the event loop. | | Tests and refactor | Tests enable refactor; design for testability at I/O seams—pair with `@python-cli-and-testing`. | | Patterns | Prefer clarity over ceremony; use patterns when they reduce coupling, not for their own sake. | | Layering | Domain/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.
From Cloud-Byte-Consulting/Catalyst, BSD-3-Clause.
More from Cloud-Byte-Consulting/Catalyst
- 0.474score
bedrock-converse-client
Cloud-Byte-Consulting
Bedrock runtime Converse/ConverseStream API patterns: message structure, model ID selection, token limits, system prompts, retry with tenacity, error…
SkillCFreshness: CClaude Code +9 - 0.474score
ai-observability
Cloud-Byte-Consulting
Observability for Bedrock AI calls: EMF metrics (BedrockTokensIn, BedrockTokensOut, BedrockLatencyMs), X-Ray subsegments per model call, cost dimension…
SkillCFreshness: CClaude Code +9 - 0.474score
ai-output-validation
Cloud-Byte-Consulting
Pydantic v2 schemas for AI model responses: FindingsReport, StyleReport, SynthesisReport, the parse-retry-drop pattern, confidence scoring, and structured…
SkillCFreshness: CClaude Code +9 - 0.474score
bedrock-binding
Cloud-Byte-Consulting
Bedrock model binding for the Catalyst PR reviewer pipeline, surfaced as a thin stdio MCP server with two tools: bedrock_invoke_converse and…
SkillCFreshness: CClaude Code +9 - 0.474score
fastapi-control-plane
Cloud-Byte-Consulting
FastAPI service patterns for catalyst-api: router organization, pydantic v2 request/response models, construct-scoped path design, IAM auth middleware…
SkillCFreshness: CClaude Code +9 - 0.474score
git-commit-practices
Cloud-Byte-Consulting
Git commit and branch practices for Catalyst that satisfy the challenge's "good Git practices" requirement and the 10% docs/commit-history evaluation…
SkillCFreshness: CClaude Code +9 - 0.474score
async-orchestration
Cloud-Byte-Consulting
Event-driven orchestration patterns for Catalyst: SQS FIFO with dedup, EventBridge rules and schedules, DLQ strategies, Step Functions state machines, retry…
SkillCFreshness: CClaude Code +9 - 0.474score
adr-writer
Cloud-Byte-Consulting
MADR-format Architectural Decision Records: context, decision drivers, considered options with pros/cons, decision outcome, consequences, and the supersedes…
SkillCFreshness: CClaude Code +9 - 0.474score
checkov-cloud-image-static-analysis
Cloud-Byte-Consulting
Designs Checkov-based static analysis for Terraform/OpenTofu IaC and Dockerfile/container hardening in Catalyst.
SkillCFreshness: CClaude Code +9 - 0.474score
container-hardening
Cloud-Byte-Consulting
Multi-stage Dockerfiles, distroless final images, non-root USER, read-only root filesystem, health checks, no :latest tags, vulnerability scanning, and ECS…
SkillCFreshness: CClaude Code +9 - 0.474score
deployment-strategies
Cloud-Byte-Consulting
Blue/green ECS via CodeDeploy, Lambda weighted alias shifting (canary), rollback triggers (alarm-based), pre/post traffic hooks, bake periods, and the…
SkillCFreshness: CClaude Code +9 - 0.474score
devsecops-integration
Cloud-Byte-Consulting
Shift-left security in Catalyst's CI/CD pipelines: SBOM generation, dependency scanning (pip-audit, npm audit, govulncheck), secret scanning (gitleaks…
SkillCFreshness: CClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 57
- Last commit (this folder)
- May 21, 2026 (5 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- BSD-3-Clause
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from Cloud-Byte-Consulting
- 0.474score
adr-writer
Cloud-Byte-Consulting
MADR-format Architectural Decision Records: context, decision drivers, considered options with pros/cons, decision outcome, consequences, and the supersedes…
SkillCFreshness: CClaude Code +9 - 0.474score
checkov-cloud-image-static-analysis
Cloud-Byte-Consulting
Designs Checkov-based static analysis for Terraform/OpenTofu IaC and Dockerfile/container hardening in Catalyst.
SkillCFreshness: CClaude Code +9 - 0.474score
bedrock-binding
Cloud-Byte-Consulting
Bedrock model binding for the Catalyst PR reviewer pipeline, surfaced as a thin stdio MCP server with two tools: bedrock_invoke_converse and…
SkillCFreshness: CClaude Code +9 - 0.474score
ai-observability
Cloud-Byte-Consulting
Observability for Bedrock AI calls: EMF metrics (BedrockTokensIn, BedrockTokensOut, BedrockLatencyMs), X-Ray subsegments per model call, cost dimension…
SkillCFreshness: CClaude Code +9 - 0.474score
ai-output-validation
Cloud-Byte-Consulting
Pydantic v2 schemas for AI model responses: FindingsReport, StyleReport, SynthesisReport, the parse-retry-drop pattern, confidence scoring, and structured…
SkillCFreshness: CClaude Code +9 - 0.474score
container-hardening
Cloud-Byte-Consulting
Multi-stage Dockerfiles, distroless final images, non-root USER, read-only root filesystem, health checks, no :latest tags, vulnerability scanning, and ECS…
SkillCFreshness: CClaude Code +9
Cite this page
clean-python-code skill. Agent Mart. https://agentmart.dev/skills/cloud-byte-consulting-clean-python-code (last updated 2026-10-24)