# Harden Interfaces for Real-World Edge Cases

Production interfaces often fail when data, language, networks, or users behave unexpectedly. This skill guides Claude, Codex, and Claude Code through practical UI hardening checks.

## Install

```bash
npx skillstore add pbakaus/harden
```

## Metadata

- Status: approved
- Slug: pbakaus-harden
- Skillstore revision: r1
- Version status: missing
- Tree hash: 53d497029c6ebabe6cfb10c9f8d6c2be8e2e62f9eda33e5f23faee13b15adbc7
- Author: pbakaus
- GitHub username: pbakaus
- License: MIT
- Repository: https://github.com/pbakaus/impeccable/tree/main/source/skills/harden/
- Ref: e397ce5a135369cd6def89cb6400d013e2f68f2f
- Supported tools: Claude, Codex, Claude Code
- Audit status: complete
- Agent install advisory: allowed
- Manual install advisory: allowed
- Artifact signature: available
- Audit attestation: unavailable
- Human verification: not\_verified
- Risk factors: external\_commands
- Quality score: 78
- Quality tier: bronze
- Public page: https://skillstore.pages.dev/skills/pbakaus-harden
- Manifest: https://skillstore.pages.dev/api/skills/pbakaus-harden/manifest

## Capabilities

- Guides testing with long text, empty states, special characters, RTL text, and large datasets.
- Provides CSS patterns for truncation, wrapping, flex and grid overflow, logical properties, and reduced motion.
- Recommends Intl APIs and i18n libraries for dates, currency, and pluralization.
- Outlines error handling for network failures, validation errors, API statuses, permissions, and retries.
- Lists manual and automated testing strategies for accessibility, browser support, offline behavior, and visual regression.

## Use Cases

- Harden a Frontend Component: Review buttons, cards, forms, and lists for overflow, empty states, loading states, and error recovery.
- Prepare Designs for Localization: Check layouts for longer translations, RTL languages, different character sets, and locale-specific formats.
- Build an Edge Case Test Plan: Create manual and automated checks for network failures, permissions, large datasets, and accessibility behavior.

## Prompt Templates

### Review a Component

```
Harden the target component for long text, empty data, loading states, error states, and keyboard access. Give specific changes to make.
```

### Check Localization Readiness

```
Review this interface for localization risks. Focus on text expansion, RTL support, character sets, dates, numbers, currency, and pluralization.
```

### Improve Error Recovery

```
Audit this flow for network failures, API errors, validation errors, permission states, retries, and preserved user input.
```

### Create a Hardening Plan

```
Create a prioritized hardening plan for this feature. Include UI fixes, accessibility checks, i18n checks, performance risks, and test coverage.
```

## Limitations

- It is advisory guidance and does not run tests or inspect project code by itself.
- Examples are generic and must be adapted to each application stack.
- It does not replace a complete accessibility, i18n, or performance testing program.
- Developers still need to verify behavior in target browsers, languages, and devices.

## Best Practices

- Test with extreme input before release, including long text, empty values, RTL text, and large item counts.
- Design recovery paths for each major failure state, including network, API, validation, and permission failures.
- Verify hardened behavior with manual checks, automated tests, accessibility tools, and target browser testing.

## Anti Patterns

- Assuming English text length, fixed button widths, or perfect data in production interfaces.
- Showing generic error messages without a clear cause, recovery action, or preserved user input.
- Relying only on client-side validation, color, mouse input, or modern browser features.

## Security Audit

- Audited at: 2026-07-06T20:22:30.109\+00:00
- Summary: All static findings are false positives caused by Markdown code fences, inline code formatting, or frontend layout terminology in SKILL.md. No evidence found of external command execution, system reconnaissance, data exfiltration, prompt injection, or other malicious intent.

## Stats

- Views: 140
- Downloads: 12
- Favorites: 0
- Popularity score: 0
