Verify and update tax data in the application against official government sources for a specific country.
Compare current tax data in src/data/countries/*.json against official government sources and generate a diff report. The user specifies which country to verify.
Read the sources registry from sources.json (located in this skill's directory) to determine which URLs to check for each country.
Read the country's JSON file from src/data/countries/ (use countryFileMap in src/data/countries/index.ts to find the filename).
Extract all verifiable fields:
incomeTax.type and incomeTax.brackets (each bracket's max and rate)deductions.personal.amountdeductions.children.type, incomeLimit, and rulesconsumptionTaxes (each entry's type and rate)Read sources.json from this skill's directory to get the list of URLs for the requested country.
For each source URL:
read_url_content to fetch the pagebrowser_subagent to navigate and extract datasources.json → dataPointsImportant: Sources are in the country's native language. Extract numerical values (rates, amounts, thresholds) regardless of language.
For each data point, compare the app's current value against the official source value.
Classification:
Create a markdown report in the artifact directory with the following structure:
# Tax Data Verification: [Country Name] [Flag]
**Date**: [current date]
**Source(s)**: [list of URLs checked]
**Status**: [✅ All current / ❌ Updates needed / ⚠️ Partially verified]
## Income Tax
| Field | Current Value | Official Value | Status |
| --------------- | ------------- | -------------- | ------ |
| Type | progressive | progressive | ✅ |
| Bracket 1: max | 2,400,000 | 2,400,000 | ✅ |
| Bracket 1: rate | 13% | 13% | ✅ |
| ... | ... | ... | ... |
## Deductions
| Field | Current Value | Official Value | Status |
| --------------- | ----------------- | ----------------- | ------ |
| Personal amount | 0 | 0 | ✅ |
| Children type | per_child_monthly | per_child_monthly | ✅ |
| ... | ... | ... | ... |
## Consumption Taxes
| Field | Current Value | Official Value | Status |
| -------- | ------------- | -------------- | ------ |
| VAT rate | 20% | 20% | ✅ |
## Summary
[Brief summary of findings. If there are mismatches, list them clearly and offer to update the JSON file.]
If mismatches are found:
npm test to validate via Zod schema