Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计通过

analyzing-docs分析文档

Agent Skill

用于辅助文档、README、Markdown、说明文和内容稿件的整理与改写。它适合让 Agent 提炼结构、补齐章节、统一术语、检查链接或把零散材料整理成可读文档。使用时应保留项目已有事实、命令和路径,不要把未确认的信息写成确定结论;涉及对外文案时,还需要控制语气,避免过度营销或夸大能力。

总安装

514

周安装

21

GitHub Stars

3

下载量

165
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:analyzing-docs(分析文档)
来源仓库:https://github.com/c0ntr0lledcha0s/claude-code-plugin-automations
仓库路径:skills/analyzing-docs
安装命令:
npx skills add https://github.com/c0ntr0lledcha0s/claude-code-plugin-automations --skill analyzing-docs
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/c0ntr0lledcha0s/claude-code-plugin-automations --skill analyzing-docs

简介

用于评估代码库文档覆盖率和质量,识别内容缺口。

  • 跟踪函数、参数、返回值和示例代码的完整性与一致性。
  • 自动生成文档指标报告和改进建议。analyzing-docs 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 适用于审计现有文档或补充缺失说明的场景。
  • 不替代人工审查,仅提供量化参考依据。

SKILL.md

Analyzing Documentation Skill

You are an expert at analyzing documentation quality and coverage in codebases.

When This Skill Activates

This skill auto-invokes when:

  • User asks about documentation coverage or quality
  • User wants to audit existing documentation
  • User asks "how well documented is this code?"
  • User wants to identify documentation gaps
  • User needs documentation metrics or reports

Documentation Coverage Analysis

Coverage Metrics to Track

  1. Function/Method Documentation

- Total functions vs documented functions - Parameter documentation completeness - Return value documentation - Example code presence

  1. Class/Module Documentation

- Module-level docstrings/comments - Class descriptions - Property documentation - Constructor documentation

  1. File-Level Documentation

- File headers with purpose descriptions - License headers where required - Import documentation for complex dependencies

  1. Project-Level Documentation

- README.md completeness - API documentation coverage - Architecture documentation - Getting started guides

Coverage Calculation

Coverage = (Documented Items / Total Items) * 100

Scoring:
- 90-100%: Excellent
- 70-89%:  Good
- 50-69%:  Needs Improvement
- <50%:    Critical

Quality Assessment Framework

Documentation Quality Dimensions

  1. Completeness (0-10)

- All public APIs documented - Parameters and returns described - Error conditions explained - Edge cases covered

  1. Accuracy (0-10)

- Documentation matches code behavior - Examples are correct and runnable - Types and signatures are accurate - No outdated information

  1. Clarity (0-10)

- Clear, concise language - Appropriate technical level - Good structure and organization - Consistent terminology

  1. Usefulness (0-10)

- Practical examples included - Common use cases covered - Troubleshooting information - Links to related resources

Quality Score Calculation

Quality Score = (Completeness + Accuracy + Clarity + Usefulness) / 4

Ratings:
- 8-10: High Quality
- 6-7:  Acceptable
- 4-5:  Needs Work
- <4:   Poor Quality

Language-Specific Patterns

JavaScript/TypeScript

# Find documented functions
grep -r "@param\|@returns\|@description" --include="*.js" --include="*.ts"

# Find undocumented exports
grep -r "^export " --include="*.ts" | grep -v "/\*\*"

Python

# Find documented functions
grep -rP '^\s*"""' --include="*.py"

# Find undocumented functions
grep -rP "^\s*def\s+\w+\([^)]*\):" --include="*.py"

Go

# Find documented functions (comments before func)
grep -B1 "^func " --include="*.go" | grep "//"

Analysis Report Template

# Documentation Analysis Report

## Executive Summary
- Overall Coverage: XX%
- Quality Score: X.X/10
- Critical Gaps: X items

## Coverage by Category
| Category | Documented | Total | Coverage |
|----------|------------|-------|----------|
| Functions | X | X | XX% |
| Classes | X | X | XX% |
| Modules | X | X | XX% |

## Quality Assessment
| Dimension | Score | Notes |
|-----------|-------|-------|
| Completeness | X/10 | ... |
| Accuracy | X/10 | ... |
| Clarity | X/10 | ... |
| Usefulness | X/10 | ... |

## Critical Gaps
1. [File/Function]: Missing documentation for...
2. [File/Function]: Outdated documentation...

## Recommendations
1. Priority 1: Document public API functions
2. Priority 2: Update outdated examples
3. Priority 3: Add architecture overview

Common Documentation Issues

Critical Issues (Must Fix)

  • Public APIs without any documentation
  • Incorrect parameter types or return values
  • Security-sensitive code without warnings
  • Breaking changes not documented

Major Issues (Should Fix)

  • Missing parameter descriptions
  • No usage examples
  • Outdated code examples
  • Missing error documentation

Minor Issues (Nice to Fix)

  • Inconsistent formatting
  • Missing optional parameter defaults
  • Verbose descriptions
  • Duplicate documentation

Analysis Workflow

  1. Scan Repository Structure

- Identify documentation directories (docs/, README, etc.) - Locate source code directories - Identify language(s) used

  1. Calculate Coverage

- Count documentable items per category - Count actually documented items - Calculate coverage percentages

  1. Assess Quality

- Sample documentation for quality review - Score each quality dimension - Identify patterns in issues

  1. Generate Report

- Summarize findings - Prioritize recommendations - Provide specific examples

Integration

This skill works with:

  • writing-docs skill for generating missing documentation
  • managing-docs skill for organizing documentation structure
  • docs-analyzer agent for comprehensive analysis tasks

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

33.72%
按下载量换算56

Claude

28.87%
按下载量换算48

Cursor

19.49%
按下载量换算32

Gemini CLI

9.05%
按下载量换算15

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills