Agent skill
harden-pro
Master of Interface Resilience & Production Edge Cases. Expert in error handling, internationalization (i18n), and extreme data constraints.
Install this agent skill to your Project
npx add-skill https://github.com/YuniorGlez/gemini-elite-core/tree/main/skills/harden-pro
SKILL.md
🛡️ 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.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
filesystem-context
Uso del sistema de archivos como extensión de la ventana de contexto, persistencia de planes, comunicación entre sub-agentes y carga dinámica de habilidades.
git-flow
Senior Workflow Architect. Master of Trunk-Based Development, Stacked Changes, and 2026 Branching Strategies.
track-master
Senior Progress Analyst & Conductor Strategist. Expert in Predictive Project Tracking and Agentic Milestone Management for 2026.
artifact-janitor
Senior Build Cleanup & System Optimization Specialist. Expert in reclaiming disk space and resolving build corruption in 2026 ecosystems.
openapi-pro
Senior API Architect & Integration Engineer for 2026. Specialized in Type-Safe API contracts using OpenAPI 3.1, Zod-First schema derivation, and automated TypeScript client generation. Expert in bridging the gap between Hono backends and Next.js 16 frontends using `openapi-fetch`, `orval`, and unified monorepo type-sharing.
seo-pro
Senior SEO Architect & Content Strategist. Expert in SGE Optimization, E-E-A-T Standards, and Semantic Entity SEO for 2026.
Didn't find tool you were looking for?