df1ef9f0-3138-4b76-8be9-a0e40bc4ccef/claude-plugin/skills/output-generation/docx-generator/SKILL.md
Generate Word documents (DOCX) from structured report data using python-docx. Creates professional PE/VC reports with consistent formatting, tables, headers, and footers. Handles LP reports, IC memos, and analysis documents. Always read the design-system skill first.
npx skillsauth add ganoro/equiforte-workspaces-local-2 df1ef9f0-3138-4b76-8be9-a0e40bc4ccef/claude-plugin/skills/output-generation/docx-generatorInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Generate Word documents from structured report data using python-docx.
Before generating, read the design system files:
/shared/plugins/nestbox-df1ef9f0/skills/design-system/references/tokens.md — colors, typography, spacing/shared/plugins/nestbox-df1ef9f0/skills/design-system/references/components.md — component patterns/shared/plugins/nestbox-df1ef9f0/skills/design-system/references/language.md — terminology, disclaimers/shared/plugins/nestbox-df1ef9f0/brand/assets/brand-overrides.json — firm name, confidentiality noticeCopy the logo into the workspace: cp /shared/plugins/nestbox-df1ef9f0/brand/assets/logo.png ./logo.png 2>/dev/null || true
Ensure all report content is finalized in _research/ markdown files before generating.
Build a Python script that uses python-docx. Pull all color values, font sizes, and spacing from the design system tokens — do not hardcode.
import os, shutil
from docx import Document
from docx.shared import Inches, Pt, RGBColor
from docx.enum.text import WD_ALIGN_PARAGRAPH
from docx.enum.table import WD_TABLE_ALIGNMENT
# ── Design Tokens (from design-system/references/tokens.md) ──
PRIMARY = RGBColor(0x1B, 0x3A, 0x5C)
ACCENT = RGBColor(0x2E, 0x75, 0xB6)
TEXT = RGBColor(0x2D, 0x2D, 0x2D)
TEXT_SEC = RGBColor(0x66, 0x66, 0x66)
TEXT_INV = RGBColor(0xFF, 0xFF, 0xFF)
SURFACE = RGBColor(0xF7, 0xF8, 0xFA)
POSITIVE = RGBColor(0x1A, 0x7A, 0x3A)
WARNING = RGBColor(0xC6, 0x77, 0x00)
NEGATIVE = RGBColor(0xC4, 0x26, 0x1D)
CRITICAL = RGBColor(0x8B, 0x00, 0x00)
# ── Logo ──
LOGO_SRC = "/shared/plugins/nestbox-df1ef9f0/brand/assets/logo.png"
LOGO_LOCAL = "logo.png"
if os.path.exists(LOGO_SRC):
shutil.copy2(LOGO_SRC, LOGO_LOCAL)
def add_logo_to_doc(doc, width=Inches(2.0)):
"""Insert the firm logo at the current position in the document."""
if os.path.exists(LOGO_LOCAL):
doc.add_picture(LOGO_LOCAL, width=width)
pip install python-docx 2>/dev/null
python generate_docx.py
ls -la output/report.docx
Save output to output/report.docx.
add_logo_to_doc(doc) first, then add title, subtitle, date, and "CONFIDENTIAL"references/language.mdtext-secondaryFollow the Data Table component pattern:
primary fill, white Bold 10pt textsurfaceborder-strong top bordertext-secondary, 8ptPer tokens.md:
negative colorreferences/language.md)tools
MANDATORY workspace file-writing rules for the containerized agent environment. Triggers whenever files are created, written, saved, or generated. All deliverables MUST go to output/ subdirectory. Absolute paths like /home/user/ will fail.
tools
Perform fair value analysis for PE/VC portfolio companies — comparable company analysis, precedent transactions, DCF modeling, ASC 820 / IFRS 13 fair value hierarchy classification, and valuation reconciliation. Ensures compliance with accounting standards.
development
Use this skill whenever a user wants to research a portfolio company and generate an ILPA-compliant Portfolio Company Metrics (PortCo) report. Triggers include: any mention of "ILPA", "portfolio company report", "PortCo template", "PE fund reporting", "GP reporting", "LP reporting", "buyout company metrics", "growth equity metrics", or when a user asks to "research a company for private equity", "compute KPIs for a portco", "generate fund performance metrics", or "fill out a portfolio company template". Also triggers when a user provides a company name and asks for financial analysis in a PE/VC context, including requests for EBITDA multiples, IRR, MOIC, ownership metrics, or debt analysis. Output formats supported: Excel (.xlsx), PowerPoint (.pptx), or PDF report.
tools
Generate Excel workbooks (XLSX) from structured financial data using openpyxl. Creates formatted spreadsheets with multiple tabs for fund performance, portfolio data, cash flows, and waterfall calculations. Includes formulas, conditional formatting, and charts. Always read the design-system skill first.