home / skills / cleanexpo / ato / pdf_report_generation

pdf_report_generation skill

/.agent/skills/pdf_report_generation

This skill generates accountant-ready PDF tax analysis reports with mandatory disclosures, legislative references, and ESTIMATE ONLY labelling for clear client

npx playbooks add skill cleanexpo/ato --skill pdf_report_generation

Review the files below or copy the command above to add this skill to your agents.

Files (1)
SKILL.md
6.3 KB
---
name: pdf-report-generation
description: Generates professional PDF tax analysis reports with compliance disclaimers, legislative references, and accountant-ready formatting
---

# PDF Report Generation Skill

Produces professional-grade PDF reports from tax analysis results, formatted for accountant review and client presentation. All reports include mandatory TASA 2009 disclaimers, legislative references, data provenance, and "ESTIMATE ONLY" labelling on dollar amounts.

## When to Use

- Generating accountant-ready reports from forensic analysis results
- Producing client-facing tax opportunity summaries
- Creating compliance documentation for ATO engagement
- Exporting R&D Tax Incentive evidence packs
- Building Division 7A compliance reports with loan schedules
- Preparing amendment request supporting documentation

## Report Types

### 1. Executive Summary Report

| Section | Content | Pages |
|---------|---------|-------|
| Cover page | Entity name, FY, generation date, disclaimer | 1 |
| Executive summary | Key findings, total opportunity value, risk areas | 1 |
| Opportunity breakdown | Top 10 opportunities with dollar values and legislation | 2-3 |
| Compliance alerts | Critical compliance issues requiring immediate attention | 1 |
| Data provenance | Data sources, analysis date, confidence levels | 1 |
| Full disclaimer | TASA 2009 + Privacy Act 1988 notices | 1 |

### 2. Detailed Analysis Report

| Section | Content | Pages |
|---------|---------|-------|
| All executive summary sections | As above | 5-7 |
| Deduction analysis | Categorised deductions with legislation refs | 3-5 |
| R&D assessment | Division 355 eligibility analysis per activity | 2-4 |
| Division 7A review | Loan schedules, MYR calculations, compliance status | 2-3 |
| Loss analysis | COT/SBT assessment, carry-forward schedule | 1-2 |
| FBT summary | Fringe benefit identification, Type 1/2 breakdown | 1-2 |
| Transaction appendix | Full classified transaction list | Variable |

### 3. Compliance Calendar Report

| Section | Content | Pages |
|---------|---------|-------|
| Upcoming deadlines | Next 12 months of compliance deadlines | 1-2 |
| Amendment windows | Open amendment periods with opportunity values | 1 |
| Overdue items | Past-due obligations with penalty estimates | 1 |

## Mandatory Report Elements

### TASA 2009 Disclaimer (Required on Every Page)

```
DISCLAIMER: This analysis is generated by automated software and does not
constitute tax, financial, or legal advice. It is provided for informational
purposes only. All findings and recommendations should be reviewed by a
registered tax agent or qualified tax professional before any action is taken.
This software is not registered with the Tax Practitioners Board and does
not provide tax agent services within the meaning of the Tax Agent Services
Act 2009 (TASA).
```

- Minimum font size: **12px** (compliance requirement from audit)
- Minimum opacity: **60%** (must be legible)
- Placement: Footer of every page + dedicated final page

### ESTIMATE Labelling

All dollar amounts in reports must be labelled:
- **"(Est.)"** suffix on individual amounts
- **"ESTIMATE ONLY"** header on summary totals
- Confidence level indicator: High / Medium / Low

### Data Provenance Block

Every report must include:

| Field | Example |
|-------|---------|
| Data source | Xero (READ-ONLY API) |
| Organisations analysed | DR Pty Ltd, DR Family Trust |
| Transactions analysed | 5,230 |
| Financial years | FY2022-23, FY2023-24, FY2024-25 |
| Analysis engine | Gemini 2.0 Flash + 16 specialised engines |
| Tax rates source | ATO.gov.au (verified 2026-02-13) or Fallback rates |
| Report generated | 2026-02-13T10:00:00+11:00 |
| Report ID | RPT-2026-0213-001 |

## PDF Generation Methods

### Option 1: Server-Side (Recommended for Production)

Use Puppeteer or Playwright to render HTML → PDF:

| Tool | Pros | Cons |
|------|------|------|
| **Puppeteer** | Full Chrome rendering, CSS support | Heavy (300MB+ Chromium) |
| **@react-pdf/renderer** | React components → PDF, lightweight | Limited CSS support |
| **jsPDF** | Client-side, no server dependency | Manual layout, no CSS |
| **PDFKit** | Node.js native, programmatic | Manual layout |

### Option 2: HTML Template + CSS Print Styles

Generate styled HTML with `@media print` CSS, then convert to PDF:

```css
@media print {
  .no-print { display: none; }
  .page-break { page-break-before: always; }
  .disclaimer { font-size: 12px; opacity: 0.6; }
}
```

## Report Styling

| Element | Style | Rationale |
|---------|-------|-----------|
| Font | Inter or Geist (body), JetBrains Mono (numbers) | Matches app design system |
| Page size | A4 (210mm × 297mm) | Australian standard |
| Margins | 20mm all sides | Professional formatting |
| Header | Entity name + FY + page number | Context on every page |
| Footer | Disclaimer text + report ID | Compliance requirement |
| Tables | Zebra striping, right-aligned numbers | Readability |
| Amounts | `$XX,XXX.XX (Est.)` format | Clarity + estimate labelling |
| Legislation refs | Bold, linked to ATO source | Verifiability |

## Output Format

```xml
<pdf_report_metadata>
  <report_id>RPT-2026-0213-001</report_id>
  <report_type>executive_summary</report_type>
  <entity_name>DR Pty Ltd</entity_name>
  <financial_year>FY2024-25</financial_year>
  <generated_at>2026-02-13T10:00:00+11:00</generated_at>
  <page_count>7</page_count>
  <file_size_kb>245</file_size_kb>
  <file_path>/tmp/reports/RPT-2026-0213-001.pdf</file_path>
  <includes_disclaimer>true</includes_disclaimer>
  <includes_provenance>true</includes_provenance>
  <estimate_labelling>true</estimate_labelling>
</pdf_report_metadata>
```

## Best Practices

- **Always include the TASA 2009 disclaimer** — legal compliance requirement
- **Label all dollar amounts as estimates** — platform is not a tax agent
- **Include data provenance** — users and accountants need to verify data source
- **Use A4 page size** — Australian standard, accountants expect it
- **Right-align all numeric columns** — accounting convention
- **Include legislation references** — adds credibility and verifiability
- **Watermark draft reports** — "DRAFT — FOR REVIEW ONLY" until accountant approves
- **Never include raw Xero data** — only classified and aggregated results
- **Secure PDF generation** — don't expose file paths to client; use signed URLs

Overview

This skill generates professional PDF tax analysis reports designed for accountant review and client presentation. Reports include mandatory TASA 2009 disclaimers, legislative references, data provenance, and clear "ESTIMATE ONLY" labelling on dollar amounts. It produces multiple report types (Executive Summary, Detailed Analysis, Compliance Calendar) formatted to A4 and ready for secure distribution.

How this skill works

The skill ingests classified tax analysis results and renders styled HTML or programmatic PDFs using server-side tools (Puppeteer, Playwright, PDFKit) or lightweight renderers. Every output embeds the TASA 2009 disclaimer on each page, a data provenance block, confidence indicators, and consistent estimate labelling for all monetary values. Final PDFs include metadata (report ID, type, entity, generated timestamp, page count) for tracking and secure delivery.

When to use it

  • Create accountant-ready reports from forensic tax analyses
  • Produce client-facing opportunity summaries with legislative references
  • Prepare compliance documentation for regulator engagement or audits
  • Export R&D or Division 7A evidence packs and loan schedules
  • Generate amendment request supporting documentation and calendars

Best practices

  • Always include the full TASA 2009 disclaimer on every page and a dedicated final disclaimer page
  • Label every dollar amount with an "(Est.)" suffix and show "ESTIMATE ONLY" on summary totals
  • Include a data provenance block listing sources, transaction counts, analysis engine, and report ID
  • Use A4 page size, 20mm margins, right-align numeric columns, and zebra-strip tables
  • Watermark drafts with "DRAFT — FOR REVIEW ONLY" until a qualified accountant approves
  • Securely store and deliver PDFs (avoid exposing server file paths; use signed URLs)

Example use cases

  • Executive Summary report for stakeholder presentation with top 10 tax opportunities
  • Detailed Analysis report for internal accountant review including Division 7A schedules
  • Compliance Calendar for upcoming lodgement and amendment windows
  • R&D Tax Incentive evidence pack formatted for submission or peer review
  • Amendment support bundle with transaction appendix and confidence indicators

FAQ

Is the TASA 2009 disclaimer mandatory on every page?

Yes. The full TASA 2009 disclaimer must appear in the footer of every page and on a dedicated final page to meet compliance requirements.

How must dollar amounts be labelled?

All monetary values must include an "(Est.)" suffix; summary totals must display an "ESTIMATE ONLY" header and each value should show a confidence level (High/Medium/Low).