number-formatting — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited number-formatting (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
# Suiperpower telemetry. Routes through the CLI so projects.json + Convex stay in sync.
# Silent on failure so the skill never blocks. Opt out: SUIPERPOWER_TELEMETRY=off.
#
# AGENT NOTE: when this skill finishes, run the matching completion command:
# suiperpower track number-formatting build completed
# Or use "failed" / "aborted" if it ended that way.
command -v suiperpower >/dev/null 2>&1 && suiperpower track number-formatting build started >/dev/null 2>&1 &
trueIf TEL_PROMPTED is no, before doing real work, ask the user:
Help suiperpower get better. We track which skills get used and how long they take. No code, no file paths, no PII. Change anytime in ~/.suiperpower/config.json.>
A) Sure, anonymous B) No thanks
Write the answer to ~/.suiperpower/config.json telemetryTier field and create ~/.suiperpower/.telemetry-prompted. Then continue.
Drops in a small set of Sui-aware number formatting helpers and applies them across the UI. Covers token amounts (any decimals, including MIST to SUI), USD values, percentages, gas, balances with thousands separators, and address ellipsis. The goal is one consistent formatter set so prices, balances, and gas all read alike across the app.
Numbers are the most-glanced-at element in a dapp. Getting them wrong (raw MIST to a user, scientific notation in the middle of a price, jiggling proportional figures) is a credibility kill.
$1234.567890123).Number.toFixed calls.scaffold-project.If you activated this and the user actually wants something else, consult skills/SKILL_ROUTER.md and hand off.
web/lib/format.ts (or similar location) module exporting:formatToken(amount: bigint, decimals: number, opts?)formatSui(mist: bigint, opts?) (wrapper for formatToken(amount, 9, ...))formatUSD(value: number | string, opts?)formatPercent(value: number, opts?)formatGas(mist: bigint) (renders ~0.0001 SUI shape)ellipsizeAddress(addr: string) and ellipsizeId(id: string)toFixed, toLocaleString, BigInt, MIST, manual decimals.references/format-helpers.md.web/lib/format.ts (or the project's lib root).font-feature-settings: "tnum" (or Tailwind tabular-nums) to numeric elements at the component level. Not globally, since tabular figures look wrong in body prose.(mist / 10n ** 9n).toString() with formatSui(mist).value.toFixed(2) with formatUSD(value).(rate * 100).toFixed(2) + '%' with formatPercent(rate).addr.slice(0, 6) + '...' + addr.slice(-4) with ellipsizeAddress(addr).ellipsizeId.Before reporting done:
toFixed or manual division by 10n ** decimals in the codebase? If yes, the consolidation is incomplete.If any answer is no, the skill keeps working.
On-demand references (load when relevant to the user's question):
references/format-helpers.md: Drop-in TypeScript helpers for tokens, SUI, USD, percent, gas, addresses.references/decimals-by-token.md: Common Sui-ecosystem coin decimals (SUI, USDC, native sponsor coins).claude "/suiper:number-formatting <your message>"codex "/number-formatting <your message>"grok, then /number-formatting <your message> in the session~/.cursor/rules/number-formatting.mdc and reference it.If you activated this and the user actually wants something else, consult skills/SKILL_ROUTER.md and hand off.
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.