with one click
python-docstrings
Enforces Google-style Python docstrings for Python code
Menu
Enforces Google-style Python docstrings for Python code
Audits GitHub Actions workflows for security vulnerabilities in AI agent integrations including Claude Code Action, Gemini CLI, OpenAI Codex, and GitHub AI Inference. Detects attack vectors where attacker-controlled input reaches AI agents running in CI/CD pipelines, including env var intermediary patterns, direct expression injection, dangerous sandbox configurations, and wildcard user allowlists. Use when reviewing workflow files that invoke AI coding agents, auditing CI/CD pipeline security for prompt injection risks, or evaluating agentic action configurations.
Designs and reviews REST APIs for FastAPI services using consistent resource naming, HTTP semantics, validation, security, and error handling patterns. Use for backend API tasks, endpoint design/refactors, or API review requests in FastAPI/Python projects.
Run or continue model benchmarks, collect measured results, and refresh README/docs benchmark sections from generated artifacts. Use when benchmark tables in model docs need to be created, updated, or corrected.
Reviews anomalib docstrings, documentation updates, and changelog expectations
Keep anomalib model READMEs, docs pages, image assets, and benchmark/result references in sync
Export, validate, and publish model sample-result images into docs/source/images and reference them from README/docs pages. Use when model sample images are missing, outdated, or suspected to be invalid.
| name | python-docstrings |
| description | Enforces Google-style Python docstrings for Python code |
Use this skill when reviewing or writing Python docstrings.
ArgsReturnsRaisesExampleArgs, use name (type): description.Returns, describe both the type and meaning of the returned value.Raises when the function intentionally raises exceptions.Example blocks with >>> when examples help clarify usage.def my_function(param1: int, param2: str = "default") -> bool:
"""Short description.
A longer explanation.
Args:
param1 (int): Explanation of param1.
param2 (str): Explanation of param2. Defaults to "default".
Returns:
bool: Explanation of the return value.
Example:
>>> my_function(1, "test")
True
"""
return True
__init__ method__init__ docstring.class MyClass:
"""My class description.
A longer explanation.
Args:
param1 (int): Description of param1.
param2 (str): Description of param2.
Example:
>>> my_class = MyClass(param1=1, param2="test")
>>> my_class.param1
1
>>> my_class.param2
'test'
"""
def __init__(self, param1: int, param2: str) -> None:
...