Skip to content
Back to skills

Spgr Write Error Ux Spec

ASecurity

Produce an error-ux-spec artifact mapping each internal error category to its user-facing experience, covering plain-language messages, recovery actions, UI treatment, and a centralized message registry. Use when the Resilience Agent must define how failures are communicated to users before any error UI is built.

  • 2 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 11, 2026
ai-agentsgo

Security analysis

A100/100

Scanned November 11, 2026

npx -y skills add z4gunn/springer --skill spgr-write-error-ux-spec --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Spgr Write Error Ux Spec?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Spgr Write Error Ux Spec
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/z4gunn-spgr-write-error-ux-spec/badge)](https://www.skillsdirectory.com/skills/z4gunn-spgr-write-error-ux-spec)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: spgr-write-error-ux-spec
description: Produce an error-ux-spec artifact mapping each internal error category to its user-facing experience, covering plain-language messages, recovery actions, UI treatment, and a centralized message registry. Use when the Resilience Agent must define how failures are communicated to users before any error UI is built.
disable-model-invocation: true
---

# write-error-ux-spec

## Purpose

Convert internal error categories into the user-facing experience for each one. Users do not need to know that a query failed or a request timed out. They need to know what happened in plain language, what they can do next, and that the product owns the failure. Produce one error-ux-spec artifact that the Resilience Agent owns and the Design Agent consumes. The spec is the source of truth for every user-facing error message, so it also seeds a centralized message registry that can be reviewed for consistency and translated for i18n.

This is a Resilience vertical artifact. The Resilience Agent defines the error categories and recovery options. The Design Agent translates them into UI components, so route the design-side recommendation through a consultation rather than editing the Design Agent's artifacts directly.

## Inputs

| Field | Description |
|-------|-------------|
| `error-taxonomy` | Error classification taxonomy from error standards, the list of internal error categories. Read via spgr-read-artifact or spgr-read-file. |
| `user-flows` | The user flows and the error states each flow can encounter. |
| `brand-voice` | Brand voice and tone guidelines that the messages must match. |

## Outputs

| Artifact | Description |
|----------|-------------|
| `error-ux-spec` | Envelope artifact with one entry per error category, plus the message registry. Written via spgr-write-artifact, validated inline via spgr-validate-artifact. |

Each error category entry carries:
- User-facing message in plain language, no technical jargon, never blaming the user.
- Recovery actions available (retry, contact support, go back, try a different action).
- UI treatment (inline error, toast, full-page error, banner).
- User-perceived severity on two axes: blocking versus non-blocking, and permanent versus transient.
- Empty-state versus error-state distinction, since no results is not a system error and is treated differently.
- Retry guidance, present when the error is transient, telling the user it is temporary and offering a low-friction retry.

## Procedure

1. Read the inputs. Pull the error categories from the taxonomy via spgr-read-artifact, the affected flows, and the brand voice guidelines. If the taxonomy is missing, contradictory, or names categories with no recovery path defined, stop and raise spgr-escalate with the precise list of what is missing. Do not invent error categories.
2. For each error category, classify user-perceived severity on both axes (blocking or non-blocking, permanent or transient). This classification drives the message, the recovery actions, and the UI treatment.
3. Write the user-facing message for each category. Apply the message rules: never ship "Something went wrong" alone, since it gives no information and no recovery path. State what happened and what to do, for a generic 500 use a form like "We're having trouble loading this page. Try refreshing, and if the problem persists, contact support." Never blame the user for a server error. Own the failure on the product's behalf ("We couldn't process your request right now"), not on the user's ("Your request failed").
4. Assign recovery actions and UI treatment per category, matched to severity. A transient error offers a retry with minimal friction. A permanent error offers an alternative path or an escalation to support.
5. Specify field-level validation errors as their own treatment. The message names the field and the fix in one sentence ("Enter a date after today", not "Invalid input"), and it is positioned at the field it describes, never only in a banner at the top of the form. A form that fails validation or a submit that fails on the server keeps every value the user entered. Clearing the form on error is a defect. The timing of the validation and the focus move belong to spgr-write-interaction-spec, this step fixes the text and the placement.
6. Separate empty states from error states. For any flow that can return no results, specify the empty-state copy and treatment distinctly from the error-state copy, and confirm the two are never collapsed into one message.
7. Build the error message registry: collect every user-facing message into a single keyed list inside the artifact so the messages can be reviewed for consistency, translated for i18n, and updated in one place rather than hunted through the codebase. Give each message a stable key.
8. Write the artifact via spgr-write-artifact and validate inline with spgr-validate-artifact. Set the per-section confidence map (confirmed, proposed, needs-human-input). Mark any category whose recovery path depends on an unbuilt support channel or an undecided alternative flow as needs-human-input. Record consequential choices with spgr-log-decision.
9. Route the design-facing recommendation to the Design Agent through spgr-tag-vertical-agent as a consultation. Do not edit the Design Agent's component or design artifacts directly. If global reach is in scope, tag the i18n vertical so the registry keys feed translation.

## Notes

- Output type is a spec envelope artifact (error-ux-spec). Its content schema is registered in a later increment, so spgr-validate-artifact applies envelope-only validation for now (header, confidence map, decision log, version). Still call it.
- Version revisions with spgr-version-artifact when the error taxonomy changes or new flows add error states.
- A vertical recommendation to a horizontal agent flows through the registered consultation artifact, not through a direct edit of the receiving agent's artifact.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.