mcpField
C
code-documentation

code-documentation

github.com/youdotcom-ossDevelopment9851 installsUpdated 5d ago
Repository

About code-documentation

A skill for creating and maintaining TSDoc in TypeScript projects, for developers documenting APIs, types, and modules. It provides templates and workflows for generating and synchronizing comments, with a policy that tests and stories serve as examples.

Key features

  1. 01TSDoc templates for APIs and types
  2. 02Four-phase documentation workflow
  3. 03Comment cleanup and synchronization
  4. 04Guidance for removing orphaned docs
  5. 05No @example sections

Use cases

  1. 01Documenting public API functions and types
  2. 02Reviewing or updating TSDoc comments
  3. 03Synchronizing comments after code changes

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/youdotcom-oss/agent-skills --skill code-documentation

After installing, type/code-documentationin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

references/
internal-templates.md
maintenance.md
public-api-templates.md
type-documentation.md
workflow.md

Details

From the project README

Code Documentation Skill

Purpose

This skill provides TSDoc format templates, type documentation guidelines, and maintenance workflows. Use this when:

  • Writing or editing TSDoc comments for any function, type, or module
  • Reviewing documentation quality
  • Creating comprehensive API documentation
  • Documenting complex type structures
  • Cleaning up non-compliant comments (performance notes, timestamps, inline explanations)
  • Synchronizing out-of-sync TSDoc with code changes
  • Removing orphaned documentation for deleted code

Key Standard: No @example sections - tests and stories serve as living examples.

Quick Reference

  • Creating TSDoc: See workflow.md for the generation workflow
  • Maintaining TSDoc: See maintenance.md for cleanup and sync guidelines

This skill contains detailed templates for:

  • Public API Functions
  • Internal Module Documentation
  • Public and Internal Types
  • Helper Functions
  • Behavioral Programming Functions
  • Special Annotations (Security, Performance, Deprecated)
  • Type Documentation (Complex Objects, Unions, Functions, Utilities, Branded Types, etc.)

Navigation

Related Skills

  • typescript-lsp: Use for type verification and discovery during documentation workflow. Essential for Phase 1 (type analysis) and Phase 2 (usage discovery) of the TSDoc generation process. Run lsp-hover to verify signatures, lsp-references to find usages, and lsp-symbols to understand file structure.

Comments

Markdown supported