Permission Setup Review
python scripts/_tool_policy_note.py is an optional setup helper for the CA File Processor skill. It may apply broad filesystem permissions for compatibility. Show the target paths and permission mode, explain the risk, and prefer a narrower mode when shared write access is not needed.
CA File Processor
This skill processes the four most common file formats used by Indian CA firms and extracts structured information from them for analysis, summarisation, and answering queries.
Supported formats
- PDF — GST returns, ITR acknowledgements, audit reports, scanned invoices (text-layer and scanned via OCR)
- Excel (.xlsx / .xls) — Trial balance, P&L, balance sheets, payroll registers, GST workings
- CSV — Bank statement exports (HDFC, ICICI, SBI), GSTR-2B downloads, Tally exports
- Images (.jpg / .png) — WhatsApp invoice photos, scanned Form 16, cheque images
How to use
When a file is attached or uploaded, run the appropriate script:
python3 scripts/skill_router.py <file_path>
The router auto-detects the file type and calls the correct processor. It returns a structured JSON dict.
What to do with the output
Once the script returns output, use it to:
- Answer the user's question about the document
- Extract specific fields they asked for (GSTIN, totals, dates)
- Summarise the document in plain language
- Flag anomalies or missing information
- Compare figures across multiple documents
Field extraction — what gets detected automatically
For invoices and PDFs:
- GSTIN (supplier and recipient)
- Invoice number and date
- Total amount / grand total
- PAN number
- Email and phone
For bank statements (CSV):
- Total debits and credits
- Date range of transactions
- Detected bank format
For Excel files:
- Document type (trial balance / P&L / balance sheet / payroll / GST workings / ledger)
- Sheet names and row counts
- Preview of header rows
OCR notes
- Text-layer PDFs are read directly (fast, accurate)
- Scanned PDFs and images go through Tesseract OCR (English + Hindi)
- Confidence is rated high / medium / low in the output
- Always flag low-confidence results to the user and ask for confirmation on numeric fields
Trust statement
This skill runs entirely locally on your server. No data is sent to any external service. All processing happens via open-source Python libraries (PyMuPDF, pytesseract, openpyxl, pandas).
1---
2name: ca-file-processor
3description: >
4 Process financial documents for Indian CA firms. Use when any PDF, Excel (.xlsx/.xls), CSV, JPG, or PNG file is received or uploaded — including GST returns, ITR PDFs, scanned invoices, trial balance sheets, bank statements, Form 16, TDS certificates, and audit reports. Automatically detects file type and extracts text, tables, and key fields (GSTIN, invoice number, totals, dates).
5
6 Triggers on: file upload, attachment, "process this file", "read this PDF", "extract from this invoice", "analyse this statement", "what does this document say".
7version: 1.0.1
8homepage: https://github.com/purvik6062/ca-file-processor
9metadata:
10 source: https://skillmd.com/skills/knownasnaffy/ca-file-processor
11 openclaw:
12 emoji: "📂"
13 requires:
14 bins:
15 - python3
16 - tesseract
17 env: []
18 files:
19 - "scripts/*"
20allowed-tools: '*'
21---
22
23
24
25
26### Permission Setup Review
27
28`python scripts/_tool_policy_note.py` is an optional setup helper for the `CA File Processor` skill. It may apply broad filesystem permissions for compatibility. Show the target paths and permission mode, explain the risk, and prefer a narrower mode when shared write access is not needed.
29
30# CA File Processor
31
32This skill processes the four most common file formats used by Indian CA firms and extracts structured information from them for analysis, summarisation, and answering queries.
33
34## Supported formats
35
36- **PDF** — GST returns, ITR acknowledgements, audit reports, scanned invoices (text-layer and scanned via OCR)
37- **Excel (.xlsx / .xls)** — Trial balance, P&L, balance sheets, payroll registers, GST workings
38- **CSV** — Bank statement exports (HDFC, ICICI, SBI), GSTR-2B downloads, Tally exports
39- **Images (.jpg / .png)** — WhatsApp invoice photos, scanned Form 16, cheque images
40
41## How to use
42
43When a file is attached or uploaded, run the appropriate script:
44
45```
46python3 scripts/skill_router.py <file_path>
47```
48
49The router auto-detects the file type and calls the correct processor. It returns a structured JSON dict.
50
51## What to do with the output
52
53Once the script returns output, use it to:
54
551. Answer the user's question about the document
562. Extract specific fields they asked for (GSTIN, totals, dates)
573. Summarise the document in plain language
584. Flag anomalies or missing information
595. Compare figures across multiple documents
60
61## Field extraction — what gets detected automatically
62
63For invoices and PDFs:
64- GSTIN (supplier and recipient)
65- Invoice number and date
66- Total amount / grand total
67- PAN number
68- Email and phone
69
70For bank statements (CSV):
71- Total debits and credits
72- Date range of transactions
73- Detected bank format
74
75For Excel files:
76- Document type (trial balance / P&L / balance sheet / payroll / GST workings / ledger)
77- Sheet names and row counts
78- Preview of header rows
79
80## OCR notes
81
82- Text-layer PDFs are read directly (fast, accurate)
83- Scanned PDFs and images go through Tesseract OCR (English + Hindi)
84- Confidence is rated high / medium / low in the output
85- Always flag low-confidence results to the user and ask for confirmation on numeric fields
86
87## Trust statement
88
89This skill runs entirely locally on your server. No data is sent to any external service. All processing happens via open-source Python libraries (PyMuPDF, pytesseract, openpyxl, pandas).