python-docstring-style

bởi nvidia

Viết docstrings Python và chú thích nội dòng theo phong cách nhà flashdreams — header SPDX, docstring module một dòng, docstring hàm kiểu 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.

Thêm skills từ nvidia

accelerated-computing-cudf
nvidia
Hướng dẫn chính thức từ NVIDIA về NVIDIA cuDF GPU DataFrames, tăng tốc pandas, dask-cuDF, ETL, joins, groupby, I/O CSV/Parquet, ngữ nghĩa nullable, và…
accessibility
nvidia
Quy trình kiểm tra khả năng truy cập thống nhất trên phân tích tĩnh, kiểm thử thời gian chạy, các mẫu ARIA, điều hướng bàn phím và độ tương phản màu sắc. Sử dụng kỹ năng này…
accessing-mlflow
nvidia
Truy vấn và duyệt kết quả đánh giá được lưu trữ trong MLflow. Sử dụng khi người dùng muốn tra cứu các lần chạy theo ID lời gọi, so sánh chỉ số giữa các mô hình, lấy tạo phẩm…
add-binding-feature
nvidia
Thêm hoặc thay đổi bề mặt API NeMo Relay công khai trên toàn bộ runtime lõi và mọi binding bị ảnh hưởng
add-middleware
nvidia
Thêm một loại guardrail hoặc intercept mới vào pipeline middleware của NeMo Relay
aicr-analyzing-snapshots
nvidia
Sử dụng khi phân tích tệp YAML snapshot AICR, xem xét trạng thái cụm, so sánh đặc điểm nhà cung cấp, trích xuất thông tin chi tiết về cấu trúc liên kết GPU/mạng, hoặc…
aicr-auditing-docs
nvidia
Sử dụng khi rà soát tài liệu Markdown của AICR để tìm trùng lặp, sai lệch, cồng kềnh, và khoảng trống — nhằm giữ tài liệu có giá trị cao khi dự án phát triển. Kích hoạt khi "audit…
aicr-creating-guided-demos
nvidia
Tạo khung kịch bản demo có hướng dẫn tương tác (demos/*.sh), trực tiếp hoặc tự học, theo mẫu Frame → Tell → Show → Close. Kích hoạt khi có "demo script", "guided…