skillZs
★ LIVE SKILL TAGS ★
>>> LIVE SKILLS INDEX <<<
* OPEN SOURCE *
NO LOGIN, NO TRACKING
※ REAL INSTALL DATA ※
← back to all skills
jr2804/prompts240 installs

python-ultimate

Comprehensive Python development skill covering coding standards, CLI development, linting, testing, debugging, refactoring, code review, auditing, documentation, project planning, uv project management, and standalone scripts. Use when writing, reviewing, refactoring, debugging, or documenting Python code; configuring linters; managing uv projects or standalone scripts; setting up CLI tools; planning features; performing code audits; checking Python antipatterns, forbidden methods, or bad style; or handling bulk operations (10+ files) that benefit from batch workflows.

How do I install this agent skill?

npx skills add https://github.com/jr2804/prompts --skill python-ultimate
view source ↗

Is this agent skill safe to install?

  • Gen Agent Trust Hubpass

    This skill provides a comprehensive Python development toolkit including linter extensions, refactoring utilities, and coding standards. It analyzes local Python source files to detect antipatterns and naming violations using AST parsing. No malicious behavior or data exfiltration patterns were detected.

  • Socketpass

    No alerts

  • Snykpass

    Risk: LOW · No issues

What does this agent skill do?

Python Ultimate

A modular Python guide. This entrypoint routes tasks to concise reference files; load only the guidance needed for the current task.

Quick Start

Routing and Commands

An optional topic/sub-command selects a focused review. If none is provided, perform a general antipattern check using the index below. For help or an unknown topic, show the command table. For a targeted topic, read and follow its linked reference; detailed procedures and examples live there rather than being duplicated here.

TopicWhat it coversCanonical reference
namingFile and directory variable naming; forbidden-scan fixturesnaming-conventions.md
type-checkingTYPE_CHECKING, shared types, import cyclestype-checking.md
type-designStrEnum, Literal, repeated strings, structured datatype-design.md
module-stateGlobals, global, cached getters, module constant tablesmodule-state.md
importsRequired and optional dependency importsimports-optional-dependencies.md
coding-standardsTypes, formatting, paths, docstrings, data modelingcoding-standards.md
linter-rulesContext-aware Ruff fixes; which tool enforces which rulelinter-rules.md
debuggingRoot-cause-first, four-phase debuggingdebugging.md
testingTests, fixtures, mocks, TDD, coveragetesting.md
auditSix-dimension codebase auditauditing.md
verificationEvidence-based completion claimsverification.md
code-reviewEvaluating and responding to review feedbackcode-review.md
documentationDocumentation workflow, structure, and diagramsdocumentation.md
file-analysisNon-destructive file and codebase analysisfile-analysis.md
planningFeature planning and plan structureplanning.md
project-setupProject structure, dependencies, and importsproject-setup.md
cliCommand-line framework and application patternscli-development.md
python-versionsPython-version selection and compatibilityuv-python-versions.md
uvPython execution through uv runuv.md
uv-scriptsPEP 723 standalone scriptsuv-scripts.md
uv-projectsProject setup, dependencies, and lockinguv-projects.md

Response Format

For focused reviews, report:

  1. Summary — finding counts by severity and category
  2. Findings — file:line, pattern class, and rationale
  3. Fix guidance — preferred replacement, with a concise example when useful
  4. References — direct links to relevant guidance
  5. Verification — commands run and observed results

Use concise, technical language; avoid speculative claims.

Antipatterns / Forbidden Styles Index

Use this as the default broad-review checklist. Detailed rationale and examples live in the linked references.

CategoryForbidden patternPreferred patternGuidance
Type checkingTYPE_CHECKING import guardsRefactor module boundaries, use forward refs/protocolsType checking
Type hintsOptional[T]T | NoneCoding standards
Domain valuesReusable Literal["..."] sets or duplicated domain stringsOne StrEnum in its owning/shared moduleType design
Data modelingdict[str, Any] / dict[str, object] used as recordsInternal dataclass; validated wire model; precise map typesType design
Module stateModule-level variables mutated at runtime; the global statement (PLW0603)Pass state explicitly; @functools.cache getter for read-only valuesModule state
Module stateLong or mutable module-level constant tables (dict/list of str)Dedicated data module, MappingProxyType, enum keys + frozen recordsModule state
String formatting.format() or % formattingf-stringsCoding standards
Pathsos.path usagepathlib.PathCoding standards
Importssys.path manipulation to make project modules importableFix package layout or installationProject setup
Lint suppression# noqa used to hide issuesFix the root causeCoding standards
ImportsDefensive try/except ImportError for required dependenciesNormal top-level importsOptional dependencies
Path namingBare path names or prefix forms (dir_x, file_x)_dir / _file suffixesNaming
CommentsComments restating obvious codeExplain intent, constraints, or non-obvious choicesCoding standards
DebuggingGuess-and-check fixes before root-cause analysisFollow the documented four-phase processDebugging
Code reviewPerformative agreement without verificationEvaluate feedback and respond with evidenceCode review
Data modelingPydantic for lightweight internal structs; dataclass at trust boundariesDataclass internally; runtime validation at boundariesCoding standards
Python executionBare python / python3 outside documented exceptionsuv run ...uv
Script metadataHand-written/edited PEP 723 blocksManage metadata with uv init/add/remove --scriptuv scripts
Project dependenciespip install in a uv-managed projectuv adduv projects
Lockfilesuv sync without --locked when reproducibility mattersuv sync --locked or trusted --frozenuv projects
VCS hygieneCommit .venv/ or omit uv.lockIgnore .venv/; commit uv.lockuv projects
Python architecturesAssume uv python install supplies 32-bit PythonUse uv run --python <system-interpreter-path>Python versions
Type annotationsUnjustified Any or objectPrecise unions, generics, protocols, or narrowest typeCoding standards
DefaultsNone for mutable collections or as a silent error signalfield(default_factory=...); raise/return explicit resultCoding standards

Core Defaults

  • Python 3.10+; annotate function parameters and return values.
  • Use uv run for Python commands; follow references/uv.md for documented bootstrap or activated-environment exceptions.
  • Avoid TYPE_CHECKING guards; fix dependency direction or use the documented alternatives.
  • Prefer explicit domain types and precise data models; see the type-design and coding standards references.
  • Never use the global statement or runtime-mutated module variables; model read-only process-wide values as a @functools.cache getter (see module state).
  • Consult the task-specific reference for full procedures, examples, compatibility notes, and exceptions.

Bundled Scanners

Ruff owns most mechanical rules. Only two checks need the project context Ruff cannot see, and both live in one script:

uv run assets/check_antipatterns.py src --ban-noqa PLW0603
uv run assets/check_antipatterns.py . --exclude examples   # skip deliberate fixtures

IMPORT-ERROR-GUARD and BANNED-NOQA are documented in Linter Rules. Naming checks use assets/check_path_naming.py (see Naming). Both scanners exit 0 clean, 1 on findings, and 2 when the scan itself was unreliable (nothing scanned, an unparseable file, or a fact the rules need could not be derived) — never treat 2 as a pass. Run them through uv run in the project environment, not python -I: the distribution map that resolves PIL → Pillow comes from installed packages, and without it a guard on an aliased import fails the scan instead of being judged.

The exit contract is pinned by assets/test_check_antipatterns.py (uv run assets/test_check_antipatterns.py). Keep it passing when changing a scanner: it asserts every documented exit-2 cause, and — the half usually missing — that honest runs still pass, so a guard cannot drift into rejecting scans that established every fact they needed.

Reference Map

ReferenceUse it for
auditing.mdAudit dimensions, severity, report format
cli-development.mdTyper/Click, parameters, output, environment variables
code-review.mdReview-feedback workflow and technical responses
coding-standards.mdType hints, formatting, paths, docstrings, data modeling
debugging.mdRoot-cause investigation and debugging workflow
documentation.mdDocumentation workflow, structure, diagrams
file-analysis.mdNon-destructive file and codebase analysis
imports-optional-dependencies.mdRequired vs. optional imports
linter-rules.mdRuff rules and context-aware fixes
module-state.mdGlobals, global/PLW0603, cached getters, constant tables
naming-conventions.mdFile, directory, variable, and fixed-vocabulary naming
planning.mdFeature planning and plan structure
project-setup.mdProject structure, dependencies, and imports
refactoring.mdSafe refactoring, code transfer, bulk operations
testing.mdFixtures, parameterization, mocking, TDD, coverage
type-checking.mdType-only imports, shared types, circular dependencies
type-design.mdEnums, domain strings, records, precise mappings
uv.mdExecution through uv run and sandboxing
uv-projects.mdProject workflow, locking, dependency groups, workspaces
uv-python-versions.mdVersion selection and non-default architectures
uv-scripts.mdPEP 723 metadata and standalone scripts
verification.mdEvidence-based verification and completion claims

Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.

<a href="https://skillzs.dev/skills/jr2804/prompts/python-ultimate">View python-ultimate on skillZs</a>