engremran07/gsmvault/alp-mask-input

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.

Input masking with x-mask. Use when: formatting user input in text fields, constraining input to specific patterns, auto-formatting dates or codes.

Install

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

SKILL.md

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

Alpine Input Masking

When to Use

  • Formatting date inputs (DD/MM/YYYY)
  • Serial number / product code entry
  • Any input requiring a fixed character pattern

Patterns

Basic Date Mask

Requires @alpinejs/mask plugin:

html
<input x-data x-mask="99/99/9999" type="text" placeholder="DD/MM/YYYY"
class="w-full px-3 py-2 rounded border border-[var(--color-border)] bg-[var(--color-input)]">
Dynamic Mask with x-mask:dynamic
html
<input x-data x-mask:dynamic="
$input.startsWith('3') ? '9999 999999 99999' : '9999 9999 9999 9999'
" type="text" placeholder="Card number"
class="w-full px-3 py-2 rounded border border-[var(--color-border)]">
Postal Code / ZIP
html
<input x-data x-mask="99999" type="text" placeholder="ZIP Code"
class="w-32 px-3 py-2 rounded border border-[var(--color-border)]">
Custom Pattern with x-model
html
<div x-data="{ code: '' }">
<input x-model="code" x-mask="AAA-9999" type="text"
placeholder="ABC-1234"
class="px-3 py-2 rounded border border-[var(--color-border)]">
<span x-show="code.length === 8" x-cloak class="text-green-500">✓ Valid</span>
</div>

Mask Characters

CharMatches
9Digits 0-9
aLetters a-z (case insensitive)
*Any alphanumeric

Anti-Patterns

PatternProblemFix
Server-side validation onlyBad UX — user sees error after submitAdd mask for instant feedback
Complex regex validation instead of maskHarder to maintainUse x-mask for pattern, validate on submit
Mask without placeholder textUser doesn't know expected formatAlways include placeholder

Red Flags

  • x-mask plugin not loaded (check CDN fallback chain includes @alpinejs/mask)
  • Input mask without corresponding server-side validation
  • Mask that prevents valid input (e.g., international formats)

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-input/badge)](https://verified-skill.com/skills/engremran07/gsmvault/alp-mask-input)

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