[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75A7RW29ZX26NM50762G45Y":3,"skill-same:01M75A7RW29ZX26NM50762G45Y":44},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":29,"install":30,"resources":43},"01M75A7RW29ZX26NM50762G45Y","pdf-report",null,"Use when adding a new PDF-generating report view, or changing how an existing one builds its PDF (columns, rows, metadata), in this Vue accounting app. Explains the shared PdfReportBuilder engine in src\u002Fpdf\u002F and its contract, instead of hand-rolling jsPDF\u002Fjspdf-autotable calls.","PawelReynoso24gt\u002Fplantillacontabilidad","PawelReynoso24gt","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F120272847?v=4","01M75A7MTJBV0KG43VFQBQKX0Y","Pawel Alessandro Reynoso Marquez","01M75A7MV736QTC0S41GZ4GB0K",0,"MIT","https:\u002F\u002Fgithub.com\u002FPawelReynoso24gt\u002Fplantillacontabilidad\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fpdf-report\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: pdf-report\ndescription: Use when adding a new PDF-generating report view, or changing how an existing one builds its PDF (columns, rows, metadata), in this Vue accounting app. Explains the shared PdfReportBuilder engine in src\u002Fpdf\u002F and its contract, instead of hand-rolling jsPDF\u002Fjspdf-autotable calls.\n---\n\n### PDF report generation (`src\u002Fpdf\u002F`)\nAll PDF-producing views (there are 15) build their PDFs through a shared engine instead of hand-rolling `jsPDF`\u002F`jspdf-autotable` calls:\n- `PdfReportBuilder.js` — `buildReportPdf({ orientation, metadata, columns, rows })` is the single entry point every view calls; it composes the header and table renderers and returns the `jsPDF` doc (caller still does `doc.output('blob')` + `saveAs`).\n- `PdfHeaderRenderer.js` — draws the shared navy\u002Fgold header card (logo, empresa\u002Fdirección, tipo de reporte, especificación).\n- `PdfTableRenderer.js` — wraps `autoTable` with the shared navy header row, beige highlight rows, green\u002Fred coloring for `acredita`\u002F`debita` columns, and the footer (page numbers + generation date).\n- `theme.js` \u002F `format.js` — shared color palette and `formatCurrency()` (handles comma-formatted numeric strings from the API, not just plain numbers).\n- `logo.js` — base64-embedded logo used by the header renderer.\n\nContract: `columns` is `[{ header, dataKey, align?, type? }]` (`type` one of `'text' | 'currency' | 'acredita' | 'debita'`); `rows` are plain objects keyed by `dataKey`, optionally with `_variant: 'highlight'` (saldo inicial \u002F totals rows → beige+bold) and\u002For `_cellColors: { [dataKey]: 'positive'|'negative' }` for one-off cell coloring (e.g. an unbalanced \"Partida\"). Adding a new report = new columns\u002Frows shape, not a new copy of the drawing code.\n","### PDF report generation (`src\u002Fpdf\u002F`)\nAll PDF-producing views (there are 15) build their PDFs through a shared engine instead of hand-rolling `jsPDF`\u002F`jspdf-autotable` calls:\n- `PdfReportBuilder.js` — `buildReportPdf({ orientation, metadata, columns, rows })` is the single entry point every view calls; it composes the header and table renderers and returns the `jsPDF` doc (caller still does `doc.output('blob')` + `saveAs`).\n- `PdfHeaderRenderer.js` — draws the shared navy\u002Fgold header card (logo, empresa\u002Fdirección, tipo de reporte, especificación).\n- `PdfTableRenderer.js` — wraps `autoTable` with the shared navy header row, beige highlight rows, green\u002Fred coloring for `acredita`\u002F`debita` columns, and the footer (page numbers + generation date).\n- `theme.js` \u002F `format.js` — shared color palette and `formatCurrency()` (handles comma-formatted numeric strings from the API, not just plain numbers).\n- `logo.js` — base64-embedded logo used by the header renderer.\n\nContract: `columns` is `[{ header, dataKey, align?, type? }]` (`type` one of `'text' | 'currency' | 'acredita' | 'debita'`); `rows` are plain objects keyed by `dataKey`, optionally with `_variant: 'highlight'` (saldo inicial \u002F totals rows → beige+bold) and\u002For `_cellColors: { [dataKey]: 'positive'|'negative' }` for one-off cell coloring (e.g. an unbalanced \"Partida\"). Adding a new report = new columns\u002Frows shape, not a new copy of the drawing code.\n",{"name":5,"description":7},"main","5395a541a027907eb28c838e51927ba1a301e65f",".claude\u002Fskills\u002Fpdf-report","https:\u002F\u002Fgithub.com\u002FPawelReynoso24gt\u002Fplantillacontabilidad","https:\u002F\u002Fgithub.com\u002FPawelReynoso24gt","2026-10-13 02:46:21",{"source":8,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add PawelReynoso24gt\u002Fplantillacontabilidad --skill pdf-report",{"tool":36,"command":37},"bunx","bunx skills add PawelReynoso24gt\u002Fplantillacontabilidad --skill pdf-report",{"tool":39,"command":40},"pnpm","pnpm dlx skills add PawelReynoso24gt\u002Fplantillacontabilidad --skill pdf-report","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FPawelReynoso24gt\u002Fplantillacontabilidad\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fpdf-report\u002FSKILL.md",true,[],[]]