doc-audit
Skill1 starsChanged 11 months agoMITView on GitHub
Expert in auditing Sphinx/RST documentation for Drift project. Use when validating code examples and removing subjective language before release.
12 other projects use a version of this.
Adopted by
Most recently taken up by
- blueclover22/mw_agent_kittheir own version, first seen Nov 4, 2026
- florian101010/awesome-agentic-AI-coding-templatetheir own version, first seen Nov 1, 2026
- sunitghub/canon-skillstheir own version, first seen Oct 22, 2026
- Sprintlaw/legal-skillstheir own version, first seen Oct 17, 2026
- jrittelmeyer/ai-dev-kittheir own version, first seen Oct 15, 2026
- bekalpaslan/promptlinetheir own version, first seen Oct 13, 2026
Other versions12 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 12
- PackmindHub/packmind★ 321same name
- tachyon-zcash/ragu★ 61same name
- bekalpaslan/promptline★ 11same name
- sunitghub/canon-skills★ 9same name
- florian101010/awesome-agentic-AI-coding-template★ 4same name
- Wubabalala/claude-skills★ 4same name
- ApurvBazari/claude-plugins★ 3same name
- blueclover22/mw_agent_kit★ 1same name
- jrittelmeyer/ai-dev-kit★ 1same name
- s-frantz/agent-memory-trellis★ 1same name
2 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository12 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- code-reviewSkill
- commit-messagesSkill
- github-operationsSkill
- issue-writingSkill
- lintingSkill
- pr-writingSkill
- python-basicsSkill
- python-docsSkill
- releaseSkill
- testingSkill
- test-strategySkill
The file
We split this skill into the rules it gives an agent
11 rules. 0 are common, 10 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 12 edited versions we read keep these.
10
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 23
Code Example Validation: - Verify all code examples match actual implementation
- Distinctive: line 25
Cross-Reference Implementation: - Check against actual code using serena MCP
- Distinctive: line 33
Look through documentation files for code blocks:
- Very specific: line 57
Use mcp__serena__find_symbol to verify imports:
- Distinctive: line 78
If symbol not found, import path is incorrect.
- Distinctive: line 82
Check all CLI examples in documentation:
- Distinctive: line 106
Check YAML configuration examples:
- Distinctive: line 139
Use serena to check that documented APIs exist:
- Distinctive: line 202
Search documentation for these patterns:
- Distinctive: line 336
Look at test files to see correct usage patterns.
- Distinctive: line 361
Check that documented rules exist:
“Common” is measured: kept by at least 6 in 10 of the 12 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Documentation Audit Skill
Learn how to audit documentation for Drift project - validate code examples and ensure objective language.
When to Use This Skill
- Reviewing documentation before release
- Validating code examples against implementation
- Ensuring objective, factual documentation language
- Checking for outdated or incorrect examples
- Maintaining documentation quality standards
How to Audit Documentation
Overview of Audit Process
A complete documentation audit includes three phases:
- Code Example Validation - Verify all code examples match actual implementation
- Subjective Language Detection - Flag subjective or marketing language
- Cross-Reference Implementation - Check against actual code using serena MCP
Work through each phase systematically for each documentation file.
How to Validate Code Examples
Step 1: Extract Code Examples
Look through documentation files for code blocks:
RST files:
.. code-block:: python
from drift.cli import cli
drift.analyze("log.json")Markdown files:
```python
from drift.cli import cli
drift.analyze("log.json")
Categorize as:
- Complete examples (should run as-is)
- Snippets (partial code for illustration)
### Step 2: Validate Imports with Serena MCP
Use `mcp__serena__find_symbol` to verify imports:
**Example validation:**
```python
# Documentation says:
from drift.cli import cli
# Verify with serena:
mcp__serena__find_symbol(
name_path_pattern="cli",
relative_path="src/drift/cli.py"
)Common import patterns to check:
from drift.cli import ...from drift.core.analyzer import ...from drift.config.loader import ...from drift.providers import ...from drift.validation import ...
If symbol not found, import path is incorrect.
Step 3: Verify CLI Commands
Check all CLI examples in documentation:
Commands to verify:
drift # Basic usage
drift --no-llm # Programmatic validation only
drift --days 7 # Analyze last 7 days
drift --format json # JSON output
drift --cwd PATH # Working directory
drift --rules NAMES # Specific rulesHow to verify:
# Run command to check it exists and works
drift --help
# Check for specific flags
drift --help | grep -- --no-llm
drift --help | grep -- --formatStep 4: Validate Configuration Examples
Check YAML configuration examples:
Example documentation config:
# From docs/configuration.rst
drift_rules:
provider: anthropic
model: claude-3-sonnet-20240229Validate with serena:
# Check config structure
mcp__serena__find_symbol(
name_path_pattern="Config",
relative_path="src/drift/config"
)
# Read actual config loading code
mcp__serena__find_symbol(
name_path_pattern="load_config",
relative_path="src/drift/config",
include_body=True
)Look for:
- Correct parameter names
- Valid provider values (anthropic, bedrock, claude-code)
- Correct structure and nesting
Step 5: Verify API Methods
Use serena to check that documented APIs exist:
Documentation example:
analyzer = Analyzer(config_path=".drift.yaml")
results = analyzer.analyze()Verify with serena:
# Find Analyzer class
mcp__serena__find_symbol(
name_path_pattern="Analyzer",
relative_path="src/drift",
depth=1 # Include methods
)
# Check analyze method specifically
mcp__serena__find_symbol(
name_path_pattern="Analyzer/analyze",
relative_path="src/drift",
include_body=True
)Compare:
- Method exists
- Parameters match
- Return type matches
- No deprecated methods
Step 6: Check Example Completeness
For each code example, verify:
Complete example checklist:
- All imports included
- No undefined variables
- No missing context
- Could theoretically run (or marked as snippet)
- Error handling shown (where relevant)
Example of incomplete documentation:
# BAD - missing imports and context
result = analyzer.analyze()
print(result)Should be:
# GOOD - complete example
from drift.core.analyzer import Analyzer
analyzer = Analyzer(config_path=".drift.yaml")
result = analyzer.analyze()
print(result)How to Detect Subjective Language
Step 1: Scan for Subjective Adjectives/Adverbs
Search documentation for these patterns:
Common subjective words:
- "easily", "simply", "just"
- "obviously", "clearly"
- "powerful", "elegant", "beautiful"
- "amazing", "best", "better"
- "great", "excellent"
- "effortlessly", "seamlessly"
- "straightforward"
How to search:
grep -n "easily\|simply\|just\|powerful" docs/*.rstOr use serena:
mcp__serena__search_for_pattern(
substring_pattern="easily|simply|just|powerful",
relative_path="docs/"
)Step 2: Flag Marketing Language
Bad - marketing language:
Drift provides a powerful validation system that makes
it easy to ensure code quality.Good - objective technical description:
Drift validates project structure using rule-based checks.
Validation runs programmatically without LLM calls.What to look for:
- Superlatives without data ("best", "most powerful")
- Emotional appeals
- Vague benefit claims
- Comparisons without specifics
Step 3: Identify False User Behavior Claims
CRITICAL - never claim user behavior without data:
Bad examples:
Most users run drift --no-llm in CI/CD
Many teams use this for code review
Typically developers check this daily
Users commonly integrate with GitHub ActionsGood alternatives:
drift --no-llm runs without API calls, suitable for CI/CD
Integrates with GitHub Actions via workflow files
Can be scheduled to run periodicallyProhibited phrases:
- "most users", "most teams", "most workflows"
- "many users", "many developers"
- "typically", "commonly", "usually"
- Any claim about what users do without hard data
Step 4: Suggest Replacements
Pattern: Subjective claim → Objective fact
Example 1:
Bad: "You can easily analyze AI conversations..."
Good: "You can analyze AI conversations..."Example 2:
Bad: "Drift's powerful validation system..."
Good: "Drift's validation system..."Example 3:
Bad: "Most users run validation before commits"
Good: "Validation can run before commits via pre-commit hooks"How to Use Serena MCP for Validation
Find Symbols
# Find a class
mcp__serena__find_symbol(
name_path_pattern="Analyzer",
relative_path="src/drift",
depth=1 # Include methods
)
# Find specific method
mcp__serena__find_symbol(
name_path_pattern="Analyzer/analyze",
relative_path="src/drift",
include_body=True # See implementation
)Check Module Structure
# Get overview of a module
mcp__serena__get_symbols_overview(
relative_path="src/drift/cli.py",
depth=1
)Shows all functions, classes, methods in the file.
Search for Usage Patterns
# Find how something is used
mcp__serena__search_for_pattern(
substring_pattern="Analyzer\\(",
relative_path="tests/",
restrict_search_to_code_files=True
)Look at test files to see correct usage patterns.
Verify Import Paths
# Check if import exists
mcp__serena__find_symbol(
name_path_pattern="cli",
relative_path="src/drift/cli.py"
)
# If not found, import path in docs is wrongHow to Generate Audit Reports
See Report Structure for:
- Complete report template
- Issue severity guidelines
- Example issue documentation
Drift-Specific Validation Areas
Validation Rules Documentation
Check that documented rules exist:
# Find validation rules
mcp__serena__list_dir(
relative_path="src/drift/validators",
recursive=True
)
# Verify rule names match documentation
mcp__serena__search_for_pattern(
substring_pattern="class.*Validator",
relative_path="src/drift/validators"
)Provider Configuration Examples
Validate provider examples in docs:
Anthropic configuration:
provider: anthropic
model: claude-3-sonnet-20240229Bedrock configuration:
provider: bedrock
model: anthropic.claude-v2
region: us-east-1Verify:
# Check provider loading code
mcp__serena__find_symbol(
name_path_pattern="load_provider",
relative_path="src/drift"
)CLI Documentation
Validate all CLI examples:
# Documented commands to check:
drift # Basic usage
drift --no-llm # No LLM mode
drift --days 7 # Time range
drift --format json # Output format
drift --rules NAMES # Specific rules
drift --cwd PATH # Working directoryVerify each flag exists:
drift --help | grep "flag-name"Example Workflows
See Workflows for detailed audit workflows:
- Auditing a single documentation file
- Validating all CLI examples
- Complete audit workflow (3 phases)
Resources
📖 Code Validation
Detailed guide for validating code examples in documentation.
Use when: Checking code examples, imports, and API usage in docs.
📖 Workflows
Step-by-step workflows for different types of documentation audits.
Use when: Performing a documentation audit before release.
📖 Report Structure
Documentation audit report template with issue severity guidelines.
Use when: Generating an audit report with findings and recommendations.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

