界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
文档与办公 · SKILL.md

update-docs

update-docs

【文档与办公】Automated workflow to detect and fix missing documentation

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: update-docs description: "Automated workflow to detect and fix missing documentation" metadata: internal: true triggers: keywords: - update docs - workflow

Update Docs Skill

[!IMPORTANT] Automated workflow to detect and fix missing documentation

Optional args: slug=, ticket=<id/url>, mode=interactive|autonomous|channel, channel=, auto_continue=true|false, profile=business|hybrid|technical.

Instructions

When the user asks to perform this workflow, execute the following steps:

Documentation Update Workflow

This workflow helps you identify and fix missing documentation in the codebase.

1. Run the Documentation Scanner

The scan-docs.ts script identifies exported members that lack JSDoc comments.

pnpm docs:scan

2. Analyze the Report

The script will output a list of files and members missing documentation.

Example output:

⚠️  Found undocumented members:
📄 src/services/MyService.ts
   - class MyService
   - function doSomething

3. Generate Documentation

For each missing item:

  1. Read the code to understand its purpose.
  2. Add JSDoc comments (/** ... */) above the export.
  3. Include:
    • Description of what it does.
    • @param tags for arguments.
    • @returns tag for return value.

4. Verify

Run the scanner again to ensure no items remain.

pnpm docs:scan
我的收藏