Every premium and members-only resource for $9.99/month, as a no-commitment subscription. See the plans

PalateKit

Menu

Request a resource

Describe the resource you are missing in one sentence. We will email you when it is published.

0 / 280

Unlock PalateKit

Unlock everything

Plan

Paying means accepting our terms of sale.

Secure payment by Stripe. Receipts and invoices sent by email.

Welcome back

Sign in to install, download or save this resource. A free account is enough for free resources.

Python review gate: modern idioms and structure v1.0.0

Use this resource to review modern Python for unnecessary shapes or patterns imported from other languages

New

  • 374 downloads
  • 114 likes
  • 171 saves

Free

Install with the CLI

In a terminal, from the folder you want:

npx --yes palatekit@latest install python-modern-idiom-review-gate

With no option, the skill goes to ~/.agents/skills/; add --agent claude-code (or codex, cursor…) to target an agent.

First time: connect the CLI with

npx --yes palatekit@latest login

A blind reviewer checks the code against 20 decidable rules that flag if-elif ladders, hand-written __init__ methods, single-implementation ABCs and overly broad except blocks. It returns a pass or fail verdict naming the rule. The agent does not rewrite the code.

Mostly picked by

Updated November 2, 2026

Card for the “Python review gate: modern idioms and structure” skill

Details

Generates with
Your agent's model
Licence
MIT

Similar resources

View all

What you get

  • SKILL.md: review protocol and verdict format
  • references/: one card per rule on dispatch, alternatives and error handling

Good fit for

  • A long Python module builds up if/elif chains per type
  • You want a check before merging generated code

Not for

    Tags

    • python
    • code review
    • idioms
    • dataclasses
    • structure

    About

    You say

    “Run this Python module through the review gate and tell me where a match or a registry would replace the if chain.”

    Card for the “Python review gate: modern idioms and structure” skill

    Skill published by pproenca under the MIT license, delivered in its original version.

    Show more

    How to use it

    1. Install the skill in your agent's skills folder
    2. Ask your agent to review modern Python for unnecessary shapes or patterns imported from other languages
    3. Review and adjust the result

    Content preview

    Files

    • assets/templates/verdict.md1.7 KB
    • gotchas.md4.1 KB
    • LICENSE1.1 KB
    • metadata.json1.4 KB
    • NOTICE-PALATEKIT.md0.5 KB
    • references/_sections.md5.2 KB
    • references/alt-collapse-passthrough-layers.md2.2 KB
    • references/alt-compose-over-concrete-inheritance.md2.5 KB
    • references/alt-function-over-single-method-class.md2.4 KB
    • references/alt-no-single-impl-interfaces.md2.2 KB
    • references/disp-match-over-isinstance-ladders.md2.3 KB
    • references/disp-registry-over-branch-ladders.md3.1 KB
    • references/disp-split-boolean-switch-params.md2.1 KB
    • references/disp-strenum-over-string-states.md2.1 KB
    • references/flow-no-silent-broad-except.md2.4 KB
    • references/flow-taskgroup-over-orphan-tasks.md2.3 KB
    • references/model-dataclass-over-boilerplate.md2.4 KB
    • references/model-shape-the-data-clump.md2.2 KB
    • references/model-typed-boundary-payloads.md2.2 KB
    • references/reviewer-prompt.md8.1 KB
    • references/std-aware-utc-datetimes.md1.9 KB
    • references/std-no-hand-rolled-batteries.md2.3 KB
    • references/std-pathlib-over-ospath.md1.9 KB
    • references/std-zip-strict-independent-sources.md1.8 KB
    • references/typing-builtin-generics-and-unions.md1.7 KB
    • references/typing-pep695-generics.md2 KB
    • references/typing-self-over-typevar-fluent.md1.9 KB
    • SKILL.md9.4 KB

    Origin and licence

    Listed unmodified

    Author
    pproenca
    Source
    github.com/pproenca/dot-skills/tree/cf93c57cac89d6fc3e4194686000411567f5caf3/skills/.experimental/adversarial-python
    Licence
    MIT

    Notice

    « adversarial-python » (pproenca, MIT) livré dans sa version d'origine : fiche en français et en anglais par PalateKit.

    User reviews

    –

    No ratings yet

    Loading reviews…

    Delete your review?

    Your rating and comment will be removed from the page.