Token导航 LogoToken导航

Agent Skill · 研究检索

docs-audit(文件审核)

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

docs-audit 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证为 MIT,第三方扫描有未通过项,按安装量在研究检索类的 73,675 个 Skill 里排第 62,939。

总安装 324周安装 13GitHub Stars 26下载 105核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/outfitter-dev/agents --skill docs-audit

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

文档与代码库一致性审计工具。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。识别过时、缺失和错误信息条目。按活跃度分级管理文档生命周期。输出优先级排序的改进建议列表。docs-audit 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/docs-audit

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/outfitter-dev/agents --skill docs-audit;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

docs-audit 怎么安装?

在终端执行 npx skills add https://github.com/outfitter-dev/agents --skill docs-audit。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

docs-audit 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

docs-audit 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

docs-audit 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

docs-audit 用的人多吗?

公开数据是累计安装 324 次,近一周安装 13 次,下载 105 次,GitHub 26 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

docs-audit 安全吗?

第三方扫描有未通过项,风险较高。除非你确认过源码,否则不建议直接安装到常用环境。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
docs-audit

文件审核 · 本页

32426接触敏感数据MIT未通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Documentation Audit Skill

Audit documentation files against the current codebase state, checking for accuracy, completeness, and freshness.

Workflow

Stage 1: Discovery

Run the discovery script to get a manifest of all markdown files with git metadata:

bun "$(dirname "$0")/scripts/discover-docs.ts" ${path ? `--path "${path}"` : ""} --limit 50 --sort staleness

Parse the JSON output to understand:

  • Total documentation files in scope
  • Activity status distribution (active/recent/idle/stale/ancient)
  • Files with related code changes (potential staleness indicators)

Stage 2: Prioritization

Select files for deep analysis based on focus argument:

FocusStrategy
stalePrioritize files with oldest commits, especially those with recent related code changes
allBalanced sampling across activity statuses
recentFocus on recently modified docs that may have introduced errors

Target: Select top limit files (default 10) for deep analysis.

Stage 3: Deep Analysis

For each selected file, perform these checks:

3.1 Correctness (see references/correctness-checklist.md)
  • Code examples use correct imports/require paths
  • Function signatures match current implementation
  • Configuration examples reflect current schema
  • CLI commands and flags are accurate
  • Environment variables mentioned actually exist
3.2 Link Validation
  • Internal markdown links ([text](./other.md)) resolve
  • Anchor links ([text](#section)) point to existing headings
  • Image references exist
  • External URLs (sample only if many) - note but don't block on these
3.3 Completeness (see references/completeness-checklist.md)
  • Required sections present (varies by doc type)
  • All public exports documented (for API docs)
  • Examples provided for complex features
  • Error handling documented where relevant

Stage 4: Docstring Coverage

Check TSDoc/JSDoc/docstring coverage for code files related to the documentation:

TypeScript/JavaScript:

# Find exports without TSDoc
grep -rn "^export " --include="*.ts" --include="*.tsx" | head -20
# vs exports with TSDoc (/** precedes export)
grep -B1 "^export " --include="*.ts" --include="*.tsx" | grep -c "/\*\*"

Python:

# Find functions/classes without docstrings
grep -rn "^def \|^class " --include="*.py" | head -20

Rust:

# Find pub items without doc comments
grep -rn "^pub " --include="*.rs" | head -20

Go:

# Find exported funcs without godoc
grep -rn "^func [A-Z]" --include="*.go" | head -20

Calculate coverage percentage per language detected.

Stage 5: Report Generation

First, generate the report path using the helper script:

REPORT_PATH=$(bun "$(dirname "$0")/scripts/report-path.ts" --session "${CLAUDE_SESSION_ID}" --json)
# Extracts: timestamp, sessionShort, path, timestampISO

Write the report to the generated path (e.g., .pack/reports/202601251900-docs-audit-a7b3c2d1.md):

---
type: docs-audit
generated: {timestampISO}
timestamp: "{timestamp}"
session: "{CLAUDE_SESSION_ID}"
session_short: "{sessionShort}"
scope: {path or "entire repo"}
focus: {focus}
files_analyzed: {count}
files_total: {total}
status: {pass|needs-work|critical}
---

# Documentation Audit Report

**Generated**: {timestamp}
**Session**: `{sessionShort}`
**Scope**: {path or "entire repo"}
**Files analyzed**: {count} / {total}
**Focus**: {focus}

## Summary

| Dimension | Status | Score |
|-----------|--------|-------|
| Correctness | {PASS/NEEDS WORK} | {x}/{y} files |
| Links | {PASS/NEEDS WORK} | {valid}/{total} |
| Docstrings | {GOOD/ACCEPTABLE/POOR} | {x}% |
| Freshness | {CURRENT/STALE} | {stale_count} files |

## Critical Issues (blocking)

Issues that could cause user confusion or errors:
- {file}: {issue description}

## Warnings (should fix)

Non-blocking but should be addressed:
- {file}: {issue description}

## Stale Documentation

Files that may need review (old docs + recent code changes):
- {file}: Last updated {days}d ago, related code changed {code_days}d ago

## Docstring Coverage by Language

| Language | Coverage | Files Checked |
|----------|----------|---------------|
| TypeScript | {x}% | {n} |
| Python | {x}% | {n} |

## Recommendations

1. {Prioritized recommendation}
2. {Next recommendation}

Report Output

Path Generation & Scaffolding

Use the report-path.ts helper script to generate paths and scaffold directories:

# Get just the path
bun scripts/report-path.ts --session "${CLAUDE_SESSION_ID}"
# → .pack/reports/202601251900-docs-audit-a7b3c2d1.md

# Scaffold the directory structure (creates .pack/reports/)
bun scripts/report-path.ts --scaffold --session "${CLAUDE_SESSION_ID}"

# Multi-file mode: scaffold with placeholder files
bun scripts/report-path.ts --scaffold --multi --session "${CLAUDE_SESSION_ID}"
# Creates:
#   .pack/reports/202601251900-docs-audit/
#   .pack/reports/202601251900-docs-audit/summary.md
#   .pack/reports/202601251900-docs-audit/markdown-docs.md
#   .pack/reports/202601251900-docs-audit/docstrings.md
#   .pack/reports/202601251900-docs-audit/recommendations.md
#   .pack/reports/202601251900-docs-audit/meta.json

# Get all components as JSON (includes scaffolded paths if --scaffold used)
bun scripts/report-path.ts --scaffold --multi --session "${CLAUDE_SESSION_ID}" --json

Default Location

Reports are written to .pack/reports/ with frontloaded timestamp:

.pack/reports/202601251900-docs-audit-a7b3c2d1.md   # Single file (with session)
.pack/reports/202601251900-docs-audit.md            # Single file (no session)
.pack/reports/202601251900-docs-audit/              # Multi-file (no session in dir name)

Filename patterns:

  • Single-file: {timestamp}-docs-audit-{sessionShort}.md (session for parallel disambiguation)
  • Multi-file: {timestamp}-docs-audit/ (session tracked in frontmatter inside files)

Multi-File Mode

For comprehensive audits covering different documentation types, use --multi:

.pack/reports/202601251900-docs-audit/
├── summary.md           # Overall findings + links to other reports
├── markdown-docs.md     # docs/, README, etc.
├── docstrings.md        # TSDoc/JSDoc/docstring coverage
├── recommendations.md   # Prioritized actionable recommendations
└── meta.json            # Session metadata (structured, machine-readable)

Each file includes frontmatter with full session ID for traceability.

Frontmatter Schema

All report artifacts include YAML frontmatter for searchability:

---
type: docs-audit           # Report type (searchable)
generated: 2026-01-25T19:00:00Z
timestamp: "202601251900"
session: abc123-def456...  # Full session ID
session_short: a7b3c2d1    # First 8 chars (matches filename)
scope: docs/               # Audit scope
focus: stale               # Focus strategy used
files_analyzed: 10
files_total: 47
status: needs-work         # pass | needs-work | critical
---

Why frontmatter:

  • Grep/ripgrep searchable (rg "session: abc123")
  • Tooling can parse and aggregate reports
  • Enables filtering by status, scope, date range
  • Parallel agent runs are distinguishable by session

Session ID for Parallel Agents

Single-file mode uses session suffix for parallel disambiguation:

.pack/reports/202601251900-docs-audit-a7b3c2d1.md  # Agent 1
.pack/reports/202601251900-docs-audit-f8e9d0c1.md  # Agent 2
.pack/reports/202601251900-docs-audit-12345678.md  # Agent 3

Multi-file mode relies on timestamps (coordinated audits typically don't run in parallel). Session is tracked inside each file's frontmatter for traceability.

Custom Output

Override the default location (session ID still included in frontmatter):

/docs-audit --output docs/audits/latest.md
/docs-audit --multi --output .pack/reports/202601-quarterly/

Note: Custom filenames don't auto-include session ID prefix - use frontmatter for tracking.

Output Behavior

  1. Create directory if it doesn't exist
  2. Write report(s) with session ID embedded
  3. Print summary to conversation (critical issues + file path)
  4. Return path so user can open/commit the report

Git Considerations

The default .pack/reports/ location:

  • Should be gitignored for ephemeral reports
  • Can be selectively committed for audit history
  • Keeps reports separate from actual documentation

Context Efficiency

This skill uses context: fork to run in isolation. The token budget strategy:

StageToken TargetStrategy
Discovery~200-500Script output is compact JSON
Prioritization~100Selection logic only
Deep Analysis~500-2000/fileRead only selected files
Docstring Check~500Grep summaries, not full files
Report~1000Structured output

Total target: 15-30k tokens for a typical audit.

Task Management

Use task tools (TaskCreate, TaskUpdate, TaskList) to track progress through stages. Tasks survive context compaction and allow resumption if the audit is interrupted.

Initial Task Setup

After discovery, create tasks for the audit stages:

TaskCreate:
  subject: "Run docs-audit discovery"
  activeForm: "Running discovery script"
  description: "Execute discover-docs.ts, parse manifest, identify {n} files in scope"

TaskCreate:
  subject: "Analyze {n} priority docs"
  activeForm: "Analyzing documentation"
  description: "Deep analysis of top {limit} files for correctness, links, completeness"

TaskCreate:
  subject: "Check docstring coverage"
  activeForm: "Checking docstring coverage"
  description: "Grep exports vs documented exports per detected language"

TaskCreate:
  subject: "Generate audit report"
  activeForm: "Generating report"
  description: "Compile findings into .pack/reports/{timestamp}-docs-audit-{sessionShort}.md"

Progress Tracking

Update tasks as you work:

  1. Before starting a stage → TaskUpdate with status: in_progress
  2. After completing a stage → TaskUpdate with status: completed, update description with key findings
  3. If issues found → TaskCreate follow-up tasks for fixes

State Persistence

Before context approaches limit, update task descriptions with checkpoint data:

TaskUpdate:
  taskId: "2"
  description: |
    [CHECKPOINT] Analyzed 7/10 docs.
    Critical: 2 broken imports in api.md (lines 45, 89)
    Warnings: 3 stale files (config.md, setup.md, advanced.md)
    Remaining: config.md, setup.md, advanced.md

This ensures findings survive compaction even if the stage isn't complete.

Resumption

If context resets mid-audit:

  1. TaskList to see current state
  2. TaskGet on in_progress task to read checkpoint data
  3. Skip completed stages
  4. Resume from checkpoint, don't re-analyze completed files
  5. Reference persisted findings in final report

Handling Edge Cases

No documentation found: Report "No markdown files found in {scope}. Consider adding documentation for your project."

Very large repos (100+ docs):

  • Stick to limit parameter strictly
  • Focus on highest-staleness files
  • Note total count in report for context

Non-git repos:

  • Skip git-based metadata (SHA, author, etc.)
  • Use file modification times as fallback
  • Note "Git metadata unavailable" in report

Mixed language repos:

  • Detect languages from file extensions
  • Report coverage per detected language
  • Skip languages with no source files

Example Invocations

/docs-audit                                    # Single report to .pack/reports/
/docs-audit --path docs/                       # Scope to docs/ directory
/docs-audit --focus all --limit 20             # Analyze 20 files across all statuses
/docs-audit --multi                            # Multi-file mode with separate reports
/docs-audit --output docs/audits/latest.md     # Custom output location
/docs-audit --multi --path src/                # Multi-file audit of src/ docs

平台分布

github-copilot

25.29%
按下载量换算27

kilo

25.44%
按下载量换算27

windsurf

18.5%
按下载量换算19

zencoder

12.48%
按下载量换算13

amp

8.28%
按下载量换算9

cline

3.24%
按下载量换算3

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

未通过

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。

继续浏览同类 Skills