kb-document-scanning
Skill458 starsChanged 33 days agoMITView on GitHub
Reference data, not a reviewer. Discover and inventory documents for accessibility audits. Scans folders for .docx, .xlsx, .pptx, PDF and ePub files. Detects git changes and extracts title, author, and language metadata.
In this repository114 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- a11y-coreSkill
- a11y-tool-builderSkill
- accessibility-leadSkill
- accessibility-regression-detectorSkill
- accessibility-statementSkill
- actions-managerSkill
- alt-text-headingsSkill
- analyticsSkill
- aria-specialistSkill
- ci-accessibilitySkill
- cognitive-accessibilitySkill
- compliance-mappingSkill
- contrast-masterSkill
- contributions-hubSkill
- cross-document-analyzerSkill
- cross-page-analyzerSkill
- daily-briefingSkill
- data-visualization-accessibilitySkill
- design-system-auditorSkill
- desktop-a11y-specialistSkill
- desktop-a11y-testing-coachSkill
- developer-hubSkill
- document-accessibility-wizardSkill
- document-csv-reporterSkill
- document-inventorySkill
- email-accessibilitySkill
- epub-accessibilitySkill
- epub-scan-configSkill
- excel-accessibilitySkill
- forms-specialistSkill
- github-hubSkill
- i18n-accessibilitySkill
- insiders-a11y-trackerSkill
- issue-trackerSkill
- kb-accessibility-rulesSkill
- kb-ci-integrationSkill
- kb-cognitive-accessibilitySkill
- kb-data-visualization-accessibilitySkill
- kb-design-systemSkill
- kb-email-accessibilitySkill
- kb-framework-accessibilitySkill
- kb-github-a11y-scannerSkill
- kb-github-analytics-scoringSkill
- kb-github-scanningSkill
- kb-github-shared-instructionsSkill
- kb-github-workflow-standardsSkill
- kb-help-url-referenceSkill
- kb-legal-compliance-mappingSkill
- kb-lighthouse-scannerSkill
- kb-markdown-accessibilitySkill
- kb-media-accessibilitySkill
- kb-mobile-accessibilitySkill
- kb-office-remediationSkill
- kb-open-source-accessibility-frameworkSkill
- kb-path-instructionsSkill
- kb-playwright-testingSkill
- kb-python-developmentSkill
- kb-report-generationSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 80
Always exclude these patterns during scanning:
- Distinctive: line 109
When delegating to a sub-agent, always provide this context block:
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Document Scanning
Supported File Types
Each extension, with its type and sub-agent.
| Extension | Type | Sub-Agent |
| .docx | Word document | word-accessibility |
| .xlsx | Excel workbook | excel-accessibility |
| .pptx | PowerPoint presentation | powerpoint-accessibility |
| PDF document | pdf-accessibility | |
| .epub | ePub publication | epub-accessibility |
File Discovery Commands
PowerShell (Windows)
# Non-recursive scan (-Include needs the trailing \* when -Recurse is not used)
Get-ChildItem -Path "<folder>\*" -File -Include *.docx,*.xlsx,*.pptx,*.pdf,*.epub
# Recursive scan
Get-ChildItem -Path "<folder>" -File -Include *.docx,*.xlsx,*.pptx,*.pdf,*.epub -Recurse |
Where-Object Name -notmatch '^~\$' |
Where-Object FullName -notmatch '[\\/](\.git|node_modules|__pycache__|\.vscode)[\\/]'Bash (macOS)
# Non-recursive scan
find "<folder>" -maxdepth 1 -type f \( -name "*.docx" -o -name "*.xlsx" -o -name "*.pptx" -o -name "*.pdf" -o -name "*.epub" \) ! -name '~[$]*'
# Recursive scan
find "<folder>" -type f \( -name "*.docx" -o -name "*.xlsx" -o -name "*.pptx" -o -name "*.pdf" -o -name "*.epub" \) \
! -name '~[$]*' ! -name "*.tmp" ! -name "*.bak" \
! -path "*/.git/*" ! -path "*/node_modules/*" ! -path "*/__pycache__/*" ! -path "*/.vscode/*"Delta Detection
Git-based
# Files changed since last commit
git diff --name-only HEAD~1 HEAD -- '*.docx' '*.xlsx' '*.pptx' '*.pdf' '*.epub'
# Files changed since a specific tag
git diff --name-only <tag> HEAD -- '*.docx' '*.xlsx' '*.pptx' '*.pdf' '*.epub'
# Files changed in the last N days
git log --since="N days ago" --name-only --diff-filter=ACMR --pretty="" -- '*.docx' '*.xlsx' '*.pptx' '*.pdf' '*.epub' | sort -uTimestamp-based (PowerShell)
# Files modified since a specific date
Get-ChildItem -Path "<folder>" -File -Include *.docx,*.xlsx,*.pptx,*.pdf,*.epub -Recurse |
Where-Object LastWriteTime -gt ([datetime]"2025-01-01")Files to Skip
Always exclude these patterns during scanning:
~$files - Office lock/temp files (names starting with~$) (created when a document is open)*.tmp- Temporary files*.bak- Backup files- Files inside
.git/,node_modules/,.vscode/,__pycache__/directories
Scan Configuration Files
Each file, with its purpose.
| File | Purpose |
.a11y-office-config.json | Rule enable/disable for Word, Excel, PowerPoint |
.a11y-pdf-config.json | Rule enable/disable for PDF scanning |
.a11y-epub-config.json | Rule enable/disable for ePub scanning |
Scan Profiles
Each profile, with rules, severities and use case.
| Profile | Rules | Severities | Use Case |
| Strict | All | Error, Warning, Tip | Public-facing, legally required documents |
| Moderate | All | Error, Warning | Most organizations |
| Minimal | All | Error only | Triaging large document libraries |
Context Passing Format
When delegating to a sub-agent, always provide this context block:
## Document Scan Context
- **File:** [full path]
- **Scan Profile:** [strict | moderate | minimal]
- **Severity Filter:** [error, warning, tip]
- **Disabled Rules:** [list or "none"]
- **User Notes:** [any specifics]
- **Part of Batch:** [yes/no - if yes, indicate X of Y]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.

