重要前提
安装AI Skills的关键前提是:必须科学上网,且开启TUN模式,这一点至关重要,直接决定安装能否顺利完成,在此郑重提醒三遍:科学上网,科学上网,科学上网。查看完整安装教程 →
qa-docs-coverage by vasilyu1983/ai-agents-public
npx skills add https://github.com/vasilyu1983/ai-agents-public --skill qa-docs-coverage此技能提供了用于审计现有代码库、识别文档差距以及系统性地生成缺失文档的操作工作流。它通过提供发现和分析层来补充 docs-codebase。
关键原则 : 模板存在于 docs-codebase 中。此技能告诉您要记录什么以及如何找到未记录的组件。
核心参考:Diataxis(文档结构)、OpenAPI(REST)、AsyncAPI(事件)。
使用渐进式披露:仅加载您需要的参考文件。
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
可选(推荐脚本;从被审计的仓库运行):
python3 frameworks/shared-skills/skills/qa-docs-coverage/scripts/check_local_links.py docs/python3 frameworks/shared-skills/skills/qa-docs-coverage/scripts/docs_freshness_report.py --docs-root docs/当任何仓库有一个包含跨阶段/迭代的许多 LLM 生成的研究和实现工件的 docs/ 文件夹时使用此选项。
教程、操作指南、参考、解释)。状态、集成到、所有者、最后验证时间、删除截止日期)。文档文件夹的最低质量保证门控:
integrated 文档的 delete_by 已过,则阻止合并AGENTS.md 或 README.md 缺失、陈旧或未链接到当前规范文档,则阻止合并对于大型代码库,关键原则是:LLM 不需要整个代码库 - 它们需要当前任务的正确上下文。
在开始审计之前,使用工具提取代码库上下文:
| 工具 | 命令/URL | 用例 |
|---|---|---|
| gitingest | 将 "github.com" 替换为 "gitingest.com" | 快速完整仓库转储 |
| repo2txt | https://github.com/kirill-markin/repo2txt | 选择性文件提取 |
| tree | `tree -L 3 --dirsfirst -I 'node_modules | .git |
对于单体仓库和大型项目,进行分层审计:
1. 根级别(第 1 周)
├── AGENTS.md / CLAUDE.md 是否存在?
├── README.md 质量
├── ARCHITECTURE.md 是否存在?
└── docs/ 目录结构
2. 模块级别(第 2-3 周)
├── 每个主要目录都有 AGENTS.md 吗?
├── API 文档是否完整?
└── 服务边界是否已记录?
3. 组件级别(第 4 周及以上)
├── 单个组件 README
├── 代码注释质量
└── 测试文档
检查多工具兼容性:
[ ] AGENTS.md 存在(跨平台标准)
[ ] CLAUDE.md 存在或符号链接到 AGENTS.md
[ ] GEMINI.md 符号链接(如果使用 Gemini)
[ ] 文件大小小于 300 行(使用 @references 获取深度)
[ ] 每个主要模块都有子目录文档
大型代码库审计检查清单
上下文提取:
[ ] 生成了代码库转储(gitingest/repo2txt)
[ ] 创建了目录结构概览
[ ] 识别了主要模块/服务
根文档:
[ ] AGENTS.md / CLAUDE.md 存在且 <300 行
[ ] README.md 包含快速开始
[ ] ARCHITECTURE.md 包含系统概览
[ ] 配置了跨平台符号链接
模块文档:
[ ] 每个主要目录都有 AGENTS.md
[ ] API 端点已记录
[ ] 数据库模式已记录
[ ] 事件/消息契约已记录
维护:
[ ] 分配了文档所有权
[ ] 启用了新鲜度跟踪
[ ] 配置了 CI/CD 检查
应做:
应避免:
docs/ 文件夹。| 审计任务 | 工具/模式 | 输出 | 参考 |
|---|---|---|---|
| 发现 API | **/*Controller.cs, **/routes/**/*.ts | 组件清单 | discovery-patterns.md |
| 计算覆盖率 | Swagger Coverage,手动差异 | 覆盖率报告 | coverage-report-template.md |
| 确定差距优先级 | 外部 → P1,内部 → P2,配置 → P3 | 文档待办事项列表 | priority-framework.md |
| 生成文档 | AI 辅助 + docs-codebase 模板 | 文档文件 | audit-workflows.md 第 3 阶段 |
| 验证契约 | Spectral,AsyncAPI CLI,OpenAPI diff | Lint 报告 | cicd-integration.md |
| 跟踪新鲜度 | Git blame,最后修改元数据 | 陈旧度报告 | freshness-tracking.md |
| 自动化检查 | GitHub Actions,GitLab CI,PR 模板 | 持续覆盖率 | cicd-integration.md |
用户需求:[审计类型]
├─ 仓库是否有一个包含 LLM 生成的研究/功能文档的 docs 文件夹?
│ └─ 首先运行文档文件夹 / LLM 迭代审计,然后应用 P1/P2/P3 优先级排序
│
├─ 开始新的审计?
│ ├─ 面向外部的 API? → 优先级 1:面向外部(OpenAPI、webhooks、错误代码)
│ ├─ 内部服务/事件? → 优先级 2:内部集成(端点、模式、作业)
│ └─ 配置/实用工具? → 优先级 3:开发者参考(选项、辅助工具、常量)
│
├─ 发现未记录的组件?
│ ├─ API/控制器? → 扫描端点 → 使用 api-docs-template → 优先级 1
│ ├─ 服务/处理器? → 列出职责 → 记录契约 → 优先级 2
│ ├─ 数据库/实体? → 生成 ER 图 → 记录实体 → 优先级 2
│ ├─ 事件/消息? → 映射生产者/消费者 → 模式 + 示例 → 优先级 2
│ └─ 配置/实用工具? → 提取选项 → 默认值 + 描述 → 优先级 3
│
├─ 大型代码库存在许多差距?
│ └─ 使用基于阶段的方法:
│ 1. 发现扫描 → 覆盖率分析
│ 2. 按影响确定优先级(P1 → P2 → P3)
│ 3. 增量生成文档(关键优先)
│ 4. 设置维护(PR 模板、季度审计)
│
└─ 维护现有文档?
└─ 检查:
├─ 过时文档(代码已更改,文档未更改) → 更新或删除
├─ 孤立文档(引用不存在的代码) → 删除
└─ 缺少覆盖率 → 添加到待办事项列表 → 确定优先级
用于发现可记录组件的语言特定模式:
用于确定文档工作优先级的框架:
用于进行审计的系统化工作流:
自动化文档检查和强制执行:
跟踪文档陈旧度和与代码的漂移:
根据实时行为验证 API 文档准确性:
验证操作手册可执行且最新:
文档健康状况的 KPI 和仪表板:
结构化覆盖率报告包含:
待办事项列表跟踪包含:
运行审计后,生成以下工件:
覆盖率报告 - .codex/docs/audit/coverage-report.md
文档待办事项列表 - .codex/docs/audit/documentation-backlog.md
生成的文档 - .codex/docs/(按类别组织)
此技能与以下技能紧密协作:
docs-codebase - 提供以下模板:
工作流:
应做:
应避免:
立即(审计后):
短期(1-2 个冲刺):
长期(持续进行):
对于 Claude:审计代码库时:
记住:目标不是 100% 覆盖率,而是为目标受众提供有用的覆盖率。记录开发者、操作员和集成商实际需要的内容。
每周安装次数
65
仓库
GitHub 星标数
49
首次出现时间
2026年1月23日
安全审计
安装于
opencode50
gemini-cli49
cursor49
codex49
github-copilot45
claude-code43
This skill provides operational workflows for auditing existing codebases, identifying documentation gaps, and systematically generating missing documentation. It complements docs-codebase by providing the discovery and analysis layer.
Key Principle : Templates exist in docs-codebase. This skill tells you what to document and how to find undocumented components.
Core references: Diataxis (doc structure), OpenAPI (REST), AsyncAPI (events).
Use progressive disclosure: load only the reference file you need.
Optional (recommended scripts; run from the repo being audited):
python3 frameworks/shared-skills/skills/qa-docs-coverage/scripts/check_local_links.py docs/python3 frameworks/shared-skills/skills/qa-docs-coverage/scripts/docs_freshness_report.py --docs-root docs/Use this when any repository has a docs/ folder with many LLM-generated research and implementation artifacts across phases/iterations.
Tutorial, How-to, Reference, Explanation).status, integrates_into, owner, last_verified, delete_by).Minimum QA gate for docs folders:
delete_by is passed for integrated docsAGENTS.md or README.md is missing, stale, or not linked to current canonical docsFor large codebases, the key principle is: LLMs don't need the entire codebase - they need the right context for the current task.
Before starting an audit, extract codebase context using tools:
| Tool | Command/URL | Use Case |
|---|---|---|
| gitingest | Replace "github.com" with "gitingest.com" | Quick full-repo dump |
| repo2txt | https://github.com/kirill-markin/repo2txt | Selective file extraction |
| tree | `tree -L 3 --dirsfirst -I 'node_modules | .git |
For monorepos and large projects, audit hierarchically:
1. Root Level (Week 1)
├── AGENTS.md / CLAUDE.md exists?
├── README.md quality
├── ARCHITECTURE.md exists?
└── docs/ directory structure
2. Module Level (Week 2-3)
├── Each major directory has AGENTS.md?
├── API documentation complete?
└── Service boundaries documented?
3. Component Level (Week 4+)
├── Individual component READMEs
├── Code comments quality
└── Test documentation
Check for multi-tool compatibility:
[ ] AGENTS.md exists (cross-platform standard)
[ ] CLAUDE.md exists or symlinked to AGENTS.md
[ ] GEMINI.md symlinked (if using Gemini)
[ ] File size under 300 lines (use @references for depth)
[ ] Subdirectory docs for each major module
LARGE CODEBASE AUDIT CHECKLIST
Context Extraction:
[ ] Generated codebase dump (gitingest/repo2txt)
[ ] Created directory structure overview
[ ] Identified major modules/services
Root Documentation:
[ ] AGENTS.md / CLAUDE.md present and <300 lines
[ ] README.md with quick start
[ ] ARCHITECTURE.md with system overview
[ ] Symlinks configured for cross-platform
Module Documentation:
[ ] Each major directory has AGENTS.md
[ ] API endpoints documented
[ ] Database schemas documented
[ ] Event/message contracts documented
Maintenance:
[ ] Documentation ownership assigned
[ ] Freshness tracking enabled
[ ] CI/CD checks configured
Sources : Anthropic Claude Code Best Practices, OpenAI AGENTS.md Guide
Do :
Avoid :
docs/ folders with no owners and no CI gates.| Audit Task | Tool/Pattern | Output | Reference |
|---|---|---|---|
| Discover APIs | **/*Controller.cs, **/routes/**/*.ts | Component inventory | discovery-patterns.md |
| Calculate Coverage | Swagger Coverage, manual diff | Coverage report | coverage-report-template.md |
| Prioritize Gaps | External → P1, Internal → P2, Config → P3 | Documentation backlog | priority-framework.md |
User needs: [Audit Type]
├─ Repo has a docs folder with LLM-generated research/feature docs?
│ └─ Run Docs Folder / LLM Iteration Audit first, then apply P1/P2/P3 prioritization
│
├─ Starting fresh audit?
│ ├─ Public-facing APIs? → Priority 1: External-Facing (OpenAPI, webhooks, error codes)
│ ├─ Internal services/events? → Priority 2: Internal Integration (endpoints, schemas, jobs)
│ └─ Configuration/utilities? → Priority 3: Developer Reference (options, helpers, constants)
│
├─ Found undocumented component?
│ ├─ API/Controller? → Scan endpoints → Use api-docs-template → Priority 1
│ ├─ Service/Handler? → List responsibilities → Document contracts → Priority 2
│ ├─ Database/Entity? → Generate ER diagram → Document entities → Priority 2
│ ├─ Event/Message? → Map producer/consumer → Schema + examples → Priority 2
│ └─ Config/Utility? → Extract options → Defaults + descriptions → Priority 3
│
├─ Large codebase with many gaps?
│ └─ Use phase-based approach:
│ 1. Discovery Scan → Coverage Analysis
│ 2. Prioritize by impact (P1 → P2 → P3)
│ 3. Generate docs incrementally (critical first)
│ 4. Set up maintenance (PR templates, quarterly audits)
│
└─ Maintaining existing docs?
└─ Check for:
├─ Outdated docs (code changed, docs didn't) → Update or remove
├─ Orphaned docs (references non-existent code) → Remove
└─ Missing coverage → Add to backlog → Prioritize
Resource : references/discovery-patterns.md
Language-specific patterns for discovering documentable components:
Resource : references/priority-framework.md
Framework for prioritizing documentation efforts:
Resource : references/audit-workflows.md
Systematic workflows for conducting audits:
Resource : references/cicd-integration.md
Automated documentation checks and enforcement:
Resource : references/freshness-tracking.md
Track documentation staleness and drift from code:
Resource : references/api-docs-validation.md
Validate API documentation accuracy against live behavior:
Resource : references/runbook-testing.md
Validate operational runbooks are executable and current:
Resource : references/documentation-quality-metrics.md
KPIs and dashboards for documentation health:
Template : assets/coverage-report-template.md
Structured coverage report with:
Template : assets/documentation-backlog-template.md
Backlog tracking with:
After running an audit, produce these artifacts:
Coverage Report - .codex/docs/audit/coverage-report.md
Documentation Backlog - .codex/docs/audit/documentation-backlog.md
Generated Documentation - .codex/docs/ (organized by category)
This skill works closely with:
docs-codebase - Provides templates for:
Workflow :
Do :
Avoid :
Immediate (After Audit) :
Short-term (1-2 Sprints) :
Long-term (Ongoing) :
For Claude : When auditing a codebase:
Remember : The goal is not 100% coverage, but useful coverage for the target audience. Document what developers, operators, and integrators actually need.
Weekly Installs
65
Repository
GitHub Stars
49
First Seen
Jan 23, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykWarn
Installed on
opencode50
gemini-cli49
cursor49
codex49
github-copilot45
claude-code43
Skills CLI 使用指南:AI Agent 技能包管理器安装与管理教程
48,700 周安装
| Generate Docs | AI-assisted + docs-codebase templates | Documentation files | audit-workflows.md Phase 3 |
| Validate Contracts | Spectral, AsyncAPI CLI, OpenAPI diff | Lint report | cicd-integration.md |
| Track Freshness | Git blame, last-modified metadata | Staleness report | freshness-tracking.md |
| Automate Checks | GitHub Actions, GitLab CI, PR templates | Continuous coverage | cicd-integration.md |