harden

Harden interfaces against edge cases, errors, i18n issues, and text overflow.

Updated Dec 18, 2025
One-click install
npx skills add https://github.com/l0lxl0lw/dotfiles --skill harden-l0lxl0lw
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: harden
Source: https://github.com/l0lxl0lw/dotfiles/tree/main/ai/shared/skills/impeccable/harden
Command: npx skills add https://github.com/l0lxl0lw/dotfiles --skill harden-l0lxl0lw

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Interfaces built for ideal demo data break in production when users enter long names, lose network connectivity, switch to RTL languages, or trigger API errors. This Skill systematically identifies and fixes those resilience gaps before users hit them. ## Core Features & Use Cases - Edge Case Testing: Guides testing with extreme inputs like 100+ character names, emoji, CJK text, empty states, and 1000+ item lists. - Error Handling Patterns: Provides concrete patterns for network failures, HTTP status codes (400/401/403/404/429/500), form validation, and graceful degradation. - Internationalization Support: Covers text expansion budgets, RTL layout with logical CSS properties, Intl API date/number formatting, and pluralization rules. - Use Case: Before shipping a dashboard, run this Skill to verify long German translations don't overflow buttons, API failures show retry options, and screen readers announce dynamic updates. ## Quick Start Ask the AI to harden the checkout form against long text, network errors, and RTL languages.

Frequently Asked Questions about harden

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I handle long text overflow in CSS?

Use text-overflow: ellipsis with overflow: hidden for single-line truncation, or -webkit-line-clamp for multi-line clamping. For flex and grid items, set min-width: 0 to allow shrinking below content size and prevent container overflow.

How do I make a web interface support RTL languages?

Use CSS logical properties like margin-inline-start and padding-inline instead of physical left/right properties so layouts flip automatically. Test with Arabic or Hebrew content and mirror directional icons with transform: scaleX(-1) under [dir="rtl"].

What HTTP error codes should a frontend handle?

Handle 400 with validation messages, 401 by redirecting to login, 403 with a permission error, 404 with a not-found state, 429 with a rate-limit message, and 500 with a generic error plus retry option. Each status needs a distinct user-facing response.

How much space should I budget for translated text?

Budget 30-40% extra space since languages like German typically run 30% longer than English. Avoid fixed widths on text containers and use flexbox or grid layouts that adapt to content length.

Why is client-side validation alone not enough?

Client-side validation can be bypassed by disabling JavaScript or crafting direct API requests. Always validate and sanitize inputs server-side as well to protect against injection attacks and enforce rate limiting.