Source profileQuality 75/100

LazyAGI/LazyMind/skills/.curated/ui-safe-form-patterns/SKILL.md

ui-safe-form-patterns

Implement or refactor UI forms with defense-in-depth validation, safe input handling, reliable submission behavior, and privacy-aware error handling. Use when building login, registration, profile, payment, admin, or file-upload forms.

Source repository stars
55
Declared platforms
0
Static risk flags
0
Last source update
2026-07-28
Source checked
2026-07-28

Decision brief

What it does—and where it fits

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

Best for

  • 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.

Not for

  • Tasks that require unconfirmed production actions or broad system permissions.
  • Environments where the pinned source and install steps cannot be inspected.

Compatibility matrix

Platform support, with evidence labels

PlatformStatusEvidenceWhat to check
CodexNot declaredNo explicit evidencePortability before use
Claude CodeNot declaredNo explicit evidencePortability before use
CursorNot declaredNo explicit evidencePortability before use
Gemini CLINot declaredNo explicit evidencePortability before use
Open the compatibility checker

Installation

Inspect first. Install second.

The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.

Source-detected install commandSource
npx skills add https://github.com/LazyAGI/LazyMind --skill "skills/.curated/ui-safe-form-patterns"
Safe inspection promptEditorial

Inspect the Agent Skill "ui-safe-form-patterns" from https://github.com/LazyAGI/LazyMind/blob/b63cc44f8c68603bc9e802b56d8e243fef2481aa/skills/.curated/ui-safe-form-patterns/SKILL.md at commit b63cc44f8c68603bc9e802b56d8e243fef2481aa. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.

Workflow

What the source asks the agent to do

  1. 01

    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 scree…

    Define schema and constraints per field, including max lengths and allowed character sets.Build controlled input handling with immediate low-cost validation and deferred heavy checks.Sanitize or encode displayed user-provided content in previews and confirmation screens.
  2. 02

    When to use

    Creating new forms or refactoring existing form logic.

    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.
  3. 03

    Reliability and safety baseline

    Validate on both client and server.

    Validate on both client and server.Treat client validation as UX, not security control.Normalize input before validation when format ambiguity is common.
  4. 04

    Sensitive field rules

    Password fields: enforce minimum policy and avoid logging or analytics capture.

    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.

Permission review

Static risk signals and limitations

No configured static risk pattern was detected

This is not proof of safety. Runtime behavior, indirect dependencies, and hidden external systems are outside the static scan.

Evidence record

Why each signal appears

EvidenceSourceComputedTestedEditorial
SignalValueEvidence typeMeaning
Quality score75/100ComputedDocumentation, specificity, maintenance, and trust rules
Repository stars55SourceRepository attention, not individual Skill quality
Compatibility0 platformsSourceDeclared in the catalog source record
Usage guideautomated source guideEditorialGenerated or reviewed according to the visible evidence level

Pinned source

Provenance and original SKILL.md

Repository
LazyAGI/LazyMind
Skill path
skills/.curated/ui-safe-form-patterns/SKILL.md
Commit
b63cc44f8c68603bc9e802b56d8e243fef2481aa
License
Apache-2.0
Collected
2026-07-28
Default branch
main
View the original SKILL.md

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.

Alternatives

Compare before choosing