Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

write-docstring

Skill by ethereum

Write Docstring is a skill that sets out docstring conventions for the Ethereum Python specification. It is for contributors who write or edit docstrings in src/ethereum/.

  • Score 79
  • 1.2k stars
  • CC0-1.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install write-docstring

Built from the published package, never by AI.

git clone --depth 1 https://github.com/ethereum/execution-specs /tmp/execution-specs && mkdir -p ~/.claude/skills && cp -r /tmp/execution-specs/.agents/skills/write-docstring ~/.claude/skills/write-docstring

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install write-docstring in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

Write Docstring is an agent skill published by ethereum. It sets out the conventions for docstrings in the src/ethereum/ directory of the Ethereum specification. The skill explains that docstrings are the main prose of the specification and are rendered into HTML by docc, which parses them as Markdown. It tells the assistant to run the skill before writing or modifying docstrings.

The guidance covers module, function, class and attribute docstrings. It includes rules for line length, imperative summaries, cross-references using ref: links, and Markdown formatting. It forbids reStructuredText and NumPy or Google style sections, and says constants should not appear in docstrings. It points to ethash.py, genesis.py, trace.py and fork_criteria.py as examples.

Written from the project's SKILL.md and checked against it.

What it can do

  • Module docstringsGuidance for narrative module introductions with cross-references to key types and functions.
  • Function and class docstringsRules for summaries and narrative, with parameters referenced inline instead of formal sections.
  • Attribute docstringsCovers constants, class fields, module-level variables and type aliases.
  • Cross-referencesExplains ref: links to fully qualified names and standard links to external URLs.
  • Markdown formattingDescribes emphasis, backticks, numbered lists and bullet lists for docstring prose.
  • Anti-patternsLists RST directives, RST underlines and NumPy or Google sections to avoid.

Try asking

  • Write a module docstring for my new file in src/ethereum/
  • Review this function's docstring against the Markdown and style rules
  • Add attribute docstrings to these constants and class fields

Good to know

  • Written for docstrings in src/ethereum/ of the Ethereum specification repository.
  • Aborts with an error if the example reference files no longer exist.
  • Docstrings must be Markdown only, with no reStructuredText.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .agents/skills/write-docstring/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to write-docstring

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

write-docstring: common questions

Does this skill allow reStructuredText docstrings?

No. The source says docstrings must be Markdown only and lists RST directives and section underlines as anti-patterns.

Should function docstrings include Parameters or Returns sections?

No. The source says to reference parameters inline with backticks and not to use Parameters, Returns or Raises sections.

Why are docstrings placed after constants and fields?

The source says docc documents any assignment followed by a bare string literal, which it describes as non-standard Python.

How do I install write-docstring?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is write-docstring free?

The code is published under the CC0-1.0 licence. The service it connects to may have its own pricing.

Is write-docstring safe to use?

It scores 79 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to write-docstring?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

write-docstring Install

Add to stack

Loading.