ClawReceipt Skill for OpenClaw
Use this skill to interface with the ClawReceipt system whenever the user wants to process a receipt, check their monthly spending budget, or export financial data.
Trigger Conditions
Use this skill when the user wants to:
- Upload or provide a picture/text of a receipt to be recorded.
- Add a new expense, bill, or receipt to the database.
- Check their current total spend against their monthly budget.
- Update their monthly spending budget.
- List recent receipts/expenses.
Core Workflows
1) Process and Add a Receipt
When the user provides a receipt image or details, extract the relevant fields (Date, Time, Store, Amount, Category) and use the CLI to save it:
Extract details using OCR or LLM vision capabilities.
Ensure you have date (YYYY-MM-DD), time (HH:MM:SS, optional), store (string), amount (float), and category (string, e.g., "อาหาร", "เดินทาง", "Shopping").
Run the CLI command in the ClawReceipt directory:
python run.py add --date "YYYY-MM-DD" --time "HH:MM:SS" --store "<Store>" --amount <Amount> --category "<Category>"
Read the output to check if the budget was exceeded and relay that information to the user.
2) Check Budget Status
If the user asks "How much budget do I have left?" or "What is my total spend?":
Run:
python run.py budget
Parse the output which includes "Total Spent" and "Target Budget" and accurately report to the user.
Alert the user if the status indicates "Exceeded Budget!".
3) Set New Budget
If the user wants to set a new monthly budget (e.g., "Set my budget to 5000 baht"):
Run:
python run.py budget --set <Amount>
Confirm to the user that the budget has been updated successfully.
4) List All Receipts
If the user asks to see history or recently recorded receipts:
Run:
python run.py list
Summarize the output table for the user.
5) Open TUI / Export (Interactive mode only)
If the user asks to see a beautiful dashboard or export to CSV/Excel, you can suggest they run:
python run.py tui
(Note: As an agent, do not run the tui command directly as it will block the terminal. Instruct the user to run it themselves in a new terminal if they want to interact with the UI or manually export the data).
Required Checks Before Execution
- Verify
run.py is present in the ClawReceipt root folder before calling.
- Ensure the active Python environment has the required dependencies (
rich, pandas, openpyxl, textual, etc.) by utilizing .\venv\Scripts\activate if available.
- Always quote string arguments like
--store "Full Name" to prevent shell argument splitting.
Troubleshooting
UnicodeEncodeError: Ensure the terminal is using UTF-8 encoding. The run.py handles this internally for Windows, but be aware if piping output.
unrecognized arguments: Ensure parameters like --category are explicitly mapped and don't contain unescaped quotes.
Completion Checklist
- Required fields accurately extracted and fed to the
add command.
- Command executed successfully (exit code 0).
- Relevant confirmation (and budget alerts, if any) relayed back to the user clearly.
1---2name: clawreceipt3description: Use this skill to extract receipt information, record expenses, track budgets, and manage financial receipts using the ClawReceipt CLI.4---56# ClawReceipt Skill for OpenClaw78Use this skill to interface with the ClawReceipt system whenever the user wants to process a receipt, check their monthly spending budget, or export financial data.910## Trigger Conditions1112Use this skill when the user wants to:1314- Upload or provide a picture/text of a receipt to be recorded.15- Add a new expense, bill, or receipt to the database.16- Check their current total spend against their monthly budget.17- Update their monthly spending budget.18- List recent receipts/expenses.1920## Core Workflows2122### 1) Process and Add a Receipt2324When the user provides a receipt image or details, extract the relevant fields (Date, Time, Store, Amount, Category) and use the CLI to save it:25261. Extract details using OCR or LLM vision capabilities.272. Ensure you have `date` (YYYY-MM-DD), `time` (HH:MM:SS, optional), `store` (string), `amount` (float), and `category` (string, e.g., "อาหาร", "เดินทาง", "Shopping").283. Run the CLI command in the ClawReceipt directory:2930 ```bash31 python run.py add --date "YYYY-MM-DD" --time "HH:MM:SS" --store "<Store>" --amount <Amount> --category "<Category>"32 ```33344. Read the output to check if the budget was exceeded and relay that information to the user.3536### 2) Check Budget Status3738If the user asks "How much budget do I have left?" or "What is my total spend?":39401. Run:4142 ```bash43 python run.py budget44 ```45462. Parse the output which includes "Total Spent" and "Target Budget" and accurately report to the user.473. Alert the user if the status indicates "Exceeded Budget!".4849### 3) Set New Budget5051If the user wants to set a new monthly budget (e.g., "Set my budget to 5000 baht"):52531. Run:5455 ```bash56 python run.py budget --set <Amount>57 ```58592. Confirm to the user that the budget has been updated successfully.6061### 4) List All Receipts6263If the user asks to see history or recently recorded receipts:64651. Run:6667 ```bash68 python run.py list69 ```70712. Summarize the output table for the user.7273### 5) Open TUI / Export (Interactive mode only)7475If the user asks to see a beautiful dashboard or export to CSV/Excel, you can suggest they run:7677```bash78python run.py tui79```8081*(Note: As an agent, do not run the `tui` command directly as it will block the terminal. Instruct the user to run it themselves in a new terminal if they want to interact with the UI or manually export the data).*8283## Required Checks Before Execution8485- Verify `run.py` is present in the ClawReceipt root folder before calling.86- Ensure the active Python environment has the required dependencies (`rich`, `pandas`, `openpyxl`, `textual`, etc.) by utilizing `.\venv\Scripts\activate` if available.87- Always quote string arguments like `--store "Full Name"` to prevent shell argument splitting.8889## Troubleshooting9091- `UnicodeEncodeError`: Ensure the terminal is using UTF-8 encoding. The `run.py` handles this internally for Windows, but be aware if piping output.92- `unrecognized arguments`: Ensure parameters like `--category` are explicitly mapped and don't contain unescaped quotes.9394## Completion Checklist9596- Required fields accurately extracted and fed to the `add` command.97- Command executed successfully (exit code 0).98- Relevant confirmation (and budget alerts, if any) relayed back to the user clearly.