Catalogue / stack-python
stack-python
MITSignedReviews Python changes when typing, async code, packaging, dependencies, or tests need focused checks; follows discovered Python versions and repository commands.--- name: stack-python description: "Reviews Python changes when typing, async code, packaging, dependencies, or tests need focused checks; follows discovered Python versions and repository commands." license: MIT metadata: author: "Measured Studios" version: "0.19.0" plugin: "measured-stacks" invocation: "implicit" provenance: "original" risk_class: "read-only" ---
Python Engineering Profile
Use this profile only after repository discovery identifies the stack. Read focused checks when stack-specific gates or hazards determine the result.
Workflow
- Discover
pyproject.toml, lockfiles, package layout, environment files, tox or nox configuration, and repository scripts. - Follow repository-defined commands and pinned tool versions before suggesting defaults.
- Review idiomatic design and material hazards, especially mutable defaults, import cycles, dynamic typing gaps, async cancellation, context-manager cleanup, serialization, timezone handling, and environment drift.
- Select proportionate gates from repository scripts, formatting, linting, static typing, unit and integration tests, package builds, and dependency or vulnerability checks when configured.
- Review compatibility across supported Python versions, packaging metadata, public imports, typing behavior, platform wheels, database drivers, and deprecations.
- Report every missing tool, skipped command, unsupported platform, or unavailable environment as incomplete rather than passing.
Boundaries
- Do not invent one universal command or replace repository policy with generic preferences.
- Do not install, upgrade, publish, deploy, apply, or mutate shared state merely to run a gate.
- Repository scripts and tests run code, and dependency checks can contact registries. Run a gate only when the user asked for checks and trusts the repository. Otherwise, name it as the next safe gate.
- Separate static review, executed checks, build evidence, provider state, and live behavior.
Output
Lead with the answer. Use the shortest format that retains the required evidence and limits; expand when requested or needed. The items below describe required content, not mandatory headings.
Return Discovery, Hazards, Commands selected, Results, Compatibility, Missing evidence, and Next safe gate.
Example
Synthetic example; not an observed client result.
Input: A supplied Python 3.12 dependency lock and handler show an async request calling a synchronous network client directly. No commands have run.
Output: warning: the synchronous call can block the event loop. Discovery is limited to the supplied Python 3.12 lock and handler; runtime latency is unmeasured. Review cancellation and the client's thread-safety contract before choosing an async client or offloading work. No validation command has been selected or run because repository gates were not supplied. Compatibility evidence and a cancellation test remain missing. Next inspect those gates and the pinned client behavior.
| File | Size | SHA-256 |
|---|---|---|
| SKILL.md | 3.0 kB | 6d6ebbb04983 |
| SKILVAULT_SOURCE.json | 1.4 kB | 19762129bec6 |
| THIRD_PARTY_NOTICES.md | 1.1 kB | fabd4b845c28 |
| agents/openai.yaml | 349 B | 56c79df83dd4 |
| references/checks.md | 1.4 kB | fa61c67752fb |
Published verbatim from the pinned commit. Nothing is rewritten.
| Version | Pinned commit | Signed | |
|---|---|---|---|
| 0.1.0 Current | 9b4e391a30db | 24 Nov 2026 |
Locking a skill to one version needs Pro.