Recite
by @rivradev
AI-powered receipt scanning that renames files by date/vendor, extracts transaction details, and logs them in a dynamic bookkeeping CSV.
clawhub install reciteπ About This Skill
name: recite description: AI receipt scanner & bookkeeping automation. Process receipts, invoices, and PDFs. Extracts data to rename files and log transactions/expenses to CSV. Perfect for tax & accounting.
Recite π¦π€΅
AI-driven receipt bookkeeping via the Recite Vision API. Use recite-process to scan a directory of receipts and PDF files, rename them based on extracted data, and log transactions to a CSV file.
Setup & Configuration
1. API Key
You can generate your Recite API key at:https://recite.rivra.dev/settings/api.Set the API key in your environment or configuration file:
export RECITE_API_KEY="re_live_YOUR_API_KEY"~/.config/recite/config.json with {"api_key": "re_live_..."}.2. Dependencies
Ensure you havepython3, requests, and csv installed.Operational Rules
1. Mandatory API Key Pre-check
Before performing any scanning, file manipulation, or bookkeeping tasks, the agent MUST verify if a valid Recite API key is available (viaRECITE_API_KEY environment variable or ~/.config/recite/config.json).
https://recite.rivra.dev/settings/api and provide it. Do not attempt to list files or proceed with any part of the workflow until the key is confirmed.3. Schema-Aware Bookkeeping
The agent is designed to handle API response changes gracefully:bookkeeping_transactions.CSV without losing existing data.Workflow & Features
1. Scan Folder: The agent scans the specified folder for images (.jpg, .jpeg, .png) and .pdf files.
2. AI Extraction: Calls the Recite API to extract date, vendor, total, currency, and category.
3. Smart Renaming: Renames the file to [date]_[vendor].[ext] (e.g., 2024-05-20_Starbucks.jpg).
4. Bookkeeping Log: Appends the extracted data (Date, Vendor, Total, Currency, Category, Subtotal, Tax, Tip, Fees, Discounts, Description, Payment Method, Confidence, etc.) and filenames to bookkeeping_transactions.CSV in the target folder.
5. Status Report: Provides a summary of processed files and the CSV location.
Long-Term Memory & Custom Logic
Modify skills/recite/long_term_memory.md to add persistent instructions for the agent. The agent will always read this file before processing.
Examples:
processed/."Tool Usage
python3 skills/recite/process_receipts.py skills/recite/ : The folder containing your receipts.
- skills/recite/: The path to the skill folder (used to locate long_term_memory.md).