code-documentation
Guide for writing effective code documentation, including docstrings, JSDoc, dartdoc, and implementation comments.
Skill by mordechai30
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/mordechai30-code-documentation
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: writing, agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/code-documentation
What's inside
- Skill name
code-documentation- Description
- Guide for writing effective code documentation, including docstrings, JSDoc, dartdoc, and implementation comments. Use this skill when writing new code, adding features, or improving existing documentation in Dart, Python, or TypeScript to ensure clarity and maintainability.
- License
- BSD-3-Clause
- Instructions
- 66 lines in SKILL.md · view on GitHub
Files (4)
- SKILL.md
- dart.md · references/
- python.md · references/
- typescript.md · references/
SKILL.md (first lines)
# Code Documentation Skill This skill provides comprehensive guidelines for documenting code, prioritizing user-centric writing, clarity, and consistency. ## 1. General Philosophy - **User-Centric**: Write for the person using your API. If you had to look up how to use something, document it so others don't have to. - **Explain "Why"**: Explain _why_ code exists and _how_ to use it effectively, since the code signature already tells _what_ it does. - **Be Concise**: Omit fluff. Avoid merely restating the code name, as it is not helpful. - **Consistency**: Use standard terminology and consistent formatting. - **Public APIs**: Document all public APIs (classes, members, top-level functions) without exception. - **Code Samples**: Strongly consider adding code samples to explain usage. ## 2. General Structure Follow this general structure for documentation comments across languages: 1. **Summary Sentence**: Start with a single-sentence summary on the first line, ending with a period. 2. **Blank Line**: Follow the summary with a blank line. 3. **Details**: Add paragraphs, code samples, or lists as needed to explain parameters, return values, exceptions, and behavior. 4. **Annotations**: Place doc comments **before** any metadata annotations. ## 3. Writing Guidelines ### Brevity & Style - **Avoid Fluff**: Omit "This class...", "This method...", "Is used to...", "Note that...". - _Bad_: "This method is used to calculate the total." - _Good_: "Calculates the total." - **Third-Person Verbs**: Start function/method docs with a third-person singular verb. - _Examples_: "Returns...", "Calculates...", "Updates...", "Creates...". - **Noun Phrases**: Start variable/property docs with a noun phrase. - _Examples_: "The current color.", "A list of active users.". - **Booleans**: Always start with "Whether" (or similar clear indicator). - _Good_: "Whether this widget is enabled." - _Bad_: "If this widget is enabled...", "True if...", "Flag to indicate...". - **Avoid Jargon**: Use plain English unless the term is a widely accepted standard (e.g., "HTTP", "URL"). ### Formatting - **Sparingly**: Use Markdown features (bold, lists) sparingly. - **No HTML**: Avoid HTML unless strictly necessary and supported by the documentation tool. - **Parameters/Returns/Exceptions**: Use prose to describe parameters, return values, and thrown exceptions. Do not rely solely on tags like `@param` unless mandated by the language standard (e.g., Javadoc). ## 4. Implementation Comments Ensure implementation comments (`//`) are accurate, relevant, factual, and provide information that is not readily understandable from the code. Remove or reword comments that do not meet these criteria. If an implementation comment provides information useful to an API consumer that is not already in the documentation comments, move it to the documentation comments. ## 5. Review Checklist Use this checklist to verify your documentation: 1. [ ] **Summary**: Ensure every public member starts with a one-sentence summary ending in a period. 2. [ ] **Brevity**: Remove "This class..." or "This function..." fluff. 3. [ ] **Completeness**: Document strict constraints (e.g., "must not be null") and exceptions. 4. [ ] **Examples**: Consider adding a code sample for complex widgets or methods. ## 6. Language Specific Instructions Refer to the language guides for detailed instructions on structure, linking, and framework-specific patterns: - **Dart / Flutter**: [references/dart.md](references/dart.md) - **TypeScript / JavaScript**: [references/typescript.md](references/typescript.md) - **Python**: [references/python.md](references/python.md)
From mordechai30/flutter-dart-skills, BSD-3-Clause.
More from mordechai30/flutter-dart-skills
- 0.570score
api-review
mordechai30
Reviews the specified code against the canonical API Design guidelines.
SkillAFreshness: AClaude Code +9 - 0.570score
code-review
mordechai30
Performs a comprehensive, multi-step code review of pull requests or local code changes, using iterative refinement (generation, critique, synthesis) to…
SkillAFreshness: AClaude Code +9 - 0.565score
unix-cli-best-practices
mordechai30
Safe, portable, and efficient command-line patterns for macOS/BSD Unix tools (grep, find, sed, awk, xargs, mdfind, pbcopy, open) and modern alternatives…
SkillAFreshness: AClaude Code +9 - 0.561score
flutter-gpu-scene-rendering
mordechai30
Build efficient Flutter GPU or flutter_scene render loops, including draw state, instancing, attachment formats, and off-screen render-to-texture output.
SkillAFreshness: AClaude Code +9 - 0.561score
flutter-scene-assets-shaders
mordechai30
Import and animate Scene geometry and textures; author current .fmat materials or Flutter GPU shader bundles; bind shader resources from Dart.
SkillAFreshness: AClaude Code +9 - 0.561score
flutter-gpu-scene-setup
mordechai30
Set up a Flutter app for current Flutter GPU and flutter_scene rendering across native and web targets, including the Scene asset build hook.
SkillAFreshness: AClaude Code +9 - 0.561score
dart-build-cli-app
mordechai30
Build Dart command-line tools with sound argument parsing, streams, exit status, packaging, and subprocess behavior.
SkillAFreshness: AClaude Code +9 - 0.561score
natural-writing
mordechai30
Contains well-defined rules for creating natural, accurate, and readable writing.
SkillAFreshness: AClaude Code +9 - 0.559score
dart-resolve-package-conflicts
mordechai30
Diagnose and resolve Dart or Flutter pub dependency conflicts.
SkillAFreshness: AClaude Code +9 - 0.559score
dart-collect-coverage
mordechai30
Collect and inspect LCOV test coverage for Dart or Flutter projects.
SkillAFreshness: AClaude Code +9 - 0.556score
dart-fix-runtime-errors
mordechai30
Diagnose and fix observed Dart or Flutter runtime failures from a stack trace, failing test, or running app.
SkillAFreshness: AClaude Code +9 - 0.556score
dart-run-static-analysis
mordechai30
Run Dart or Flutter static analysis, interpret diagnostics, and apply focused analyzer fixes.
SkillAFreshness: AClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Sep 29, 2026 (1 month ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- BSD-3-Clause
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from mordechai30
- 0.570score
code-review
mordechai30
Performs a comprehensive, multi-step code review of pull requests or local code changes, using iterative refinement (generation, critique, synthesis) to…
SkillAFreshness: AClaude Code +9 - 0.570score
api-review
mordechai30
Reviews the specified code against the canonical API Design guidelines.
SkillAFreshness: AClaude Code +9 - 0.565score
unix-cli-best-practices
mordechai30
Safe, portable, and efficient command-line patterns for macOS/BSD Unix tools (grep, find, sed, awk, xargs, mdfind, pbcopy, open) and modern alternatives…
SkillAFreshness: AClaude Code +9 - 0.561score
flutter-scene-assets-shaders
mordechai30
Import and animate Scene geometry and textures; author current .fmat materials or Flutter GPU shader bundles; bind shader resources from Dart.
SkillAFreshness: AClaude Code +9 - 0.561score
flutter-gpu-scene-rendering
mordechai30
Build efficient Flutter GPU or flutter_scene render loops, including draw state, instancing, attachment formats, and off-screen render-to-texture output.
SkillAFreshness: AClaude Code +9 - 0.561score
flutter-gpu-scene-setup
mordechai30
Set up a Flutter app for current Flutter GPU and flutter_scene rendering across native and web targets, including the Scene asset build hook.
SkillAFreshness: AClaude Code +9
Cite this page
code-documentation skill. Agent Mart. https://agentmart.dev/skills/mordechai30-code-documentation (last updated 2026-10-24)