Inspiration

Small businesses, independent consultants, and family offices store thousands of service contracts, PDF invoices, and photographed payment receipts on their NAS. Cross-checking these documents manually is slow and error-prone, while uploading confidential contracts to external cloud AI tools introduces severe privacy risks. We built Contract, Invoice & Receipt Guard (contract-invoice-receipt-guard) to bring zero-trust, multi-expert financial reconciliation directly onto UGREEN AI NAS (UGOS).

What it does

contract-invoice-receipt-guard is an on-device Uliya orchestration Skill for the Automate Your Workflow track that coordinates four native UGREEN AI NAS registered experts in a deterministic 5-stage pipeline:

  1. Stage 1 — Authorized Directory Discovery & SHA-256 Integrity Inventory (file-agent): Uses ug-filesystem (find, ls, stat, sha256sum) and ug-filemgr (scan-dedupe) to inventory contracts, invoices, and receipts, compute SHA-256 digests, and flag duplicate files.
  2. Stage 2 — Contract & Invoice Extraction and Financial Reconciliation (document-agent): Uses ug-document (metadata, extract, reconcile, qa) to extract vendor names, line items, totals, dates, and payment terms, flagging overbilling or clause mismatches.
  3. Stage 3 — Visual Receipt OCR & Proof-of-Payment Verification (photo-agent): Uses ug-photo (vision-ocr, vision-vlm, meta) on scanned or photographed receipts to verify payment amounts and timestamps against invoices.
  4. Stage 4 — Audit Ledger Synthesis & Knowledge Persistence (knowledge-agent): Uses ug-knowledge (collect-evidence, save-text) to generate and save a structured Markdown audit report after workflow approval.
  5. Stage 5 — Approved Discrepancy Tagging & Folder Organization (file-agent): Uses ug-filemgr (tag-add-file) and file-workflow (start, run, batch-move) to tag verified or discrepant files and organize them into archive folders upon explicit user approval.

How we built it

We built the Skill using the official UGREEN Skill Developer Package (uliya-skill-kit v0.7.3, catalogVersion: 2.0.0) following the Uliya Skill Development Standard for the full main-agent profile. Every delegation uses delegate --target <agent-id> --instruction '<task>', chains only verified upstream results, and handles all five public states (completed, waiting_user, waiting_approval, failed, cancelled). Static validation with check-skill.mjs passed with status: "static-pass" (0 errors, 0 warnings).

Built With

Share this project:

Updates

Submission history