frontend-state-and-interaction-design
Skill4 starsChanged 5 months agoApache-2.0View on GitHub
Designs predictable states for loading, empty, error, partial, long-running and approval workflows. Use when implementing async UI, agent tasks, or multi-step forms.
In this repository114 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- accessibility-wcagSkill
- agentic-ux-patternsSkill
- ai-model-governanceSkill
- api-design-and-lifecycleSkill
- apply-laws-of-aiSkill
- bdd-practiceSkill
- browser-testing-with-devtoolsSkill
- business-capability-modelingSkill
- business-information-concept-modelingSkill
- capability-maturity-assessmentSkill
- cdc-and-source-to-stream-ingestionSkill
- ci-cd-and-automationSkill
- cloud-platform-architectureSkill
- code-review-and-qualitySkill
- cognitive-bias-reviewSkill
- conceptual-data-modelingSkill
- context-engineeringSkill
- data-contract-designSkill
- data-governance-and-qualitySkill
- data-integration-and-interoperabilitySkill
- data-lifecycle-and-retention-managementSkill
- data-lineage-and-provenanceSkill
- data-product-dashboard-designSkill
- data-product-designSkill
- data-security-and-privacy-architectureSkill
- ddd-practiceSkill
- deprecation-and-migrationSkill
- design-system-practiceSkill
- documentation-and-adrsSkill
- dora-four-keysSkill
- dry-principleSkill
- eip-integration-validationSkill
- evaluation-and-monitoringSkill
- event-driven-architectureSkill
- event-governance-and-lineageSkill
- event-modelingSkill
- event-streaming-platform-designSkill
- exception-handling-and-recoverySkill
- finops-practiceSkill
- git-workflow-and-versioningSkill
- goal-setting-and-monitoringSkill
- guardrails-safety-patternsSkill
- human-in-the-loopSkill
- idea-refinementSkill
- incident-response-and-postmortemsSkill
- incremental-implementationSkill
- infrastructure-as-codeSkill
- integration-message-constructionSkill
- inter-agent-communication-a2aSkill
- kiss-principleSkill
- knowledge-graph-ragSkill
- knowledge-retrieval-ragSkill
- krag-evaluation-governanceSkill
- krag-ingestion-graph-constructionSkill
- krag-retrieval-answeringSkill
- krag-system-designSkill
- lakehouse-and-medallion-architectureSkill
- learning-and-adaptationSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 8 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Use this skill when implementing async flows, long-running jobs, background workflows, forms, dashboards, approval flows, optimistic …
- Distinctive: line 27
Test transitions, not just final rendered output.
- Very specific: line 31
Consider idle, loading, validating, submitting, running, awaiting_approval, success, partial_success, empty, warning, error, denied, …
- Distinctive: line 35
Do not show a spinner with no context for long-running work.
- Distinctive: line 36
Do not collapse policy denial, validation failure and system error into the same message.
- Distinctive: line 37
Do not lose user-entered data on validation failure.
- Distinctive: line 38
Do not use optimistic updates for irreversible or high-risk operations.
- Distinctive: line 39
Do not allow double submission unless the action is idempotent.
- Distinctive: line 40
Do not hide partial success where some records, rules or batches failed.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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
- Identify all relevant states.
- Define state transitions explicitly.
- Make the current state visible.
- Provide recovery actions for errors where possible.
- Preserve user input during recoverable failures.
- Distinguish empty, loading, error, denied, partial and complete states.
- For long-running jobs, show progress, status, timestamps and next update behaviour.
- For destructive or high-risk actions, require confirmation.
- For optimistic updates, provide rollback or reconciliation.
- 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
Verification
- States and transitions implemented listed.
- Recovery options and high-risk controls documented.
- Tests or manual checks performed.
- Residual interaction risks stated.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

