harden-pro
π‘οΈ Skill: Harden Pro (v1.0.0)
Executive Summary
harden-pro is the guardian of interface stability. While ui-ux-pro focuses on the "Happy Path", harden-pro builds for Production Reality. This skill focuses on error handling, internationalization (text expansion/RTL), responsive text overflow, and network resilience. A hardened interface never breaks, it gracefully adapts.
π The Resilience Protocol
- Extreme Input Test: Simulate very long/short text, special characters, and massive datasets.
- Error Scenario Audit: Map network failures, API timeouts, and validation errors.
- i18n Validation: Check for text expansion (German/RTL) and logical properties.
- Empty State Design: Ensure every feature has a teaching empty state.
- Sanitization: Validate and sanitize all user-facing inputs.
π οΈ Mandatory Standards (2026)
1. Text Resilience (CSS)
- Rule: Never use fixed
widthorheightfor text containers. - Protocol: Use
min-width: 0for flex/grid items to prevent overflow. Useline-clampfor multi-line truncation andhyphens: autofor long strings.
2. Logical Properties (RTL Support)
- Rule: Avoid
left/right/width/heightbased margins/padding. - Protocol: Use
margin-inline,padding-block,inset-inline-start. This ensures automatic support for Arabic, Hebrew, and other RTL scripts.
3. Graceful Error States
- Rule: No generic "Error occurred" messages.
- Protocol: Every error MUST provide:
- Clear explanation of what happened.
- Actionable recovery (Retry/Home button).
- Friendly tone (Human-grade UX writing).
π Show, Don't Just Tell (Implementation Patterns)
Resilient Component (React 19)
export function HardenList({ items, isLoading, error, onRetry }) {
if (isLoading) return <SkeletonList count={5} />;
if (error) return (
<div className="p-6 border-red-500 bg-red-50 rounded-xl" role="alert">
<p className="text-red-900 font-medium">Failed to load content.</p>
<button onClick={onRetry} className="mt-2 text-red-700 underline">Try again</button>
</div>
);
if (items.length === 0) return (
<div className="flex flex-col items-center p-12 text-center">
<IllustrationEmpty className="w-32 h-32 opacity-50" />
<p className="mt-4 text-slate-600">No items found. Create your first one to get started.</p>
</div>
);
return (
<ul className="grid gap-4">
{items.map(item => (
<li key={item.id} className="min-w-0 break-words">
{item.text}
</li>
))}
</ul>
);
}
π« The "Do Not" List (Anti-Patterns)
- DO NOT assume English-length text. Always test +30% expansion.
- DO NOT ignore network timeouts. Always implement loading/error boundaries.
- DO NOT leave actions without feedback (Spinners/Optimistic UI).
- DO NOT use absolute positioning without considering overflow.
- DO NOT trust client-side data only.
π Progressive Disclosure
- Impeccable DNA: High-fidelity design standards.
- i18n & Logical Properties: Global-first engineering.
- Error Boundary Patterns: React 19 resilience.
More from yuniorglez/gemini-elite-core
filament-pro
Master of Filament v4 (2026), specialized in Custom Data Sources, Nested Resources, and AI-Augmented Admin Panels.
80remotion-expert
Senior Specialist in Remotion v4.0+, React 19, and Next.js 16. Expert in programmatic video generation, sub-frame animation precision, and AI-driven video workflows for 2026.
59tailwind4-expert
Senior expert in Tailwind CSS 4.0+, CSS-First architecture, and modern Design Systems. Use when configuring themes, migrating from v3, or implementing native container queries.
49pdf-pro
Master of PDF engineering, specialized in AI-driven extraction, high-fidelity Generation (Puppeteer), and PDF 2.0 Security.
46threejs-expert
Senior WebGPU & 3D Graphics Architect for 2026. Specialized in Three.js v172+, WebGPU-first rendering, TSL (Three Shader Language), and high-performance React 19 integration via `@react-three/fiber` and `@react-three/drei`. Expert in building immersive, low-latency, and accessible 3D experiences for the modern web.
37ui-ux-specialist
Senior Accessibility & Frontend Engineer. Expert in WCAG 2.2 standards, Semantic HTML, and Inclusive Design for 2026.
37