010122 multi currency architecture
Skill natuleadan/skills/skills/010122-multi-currency-architecture
Multi-domain agent skills collection for AI coding agents (Claude, Cursor, Copilot, OpenCode, and more). Covers programming, biology, cooking, and future domains. Installable via npx skills add.
npx -y skills add natuleadan/skills --skill 010122-multi-currency-architectureAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Multi-currency architecture — price-per-currency with FK chain to countries and taxes, geo detection via edge headers, admin CRUD.
The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.
SKILL.md
1.4 KB, as published. Nobody here has run it
Multi-Currency Architecture
When to use
When building e-commerce or subscription systems that need to display and charge in multiple currencies based on the user's geographic location.
References
| Topic | File |
|---|---|
| Currency + country + tax FK chain | references/fk-chain.md |
| Price table design per currency | references/price-table.md |
| Geo-based detection pipeline | references/geo-detection.md |
| CurrencyProvider and admin CRUD | references/currency-provider.md |
Quick checklist
-
sys_currencies: code, name, symbol, countryId FK, isDefault, isActive -
sys_taxes: countryId FK, currencyId FK, name, rate, isActive -
prd_prices: productId, variantId, currencyId FK, price, compareAtPrice, cost, isActive, validFrom, validUntil - Unique constraint:
(productId, variantId, currencyId)withNULLS NOT DISTINCT - Geo detection: edge header (
cf-ipcountry) → sys_countries → sys_currencies - Fallback chain: user preference cookie → geo detection → default currency (USD)
- CurrencyProvider context: read-only (immutable without user preference)
- Admin CRUD: generic factory with FK protection on DELETE