Token导航 LogoToken导航

Agent Skill · 研究检索

audit-docs(审计文件)

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

audit-docs 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 68,015。

总安装 238周安装 10GitHub Stars 公开资料未说明下载 83核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/nayuta/agent-skills --skill audit-docs

这个 Skill 是做什么的

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

用于静态验证 CLAUDE.md 和 AGENTS.md 文档文件的准确性和规范性,确保反映真实代码结构。检查标记对完整性、表格结构和链接有效性,防止文档与实际代码脱节造成误导。适用于项目初始化或文档更新后的合规性检查,提升团队协作效率和知识传递质量。

安装方式:通过 npx skills add 命令从指定 GitHub 仓库添加,支持 Codex、Claude、Cursor 等宿主环境。发现缺失或错误时提供具体修复建议,如补充标记对或修正表格格式,避免模糊描述。

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

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

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

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

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

常见问题

6 条

audit-docs 怎么安装?

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

audit-docs 支持哪些 AI 工具?

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

audit-docs 需要什么权限?

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

audit-docs 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

audit-docs 用的人多吗?

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

audit-docs 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

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

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 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调用外部服务未明确有提醒
audit-docs

审计文件 · 本页

238—接触敏感数据未明确通过

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

SKILL.md 原文

Audit Documentation Files

Purpose

This skill provides static validation of CLAUDE.md and AGENTS.md documentation files to ensure they accurately reflect the actual codebase structure and follow proper conventions.

What It Validates

1. Marker Format (MARKER_MISSING)

Required comment marker pairs must exist:

  • <!-- AVAILABLE_SKILLS_START --> / <!-- AVAILABLE_SKILLS_END -->
  • <!-- AVAILABLE_AGENTS_START --> / <!-- AVAILABLE_AGENTS_END -->

2. Table Structure (TABLE_MALFORMED)

Tables must have:

  • Exactly 3 columns: Name | Description | Link
  • Proper separator row with :--- alignment
  • Non-empty, well-formed markdown table syntax

3. Link Validity (LINK_BROKEN)

All file links in tables must:

  • Resolve to existing files in the repository
  • Use correct relative paths

4. Skill Completeness (SKILL_UNLISTED)

All skills in .claude/skills/ and skills/ must:

  • Be listed in the Available Skills table
  • Both directories are scanned: .claude/skills/ (project skills) and skills/ (distributed skills installed via npx skills add)
  • Exception: Skills with unlisted: true in frontmatter are ignored

5. Agent Completeness (AGENT_UNLISTED)

All agents in .claude/agents/ must:

  • Be listed in the Available Agents table
  • Exception: Agents with unlisted: true in frontmatter are ignored

6. Synchronization (AGENTS_DESYNC)

AGENTS.md must:

  • Have identical body content to CLAUDE.md (excluding first line)
  • The first line of AGENTS.md is # AGENTS.md while CLAUDE.md is # CLAUDE.md

7. File Length (FILE_TOO_LONG)

CLAUDE.md should not exceed 200 lines (official Claude Code recommendation):

  • Severity: WARN
  • Counts total lines in the file

8. Import Resolution (IMPORT_BROKEN)

@path imports in CLAUDE.md text must resolve to existing files:

  • Regex-based detection of @path references outside fenced code blocks
  • Excludes email addresses (e.g., user@example.com)
  • Severity: ERROR

9. Sensitive Imports (IMPORT_SENSITIVE)

@path imports should not reference sensitive files:

  • Checks for patterns: .env, .pem, .key, credentials, secret, password, token
  • Only checked for valid (existing) imports
  • Severity: WARN

10. Description Accuracy (DESCRIPTION_MISMATCH)

Table descriptions must match frontmatter descriptions:

  • Compares description column in skills/agents tables with description field in SKILL.md or agent frontmatter
  • Skips if either description is empty
  • Severity: WARN

11. Name Accuracy (NAME_MISMATCH)

Table names must match frontmatter names:

  • Compares name column in skills/agents tables with name field in frontmatter
  • Severity: ERROR

12. AGENTS.md Import (AGENTS_NO_IMPORT)

CLAUDE.md should import AGENTS.md when it exists and bodies differ:

  • Warns when AGENTS.md exists, no @AGENTS.md import is present, and bodies are not synchronized
  • No warning if bodies are already in sync (content is already there)
  • Severity: WARN

13. Rules Glob Patterns (RULES_INVALID_PATHS)

Glob patterns in .claude/rules/*.md frontmatter must be valid:

  • Validates globs field in each rule file's frontmatter
  • Checks bracket balance and uses fnmatch to verify pattern validity
  • Graceful no-op when .claude/rules/ doesn't exist
  • Severity: WARN

14. Rules Links (RULES_BROKEN_LINK)

Markdown links in .claude/rules/*.md files must resolve:

  • Checks [text](path) links in rule file bodies
  • Excludes external links (http://, https://, #, mailto:)
  • Resolves paths relative to repository root
  • Graceful no-op when .claude/rules/ doesn't exist
  • Severity: ERROR

15. Body Sensitive Content (BODY_SENSITIVE)

CLAUDE.md body text must not contain hardcoded secrets:

  • Scans text outside fenced code blocks for secret patterns
  • Detects: AWS access keys, Bearer tokens, API key assignments, password assignments, secret/token assignments, database connection strings
  • Complements IMPORT_SENSITIVE (which only checks @path import targets)
  • Only scans CLAUDE.md (AGENTS.md is intentionally excluded)
  • Severity: WARN

Usage

Basic Validation

# Validate current repository
uv run .claude/skills/audit-docs/scripts/audit_docs.py .

# Validate specific repository
uv run .claude/skills/audit-docs/scripts/audit_docs.py /path/to/repo

Via Makefile

make audit-docs

Exit Codes

  • 0 - All checks passed
  • 1 - Issues found (validation errors)
  • 2 - Fatal error (invalid arguments, invalid repository path)

Output Format

Human-readable plain text listing all findings:

[ERROR] MARKER_MISSING @ /path/to/CLAUDE.md :: Missing marker pair: AVAILABLE_SKILLS_START / AVAILABLE_SKILLS_END
[ERROR] SKILL_UNLISTED @ /path/to/.claude/skills/example/SKILL.md :: Skill 'example' not listed in CLAUDE.md table
[ERROR] LINK_BROKEN @ /path/to/CLAUDE.md :: Broken link: .claude/skills/missing/SKILL.md

Edge Cases

  • Missing CLAUDE.md: Reports FILE_MISSING error
  • Empty skills directory: Passes (no findings)
  • Skill directory without SKILL.md: Ignored (not validated)
  • Skills with unlisted: true: Excluded from completeness check
  • No AGENTS.md: Skips synchronization check
  • Multi-line table cells: Not supported; rows are validated line-by-line
  • Email addresses: user@example.com is not treated as an @import
  • Code blocks: @path references inside fenced code blocks are ignored
  • No .claude/rules/ directory: Skips rules validation (no findings)

Implementation Details

  • Zero dependencies: Uses only Python 3.11+ standard library
  • PEP 723 compliant: Inline script metadata for uv run
  • Simple frontmatter parser: Manual YAML parsing for basic key: value pairs
  • Pattern: Follows skill_audit.py architecture (dataclasses, Finding/Report)

Testing

Run test suite:

uv run pytest .claude/skills/audit-docs/test/test_audit_docs.py -v

49 test functions covering:

  1. Valid CLAUDE.md passes
  2. Missing markers fail
  3. Invalid table format fails
  4. Broken links fail
  5. Orphan skills fail
  6. Unlisted frontmatter ignored
  7. AGENTS.md desync fails
  8. Exit code 0 for clean
  9. Exit code 1 for issues
  10. Unlisted agents fail
  11. Root skills/ unlisted triggers SKILL_UNLISTED
  12. Root skills/ with unlisted: true ignored
  13. Skills in both directories pass when all listed
  14. FILE_TOO_LONG warns on 201+ lines
  15. File under 200 lines passes
  16. IMPORT_BROKEN on nonexistent @path
  17. Valid @import passes
  18. @path in code block ignored
  19. @path in code block with backticks ignored
  20. IMPORT_SENSITIVE on.env/@secrets.key
  21. Non-sensitive import passes
  22. DESCRIPTION_MISMATCH warns
  23. Matching description passes
  24. NAME_MISMATCH on differing names
  25. Matching name passes
  26. AGENTS_NO_IMPORT warns when bodies differ
  27. @AGENTS.md import present passes
  28. Synced bodies produce no warning
  29. Invalid glob pattern warns
  30. Valid glob pattern passes
  31. Broken link in rules fails
  32. Valid link in rules passes
  33. Email not treated as import
  34. No rules directory passes
  35. @path in inline code ignored
  36. IMPORT_SENSITIVE on sensitive directories
  37. BODY_SENSITIVE on API key assignment
  38. BODY_SENSITIVE on database connection string
  39. Clean CLAUDE.md produces no BODY_SENSITIVE
  40. Secrets in code blocks ignored by BODY_SENSITIVE
  41. BODY_SENSITIVE on Bearer token
  42. BODY_SENSITIVE on AWS access key
  43. Underscore-joined placeholder values not flagged
  44. Placeholder with trailing digits not flagged
  45. Underscore-joined replace_this_value not flagged
  46. sample_token_value placeholder not flagged
  47. Placeholder with example between underscores not flagged
  48. Real-looking secrets still flagged (no regression)
  49. Secrets inside 4+ tilde fences ignored by strip_code_blocks

Integration

This skill is designed to be:

  • Run in CI/CD pipelines to catch documentation drift
  • Integrated into pre-commit hooks
  • Used by documentation maintenance agents
  • Part of the mend-docs skill workflow

平台分布

Codex

36.2%
按下载量换算30

Claude

31.14%
按下载量换算26

Cursor

16.46%
按下载量换算14

Gemini CLI

9.93%
按下载量换算8

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

接触敏感数据

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

安装前确认

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

继续浏览同类 Skills