document-polisher
Skill1 starsChanged 43 days agoMITView on GitHub
Transform any DOCX document with world-class brand styling. Choose from 10 premium brand aesthetics (The Economist, McKinsey, Deloitte, KPMG, Stripe, Apple, IBM, Notion, Linear, Figma) to polish documents with professional typography, colors, and formatting. Use when users want to: (1) Apply premium brand styling to documents, (2) Make documents look more professional, (3) Match a specific brand's visual identity, (4) Create polished reports, proposals, or presentations.
- Installs packages
2 other projects use a version of this, 2 of them edited.
Adopted by
Most recently taken up by
- michellelandon/claude-code-polished-documents-skillsedited, first seen Dec 3, 2025
- promptadvisers/claude-code-polished-documents-skillsedited, first seen Dec 3, 2025
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 2
Wrote their own version · 0
None found.
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 repository59 other files it gives its agents.
- answer-me-with-htmlSkill
- bilibili-hubSkill
- brand-docxSkill
- brand-pptxSkill
- brand-xlsxSkill
- browser-useSkill
- Clash 控制器Skill
- cloudflare-dnsSkill
- codex-imageSkill
- contact-vcard-extractorSkill
- data-cleaning-for-excelSkill
- deck-refreshSkill
- doubao-ttsSkill
- douyin-downloaderSkill
- evidence-chain-builderSkill
- exa-searchSkill
- excel-hygieneSkill
- formula-audit-checkerSkill
- free-ttsSkill
- frontend-designSkill
- fucai3d-latestSkill
- generative-ui-minisSkill
- github-sync-helperSkill
- hello-demoSkill
- hyperframesSkill
- ib-check-deckSkill
- inputs-calcs-outputs-designSkill
- maimai-hubSkill
- memos-apiSkill
- mermaid-to-vsdxSkill
- model-architecture-templateSkill
- nano-bananaSkill
- network-engineeringSkill
- notion-hubSkill
- openstreetmap-markerSkill
- packet-tracerSkill
- pdf-converterSkill
- pivot-table-builderSkill
- pktSkill
- production-agent-publicSkill
- qbt-hubSkill
- quark-hubSkill
- reverse-dcfSkill
- scenario-managerSkill
- self-improving-agentSkill
- spotify-hubSkill
- tavily-searchSkill
- tg-hubSkill
- twitter-downloaderSkill
- twitter-x-hubSkill
- webapp-testingSkill
- web-artifacts-builderSkill
- web-content-extractorSkill
- weibo-hubSkill
- whenpeakSkill
- xianyu-hubSkill
- xiaohongshu-hubSkill
- youtube-downloaderSkill
- ytmusic-hubSkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 8 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 18
When a user wants to polish a document, ALWAYS present this selection menu:
- Distinctive: line 73
When a user wants to polish a document:
- Distinctive: line 75
Ask: "Which brand style would you like to apply?
- Distinctive: line 217
Match brand to content: Use consulting brands for business docs, tech brands for technical content
- Distinctive: line 231
Ensure the source document uses standard Word styles (Heading 1, 2, 3, Normal)
- Distinctive: line 232
Check that lists use built-in List Bullet/List Number styles
- Distinctive: line 235
Always run from the project root or use absolute paths:
- Very specific: line 243
Use FireCrawl to extract branding: mcp__firecrawl__firecrawl_extract_branding
- Very specific: line 244
Create a new file in brands/<brand_name>.md
- Very specific: line 245
Add entry to templates/brand-mapping.json with:
- Distinctive: line 250
Test with sample documents
≈ “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
Windows 环境:技能目录为 C:\Users\Willian.agents\skills\document-polisher,脚本请用绝对路径或先 cd 进技能目录;产物写到当前工作目录。本机没有 LibreOffice(soffice),依赖它做渲染、缩略图、接受修订、公式重算的步骤会失败,其余 Python 操作正常。
Document Polisher
Transform any document into a polished, professionally-styled masterpiece using world-class brand aesthetics.
Overview
This skill applies premium brand styling from 10 carefully curated brands to DOCX documents. Each brand has been analyzed for its typography, color palette, and design principles to create authentic-looking documents.
Brand Selection Menu
When a user wants to polish a document, ALWAYS present this selection menu:
╔══════════════════════════════════════════════════════════════════════════╗
║ DOCUMENT POLISHER ║
║ Select Your Brand Style ║
╠══════════════════════════════════════════════════════════════════════════╣
║ ║
║ EDITORIAL ║
║ ───────── ║
║ 1. The Economist │ Deep navy + serif typography ║
║ │ Best for: Reports, analysis, thought leadership ║
║ ║
║ CONSULTING ║
║ ────────── ║
║ 2. McKinsey │ Sharp corners + bold blue accents ║
║ │ Best for: Strategy decks, executive summaries ║
║ ║
║ 3. Deloitte │ Teal-blue + pill-shaped elements ║
║ │ Best for: Audits, assessments, formal reports ║
║ ║
║ 4. KPMG │ Two-tone blue + condensed headings ║
║ │ Best for: Financial reports, compliance docs ║
║ ║
║ TECH ║
║ ──── ║
║ 5. Stripe │ Dark blue + purple gradients ║
║ │ Best for: API docs, developer guides, specs ║
║ ║
║ 6. Apple │ Minimalist + generous whitespace ║
║ │ Best for: Product docs, user guides ║
║ ║
║ 7. IBM │ Plex typography + Carbon design ║
║ │ Best for: Technical docs, enterprise reports ║
║ ║
║ 8. Linear │ Modern purple + precise typography ║
║ │ Best for: Product specs, changelogs, dev docs ║
║ ║
║ PRODUCTIVITY ║
║ ──────────── ║
║ 9. Notion │ Clean blue + subtle accents ║
║ │ Best for: Wikis, project plans, documentation ║
║ ║
║ DESIGN ║
║ ────────── ║
║ 10. Figma │ Vibrant multi-color palette ║
║ │ Best for: Creative briefs, design docs, brands ║
║ ║
╚══════════════════════════════════════════════════════════════════════════╝Workflow
Step 1: Ask the User
When a user wants to polish a document:
- Display the brand selection menu above
- Ask: "Which brand style would you like to apply? You can also tell me the purpose of your document and I'll recommend a style."
Step 2: Apply the Styling
IMPORTANT: Always use the Python script with python-docx. Never use direct XML/OOXML manipulation as it can corrupt documents.
Primary Method: Python Script (REQUIRED)
The script uses python-docx to safely recreate documents with brand styling. It:
- Reads the source document
- Creates a new document with brand styles applied
- Copies all content with proper formatting
- Preserves bold, italic, lists, and structure
# Ensure python-docx is installed in the environment
pip install python-docx
# Apply brand styling
python scripts/apply_brand.py <input.docx> <brand_name> <output.docx>
# Examples:
python scripts/apply_brand.py report.docx economist polished_report.docx
python scripts/apply_brand.py proposal.docx mckinsey styled_proposal.docx
python scripts/apply_brand.py guide.docx stripe tech_guide.docxAvailable Brand Names:
economist- The Economist (editorial, serif)mckinsey- McKinsey & Company (consulting, sharp)deloitte- Deloitte (consulting, teal)kpmg- KPMG (consulting, bold blue)stripe- Stripe (tech, dark blue/purple)apple- Apple (tech, minimalist)ibm- IBM (tech, enterprise)notion- Notion (productivity, clean)linear- Linear (tech, modern purple)figma- Figma (design, colorful)
What the Script Does
- Loads brand configuration from
templates/brand-mapping.json - Creates a fresh document (avoids corruption from XML editing)
- Applies document-level styles:
- Normal text style (font, size, color)
- Heading 1, 2, 3 styles (font, size, color, spacing)
- Title style
- Page margins
- Copies content with formatting:
- Preserves headings at correct levels
- Maintains bullet and numbered lists
- Keeps bold, italic, underline formatting
- Preserves paragraph alignment
- Copies tables with styling
- Saves as new file (never overwrites original)
Brand Reference Files
Detailed brand guidelines are stored in the brands/ directory:
| Brand | Reference File | Key Elements |
| The Economist | brands/economist.md | Georgia serif, #1F2E7A navy, minimal borders |
| McKinsey | brands/mckinsey.md | Helvetica Neue, #051C2C dark, sharp corners |
| Deloitte | brands/deloitte.md | Open Sans, #007CB0 teal, rounded elements |
| KPMG | brands/kpmg.md | Open Sans, #1E49E2 blue |
| Stripe | brands/stripe.md | Helvetica Neue, #0A2540 + #9966FF purple |
| Apple | brands/apple.md | Helvetica Neue, #0071E3 blue, minimal |
| IBM | brands/ibm.md | Arial, #0F62FE blue, sharp corners |
| Notion | brands/notion.md | Arial, #0075DE blue, block-based |
| Linear | brands/linear.md | Arial, #5E6AD2 purple, modern |
| Figma | brands/figma.md | Arial, multi-color palette |
Style Mapping
The templates/brand-mapping.json file contains structured data for programmatic styling:
{
"brands": {
"economist": {
"name": "The Economist",
"colors": {
"primary": "#1F2E7A",
"accent": "#E3120B",
"textPrimary": "#0D0D0D"
},
"typography": {
"headingFont": "Georgia",
"bodyFont": "Georgia"
},
"styles": {
"h1": { "size": 28, "color": "#1F2E7A", "bold": true },
"h2": { "size": 22, "color": "#1F2E7A", "bold": true },
"body": { "size": 11, "color": "#0D0D0D" }
}
}
}
}Examples
Example 1: Polish a Report with McKinsey Style
User: "Make my quarterly report look more professional"
- Show brand menu
- User selects "McKinsey"
- Apply styling:
cd /path/to/project
source venv/bin/activate # if using virtual environment
python .claude/skills/document-polisher/scripts/apply_brand.py quarterly_report.docx mckinsey polished_quarterly_report.docxExample 2: Apply Economist Style to a Guide
User: "Style this guide like The Economist"
python .claude/skills/document-polisher/scripts/apply_brand.py guide.docx economist guide_economist.docxExample 3: Tech Documentation with Stripe Style
User: "Make this API doc look like Stripe's documentation"
python .claude/skills/document-polisher/scripts/apply_brand.py api_doc.docx stripe api_doc_stripe.docxDependencies
- Python 3.x
- python-docx:
pip install python-docx
The script will check for python-docx and provide installation instructions if missing.
Tips for Best Results
- Match brand to content: Use consulting brands for business docs, tech brands for technical content
- Consider your audience: Economist for academics, Stripe for developers, Apple for consumers
- Don't over-brand: The goal is professional polish, not exact brand copying
- Test with PDF export: Some styling looks different in PDF vs Word
- Use virtual environment: Keeps dependencies isolated
Troubleshooting
"Module not found: docx"
pip install python-docxDocument looks wrong
- Ensure the source document uses standard Word styles (Heading 1, 2, 3, Normal)
- Check that lists use built-in List Bullet/List Number styles
Script path issues
Always run from the project root or use absolute paths:
python /full/path/to/.claude/skills/document-polisher/scripts/apply_brand.py input.docx brand output.docxAdding New Brands
To add a new brand:
- Use FireCrawl to extract branding:
mcp__firecrawl__firecrawl_extract_branding - Create a new file in
brands/<brand_name>.md - Add entry to
templates/brand-mapping.jsonwith:name,description,categorycolors: primary, accent, background, textPrimary, textSecondarytypography: headingFont, bodyFontstyles: h1, h2, h3, body with size, color, bold
- Test with sample documents
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.

