python-docstring-style

от nvidia

Пишите docstring'и Python и встроенные комментарии в соответствии с домашним стилем flashdreams — заголовок SPDX, однострочный docstring модуля, docstring'и функций в стиле Google…

npx skills add https://github.com/nvidia/flashdreams --skill python-docstring-style

Python docstrings and comments

Read Coding conventions, inspect the surrounding module, and check the docs configuration when changing rendered API documentation. The current Python renderer uses Google-style docstrings.

  • Keep the existing SPDX notices; new files use the actual copyright holder and current year as described in CONTRIBUTING.md. Put the module docstring before imports.
  • Use a concise summary. For functions, describe the operation with an imperative verb; add Args, Returns and Raises only where they explain semantics, shapes, defaults or caller-visible failure conditions beyond the signature.
  • Match nearby attribute docstrings for class/dataclass fields and non-obvious module constants. Explain invariants once; avoid boilerplate for _target or values already clear from their names and types.
  • Keep comments that explain intent, constraints or help readers scan a complex block. Remove stale history and literal restatements of adjacent code, without stripping useful comments wholesale.
  • Use the current renderer's supported code/reference syntax. Do not introduce Sphinx-only roles or configuration assumptions into the Zensical docs.

Run the applicable formatter and documentation checks for the files changed. Keep API behavior unchanged during documentation-only edits.

Больше skills от nvidia

accelerated-computing-cudf
nvidia
Официальное руководство от NVIDIA по NVIDIA cuDF GPU DataFrames, ускорению pandas, dask-cuDF, ETL, объединениям, группировкам, вводу/выводу CSV/Parquet, семантике nullable и…
accessibility
nvidia
Единый процесс аудита доступности, охватывающий статический анализ, тестирование в рантайме, паттерны ARIA, навигацию с клавиатуры и цветовой контраст. Используйте этот навык…
accessing-mlflow
nvidia
Запрос и просмотр результатов оценки, хранящихся в MLflow. Используйте, когда пользователь хочет найти запуски по идентификатору вызова, сравнить метрики между моделями, получить артефакты…
add-binding-feature
nvidia
Добавить или изменить публичную поверхность API NeMo Relay в основном runtime и во всех затронутых привязках
add-middleware
nvidia
Добавить новый тип защиты или перехвата в конвейер промежуточного ПО NeMo Relay
aicr-analyzing-snapshots
nvidia
Используйте при анализе файла AICR snapshot YAML, проверке состояния кластера, сравнении характеристик провайдеров, извлечении данных о топологии GPU/сети или…
aicr-auditing-docs
nvidia
Используется при проверке Markdown-документации AICR на дублирование, расхождения, раздувание и пробелы — чтобы поддерживать высокую ценность документации по мере развития проекта. Срабатывает по запросу «audit…»
aicr-creating-guided-demos
nvidia
Создаёт каркас интерактивного сценария guided-демо (demos/*.sh), в живом режиме или для самостоятельного прохождения, по паттерну Frame → Tell → Show → Close. Срабатывает по запросу "demo script", "guided…