form-strategy
БесплатноБез исполняемых скриптовНе проверенDesign forms that convert, validate well, resist spam, and integrate cleanly with downstream systems. Use this skill when designing or auditing any form…
от rampstackco★ 1 143 звезды на GitHubОб этом скилле
Form Strategy
Forms are where intent becomes action. Design them well or lose conversions, frustrate users, and drown in spam. Stack-agnostic.
When to use
- Designing or redesigning a form
- Conversion is dropping on a key form
- Spam volume is overwhelming the inbox or database
- Auditing forms across a site
- Planning validation logic
- Choosing form tooling (form service, custom build, no-code)
- Integrating forms with CRM, email, or other downstream systems
- Multi-step form decisions
When NOT to use
- Generic conversion optimization (use
cro-optimization) - The copy on the form (use
landing-page-copy) - Backend handling beyond form-specific concerns (use
frontend-component-build,code-review-web) - General accessibility (use
accessibility-audit)
Required inputs
- The form's purpose (what action, what outcome)
- Current form (URL, screenshot, or fields)
- Current performance (completion rate, spam rate, conversion to next step)
- Downstream system (where submissions go: CRM, email, database, support tool)
- Business context (volume, urgency of leads, cost of false vs missed signups)
The framework: 5 dimensions
Every form decision falls into one of these dimensions.
Dimension 1: Field strategy
The biggest lever. Every additional field reduces conversion.
Questions to ask for each field:
- Is this required to deliver value to the user?
- Is this required to deliver value to the business?
- Can it be inferred from another source (email domain, behavior, context)?
- Can it be asked later (after first contact, on second visit, on settings page)?
Default rule: ask for the minimum to make the next step happen. Everything else later.
For a B2B contact form: name and email get you started. Phone, company size, role are nice-to-haves that often hurt conversion more than they help qualification.
For a checkout: country, postal code, address, name, payment. Anything else (referral source, marketing opt-in, account creation) is optional or moved to post-purchase.
Dimension 2: Field design
How each field looks and behaves.
- Labels above inputs beat placeholders. Placeholder labels disappear when typing.
- Inline labels (floating labels) work for very compact forms.
- Single column for almost every form. Eyes flow vertically.
- Logical grouping with visible spacing. Don't put unrelated fields next to each other.
- Right input type:
emailfor emails,telfor phone,numberfor numbers,datefor dates. Mobile keyboards adapt. - Autocomplete attributes:
autocomplete="email",autocomplete="given-name", etc. Browsers and password managers fill them in. - Sensible defaults for fields where one applies (country pre-selected by IP, etc.). Don't default to anything that would mislead if wrong.
Dimension 3: Validation
Tell users what's wrong, when, and how to fix it.
- Validate on blur, not on every keystroke. Inline errors that appear as someone types are jarring.
- Re-validate on submit (catch fields the user skipped).
- Specific messages: "Email must include @" beats "Invalid email."
- Position errors next to the field they refer to.
- Don't submit a form when there are errors. Highlight the first errored field. Scroll to it.
- Validate server-side too. Client validation is UX. Server validation is correctness.
For format-flexible fields (phone numbers, postal codes), validate liberally. Reject only what's clearly wrong, not what's "non-standard." Many phone formats exist.
Dimension 4: Spam defense
Public forms attract spam. Plan for it from day one.
Layered defense:
- Honeypot field. A hidden field that humans don't fill in but bots do. If it's filled, reject silently. Free, low-friction, surprisingly effective for low-effort spam.
- Time-based detection. Reject submissions completed in under 2-3 seconds (bots) or after very long delays (suspicious sessions).
- Rate limiting. Reject if the same IP submits too many times.
- CAPTCHA as a last resort. Modern invisible CAPTCHAs (hCaptcha, reCAPTCHA v3, Turnstile) are low-friction. Old image CAPTCHAs are conversion-killers.
- Behavioral signals. Did the cursor move? Was there scroll? Modern services track this.
- Content filtering. Reject obvious spam content (links, foreign-language content if your audience is local, common spam words).
- Server-side review. A queue rather than direct delivery to inboxes for high-spam-target forms.
For most contact forms: honeypot + time check + Turnstile (or similar) is sufficient.
Dimension 5: Submission flow
What happens after submit.
- Inline success message for short forms. Don't redirect just to confirm.
- Confirmation page for high-value submissions (to provide next steps, set expectations).
- Email confirmation for signups, purchases, RSVPs. Always.
- Save data on errors so the user doesn't re-enter everything.
- **Optimisti
Установить form-strategy в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл form-strategy?
Design forms that convert, validate well, resist spam, and integrate cleanly with downstream systems. Use this skill when designing or auditing any form (contact, signup, checkout, multi-step, embedded), planning validation logic, fighting spam, choosing form tooling, or improving form conversion. Triggers on form design, form validation, form conversion, multi-step form, form spam, captcha, honeypot, form abandonment, signup form, contact form. Also triggers when form completion rates are low or spam is overwhelming.
Как установить скилл form-strategy?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл form-strategy запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-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…
от Anthropic