skills/latex-corporate-docs/SKILL.md
Generate LaTeX corporate documents following project writing conventions and corporate color palette. Trigger: When creating LaTeX documents, reports, proposals, or any formal PDF deliverable.
npx skillsauth add 333-333-333/agents latex-corporate-docsInstall 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.
Before writing any LaTeX document, the agent MUST load these skills:
| Skill | Purpose | Path |
|-------|---------|------|
| project-docs | Writing conventions, language, currency (CLP), doc structure | ../project-docs/SKILL.md |
| corporate-colors | Catppuccin color palette, light/dark mode definitions | ../corporate-colors/SKILL.md |
| latex-version-control | Version control table in every document | ../latex-version-control/SKILL.md |
All rules from project-docs apply: Spanish (Chile), technical register, medium complexity, CLP currency, web search for economic data, and docs/latex/{domain}/ file placement.
LaTeX files MUST follow the project-docs directory convention:
docs/latex/
├── finance/
│ └── budget-2025.tex
├── project/
│ └── proposal.tex
├── processes/
│ └── ci-cd-pipeline.tex
└── ...
Output PDFs go alongside their .tex source. Build artifacts (.aux, .log, .out) should be gitignored.
Every paragraph in the document body MUST have a short LaTeX comment on the line immediately above it. This comment describes in very few words what the paragraph will discuss.
Purpose: Guarantee global coherence and cohesion — the comment acts as an outline node, making it possible to review the document's logical flow by reading only comments.
| Rule | Detail |
|------|--------|
| Placement | Line immediately above the paragraph, no blank line between comment and text |
| Format | % <topic in 3-8 words> |
| Language | Same as document (Spanish), unless a technical English term is clearer |
| Coverage | Every \par, every paragraph after a blank line, every \item body |
| Exceptions | Titles, captions, and single-line table cells do not need annotation |
\section{Análisis de Costos}
% Contexto general del análisis de costos
El presente análisis detalla los costos asociados al desarrollo del módulo
de autenticación, considerando recursos humanos, infraestructura y licencias
de software.
% Desglose de costos por categoría
Los costos se dividen en tres categorías principales: desarrollo (\$1.800.000 CLP),
infraestructura cloud (\$450.000 CLP/mes) y licencias de terceros (\$250.000 CLP/año).
% BAD: Comentario demasiado vago
% Costos
El presente análisis detalla los costos...
% BAD: Comentario separado del párrafo por línea en blanco
% Desglose de costos por categoría
Los costos se dividen en tres categorías...
Use the Catppuccin palette from corporate-colors. Define colors in the preamble using xcolor:
See assets/colors-latte.tex
See assets/colors-mocha.tex
| Element | Color | Example |
|---------|-------|---------|
| Section titles | primary | \color{primary}\section{...} |
| Hyperlinks | primary | \hypersetup{colorlinks, linkcolor=primary, urlcolor=primary} |
| Highlighted boxes | info bg, textPrimary fg | \colorbox{info!10}{...} |
| Warning callouts | warning | \textcolor{warning}{Advertencia:} |
| Error/critical | error | \textcolor{error}{Crítico:} |
| Success indicators | success | \textcolor{success}{\checkmark} |
| Table headers | bgMantle bg | \rowcolor{bgMantle} |
| Table rules | border | \arrayrulecolor{border} |
| Captions | textSecondary | via caption package styling |
Every LaTeX document MUST follow the corporate template skeleton.
See assets/corporate-template.tex
When writing a document, follow this process:
% Example: outline-first approach
\section{Plan de Implementación}
% Resumen del enfoque de implementación en 3 fases
...
% Fase 1: diseño de arquitectura y prototipos (semanas 1-4)
...
% Fase 2: desarrollo iterativo con sprints de 2 semanas (semanas 5-12)
...
Follow project-docs rules. CLP currency macros:
See assets/currency-macros.tex
Usage example:
% Costo mensual del hosting
El hosting tiene un costo de \clp{45.000}/mes.
% Conversión desde USD con tipo de cambio
El servicio SaaS cuesta \usdtoclp{49}{45.000}{920}, enero 2026.
# Compile LaTeX document
pdflatex -output-directory=docs/latex/{domain} docs/latex/{domain}/{document}.tex
# Full build with references
cd docs/latex/{domain} && pdflatex {document}.tex && bibtex {document} && pdflatex {document}.tex && pdflatex {document}.tex
# Clean build artifacts
find docs/latex/ -name "*.aux" -o -name "*.log" -o -name "*.out" -o -name "*.toc" -o -name "*.bbl" -o -name "*.blg" | xargs rm -f
# Watch and rebuild (requires latexmk)
latexmk -pdf -pvc -outdir=docs/latex/{domain} docs/latex/{domain}/{document}.tex
project-docs and corporate-colors skills loadeddocs/latex/{domain}/{name}.texprimary colorlatex-version-control skill).gitignorecorporate-template.tex, color definitions, and currency macroscorporate-colors for full Catppuccin mappingsproject-docs for language, currency, and structure rulestesting
Review Flutter components and screens for UX/UI compliance. Trigger: When user invokes /ux-review command or requests UX audit.
development
TypeScript strict patterns and best practices. Trigger: When implementing or refactoring TypeScript in .ts/.tsx (types, interfaces, generics, const maps, type guards, removing any, tightening unknown).
testing
Testing philosophy and strategy for every feature: test pyramid, mandatory levels per change type, completion checklist, and skill delegation. Trigger: When planning tests for a feature, reviewing test coverage, defining acceptance criteria, or asking what tests a change needs.
development
Terraform security practices: sensitive variables, secret management, state protection, .gitignore patterns, and CI/CD credential handling. Trigger: When handling secrets in Terraform, configuring state backends, reviewing .gitignore for Terraform, or setting up CI/CD pipelines for infrastructure.