E-Facture Bank Reconciliation Pipeline
Paste the following prompt into your AI chat to install this skill:
Please install @user_15292d5a/yjkj-e-facture-rapprochement by following https://skillhub.cn/install/skillhub.md.
About this skill
Problem
In multi-client accounting, invoices may arrive as receipt photos, PDFs, or semi-structured e-invoices, while bank data may be CAMT.053, OFX, CSV, or PDF statements. Manual reconciliation often misses small refunds, fees, and paid-but-unbilled edge cases. This skill turns the flow of invoices + bank statements → reconciliation results into a repeatable pipeline, focusing on structured ingestion, LLM extraction of unstructured evidence, and producing company.json and rapprochement.json.
How It Works and Boundaries
The entrypoint is scripts/main.py, with four steps:
- A. Invoice ingestion: prefer Factur-X, pure UBL/CII; receipt photos or XML-less PDFs go through LLM text/vision extraction with a confidence score.
- B. Bank ingestion: normalize CAMT.053, OFX, and CSV into signed transactions; PDF statements are also extracted by LLM.
- C. Reconciliation: delegated to the shared matching engine, using amount plus reference, counterparty, or date; misses go to unmatched_bank_lines, while salaries, taxes, and bank fees go to excluded_bank_lines.
- D. Output: write company.json and rapprochement.json, then validate rappr + unmatched + excluded == bank_transactions_count.
Execution is two-pass. Pass one runs the engine and stops with a worklist plus sidecar JSON paths for unstructured files. Pass two reads each file, extracts the normalized JSON, writes the sidecar, then reruns until the worklist is empty. Outputs default to a clients-test/ sandbox; use --real only after validation. It fits existing accounting backends that need better ingestion, extraction, and reconciliation output, but it does not replace backend work, email, front-end display, or manual editing of final JSON.
Use Cases
- Accountants reconcile client receipt photos and PDFs with bank CSV statements, producing paid, unmatched, and excluded results.
- Finance teams normalize CAMT.053, OFX, and CSV statements, then match them against Factur-X and UBL invoices.
- When a PDF statement lacks XML, extract a sidecar JSON via LLM, rerun the pipeline, and generate reconciliation output.
- For multi-client checks, write to the clients-test sandbox, review high-value low-confidence items, then switch to real directories.
Best For
- Accountants who need to reconcile client receipt photos, PDFs, and bank statements into reconciliation tables.
- Backend engineers maintaining multi-client finance data cleaning and invoice matching pipelines.
- Finance operations staff who review high-value or low-confidence invoices before final close.
- Product engineers extending existing accounting systems with e-invoice ingestion and reconciliation output.
Related Skills
Reviews Chinese-law contract text via the accurLex API, returns the full review opinion, and exports a Word document.
Generates executable FAERS active-comparator safety comparison research plans focused on one SOC or PT family.
A reference framework for financial data analysis covering statements, KPIs, visualization, and reporting templates, without executing code or collecting data.
A knowledge-base-driven advisor for weak-current, network, and telecom equipment selection, covering parameter comparison, model recommendations, compatibility checks, and budgeting.