code-documentation

Standardize docstrings, JSDoc, and dartdoc across Dart, Python, and TypeScript.

2.8k|166|Updated Feb 25, 2026
One-click install
npx skills add https://github.com/flutter/agent-plugins --skill code-documentation-flutter
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-documentation
Source: https://github.com/flutter/agent-plugins/tree/main/.agents/agents/reidbaker-agent/skills/code-documentation
Command: npx skills add https://github.com/flutter/agent-plugins --skill code-documentation-flutter

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill addresses the inconsistency and lack of clarity in code documentation, ensuring that APIs and implementation details are documented in a way that is maintainable, professional, and easy for other developers to understand.

Core Features & Use Cases

  • Standardized Documentation: Provides clear rules for writing docstrings, JSDoc, and dartdoc across Dart, Python, and TypeScript.
  • Best Practice Enforcement: Guides the user to explain the why behind code, use third-person verbs, and maintain concise, user-centric summaries.
  • Use Case: When refactoring a complex Flutter widget or a Python utility module, use this skill to ensure all public members have proper summaries, parameter descriptions, and usage examples.

Quick Start

Apply the code documentation guidelines to the current file to ensure all public members have a one-sentence summary and correct formatting.

Frequently Asked Questions about code-documentation

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

FAQPage Schema
How do I standardize JSDoc and dartdoc comments across a codebase?

To standardize JSDoc and dartdoc comments, apply consistent rules for public API summaries, parameter descriptions, and usage examples. This ensures professional, maintainable code documentation across Dart, Python, and TypeScript.

What is the best way to document complex public APIs in TypeScript?

The best way to document complex public APIs in TypeScript is using structured JSDoc with a concise one-sentence summary, parameter descriptions, and explicit usage examples to improve developer clarity and maintainability.

Does this code documentation approach work for Python docstrings?

Yes, this code documentation approach works for Python docstrings by enforcing language-specific structures, third-person verbs, and user-centric summaries to maintain consistency during feature development or refactoring.

When do I need to write implementation comments versus standard docstrings?

You need to write implementation comments when explaining the why behind complex code logic, whereas standard docstrings or JSDoc provide user-centric summaries and parameter descriptions for public APIs.

How do I document a Flutter widget refactoring process?

To document a Flutter widget refactoring process, apply dartdoc guidelines to ensure all public members have proper summaries, parameter descriptions, and usage examples that clearly explain the implementation details.

What are the limitations of automated code documentation generation?

Automated code documentation generation cannot infer the underlying business logic or the specific reasoning behind code decisions; it requires manual developer input to explain the why and maintain concise user-centric summaries.