Integrate with Xero accounting system to sync transactions, categorize expenses, track revenue, generate invoices, and maintain financial records. Use when syncing bank transactions, categorizing expenses, creating invoices, checking financial status, or when user mentions "accounting", "xero", "expenses", "revenue", "invoice", "financial report", "reconcile".
Integrates with Xero to provide complete financial intelligence - the foundation for autonomous business management and CEO briefings.
Trigger phrases:
Auto-activates when:
When: Daily at 6:00 AM or on-demand
Connect to Xero via MCP Server
Fetch New Transactions
Write to Vault
Vault/Accounting/Current_Month.md with new transactionsVault/Accounting/Transactions/TRANS_YYYY-MM-DD_[Description].mdUpdate Dashboard
Vault/Dashboard.mdHelper Script:
python .claude/skills/manage-accounting/scripts/xero_sync.py [--date-range YYYY-MM-DD:YYYY-MM-DD]
See reference/reconciliation-guide.md for detailed sync procedures.
When: After sync or when uncategorized transactions detected
Identify Uncategorized Transactions
Vault/Accounting/Transactions/ for transactions missing categoryVault/Accounting/Current_Month.md for uncategorized itemsAuto-Categorize Using Rules
Categorization Logic (80%+ Accuracy Target)
Update Xero via MCP
Update Transaction Files
Handle Uncertain Transactions
Vault/Accounting/Needs_Review/Helper Script:
python .claude/skills/manage-accounting/scripts/categorize_expense.py [--transaction-id ID] [--dry-run]
See expense-rules.md for complete categorization logic.
When: User requests invoice or client payment needed
Gather Invoice Details
Vault/Business_Goals.md for rates/pricingValidate Information
Create Approval Request
handle-approval skill to create approval requestVault/Pending_Approval/Execute After Approval
Vault/Approved/, generate invoice in XeroUpdate Records
Vault/Accounting/Invoices/INV_[Number]_[Client].pdfVault/Accounting/Current_Month.mdHelper Script:
python .claude/skills/manage-accounting/scripts/generate_invoice.py --client "Client Name" --amount 1500 --description "Services rendered"
See invoice-templates.md for template options.
When: Weekly or before CEO briefing generation
Match Transactions
Reconcile Expenses
Generate Reconciliation Report
Update Dashboard
Vault/Dashboard.mdSee reconciliation-guide.md for detailed procedures.
When: Daily dashboard update or CEO briefing generation
Calculate Financial Metrics
Vault/Business_Goals.mdSubscription Audit (Cost Optimization)
Update Dashboard
Vault/Dashboard.md## Financial Summary (Updated: YYYY-MM-DD HH:MM)
- **Revenue MTD**: $X,XXX (XX% of $X,XXX target)
- **Expenses MTD**: $X,XXX (XX% of $X,XXX budget)
- **Cash Flow**: +/- $X,XXX
- **Outstanding**: $X,XXX (X invoices)
- **Alert**: [Any overdue invoices or unusual expenses]
Proactive Recommendations
Vault/Accounting/Recommendations/Progressive disclosure - load on demand:
Purpose: Fetch transactions from Xero and update Vault
Usage:
# Sync today's transactions
python .claude/skills/manage-accounting/scripts/xero_sync.py
# Sync specific date range
python .claude/skills/manage-accounting/scripts/xero_sync.py --date-range 2026-01-01:2026-01-11
# Dry run (preview without writing)
python .claude/skills/manage-accounting/scripts/xero_sync.py --dry-run
# JSON output
python .claude/skills/manage-accounting/scripts/xero_sync.py --json
Purpose: Auto-categorize transactions using pattern matching
Usage:
# Categorize all uncategorized transactions
python .claude/skills/manage-accounting/scripts/categorize_expense.py
# Categorize specific transaction
python .claude/skills/manage-accounting/scripts/categorize_expense.py --transaction-id TX123
# Dry run (preview categorizations)
python .claude/skills/manage-accounting/scripts/categorize_expense.py --dry-run
# Lower confidence threshold (more aggressive)
python .claude/skills/manage-accounting/scripts/categorize_expense.py --threshold 0.7
Purpose: Generate invoice draft for approval
Usage:
# Create invoice approval request
python .claude/skills/manage-accounting/scripts/generate_invoice.py \
--client "Client A" \
--amount 1500 \
--description "Consulting services - January 2026"
# Use specific template
python .claude/skills/manage-accounting/scripts/generate_invoice.py \
--client "Client B" \
--amount 2500 \
--template "project-based"
# Include line items from file
python .claude/skills/manage-accounting/scripts/generate_invoice.py \
--client "Client C" \
--line-items-file Vault/Projects/ClientC/invoice_items.json
Skills that use manage-accounting:
generate-ceo-briefing → Reads financial data for weekly business audithandle-approval → Executes approved invoicesmonitor-system → Checks Xero sync healthProvides data to:
Vault/Dashboard.md → Financial summary sectionVault/Briefings/ → Revenue/expense data for CEO reportsVault/Accounting/ → Complete financial recordsWorkflow:
1. Daily 6:00 AM: xero_sync.py runs automatically
2. New transactions → categorize_expense.py auto-categorizes
3. High-confidence → Update Xero directly
4. Low-confidence → Create review file
5. User requests invoice → generate_invoice.py creates approval
6. Approval granted → Create invoice in Xero
7. Weekly: Reconciliation + cost optimization analysis
8. Sunday: Financial data fed to generate-ceo-briefing
All accounting activity logged to Vault/Dashboard.md:
### [Timestamp] - Accounting Activity
**Xero Sync:**
- Synced: X transactions (X expenses, X revenue)
- Date range: YYYY-MM-DD to YYYY-MM-DD
- Status: Success/Errors
**Expense Categorization:**
- Categorized: X transactions
- Confidence: High (X), Medium (X), Low (X)
- Pending review: X transactions
**Invoice Created:**
- Client: [Client Name]
- Amount: $X,XXX
- Status: Pending Approval
- File: Vault/Pending_Approval/APPROVAL_INVOICE_[...]
**Financial Summary:**
- Revenue MTD: $X,XXX (XX% of target)
- Expenses MTD: $X,XXX
- Cash Flow: +/- $X,XXX
- Outstanding: $X,XXX
**Cost Optimization:**
- Recommendation: [Subscription/service to cancel]
- Potential Savings: $X/month ($X/year)
This skill works correctly when:
✅ Daily Xero sync runs automatically (99%+ success rate) ✅ Transactions correctly synced to Vault ✅ 80%+ auto-categorization accuracy ✅ All invoices require and receive approval ✅ Invoices successfully created in Xero after approval ✅ Financial dashboard updated daily with accurate metrics ✅ Cost optimization recommendations relevant and actionable ✅ Reconciliation reports generated weekly ✅ Zero unauthorized financial actions ✅ Complete audit trail maintained
Xero MCP Connection Failed:
ps aux | grep xero-mcppython scripts/xero_sync.py --test-connectionCategorization Low Accuracy (<80%):
Invoice Generation Failed:
Sync Not Running Daily:
Reconciliation Discrepancies:
Required:
handle-approval skill operationalOptional:
Before first use:
npm install -g @xeroapi/xero-mcp-server.config/claude-code/mcp.json)Accounting/, Accounting/Transactions/, Accounting/Invoices/, Accounting/Expenses/Vault/Business_Goals.md includes financial targetsSkill Version: 1.0 Last Updated: 2026-01-11 Branch: feat/gold-accounting-xero Dependencies: handle-approval, Xero MCP Server