一键导入
pydoc
Add RST docstrings to public Python methods/classes. Use when asked to document Python code.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Add RST docstrings to public Python methods/classes. Use when asked to document Python code.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
GenVM commit message conventions. Use when writing a commit message, squashing/merging a PR, or amending history. Covers the `type(scope): summary <emoji>` format, the five types, the standard scope set, the gitmoji suffix, and mistakes to avoid (typos, vague "fix CI N").
Builds the GenVM project. Use after making code changes to compile Rust binaries.
Read this BEFORE trying to fix a GenVM build that fails on macOS. GenVM is NOT built natively on macOS — building from source on Darwin breaks the deterministic runner-artifact invariant. Use a remote Linux nix-builder instead. Triggers on any build/nix/runner/linker/ar failure on a Mac (Apple Silicon or Intel).
GenVM Rust test conventions and style. Use when writing, adding, or modifying Rust tests — inline `#[cfg(test)] mod tests`, integration tests under a crate's `tests/`, helpers, assertions, and how `ya-test-runner` discovers them.
Runs tests for the GenVM project. Use after making code changes to verify correctness.
Sets up the development environment for GenVM repository. Use when setting up the repo for the first time or when dependencies need to be refreshed.
| name | pydoc |
| description | Add RST docstrings to public Python methods/classes. Use when asked to document Python code. |
| argument-hint | [file.py ...] |
Add RST-format docstrings to public entities in the specified Python files.
_. Skip private/internal entities entirely.:param:, :returns:, :raises:, :type:, etc.).clear, append), the summary can be very brief.:raises ExceptionType: for every exception the method can raise (including those from called helpers like _map_index). Check the implementation, not just the signature.__init__ that just raises TypeError (already has a docstring by convention), or dunder methods whose behavior is obvious from the protocol they implement (e.g., __len__, __iter__, __repr__, __contains__) — unless they have non-obvious behavior or raise specific exceptions worth noting.:raises:). Do not rewrite correct docstrings.:type: or :rtype: fields.The opening """ goes on its own line, followed by the summary on the next line:
def method(self, param: Type) -> ReturnType:
"""
Short summary of what this does.
:param param: what this parameter means
:returns: what is returned
:raises ValueError: when param is invalid
"""
For multi-line descriptions (rare — prefer single line):
def method(self) -> ReturnType:
"""
Short summary.
Additional context only if the summary is insufficient.
:returns: description
:raises KeyError: when key is not found
"""
_), internal descriptor classes, or non-public helpers.ARGUMENTS: $ARGUMENTS