Install
$ agentstack add skill-wty-yy-skills-python-docstring-standard ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
Python Docstring Standard
Mandatory Opening Block (for Python script files)
When editing a runnable Python script, the very beginning of the script text (typically module docstring/header) must include:
- What the script does (core functionality).
- A brief usage overview.
- If invokable from CLI:
- Minimal startup command.
- Full startup command with configurable options explained (only when extra configurable parameters are needed).
- Add a
Notes:section for caveats, environment assumptions, or operational reminders when needed. - If the script has no additional configurable parameters beyond the minimal command, omit both
Full Command:andOptions:.
Recommended structure:
""".
Overview:
.
Quick Start:
python path/to/script.py
Full Command:
python path/to/script.py --arg1 ... --arg2 ...
Options:
--arg1:
--arg2:
Notes:
"""
Overview
Apply this skill when the user asks to add, rewrite, or normalize Python docstrings by team convention. Edit only documentation text and keep runtime behavior unchanged.
Coding Defaults
- Use 4 spaces per indentation level in all Python code snippets and generated examples.
- Do not use tab characters for indentation.
- Prefer object-oriented decomposition when structure decisions are needed: model related state/behavior in classes, and keep method responsibilities focused.
- For class methods, describe both the method action and its role within the class responsibility.
Required Format
Use triple double quotes (""") for every function entry (def), including class methods and nested functions unless the user narrows scope.
Write docstrings in this order:
- First paragraph: one brief sentence describing the function's functionality.
- Second paragraph: if needed, describe invocation/build logic directly as normal prose.
Args:section only when the function has input parameters worth documenting.Returns:section only when the function returns a meaningful value.
Use this template:
"""A brief description of the function's functionality.
If necessary, include the calling/build logic here as normal second-paragraph prose. Do not use subheadings.
Args:
arg1: Description for arg1.
arg2: Description for arg2.
Returns:
A description of the return value.
"""
Strict Rules
- Write logic notes directly in the second paragraph.
- Omit
Args:when there are no meaningful inputs. - Omit
Returns:forNone-style procedures unless the user explicitly wants it documented. - In script header blocks, omit
Full Command:andOptions:when no extra configurable parameters are required. - Put operational cautions and assumptions under
Notes:when applicable. - Keep wording concise and concrete; avoid restating obvious type hints.
- Use exactly 4 spaces for indentation in Python code examples and edits; never use tabs.
- Prefer an object-oriented modeling approach by default unless the user explicitly asks for a different style.
Editing Workflow
- Find all target
defentries in scope. - Add missing docstrings or normalize existing ones to the required format.
- Preserve function signatures, decorators, and executable code.
- Keep terminology consistent across related functions.
- Run syntax validation after edits (
python -m py_compile ...) when feasible.
Output Expectations
When reporting results, summarize:
- Which files were updated.
- Whether syntax validation was run and passed.
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: wty-yy
- Source: wty-yy/skills
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.