# Frontend State And Interaction Design

> Designs predictable states for loading, empty, error, partial, long-running and approval workflows. Use when implementing async UI, agent tasks, or multi-step forms.

- **Type:** Skill
- **Install:** `agentstack add skill-mmccalla-coding-agent-skill-library-frontend-state-and-interaction-design`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [mmccalla](https://agentstack.voostack.com/s/mmccalla)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** Apache-2.0
- **Upstream author:** [mmccalla](https://github.com/mmccalla)
- **Source:** https://github.com/mmccalla/coding-agent-skill-library/tree/main/skills/frontend-state-and-interaction-design

## Install

```sh
agentstack add skill-mmccalla-coding-agent-skill-library-frontend-state-and-interaction-design
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Frontend State and Interaction Design

## When to use

Use this skill when implementing async flows, long-running jobs, background workflows, forms, dashboards, approval flows, optimistic updates, error recovery, retry actions, partial success states or agent task execution.

## Objective

Make frontend behaviour predictable, recoverable and transparent across all meaningful states.

## Procedure

1. Identify all relevant states.
2. Define state transitions explicitly.
3. Make the current state visible.
4. Provide recovery actions for errors where possible.
5. Preserve user input during recoverable failures.
6. Distinguish empty, loading, error, denied, partial and complete states.
7. For long-running jobs, show progress, status, timestamps and next update behaviour.
8. For destructive or high-risk actions, require confirmation.
9. For optimistic updates, provide rollback or reconciliation.
10. Test transitions, not just final rendered output.

## Required states

Consider `idle`, `loading`, `validating`, `submitting`, `running`, `awaiting_approval`, `success`, `partial_success`, `empty`, `warning`, `error`, `denied`, `cancelled`, `retrying` and `stale`.

## Rules

- Do not show a spinner with no context for long-running work.
- Do not collapse policy denial, validation failure and system error into the same message.
- Do not lose user-entered data on validation failure.
- Do not use optimistic updates for irreversible or high-risk operations.
- Do not allow double submission unless the action is idempotent.
- Do not hide partial success where some records, rules or batches failed.

## Optional overlay

For product-specific DataOps/MCP examples, load `skills_docs/overlays/mas-dataops-mcp-overlay.md`.

## References

- [Nielsen Norman Group — Response Times: The 3 Important Limits](https://www.nngroup.com/articles/response-times-3-important-limits/)

## Verification

- [ ] States and transitions implemented listed.
- [ ] Recovery options and high-risk controls documented.
- [ ] Tests or manual checks performed.
- [ ] Residual interaction risks stated.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [mmccalla](https://github.com/mmccalla)
- **Source:** [mmccalla/coding-agent-skill-library](https://github.com/mmccalla/coding-agent-skill-library)
- **License:** Apache-2.0

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-mmccalla-coding-agent-skill-library-frontend-state-and-interaction-design
- Seller: https://agentstack.voostack.com/s/mmccalla
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
