update-tax-rates
БесплатноБез исполняемых скриптовНе проверенVerify and update the bundled tax rate tables (Swiss ch-tax-rates.json, EU eu-tax-rates.json, UK uk-tax-rates.json, US us-tax-rates.json in…
от unchainedshop★ 205 звёзд на GitHubОб этом скилле
Update bundled tax rates
The regional tax pricing adapters read their rates from bundled JSON tables in
packages/plugins/src/pricing/tax/:
| File | Region | Structure |
|---|---|---|
ch-tax-rates.json |
Switzerland | categories (default/reduced/special) |
eu-tax-rates.json |
27 EU member states | countries → categories (standard/reduced/reduced2/super_reduced/parking) |
uk-tax-rates.json |
UK VAT area | categories (standard/reduced/zero) |
us-tax-rates.json |
50 US states + DC | states (statewide base rate) |
Each category/state holds an era list [{ validFrom: "YYYY-MM-DD", rate }]
— the full rate history, because the applicable rate follows the supply date.
Rates are deliberately not fetched at runtime: they are legally binding,
so every change must land as a reviewable, versioned diff. This skill is that
workflow.
Ground rules (read first)
- Never guess, extrapolate, or infer a rate. Only rates read verbatim from the official sources below may be written.
- Never modify or delete existing eras — historical orders are priced by their supply date. A change is always a new appended era. Temporary cuts are modeled as two eras (the cut and the restoration).
- Cross-check every change against a second source before writing. If sources are unreachable, contradict each other, or are ambiguous: abort without changes and report what you saw.
- Rates are decimal fractions (8.1% →
0.081), andvalidFromis the legal effective date in the jurisdiction's local time. Preserve the IANA zones intimezone(CH/UK) ortimezones(EU/US); add a jurisdiction mapping when a new jurisdiction is added. Do not replace them with fixed UTC offsets, because those do not model daylight-saving changes. - Scope reclassifications (a product class moving between existing categories) are NOT rate changes — note them in your report, don't touch the tables.
Official sources
| Region | Primary | Cross-check |
|---|---|---|
| CH | ESTV: https://www.estv.admin.ch/estv/en/home/value-added-tax/vat-rates-switzerland.html | MWSTG Art. 25 on Fedlex: https://www.fedlex.admin.ch/eli/cc/2009/615/de |
| EU | EC "Taxes in Europe" database: https://ec.europa.eu/taxation_customs/tedb/#/vat-search | The affected member state's finance-ministry/tax-authority page |
| UK | https://www.gov.uk/vat-rates | HMRC manuals / legislation.gov.uk for effective dates |
| US | The affected state's Department of Revenue | Tax Foundation state rate table (current edition) |
Procedure
- Read the current tables and note each file's
verifiedAtand the latest era per category/state. - Fetch the primary source per region (start with regions the user named, else all four). Extract current rates AND any announced future change with a fixed legal effective date.
- Cross-check each detected change with the region's second source.
- Update the JSON files: append
{ "validFrom", "rate" }eras (keep ascending order; already-enacted future changes may be added early — the era logic applies them only once the date is reached). UpdateverifiedAtto today in every file you verified, even when nothing changed. - Update the tests (
ch.test.ts,eu.test.ts,uk.test.ts,us.test.tsnext to the tables): add boundary assertions for each new era (one date before, one after) and fix any "current rate" assertions that the change affects. - Run the tests:
node --test packages/plugins/src/pricing/tax/— all must pass, including each file's JSON-consistency suite (ascending eras, plausible rates, metadata). - Report for human review — do not commit on your own. Show the JSON diffs, quote the exact source passages (with URLs) each new rate came from, and remind that a maintainer must confirm before commit/release. Downstream projects receive updated rates via a normal package update.
Установить update-tax-rates в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл update-tax-rates?
Verify and update the bundled tax rate tables (Swiss ch-tax-rates.json, EU eu-tax-rates.json, UK uk-tax-rates.json, US us-tax-rates.json in packages/plugins/src/pricing/tax/) against their official sources. Use when a tax/VAT rate change is announced or takes effect anywhere, for the periodic yearly verification, or when someone asks to update/check tax rates.
Как установить скилл update-tax-rates?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл update-tax-rates запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic