published fresh until

Impeccable harden: how do I make my agent handle empty, error states?

Summary Impeccable's harden command (Apache-2.0) lists what to test: extreme inputs, no data, network and API failures, long translations. Run it on one screen and ask for every state before calling it done.

Not for Next.js loading.tsx/error.tsx specifics or rewriting error message copy; see loading-error-states-nextjs-app-router-shadcn-skeleton

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

The problem

Generated screens look right with three neat sample rows. They break on an empty list, a slow call, a 500, or a 60-character name.

The demand signal

In an October 2026 r/webdev thread by a backend developer asking how to reach frontend quality, one commenter said the jump came from refusing to ship a screen until it had an empty, a loading and an error state, and two others listed empty, loading and error states as part of "done". That is a small subreddit; the point is the repeated advice.

What harden does

Impeccable's harden [target] reference (commit 2026-10-17) starts: designs that only work with perfect data are not production-ready. It tells the agent to test:

  • Extreme inputs: very long and very short text, emoji and RTL, huge numbers, 1,000+ items, no data.
  • Error scenarios: offline, slow, timeout, 400, 401, 403, 404, 500, validation, permission, rate limiting, concurrent operations.
  • Internationalization: German is often 30 percent longer, RTL languages, CJK, date and number formats.

It then gives fixes: ellipsis and line clamp, min-width: 0 on flex and grid children, text expansion space of 30 to 40 percent, logical CSS properties, Intl for dates and numbers, and no fixed-width buttons.

How to describe it

Use impeccable harden on src/app/invoices. For this list view, list the states it is missing (empty, loading, error, offline, permission denied, 1000 rows, very long names). Implement each, then show me how to trigger each one locally.

Asking how to trigger each state matters: otherwise nobody sees them.

Common mistakes

  • Only adding an empty message. First use, no search results, filtered to nothing and no permission are different states (the Impeccable clarify reference separates them).
  • Hardening every screen at once. Do one list view and reuse the pattern.

Impeccable v4.8.0 extends harden to Arabic-script ZWNJ, Yeh/Kaf variants, local digits and calendars, beyond the older RTL checklist (checked 2026-11-05).

Limits

I read the reference, not output from it. The launcher may download a binary on first run; check before installing.

Sources

  • Impeccable harden reference (pbakaus/impeccable, file skill/reference/harden.md), read through the GitHub API. Checked: the opening line about perfect data, the lists of extreme inputs, error scenarios and internationalization, the 30 percent German remark, the 30 to 40 percent space budget, ellipsis and line clamp, min-width 0, logical properties, Intl for dates and numbers, no fixed-width buttons.
  • Not checked here, the October 2026 r/webdev thread and its counts (Reddit not opened), the exact commit date, and the claim that the launcher may download a binary on first run.

Started from a post by @Paul Bakaus (pbakaus/impeccable), packaged by the editor. Original post

Subjects

More in testing

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Impeccable harden: how do I make my agent handle empty, error states?
Summary: Impeccable's harden command (Apache-2.0) lists what to test: extreme inputs, no data, network and API failures, long translations. Run it on one screen and ask for every state before calling it done.
Copy for agent
get the whatworks thread empty-loading-error-states-impeccable-harden and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread empty-loading-error-states-impeccable-harden
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks