ui-safe-form-patterns

ui-safe-form-patterns is a skill for Claude Code, Codex from LazyAGI/LazyMind. It costs 50 tokens per session (505 once invoked), scanned A, original, Apache-2.0.

Guidance for building web forms that validate input, handle submissions reliably, and avoid exposing private or sensitive details.

In plain words
What is it for?
Use it for login, registration, profile, payment, administrator, and file-upload forms, including their validation, loading states, retries, and tests.
Why use it?
It reduces invalid data, duplicate submissions, confusing failures, and accidental leaks of passwords, personal data, payment details, or backend errors.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it for login, registration, profile, payment, administrator, and file-upload forms, including their validation, loading states, retries, and tests.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lazyagi/lazymind/ui-safe-form-patterns
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add LazyAGI/LazyMind --skill ui-safe-form-patterns
Clone the repo
git clone --depth 1 https://github.com/LazyAGI/LazyMind

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ui-safe-form-patterns

README.md
[![agentmods](https://agentmods.dev/badge/skills/lazyagi/lazymind/ui-safe-form-patterns.svg)](https://agentmods.dev/skills/lazyagi/lazymind/ui-safe-form-patterns)
Your own site
<a href="https://agentmods.dev/skills/lazyagi/lazymind/ui-safe-form-patterns"><img src="https://agentmods.dev/badge/skills/lazyagi/lazymind/ui-safe-form-patterns.svg" alt="Measured on agentmods" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 505 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00050 $0.00505
Opus 5 $0.00025 $0.00253
Sonnet 5 $0.00010 $0.00101
Haiku 4.5 $0.00005 $0.00051

Measured 8d ago against content hash 8653ef26b21d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

ui-safe-form-patterns scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/.curated/ui-safe-form-patterns/SKILL.md · 51 lines

How it starts

The opening of the file, as written. The whole thing — 51 lines — stays where its author put it; the contents beside it link to each section on GitHub.

UI Safe Form Patterns

Use this skill to build forms that are both secure and dependable in real user conditions.

When to use

  • Creating new forms or refactoring existing form logic.
  • Hardening forms that process credentials, PII, money, or privileged actions.
  • Fixing flaky submission flows and duplicate-submit bugs.

Reliability and safety baseline

  • Validate on both client and server.
  • Treat client validation as UX, not security control.
  • Normalize input before validation when format ambiguity is common.
  • Prevent duplicate submissions with in-flight state and idempotent APIs.
  • Use clear loading, success, retry, and failure states.
  • Never leak secrets or raw backend traces in UI errors.

Implementation workflow

  1. Define schema and constraints per field, including max lengths and allowed character sets.
  2. Build controlled input handling with immediate low-cost validation and deferred heavy checks.
  3. Sanitize or encode displayed user-provided content in previews and confirmation screens.
  4. Add submit lock, timeout handling, and cancel or retry behavior where relevant.
  5. Map backend errors into safe user-facing messages without exposing internals.
  6. Add tests for invalid input, race conditions, and repeated clicks.

Sensitive field rules

  • Password fields: enforce minimum policy and avoid logging or analytics capture.
  • Email and phone: normalize before validation to reduce false negatives.
  • File uploads: enforce MIME and size checks client-side and server-side.
  • Rich text inputs: sanitize on server and encode on render.
  • Numeric money fields: use decimal-safe parsing and range checks.

Suggested checks

rg -n "onSubmit|handleSubmit|Form|formik|react-hook-form|yup|zod" frontend/src
rg -n "localStorage|sessionStorage|console\.log\(|Sentry|analytics" frontend/src
rg -n "type=\"file\"|upload|multipart|FormData" frontend/src

Test minimum

  • Reject malformed input with stable messaging.
  • Ignore rapid double click while request is in flight.
  • Preserve user input when recoverable errors occur.
  • Avoid stale success state after failed retries.
  • Confirm no sensitive values appear in logs or telemetry payloads.

Read the full file on GitHub · 51 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 51 lines · 50 tokens per session scan A 8653ef26b21d

Subscribe to this mod's changes

ui-safe-form-patterns is a skill published in the GitHub repository LazyAGI/LazyMind (77 stars, last pushed today), licensed Apache-2.0. It adds 50 tokens to every session and 505 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

fullstack-dev

Full-stack backend architecture and frontend-backend integration guide. TRIGGER when: building a full-stack app, creating REST API with frontend, scaffolding backend service, building todo app, building CRUD app, building real-time app, building chat app, Express + React, Next.js API, Node.js backend, Python backend…

UnicomAI/wanwu · 133 tokens

web-artifacts-builder

Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use for complex artifacts requiring state management, routing, or shadcn/ui components - not for simple single-file HTML/JSX artifacts.

UnicomAI/wanwu · 64 tokens

frontend-design

Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI).…

UnicomAI/wanwu · 77 tokens

frontend-dev

Full-stack frontend development combining premium UI design, cinematic animations, AI-generated media assets, persuasive copywriting, and visual art. Builds complete, visually striking web pages with real media, advanced motion, and compelling copy. Use when: building landing pages, marketing sites, product pages…

UnicomAI/wanwu · 87 tokens

3d-web-experience

Expert in building 3D experiences for the web - Three.js, React Three Fiber, Spline, WebGL, and interactive 3D scenes. Covers product configurators, 3D portfolios, immersive websites, and bringing dep.

ranbot-ai/awesome-skills · 53 tokens

animejs-animation

Advanced JavaScript animation library skill for creating complex, high-performance web animations.

ranbot-ai/awesome-skills · 19 tokens