Format Price

Use this skill to format a numeric amount as a currency string with the correct symbol, thousands separators, and two decimals (USD, EUR, GBP, etc.). Handles ints, floats, and numeric strings. Deterministic, offline.

ncreighton Updated

File contents

format-price

Use this skill to format a numeric amount as a currency string with the correct symbol, thousands separators, and two decimals (USD, EUR, GBP, etc.). Handles ints, floats, and numeric strings. Deterministic, offline.

  • Kind: tool | Niche: reviews | Cost tier: free | Version: 0.1.0

Empire Integration

import sys
sys.path.insert(0, r'C:\D\Claude Code Projects\_SHARED')
import empire_bootstrap  # wires all shared paths

Usage

As a CLI:

python run.py --amount <number>

From a Python agent (ATEN runtime):

from skill_library import executor
result = executor.execute("format-price", {amount=...})

Parameters

Name Type Required Description
amount number yes The amount
currency string no ISO code (USD/EUR/GBP/JPY), default USD

Returns

object{"status": "ok"|"error", "result": ...}

ncreighton/empire-skills/tree/main/skills/format-price commit 66cf301073

Frequently asked questions

npx skillmds@latest add ncreighton/format-price