К основному содержанию
скилл CX Codex

security-ux — скилл для Claude Code: интерфейсы безопасности

Скилл для проектирования экранов входа, MFA и восстановления доступа так, чтобы защита не пугала пользователя.

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add aladicf/better-web-ui --skill security-ux -a claude-code
Открыть на GitHub

Что делает security-ux

Скилл разбирает места, где безопасность встречается с интерфейсом: вход, пароли, MFA, сигналы доверия, восстановление доступа, уведомления об утечках, согласия и права. По каждому пункту даёт конкретные правила — например, не очищать поле email после неудачной попытки, показывать индикатор надёжности пароля прямо во время ввода, разрешать длинные парольные фразы вместо обязательной мешанины из символов.

Внутри скилл ссылается на четыре справочника: аутентификация и восстановление аккаунта, UX прав и ролей, честность интерфейса, восстановление после ошибок. Перед началом работы он требует загрузить $frontend-design и пройти протокол сбора контекста; если контекста ещё нет, сначала загружается $setup. Дополнительно нужно собрать модель угроз продукта, список уже внедрённых защитных механизмов и места, где пользователи путаются или тревожатся.

Есть раздел про доступность: крупные поля для кода MFA, таймер для TOTP-кодов, aria-live для алертов, восстановление доступа с клавиатуры. Отдельно перечислены антипаттерны — например, иконки замка на страницах, которые ничего не защищают, и произвольные требования к сложности пароля при короткой минимальной длине.

Какие задачи решает

  • спроектировать вход и MFA, которые не раздражают
  • объяснить требования к паролю до того, как пользователь начнёт вводить
  • сделать восстановление доступа достижимым, но не дырявым
  • написать уведомление об утечке так, чтобы его прочитали
  • развести согласия на маркетинг и на работу функций

Примеры запросов агенту

  • /security-ux настройка MFA для личного кабинета
  • /security-ux экран восстановления доступа по резервным кодам
  • /security-ux уведомление о подозрительном входе с нового устройства

Как установить security-ux

1Через Skills CLI (Vercel)

npx skills add aladicf/better-web-ui --skill security-ux -a claude-code

2Вручную: положить файлы

~/.claude/skills/security-ux/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/security-ux/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о security-ux

Как установить security-ux в Claude?

Выполните npx skills add aladicf/better-web-ui --skill security-ux -a claude-code. После этого файл скилла лежит в ~/.claude/skills/security-ux/SKILL.md.

Что делает security-ux?

Помогает проектировать интерфейсы вокруг безопасности: вход, пароли, MFA, сигналы доверия, восстановление доступа, уведомления об утечках и согласия. Цель — чтобы защита ощущалась как контроль, а не как наказание.

Что нужно загрузить перед работой скилла?

Скилл требует загрузить $frontend-design и пройти его протокол сбора контекста. Если контекста ещё нет, сначала загружается $setup.

Исходный текст

SKILL.md · MIT
---
name: security-ux
description: Design security-conscious interfaces that protect users without frustrating them. Use when the user asks about MFA, password UX, breach notifications, trust indicators, secure forms, account recovery, or making security feel safe rather than scary.
metadata:
  argument-hint: "[security flow or surface]"
---

Build security interfaces that earn user trust through clarity, not intimidation. The goal is to make users feel safe and in control, not punished for security requirements.

Consult the [authentication and account recovery](../frontend-design/reference/authentication-and-account-recovery.md) reference for sign-in, MFA, session expiry, password UX, and recovery-stack guidance.
Consult the [permissions and roles UX](../frontend-design/reference/permissions-and-roles-ux.md) reference for role editors, request-access flows, access-denied recovery, and risky permission changes.
Consult the [interface honesty](../frontend-design/reference/interface-honesty.md) reference for assertive UX language, honest progress and consent copy, and trust-preserving product behavior.
Consult the [error recovery](../frontend-design/reference/error-recovery.md) reference for what happens after security-related failures.

## MANDATORY PREPARATION

Users start this workflow with `/security-ux`. Once this skill is active, load $frontend-design — it contains design principles, anti-patterns, and the **Context Gathering Protocol**. Follow that protocol before proceeding — if no design context exists yet, you MUST load $setup first. Additionally gather: what threat model the product faces, what security features are already implemented, and where users currently feel confused or anxious about security.

## Assess Security UX Needs

Identify where security and user experience intersect:

1. **Authentication flow**: How do users sign in? Is MFA required or optional? How painful is the current flow?
2. **Password experience**: Are requirements reasonable? Is there guidance on creating strong passwords?
3. **Trust signals**: Does the interface communicate security clearly (HTTPS indicators, verified badges, encryption notes)?
4. **Recovery paths**: What happens when users lose access? Is recovery secure but not impossible?
5. **Breach and anomaly response**: How does the product notify users of suspicious activity or data breaches?
6. **Permission and consent**: Are users making informed decisions about what they share?

## Security UX Dimensions

### Authentication

**Sign-in flow**:
- Keep the sign-in form minimal: email and password, or social auth options
- Show/hide password toggle so users can verify their input
- Do not clear the email field on failed attempts
- Distinguish "email not found" from "wrong password" only if it does not aid account enumeration attacks
- Rate-limit failed attempts and show a clear cooldown message

**Multi-factor authentication (MFA)**:
- Offer multiple MFA methods (TOTP app, SMS, hardware key, backup codes)
- Default to the most secure method the user has set up
- Provide clear setup instructions with visual guides
- Allow naming devices so users know what they are approving
- Show recovery codes during setup and prompt users to save them
- Do not make MFA feel like a punishment; frame it as protection

**Session management**:
- Show active sessions in settings with device and location info
- Allow users to revoke individual sessions
- Notify users of new sign-ins from unfamiliar devices or locations
- Use "Remember this device" sparingly and explain what it means

### Password UX

**Requirements that don't frustrate**:
- Minimum length (12+ characters) matters more than complexity rules
- Explain why: "Longer passwords are harder to guess"
- Show a strength meter as the user types, not just on blur
- Allow passphrases ("correct horse battery staple")
- Do not require arbitrary character mixing (one uppercase, one symbol) if length is sufficient
- Never expire passwords arbitrarily; it encourages weak patterns

**Password creation guidance**:
- Suggest a generated password or passphrase
- Show requirements before the user starts typing, not after they fail
- Use inline validation for length, not a popup on submit

### Trust Indicators

**Visual signals**:
- Show lock icons near sensitive fields (payment, passwords)
- Display security badges or certifications where relevant (PCI DSS, SOC 2)
- Use HTTPS and show the secure connection indicator in the browser
- Explain encryption in plain language ("Your data is encrypted") not jargon

**Transparency**:
- Explain what data is collected and why before asking for it
- Show privacy policy links near consent checkboxes
- Use plain language for security settings, not enterprise terminology
- Allow users to review and export their data

### Account Recovery

**Secure but reachable**:
- Offer multiple recovery methods (email, phone, backup codes, trusted contacts)
- Verify identity before allowing recovery; do not skip steps for convenience
- Send notifications to existing contact methods when recovery is initiated
- Time-limit recovery links and codes
- Require re-authentication before sensitive actions after recovery

**Recovery UX**:
- Guide users step-by-step through recovery
- Explain what will happen at each step
- Provide clear alternatives if one recovery method fails
- Do not trap users in loops where recovery requires the very thing they lost

### Breach and Anomaly Notifications

**Breach notifications**:
- Notify users promptly when their account may be compromised
- Be specific about what happened and what data was affected
- Provide clear, immediate actions: change password, review sessions, enable MFA
- Do not bury breach notices in marketing emails

**Anomaly alerts**:
- Notify users of unusual sign-in attempts with device and location
- Allow users to approve or block the attempt directly from the notification
- Provide a "This was me" / "This was not me" choice, not just an informational alert
- Do not cry wolf; too many false positives train users to ignore alerts

### Consent and Permissions

**Informed consent**:
- Explain what the user is agreeing to in plain language, not legal jargon
- Use progressive disclosure: show the summary first, allow expanding for details
- Separate consent for different purposes (marketing vs. functionality)
- Allow users to revoke consent as easily as they gave it
- Do not pre-check consent boxes

## Accessibility

- Ensure MFA code inputs are large and easy to type on mobile
- Provide time remaining for TOTP codes visually and for screen readers
- Use `aria-live` for security alerts and notifications
- Ensure trust indicators are perceivable without color alone
- Make recovery flows fully keyboard-navigable

## Anti-Patterns

- **Security theater**: Visual lock icons on non-sensitive pages that do not actually protect anything
- **Arbitrary password complexity**: Requiring symbols and numbers but allowing short passwords
- **Blaming users for breaches**: "You should have enabled MFA" instead of "We are helping you secure your account"
- **Hiding security settings**: MFA and recovery options buried in menus users never find
- **False urgency**: "Your account will be deleted in 24 hours" for routine verification
- **No recovery path**: Account permanently locked because the user lost their phone
- **Jargon-heavy security copy**: "Enable 2FA via TOTP" instead of "Add an authenticator app for extra security"
- **Silent breaches**: Not notifying users when their data is compromised
- **Pre-checked consent boxes**: Violates trust and often regulations
- **Inconsistent security posture**: Strong MFA but weak password recovery bypasses it

## Verify Security UX Quality

Before shipping:

- [ ] Sign-in flow is minimal and forgiving
- [ ] MFA setup is clear and offers multiple methods
- [ ] Password requirements prioritize length over arbitrary complexity
- [ ] Trust indicators are honest and specific
- [ ] Recovery paths are secure but reachable
- [ ] Breach and anomaly notifications are prompt and actionable
- [ ] Consent is informed, granular, and easily revocable
- [ ] Security copy uses plain language, not jargon
- [ ] Alerts are specific enough to act on but not so frequent they become noise
- [ ] The interface makes users feel safe and in control, not punished

© aladicf · MIT · aladicf/better-web-ui

Похожие скиллы

Всё по теме «Безопасность» →
auth0-authentication Mindrally Скилл задаёт агенту правила работы с Auth0: потоки авторизации, Actions, проверка токенов и защита редиректов. CX Codex +1 700установок clerk-expo clerk Скилл, который добавляет вход и регистрацию Clerk в приложения на Expo и React Native. Пригодится, когда нужны готовые экраны авторизации или свои потоки с OTP и MFA. CX Codex +1 14 100установок security-and-hardening addyosmani Помогает проектировать защиту и проверять код на уязвимости при работе с вводом, авторизацией, сессиями и внешними сервисами. Подойдёт перед релизом и при создании функций, которые обрабатывают недоверенные данные. CX Codex +1 70 200установок django-security affaan-m Скилл с правилами безопасности Django: настройки продакшена, аутентификация, права доступа, защита от SQL-инъекций и XSS. Пригодится при ревью и деплое. CX Codex +1 5 000установок owasp-security hoodini Скилл подсказывает агенту, как закрыть дыры из OWASP Top 10: доступ, инъекции, криптография, конфиги. Пригодится, когда пишешь авторизацию или правишь API. CX Codex +1 3 000установок jwt-security Mindrally Скилл задаёт агенту правила создания, проверки и хранения JWT: белый список алгоритмов, обязательные claim-ы, короткие сроки жизни токенов. CX Codex +1 1 600установок

Из того же набора22

harden Прогоняет интерфейс через крайние случаи: длинный текст, ошибки сети, RTL, пустые состояния. Полезен перед выкаткой в прод. CX Codex +1 539установок distill Скилл убирает из UI лишние элементы, опции и функции, оставляя главное. Пригодится, когда экран перегружен контролами и непонятно, что важнее. CX Codex +1 548установок clarify Правит подписи, ошибки, пустые состояния и CTA, чтобы пользователь понимал, что происходит и что делать дальше. CX Codex +1 533установок optimize Скилл находит, почему интерфейс тормозит: медленная загрузка, лаги анимаций, тяжёлые картинки, раздутый бандл. Запускается, когда вы жалуетесь на «тормозит». CX Codex +1 536установок bolder Скилл для тех случаев, когда интерфейс выглядит слишком безопасно и безлико. Разбирает, что именно делает дизайн скучным, и усиливает его. CX Codex +1 535установок delight Добавляет радость и характер в интерфейс: успешные состояния, пустые экраны, загрузку, ховеры. Для случаев, когда базовая вёрстка уже работает. CX Codex +1 523установок quieter Скилл для ИИ-кодинга, который снижает насыщенность, контраст и визуальный шум в интерфейсе, сохраняя иерархию и характер. Пригодится, когда структура уже нормальная, но выглядит крикливо. CX Codex +1 513установок onboard Помогает спроектировать первый запуск продукта: что показать новичку, в каком порядке и как довести его до первого результата. CX Codex +1 521установок

Спонсоры проекта

Компании, которые помогают держать аналитику открытой