Agent skill

Dinero Formatting

by dinerojs in dinerojs/dinero.js

Formatting patterns for the Dinero.js money library. An agent skill from dinerojs/dinero.js.

MITAuto-check passedDevelopment

Install Dinero Formatting

skills CLI
$ npx skills add dinerojs/dinero.js --skill dinero-formatting -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install dinerojs/dinero.js dinero-formatting --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/dinerojs/dinero.js.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/dinero-formatting .claude/skills/dinero-formatting && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
dinero-formatting
GitHub stars
6.8k
Token cost
~622 tokens
SKILL.md length
194 words
Files
8
Skills in repo
4
Repo updated
First seen
Licence
MIT

At a glance

Formatting patterns for the Dinero.js money library. An agent skill from dinerojs/dinero.js.

  • Works in 4 steps: Display (CRITICAL) → Locale (HIGH) → Serialization (HIGH) → …
  • Displaying monetary values to users
  • SKILL.md covers When to Apply, Rule Categories by Priority, Quick Reference and How to Use
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Dinero Formatting is an agent skill from dinerojs/dinero.js. Formatting patterns for the Dinero.js money library. Use when displaying monetary values to users, formatting prices with currency symbols, handling locale-specific number formats, or working with non-decimal currencies. Triggers on toDecimal, toUnits, toSnapshot calls, or Intl.NumberFormat usage with Dinero objects.

Its SKILL.md is about 620 tokens, which your agent loads only when the skill is triggered. The skill folder holds 8 other files (for example `rules/display-no-currency-symbols.md`, `rules/display-to-decimal.md` and `rules/locale-intl-formatter.md`).

It sits in Development. The repository describes itself as: Create, calculate, and format money in JavaScript and TypeScript. The licence is MIT.

When your agent uses it

  • Displaying monetary values to users
  • Formatting prices with currency symbols
  • Handling locale-specific number formats
  • Working with non-decimal currencies

Example prompts

  • “/dinero-formatting”

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. Display (CRITICAL)
  2. Locale (HIGH)
  3. Serialization (HIGH)
  4. Non-Decimal (MEDIUM)

What it can do on your machine

Read from SKILL.md and the folder at commit 76b969e. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • v2.dinerojs.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Dinero Formatting loads about 622 tokens when it runs. Until then it costs about 84 tokens; SKILL.md has 194 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~84
When it runs · the whole SKILL.md, loaded when a task matches
~622

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from dinerojs/dinero.js at commit 76b969e, republished under its MIT licence (© dinerojs). 194 words, ~622 tokens.

Download SKILL.mdSave it as .claude/skills/dinero-formatting/SKILL.md (or your agent's skills folder). This skill also uses 7 other files; get the full folder from GitHub.
name
dinero-formatting
description
Formatting patterns for the Dinero.js money library. Use when displaying monetary values to users, formatting prices with currency symbols, handling locale-specific number formats, or working with non-decimal currencies. Triggers on toDecimal, toUnits, toSnapshot calls, or Intl.NumberFormat usage with Dinero objects.
license
MIT
metadata.author
dinerojs
metadata.version
1.0.0

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

PriorityCategoryImpactPrefix
1DisplayCRITICALdisplay-
2LocaleHIGHlocale-
3SerializationHIGHserialization-
4Non-DecimalMEDIUMnondecimal-

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

© dinerojs, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 7 other files in .agents/skills/dinero-formatting of dinerojs/dinero.js.

  • SKILL.md
  • rules/display-no-currency-symbols.md
  • rules/display-to-decimal.md
  • rules/locale-intl-formatter.md
  • rules/locale-multilingual.md
  • rules/nondecimal-to-units.md
  • rules/serialization-bigint-json.md
  • rules/serialization-snapshot.md

Open the folder on GitHubat commit 76b969e

Compare with similar skills

Dinero Formatting next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Dinero Formatting compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Dinero Formatting this skilldinerojs/dinero.js6.8k—~622Automated safety check: PassMIT
Vercel Composition Patternssupabase/supabase111k58 repos~726Automated safety check: PassMIT
Finishing a Development Branchobra/superpowers297k5 repos~1.9kAutomated safety check: PassMIT
Typescript Advanced Typesrolling-scopes/rsschool-app10k25 repos~4.2kAutomated safety check: PassMPL-2.0
PR Babysitteropeninterpreter/openinterpreter69k3 repos~4.2kAutomated safety check: PassApache-2.0
Code Review ChecklistshareAI-lab/learn-claude-code78k4 repos~1.1kAutomated safety check: PassMIT

Similar skills

  • Official

    React composition patterns that scale. An agent skill from supabase/supabase.

    111k GitHub starsUsed in 58 repos~726 tokens
    DevelopmentAuto-check passed
  • Walks the last step of a branch: confirm tests pass, detect the git environment, ask how to integrate, carry out your choice and clean up the worktree.

    297k GitHub starsUsed in 5 repos~1.9k tokens
    DevelopmentAuto-check passed
  • Typescript Advanced Types

    rolling-scopes/rsschool-app

    Master TypeScript's advanced type system including generics, conditional types, mapped types, template literals, and utility types for building type-safe applications.

    10k GitHub starsUsed in 25 repos~4.2k tokens
    DevelopmentAuto-check passed
  • PR Babysitter

    openinterpreter/openinterpreter

    Watches an open GitHub pull request until it merges, handling review comments, diagnosing CI failures and retrying flaky checks along the way.

    69k GitHub starsUsed in 3 repos~4.2k tokens
    DevelopmentAuto-check passed
  • Code Review Checklist

    shareAI-lab/learn-claude-code

    Reviews code against a five-part checklist covering security, correctness, performance, maintainability and testing, and reports findings in a fixed format.

    78k GitHub starsUsed in 4 repos~1.1k tokens
    DevelopmentAuto-check passed
  • Greploop

    onyx-dot-app/onyx

    Iteratively improves a PR (GitHub), MR (GitLab), or shelved changelist (Perforce) until Greptile gives it a 5/5 confidence score with zero unresolved comments.

    32k GitHub starsUsed in 4 repos~3.3k tokens
    DevelopmentAuto-check passed

More from dinerojs/dinero.js

  • Commit

    dinerojs/dinero.js

    Create a git commit with optional automatic Linear issue linking.

    6.8k GitHub stars~667 tokensUpdated 5 days ago
    Auto-check passed
  • Dinero Best Practices

    dinerojs/dinero.js

    Core best practices for the Dinero.js money library. An agent skill from dinerojs/dinero.js.

    6.8k GitHub stars~756 tokensUpdated 5 days ago
    Auto-check passed
  • Dinero Currency Patterns

    dinerojs/dinero.js

    Currency handling patterns for the Dinero.js money library. An agent skill from dinerojs/dinero.js.

    6.8k GitHub stars~650 tokensUpdated 5 days ago
    Auto-check passed

Categories

Questions about Dinero Formatting

What does Dinero Formatting do?

Formatting patterns for the Dinero.js money library. An agent skill from dinerojs/dinero.js. js.js money library.

When should I use Dinero Formatting?

Dinero Formatting fits situations like: displaying monetary values to users; formatting prices with currency symbols; handling locale-specific number formats; working with non-decimal currencies.

How do I install Dinero Formatting in Claude Code?

Run `npx skills add dinerojs/dinero.js --skill dinero-formatting -a claude-code`. Or copy the skill folder (.agents/skills/dinero-formatting in dinerojs/dinero.js) into .claude/skills/dinero-formatting in your project. Claude Code loads it when a task matches its description.

How do I install Dinero Formatting in Codex?

Run `npx skills add dinerojs/dinero.js --skill dinero-formatting -a codex`. Or copy the skill folder (.agents/skills/dinero-formatting in dinerojs/dinero.js) into .agents/skills/dinero-formatting in your project. Codex loads it when a task matches its description.

Can I use Dinero Formatting in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add dinerojs/dinero.js --skill dinero-formatting -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/dinero-formatting, .gemini/skills/dinero-formatting, .github/skills/dinero-formatting and .opencode/skills/dinero-formatting in your project.

What does Dinero Formatting need to run?

SKILL.md names no scripts, command-line tools or credentials: Dinero Formatting is instructions for the agent only.

Does Dinero Formatting access the network?

SKILL.md names 1 domain. As links in the text: v2.dinerojs.com. This is read from the text; nothing was executed.

Is Dinero Formatting safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Dinero Formatting use?

Dinero Formatting is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Dinero Formatting use?

About 622 tokens (SKILL.md is roughly 2.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Dinero Formatting?

Skills that share tags, products or a category with Dinero Formatting: Vercel Composition Patterns (supabase/supabase, 111k stars), Finishing a Development Branch (obra/superpowers, 297k stars), Typescript Advanced Types (rolling-scopes/rsschool-app, 10k stars) and PR Babysitter (openinterpreter/openinterpreter, 69k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Dinero Formatting?

dinerojs (a GitHub organization) maintains it in dinerojs/dinero.js, which has 6,804 GitHub stars. The repository holds 4 skills in this directory. The repository was last updated on October 5, 2026.

Source: dinerojs/dinero.js on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.