invoice-guard
InvoiceGuard · Invoice Compliance Guardian — AI-driven invoice deduplication, verification, and compliance report generation. Handles: invoice upload/scan recognition, duplicate detection (AI deduplication), official tax authority verification (Golden Tax Phase 4), compliance report generation (Cai Hui Ban [2023] No.18), and batch invoice processing. Trigger: invoice, duplicate, reimbursement, compliance, fake invoice, verification, OFD, PDF invoice.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/billjamno58/tax-invoice-validatorInvoiceGuard · Invoice Compliance Guardian
AI-driven invoice deduplication, verification, and full compliance reporting workflow.
Workflow
User uploads invoice
│
├── Image / Screenshot / Photo
│ → miaoda-studio-cli image-understanding for text extraction
│
├── PDF / OFD / XML
│ → miaoda-studio-cli doc-parse for content extraction
│
▼
Parse key fields (invoice number, date, amount, buyer/seller)
│
▼
AI Deduplication Engine
│ • Image fingerprint hash comparison
│ • Key field consistency validation
▼
Official Verification (Pro)
│ • Connect to State Tax Administration verification platform
│ • Invoice status query (normal/voided/red-flushed)
▼
Generate Compliance Report → Write to Feishu Doc (Pro)
│
▼
Return structured results
Feature Details
1. Invoice Upload & Recognition
Supported formats: Image (JPG/PNG), PDF, OFD, XML
# Image invoice → OCR
miaoda-studio-cli image-understanding -i invoice.png
# PDF/OFD/XML invoice → text extraction
miaoda-studio-cli doc-parse --file invoice.pdf --output json
Key fields extracted:
- Invoice type (VAT special / regular / electronic / train ticket / air ticket, etc.)
- Invoice code + invoice number
- Invoice date
- Total amount (tax included)
- Buyer name + tax ID
- Seller name + tax ID
- Goods or service description
2. AI Deduplication Engine
Available in Free + Pro tiers
Triple-validation for duplicate detection:
- Exact Match: Invoice code + number identical → mark as duplicate
- Field Hash: Amount + date + buyer/seller generates fingerprint → hash collision detection
- Image Similarity: Structural similarity comparison (for screenshots/forged tickets)
# Core deduplication logic (see scripts/duplicate_checker.py)
# Returns: {is_duplicate: bool, match_type: str, confidence: float}
3. Official Verification (Pro)
Pro tier only
Connects to State Tax Administration VAT invoice verification platform:
- Real-time invoice authenticity verification
- Invoice status: normal / voided / red-flushed / out of control
- Verify invoiced amount against system records
Note: Tax authority verification API requires a business taxpayer developer account. See references/tax-api.md for setup.
4. Compliance Report (Pro)
Pro tier only
Generates structured compliance reports per Ministry of Finance [Cai Hui Ban [2023] No.18]. Now with Feishu native solution:
- Compliance Report → Generate shareable, commentable Feishu cloud documents
- Invoice Details → Auto-import to Feishu Bitable for filtering and analysis
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-billjamno58-tax-invoice-validator": {
"enabled": true,
"auto_update": true
}
}
}