docstring-patterns

Guide writing docstrings across TypeScript/JavaScript, Python, Rust, and Go.

Updated Feb 25, 2026
One-click install
npx skills add https://github.com/HermeticOrmus/LibreCopy-Claude-Code --skill docstring-patterns
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docstring-patterns
Source: https://github.com/HermeticOrmus/LibreCopy-Claude-Code/tree/main/plugins/code-comments/skills/docstring-patterns
Command: npx skills add https://github.com/HermeticOrmus/LibreCopy-Claude-Code --skill docstring-patterns

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides comprehensive guidance on writing effective documentation comments (docstrings) for various programming languages, ensuring code clarity and maintainability.

Core Features & Use Cases

  • Best Practices: Learn universal principles for clear, concise, and informative docstrings.
  • Language-Specific Conventions: Understand the unique syntax and standards for TypeScript/JavaScript, Python, Rust, and Go.
  • Pattern Library: Discover common docstring patterns for complex scenarios like builder patterns and overloaded functions.
  • Use Case: A developer new to a project can use this Skill to quickly understand and apply the correct docstring format for their code contributions, ensuring consistency across the codebase.

Quick Start

Explain the best practices for writing Python docstrings.

Frequently Asked Questions about docstring-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write effective Python docstrings for better code maintainability?

Writing effective Python docstrings requires following language-specific conventions and universal best practices to ensure code clarity. This Skill provides guidance on syntax standards, common patterns, and anti-patterns to improve developer onboarding and maintainability across your codebase.

What are the TypeScript documentation comment standards for complex functions?

TypeScript documentation comment standards involve specific syntax conventions for documenting complex scenarios like overloaded functions. This Skill provides a pattern library covering TypeScript/JavaScript standards, ensuring your code comments remain clear, concise, and informative for other developers.

Does this docstring guidance cover Rust and Go code comment conventions?

Yes, this docstring guidance covers Rust and Go code comment conventions alongside TypeScript and Python. It explains the unique syntax and standards for each language, helping you apply the correct documentation format and maintain consistency across multi-language projects.

What's the best way to document overloaded functions and builder patterns?

Documenting overloaded functions and builder patterns requires applying specific docstring patterns designed for complex code structures. This Skill offers a pattern library that demonstrates how to clearly document these advanced scenarios while avoiding common documentation anti-patterns.

Why do inconsistent code comments cause developer onboarding problems?

Inconsistent code comments cause developer onboarding problems by reducing code clarity and increasing the time needed to understand project logic. Applying standardized docstring conventions and universal best practices ensures your codebase remains maintainable and accessible to new contributors.