dinero.js: Skill for Claude Code

.agents/skills/dinero-formatting/SKILL.md

dinero-formatting is a skill for Claude Code, Codex from dinerojs/dinero.js. It costs 66 tokens per session (579 once invoked), scanned A, original, MIT.

Formatting guidance for Dinero.js, a JavaScript and TypeScript library for representing money, when values need to be shown or transferred.

In plain words
What is it for?
Use it to display prices and totals, format currencies for different locales, handle currencies without decimal subdivisions, or serialize money for APIs and databases.
Why use it?
It helps avoid confusing price displays, incorrect currency symbols, locale mistakes, and unsafe serialization of monetary values.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is dinerojs/dinero.js's own configuration. It tells Claude Code and Codex how to work on dinero.js itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything dinero.js configures →

About the project

Dinero.js is a JavaScript and TypeScript library for representing, calculating, comparing, converting, and formatting monetary values. Applications use it to handle currencies and amounts with immutable operations, configurable numeric precision, and support for currencies with non-decimal subdivisions. Its catalogue skills guide coding agents in using the library.

dinerojs/dinero.js · 6,792 stars · on GitHub · dinerojs.com

Reuse

Borrowing it

Nothing to install: this file belongs to dinerojs/dinero.js. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/dinerojs/dinero.js/main/.agents/skills/dinero-formatting/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/dinerojs/dinero.js

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for dinero-formatting

README.md
[![agentmods](https://agentmods.dev/badge/skills/dinerojs/dinero.js/dinero-formatting/github.svg)](https://agentmods.dev/skills/dinerojs/dinero.js/dinero-formatting)
Your own site
<a href="https://agentmods.dev/skills/dinerojs/dinero.js/dinero-formatting"><img src="https://agentmods.dev/badge/skills/dinerojs/dinero.js/dinero-formatting/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for dinero-formatting

Your own site · 80×15
<a href="https://agentmods.dev/skills/dinerojs/dinero.js/dinero-formatting"><img src="https://agentmods.dev/badge/skills/dinerojs/dinero.js/dinero-formatting.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 579 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00066 $0.00579
Opus 5 $0.00033 $0.00290
Sonnet 5 $0.00013 $0.00116
Haiku 4.5 $0.00007 $0.00058

Measured 11d ago against content hash 40c0ed0295cc, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

dinero-formatting scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

.agents/skills/dinero-formatting/SKILL.md · 74 lines

How it starts

The opening of the file, as written. The whole thing — 74 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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 - Use toDecimal for display strings, not toSnapshot
  • display-no-currency-symbols - Dinero.js does not format currency symbols; compose with Intl.NumberFormat

2. Locale (HIGH)

  • locale-intl-formatter - Build reusable formatters with Intl.NumberFormat
  • locale-multilingual - Create locale-parameterized formatters for multilingual sites

3. Serialization (HIGH)

  • serialization-snapshot - Use toSnapshot for transport and storage, not display
  • serialization-bigint-json - BigInt Dinero objects require a custom JSON replacer

4. Non-Decimal (MEDIUM)

  • nondecimal-to-units - Use toUnits for non-decimal currencies, not toDecimal

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

Read the full file on GitHub · 74 lines

Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 74 lines · 66 tokens per session scan A 40c0ed0295cc

Subscribe to this mod's changes

dinero-formatting is a skill published in the GitHub repository dinerojs/dinero.js (6,792 stars, last pushed today), licensed MIT. It adds 66 tokens to every session and 579 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

alpaca-trade-api-sdk

Integrate and build on the @alpacahq/alpaca-trade-api TypeScript SDK for the Alpaca Trading and Market Data APIs (the unified Alpaca client, ergonomic order builders, normalized market-data shapes, pagination, typed errors, resilience, and real-time streaming). Use when writing or reviewing code that imports…

alpacahq/alpaca-trade-api-js · 123 tokens

starter-dashboard

Scaffold a local Next.js Alpaca dashboard using the published @alpacahq/alpaca-trade-api SDK for paper Trading API and Market Data API workflows. Use when the user asks for starter-dashboard, a starter Alpaca dashboard, a local Trading API demo, a Market Data API dashboard, or a greenfield Next.js Alpaca SDK prototype.

alpacahq/alpaca-trade-api-js · 75 tokens

modeling-revenue-metrics

Build reusable revenue models — MRR, ARR, gross revenue, new/expansion/contraction/churn, ARPU, LTV, and per-customer/per-account revenue — on either PostHog data-warehouse views (HogQL) or an external dbt project. Use when the user wants to model, define, or compute recurring revenue, monthly/annual recurring…

PostHog/posthog · 231 tokens

vietnamese-finance-copy

Writes and reviews native-quality Vietnamese (vi-VN) finance content — hóa đơn điện tử and e-invoice fields, báo cáo tài chính and management reports, investor updates and board decks, pricing and payment-terms pages, fintech, banking and insurance product copy, loan and credit disclosures, and thuế GTGT, TNDN and…

trussary/vietnamese-language-skill · 146 tokens

netsuite-ai-connector-instructions

NetSuite Intelligence skill — teaches AI the correct tool selection order, output formatting, domain knowledge, multi-subsidiary and currency handling, and SuiteQL safety checklist for any AI + NetSuite AI Service Connector session.

oracle/netsuite-suitecloud-sdk · 52 tokens

netsuite-finance-analyst

Use this skill when the user needs NetSuite-based finance analysis, Director of Financial Analysis support, period-close guidance, variance review, reconciliation review, cash reporting, or executive-ready financial narrative generation. Apply it to requests involving income statements, balance sheets, cash flow…

oracle/netsuite-suitecloud-sdk · 124 tokens