Install
$ agentstack add skill-dinerojs-skills-dinero-formatting ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
Dinero.js Formatting
Patterns for formatting Dinero.js monetary values for display. Covers currency symbols, locale-aware formatting, non-decimal currencies, and serialization.
When to Apply
Reference these guidelines when:
- Displaying prices, totals, or monetary values in a UI
- Adding currency symbols or locale-specific formatting
- Formatting non-decimal currencies (e.g., historical currencies with non-base-10 subdivisions)
- Serializing Dinero objects for APIs, databases, or transport
- Building reusable formatting utilities
Rule Categories by Priority
| Priority | Category | Impact | Prefix | | -------- | ------------- | -------- | ---------------- | | 1 | Display | CRITICAL | display- | | 2 | Locale | HIGH | locale- | | 3 | Serialization | HIGH | serialization- | | 4 | Non-Decimal | MEDIUM | nondecimal- |
Quick Reference
1. Display (CRITICAL)
display-to-decimal- UsetoDecimalfor display strings, nottoSnapshotdisplay-no-currency-symbols- Dinero.js does not format currency symbols; compose withIntl.NumberFormat
2. Locale (HIGH)
locale-intl-formatter- Build reusable formatters withIntl.NumberFormatlocale-multilingual- Create locale-parameterized formatters for multilingual sites
3. Serialization (HIGH)
serialization-snapshot- UsetoSnapshotfor transport and storage, not displayserialization-bigint-json- BigInt Dinero objects require a custom JSON replacer
4. Non-Decimal (MEDIUM)
nondecimal-to-units- UsetoUnitsfor non-decimal currencies, nottoDecimal
How to Use
Read individual rule files for detailed explanations and code examples:
rules/display-no-currency-symbols.md
rules/locale-intl-formatter.md
Each rule file contains:
- Brief explanation of why it matters
- Incorrect code example with explanation
- Correct code example with explanation
- Additional context and references
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: dinerojs
- Source: dinerojs/skills
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.