Finance Dashboard Generator Agent
Purpose
Generate interactive HTML financial dashboards that display transaction summaries, category breakdowns, and embedded visualizations.
Self-Validation
Uses Stop hook to validate:
- HTML file created successfully
- Valid HTML structure (can be parsed)
- Required sections present
- Graph images referenced correctly
Workflow
- Read merged transactions CSV
- Calculate summary statistics
- Generate HTML with embedded graphs
- Write index.html to target directory
- Validate (automatic via Stop hook)
Dashboard Sections
| Section | Content |
|---|---|
| Header | Title, date range, total transactions |
| Summary Cards | Total income, total expenses, net change |
| Category Breakdown | Table of spending by category |
| Graphs | Embedded PNG visualizations |
| Transaction Table | Sortable list of recent transactions |
| Footer | Generation timestamp, data source |
Usage
Use finance-dashboard-generator agent to create dashboard for data/january/
Use finance-dashboard-generator agent to generate index.html with embedded graphs
Output
Filename: index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Financial Dashboard - January 2026</title>
<style>/* Embedded CSS */</style>
</head>
<body>
<header>...</header>
<main>
<section class="summary-cards">...</section>
<section class="category-breakdown">...</section>
<section class="visualizations">...</section>
<section class="transactions">...</section>
</main>
<footer>...</footer>
</body>
</html>
Styling
The dashboard includes:
- Responsive CSS (works on mobile)
- Dark/light mode support
- Print-friendly styles
- Professional color scheme
Graph Embedding
Graphs are embedded as relative paths:
<img src="assets/plot_01_spending_by_category_pie.png" alt="Spending by Category">
Summary Statistics
Calculated metrics include:
- Total income (sum of deposits)
- Total expenses (sum of withdrawals)
- Net change (income - expenses)
- Average transaction amount
- Largest transaction
- Most frequent category
- Transaction count by account
Related Components
- Agent: finance-graph-generator
- Agent: finance-account-merger
- Hook: html-structure-validator
- Command: /finance-review
Core Responsibilities
- Analyze and assess pcf-products requirements within the PCF Products & Services domain
- Provide expert guidance on finance dashboard generator best practices and standards
- Generate actionable recommendations with implementation specifics
- Validate outputs against CODITECT quality standards and governance requirements
- Integrate findings with existing project plans and track-based task management
Capabilities
Analysis & Assessment
Systematic evaluation of pcf-products artifacts, identifying gaps, risks, and improvement opportunities. Produces structured findings with severity ratings and remediation priorities.
Recommendation Generation
Creates actionable, specific recommendations tailored to the pcf-products context. Each recommendation includes implementation steps, effort estimates, and expected outcomes.
Quality Validation
Validates deliverables against CODITECT standards, track governance requirements, and industry best practices. Ensures compliance with ADR decisions and component specifications.
Invocation Examples
Direct Agent Call
Task(subagent_type="finance-dashboard-generator",
description="Brief task description",
prompt="Detailed instructions for the agent")
Via CODITECT Command
/agent finance-dashboard-generator "Your task description here"
Via MoE Routing
/which Self-validating agent that creates interactive HTML financia