engremran07/gsmvault/alp-mask-currency

Claude Code and agent skill by engremran07/gsmvault

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Currency input masking. Use when: formatting monetary input, adding dollar signs and commas to amount fields, decimal precision enforcement.

Install

npx vskill@latest install engremran07/gsmvault/alp-mask-currency

SKILL.md

The same SKILL.md was published earlier as engremran07/gsmvault/alp-mask-currency.

Alpine Currency Input Masking

When to Use

  • Price/amount input fields (shop, wallet, bounty)
  • Credit/debit entry with auto-formatting
  • Any monetary value that needs comma separation and decimal precision

Patterns

Basic Currency with x-mask:dynamic (Money)
html
<input x-data x-mask:dynamic="$money($input)" type="text"
placeholder="0.00" inputmode="decimal"
class="w-full px-3 py-2 rounded border border-[var(--color-border)] bg-[var(--color-input)]">
Currency with Symbol and Validation
html
<div x-data="{ raw: '', get amount() { return parseFloat(this.raw.replace(/,/g, '')) || 0; } }">
<div class="relative">
<span class="absolute left-3 top-2.5 text-[var(--color-text-muted)]">$</span>
<input x-model="raw" x-mask:dynamic="$money($input)"
type="text" inputmode="decimal" placeholder="0.00"
class="w-full pl-7 pr-3 py-2 rounded border border-[var(--color-border)] bg-[var(--color-input)]">
</div>
<p x-show="raw && amount <= 0" x-cloak class="text-sm text-red-500 mt-1">
Enter a valid amount
</p>
<p x-show="amount > 0" x-cloak class="text-sm text-[var(--color-text-muted)] mt-1">
Amount: $<span x-text="amount.toFixed(2)"></span>
</p>
</div>
Custom Precision (No Decimals)
html
<input x-data x-mask:dynamic="$money($input, ',')" type="text"
placeholder="1,000" inputmode="numeric"
class="px-3 py-2 rounded border border-[var(--color-border)]">
Credits/Points (Integer Only)
html
<div x-data="{ credits: '' }">
<input x-model="credits" x-mask:dynamic="$money($input, ',')"
type="text" inputmode="numeric" placeholder="0"
class="w-32 px-3 py-2 rounded border border-[var(--color-border)] bg-[var(--color-input)]">
<span class="ml-2 text-[var(--color-text-muted)]">credits</span>
</div>

Anti-Patterns

PatternProblemFix
type="number" with maskConflicts with browser native controlsUse type="text" + inputmode="decimal"
Storing formatted string ("$1,234.56")Can't do mathParse to float before sending to server
No max amount validationUsers can enter absurd valuesValidate server-side and optionally client-side

Red Flags

  • Currency field without server-side validation of amount bounds
  • Formatted currency string sent directly to the backend
  • Missing inputmode="decimal" — mobile users don't get numpad

Quality Gate

powershell
& .\.venv\Scripts\python.exe -m ruff check . --fix
& .\.venv\Scripts\python.exe -m ruff format .
& .\.venv\Scripts\python.exe manage.py check --settings=app.settings_dev

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/engremran07/gsmvault/alp-mask-currency/badge)](https://verified-skill.com/skills/engremran07/gsmvault/alp-mask-currency)

Something wrong with this skill or its page? Tell us.