---
name: awslabs-python-review-checklist
description: "Deterministic Python review checklist shipped with the CAO skills-lifecycle example"
license: "Apache-2.0"
metadata:
  decimalai-skill-id: "1d7abf1a-8602-476f-8cb3-dd8401d90bf2"
  decimalai-version-id: "69203a63-f01f-442d-8c2d-6dab81a9ebdf"
  decimalai-version: "1"
  decimalai-body-sha256: "89959753afee2c1035520310fc46086d5495491713d09dba6dd0dfe5ffb5db73"
  decimalai-name: "awslabs/python-review-checklist"
  decimalai-format: "1"
  decimalai-invocation: "model"
  decimalai-source: "https://app.decimal.ai/s/awslabs-python-review-checklist@1/SKILL.md"
---
# Python Review Checklist

Apply every item below, in order, when reviewing Python code. Each item targets
one class of defect, and the example's review target (`fixture/sample_note.md`)
contains exactly one instance of each.

- [ ] Missing imports — every name used at module or function scope is imported.
- [ ] Mutable default arguments — no `def f(x=[])` or `def f(x={})`; default to
      `None` and assign a fresh container inside the function.
- [ ] Bare `except:` clauses — every handler catches a specific exception type.
- [ ] Type hints — every public function annotates its parameters and return
      value.

## Output contract

End every review with exactly one line, and nothing after it:

    Checklist applied: <applied>/<total> items

`<applied>` counts the checklist items the review actually checked. A reviewer
that did not apply the full checklist must not print this line, so anything
downstream can treat the line as proof that this skill's guidance engaged.
