Loading...
Loading...
Use when creating or editing documents (DOCX, PDF, XLSX, PPTX) that need professional output. Adds visual verification, typography hygiene, and formula patterns to the document-skills plugin.
npx skill4agent add belumume/claude-skills document-quality-standardsdocument-skills"Only do python printing as a last resort because you will miss important details with text extraction (e.g. figures, tables, diagrams)."
1. Generate/modify document
2. Convert to PNG:
pdftoppm -png -r 150 document.pdf output
3. Visually inspect the PNG at 100% zoom
4. Fix any issues found
5. REPEAT until clean# DOCX → PDF → PNG
soffice --headless --convert-to pdf document.docx
pdftoppm -png -r 150 document.pdf page
# PDF → PNG directly
pdftoppm -png -r 150 document.pdf page
# PPTX → PDF → PNG
soffice --headless --convert-to pdf presentation.pptx
pdftoppm -png -r 150 presentation.pdf slide# WRONG - may render as boxes or break layouts
text = "co‑author" # U+2011 non-breaking hyphen
# CORRECT - always use ASCII hyphen
text = "co-author" # U+002D standard hyphen-minus# Find problematic hyphens
import re
if '\u2011' in text:
text = text.replace('\u2011', '-')
# Also watch for other non-ASCII dashes
text = text.replace('\u2013', '-') # en-dash
text = text.replace('\u2014', '-') # em-dash (if hyphen intended)【4:2†source】# WRONG
See source 【4:2†source】 for details.
# CORRECT
See Smith (2024), "Document Standards," Journal of Tech, p. 45.| Color | Meaning | Use Case |
|---|---|---|
| Gray text | Static constants | Values that never change (tax rates, conversion factors) |
| Orange background | Review/caution | Cells needing verification or approval |
| Light red background | Errors/issues | Known problems to fix |
# WRONG - hard to debug, audit, or modify
=IF(AND(B5>100,C5<50),B5*1.1*IF(D5="A",1.2,1),B5*0.9)
# CORRECT - use helper columns
E5: =B5>100 (Threshold check)
F5: =C5<50 (Secondary check)
G5: =IF(D5="A",1.2,1) (Category multiplier)
H5: =IF(AND(E5,F5),B5*1.1*G5,B5*0.9) (Final calculation)FILTER()XLOOKUP()SORT()SEQUENCE()UNIQUE()FILTER()INDEX/MATCHXLOOKUP()INDEX/MATCHSORT()SEQUENCE()# Hide gridlines for cleaner appearance
sheet.sheet_view.showGridLines = False
# Add borders above totals (not around every cell)
from openpyxl.styles import Border, Side
thin_top = Border(top=Side(style='thin'))
total_cell.border = thin_top
# Cite sources in cell comments, not adjacent cells
from openpyxl.comments import Comment
cell.comment = Comment("Source: 10-K FY2024, p.45", "Analyst")| Official Skill | This Skill Adds |
|---|---|
| Helper cells, extended colors, dynamic array warnings |
| Visual-first philosophy, render-inspect-fix loop |
| Typography hygiene, PNG verification emphasis |
| Same verification workflow |