/pythonista:python-documentfrom pythonista
Add missing module summaries, docstrings, type annotations, and why-comments to Python code -- additive only, never changing behavior or rewording existing documentation. Use when the user asks to document, add docstrings/type hints/comments to, or improve documentation coverage of Python code, or as the documentation stage of a ship pipeline.
Ships in pythonista. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Safe-tier mutation stage of the pythonista pipeline: additive documentation only. Targets exactly
the gaps python-scan's check_documentation.py flags -- missing module docstrings, missing
public function/class docstrings, missing type hints -- and fills them, matching whatever
docstring convention the target project already uses.
document stage of python-workflow's ship-it recipe (runs first in the safe tier, before
patterns and quality-tools)../python-scan/scripts/check_documentation.py <path> --format json (or
use a scan report already supplied by python-workflow) to get exactly which modules, classes,
and functions are missing a docstring, a return type, or parameter types -- and the
docstring_coverage_pct / type_hint_coverage_pct baseline to compare against afterward.Args: /
Returns: / Raises: sections → Google style. Parameters\n---------- → NumPy style.
:param x: / :returns: → reST/Sphinx style.CONTRIBUTING.md, or a project
CLAUDE.md/AGENTS.md.check_documentation.py flagged:
X | None, list[str]) —
check the target's pyproject.toml requires-python; only fall back to typing.Optional/
List if it targets < 3.10.Raises: entry for an exception the function can't
actually raise (that's inventing a claim, not documenting one).python-review's
Contract axis (does the docstring's claim match what the body does?), not this skill's. This
skill only fills absence, it doesn't audit presence.python-patterns / python-refactor.python-quality-tools's ruff format runs after this stage in
ship-it and will reflow anything this skill adds.Raises: entry, a side effect) the code doesn't actually
have — every claim must be checkable against the body being documented.python-workflow's plan checkpoint below the tuned bands
(docstring coverage ≥80% and type-hint coverage ≥90%, from check_documentation.py) — both
must clear the bar, not either.Prompt: "document fixtures/smelly_module.py".
Expect docstrings and type hints proposed for the many undocumented functions and methods —
unused_helper, the whole OrderProcessor class and its methods, PricingStrategy,
StandardPricingStrategy, apply_pricing, compute_total_v1/v2, and unreachable_example —
additive only, since the module docstring at the top is already present and must not be reworded.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub takfes/indie-marketplace --plugin pythonista12 skills in this plugin
/python-architectureWhole-module structural critique using deep-module design vocabulary: is a module's interface small relative to what it hides (deep) or nearly as complex as its implementation (shallow), does it survive the deletion test, and does its seam sit in the right place. Emits structured findings, never an HTML report or a mutation. Explicit call only, or reachable through python-workflow's critique recipe recommending it by name.
/python-packagingCreate distributable Python packages with proper project structure, setup.py/pyproject.toml, and publishing to PyPI -- plus CLI surface design (argument ergonomics: positionals vs. options, subcommands, exit codes, output format), not just entry-point wiring. Use when packaging Python libraries, designing or building CLI tools, or distributing Python code./python-patternsApply idiomatic, behavior-preserving Python patterns -- EAFP, guard clauses, comprehensions, dataclasses, decorators, exception hierarchies, YAGNI-driven simplification -- to a file or module without changing what it does. Use when the user asks to simplify, make more idiomatic/pythonic, clean up, or reduce over-engineering in Python code, or as the idiom-cleanup stage of a mutating pipeline./python-performance-optimizationProfile and optimize Python code using cProfile, tracemalloc, and modern tools (Scalene, memray, py-spy, viztracer), including generating an automated hotspot report and a live CPU/memory dashboard. Use when debugging slow Python code, optimizing bottlenecks, tracking memory/CPU while a script runs, or improving application performance./python-quality-toolsRun the deterministic Python tooling loop -- ruff format, ruff check --fix, mypy, a secret scan, and a dependency audit -- against a file or project, fixing what's auto-fixable and reporting what isn't. Bootstraps every tool through uvx rather than requiring it pre-installed. Use as the mechanical fix pass in a cleanup or ship pipeline, or whenever the user asks to "run the linter/formatter/type checker", "fix lint issues", "check for secrets", or "audit dependencies" on Python code./python-refactorRestructure tangled code into a clear equivalent, preserving behavior. TRIGGER WHEN: the user asks for "readable", "maintainable" or "clean" code, a review flags comprehension issues, or the task is legacy modernization or onboarding cleanup.