report-attachment-analyzer
Installation
SKILL.md
Report Attachment Analyser
Purpose
Prepare the trend update for a recurring emailed report so the user can keep a trend sheet and a refreshed written summary without rereading each attachment. Each run: find report emails not processed before, extract the configured metrics from their attachments, prepare one new row per reporting period for trends.xlsx, and write a DRAFT summary with deltas against the previous period and flagged anomalies. State lives in files the user keeps (trends.xlsx, processed-log.md, dated summaries), so every run continues where the previous one stopped. Draft-only: the agent reads, extracts and composes; the user appends, saves and files.
When to use
- Update, refresh or check trends for a report that arrives by email on a schedule.
- What changed in the latest weekly or monthly report; do the latest numbers look unusual.
- Set up tracking for a recurring emailed report (first-run configuration).
Do not use for a single file with no trend state, use dataset-insight-pack instead.
Inputs
- Configuration, in precedence order: a config block pasted or attached in this conversation; a file named report-config.md in the agent's configured knowledge sources; otherwise the template in references/report-config.md. Each H2 block with
Status: activedefines one tracked report: sender, subject pattern, attachment type, cadence, data location, period field, metrics, anomaly threshold, first-run history window. - No active block: gather each field in conversation, then return a completed block for the user to save. Never write it yourself.
- Several active reports and none named: ask which. "All" means the full procedure once per report.
- Existing state: the current trends.xlsx (or its Trends sheet pasted as a table or CSV) and processed-log.md, attached, pasted or reachable through knowledge sources. Absent on a first run is expected; absent later, see Fallbacks.
- The report emails and attachments: messages the user attached, forwarded or pasted, or that the agent can reach through mail access. Each needs received timestamp, sender, subject and attachment file name; ask for any that is missing.