跳到正文
cccskills
免费在 GitHub 公开

audit-docs

Audit documentation for duplication, staleness, language issues, and verbosity. Read-only — produces an actionable report.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md3.7 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Audit Documentation

Activation

This skill activates for:

  • Checking documentation quality
  • Detecting duplicates, stale docs, inconsistencies
  • /audit-docs

Persona

Read .claude/roles/documentalist.md — adopt this profile and follow all its rules.

Mode

READ-ONLY. This skill analyzes and reports. It does not modify any file.

Workflow — 5 Audit Passes

Pass 1: Inventory

Glob docs/**/*.md
Glob templates/**/*.md

For each file, extract:

  • Title (H1 or frontmatter title)
  • Frontmatter present? (yes/no)
  • Headings H2/H3
  • Detected language
  • Approximate word count

Produce an inventory table.

Pass 2: Duplicate Detection

Compare H2/H3 headings across all file pairs:

  1. Title overlap: if two docs share > 40% of their H2/H3, flag them
  2. Similar content: for flagged pairs, compare the first 100 words of each section
  3. Duplicate markers: look for concept definitions (e.g., THREAD_RESOLVE, phase names) that appear in multiple files

Known issues to detect:

  • DEPLOYMENT.md vs deployment/README.md — nearly identical
  • PROJECT_CONFIG.md vs CONFIG-REFERENCE.md — project config overlap
  • Markers documented in 5+ files
  • Troubleshooting duplicated in 3+ files

Pass 3: Staleness Detection

  1. Check last-updated in the frontmatter (if present)
  2. For each related file in the frontmatter:
    git log -1 --format=%ci <related-file>
    
    If the source is more recent than last-updated, flag as potentially stale
  3. Verify referenced paths in the doc — whether they still exist:
    # For each src/... path mentioned in the doc
    ls <path>
    
  4. Look for references to concepts/APIs that no longer exist

Pass 4: Language Consistency

Detect French in each file. Indicators:

  • Frequent words: "les", "des", "une", "est", "dans", "pour", "avec", "cette", "qui", "sur"
  • Entire sentences in French
  • Titles in French

Rule: all documentation must be in English.

Pass 5: Verbosity Analysis

ThresholdAction
Section > 500 wordsSuggest condensation or split
Document > 800 wordsSuggest split into multiple docs
Filler phrases detectedList with location

Filler phrases to detect:

  • "it should be noted that", "it is important to mention"
  • "as you can see", "as mentioned above/below"
  • "in order to" (use "to"), "due to the fact that" (use "because")
  • "at the end of the day", "going forward"

Report Format

# Documentation Audit Report

## Summary

| Metric | Count |
|--------|-------|
| Total docs scanned | X |
| Duplication issues | X |
| Stale docs | X |
| Language issues | X |
| Verbosity issues | X |
| Missing frontmatter | X |

## Duplication Issues

### DUPL-001: [Doc A] <-> [Doc B]
- **Topic**: [overlapping topic]
- **Severity**: high | medium | low
- **Overlapping sections**: [list]
- **Action**: Consolidate into [file], link from [other file]

## Stale Documentation

### STALE-001: [Doc]
- **Last updated**: [date or "no frontmatter"]
- **Source changed**: [file] on [date]
- **Action**: Update [specific sections]

## Language Issues

### LANG-001: [Doc]
- **Language**: French (should be English)
- **Action**: Translate to English

## Verbosity Issues

### VERB-001: [Doc] — [Section]
- **Word count**: X (target: < 300)
- **Fillers found**: [list]
- **Action**: Condense

## Recommended Actions (Priority Order)

1. [Highest impact action]
2. [...]

After the Audit

Recommend the appropriate skills:

  • Duplicates: /update-docs to consolidate
  • New doc needed: /create-doc
  • Missing/stale index: /docs-index

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Guide for creating optimized Claude Code agents. Use to design a new specialized agent, a swarm sub-agent, or a multi-agent workflow. Follows the Skill → Agent (preloaded skills) → Skill orchestration pattern.

中文简介正在准备中。当前显示原文说明。

DGouron/review-flow442026年10月18日 更新

Anti-overengineering guide based on YAGNI. Use before adding an architectural pattern, during code review, or to challenge an overly complex implementation.

中文简介正在准备中。当前显示原文说明。

DGouron/review-flow442026年10月18日 更新

Clean Architecture (Uncle Bob) guide for this project. Use when creating modules, entities, use cases, presenters, controllers, gateways, guards, services. Contains tactical patterns and structure conventions.

中文简介正在准备中。当前显示原文说明。

DGouron/review-flow442026年10月18日 更新

Local auto-review of modified code (no GitLab/GitHub). Runs 5 sequential audits and generates a local report. Ideal for validating code before creating a MR/PR.

中文简介正在准备中。当前显示原文说明。

DGouron/review-flow442026年10月18日 更新

Clean Code (Robert C. Martin) guide to produce and challenge code that is readable, durable, simple, and consistent. Covers naming, functions, comments, smells, and refactor heuristics. Complements `/solid` (SOLID principles) and `/anti-overengineering` (YAGNI/KISS). Activate during the REFACTOR phase of the TDD cycle and during implementation self-review.

中文简介正在准备中。当前显示原文说明。

DGouron/review-flow442026年10月18日 更新

commit

免费

Safe commit and push workflow. Creates a commit following conventions and pushes. Husky handles verifications (TypeScript, Biome, tests).

中文简介正在准备中。当前显示原文说明。

DGouron/review-flow442026年10月18日 更新

查看 DGouron 的全部技能

报告此技能的问题