frontend-interaction-guidelines
Skill1 starsChanged 5 months agoMITView on GitHub
Use for frontend interaction implementation and frontend interaction review: pages, components, forms, modals, lists, dashboards, editors, workflows, buttons, loading, empty states, submit/delete actions, debounce/throttle, keyboard behavior, motion, responsive interaction, accessibility interaction quality, operation reliability, and cross-page state consistency.
In this repository11 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- backend-reliability-guidelinesSkill
- code-review-specSkill
- commitSkill
- dddSkill
- development-workflowSkill
- logging-boundariesSkill
- package-backupSkill
- product-managerSkill
- story-lineSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 6 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
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
- Very specific: line 8
Use this skill to make frontend interactions reliable, understandable, and consistent across a product.
- Distinctive: line 17
If the reference cannot be read, stop and report that frontend interaction guidelines are unavailable.
- Distinctive: line 24
Use implementation mode when building or changing frontend UI behavior.
- Distinctive: line 29
Read the checklist reference and apply the relevant dimensions.
- Distinctive: line 34
Verify the implemented interaction with realistic slow-network, failure, repeated-click, keyboard, mobile, and empty-data scenarios when …
- Distinctive: line 39
Use Review mode when auditing existing frontend interaction experience.
- Distinctive: line 42
Read the checklist reference and inspect the relevant dimensions.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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 Interaction Guidelines
Use this skill to make frontend interactions reliable, understandable, and consistent across a product. This skill complements visual design skills: it focuses on behavior, states, feedback, recovery, and interaction quality.
Required Reference
Read frontend-interaction-guidelines/references/interaction-checklist.md
before substantive frontend interaction implementation or review decisions.
If the reference cannot be read, stop and report that frontend interaction guidelines are unavailable.
Mode Selection
Implementation mode
Use implementation mode when building or changing frontend UI behavior.
- Identify the user's core task path and the interaction surface.
- Identify high-risk actions: submit, save, delete, publish, pay, upload, batch operations, autosave, search, filters, and infinite scroll.
- Read the checklist reference and apply the relevant dimensions.
- Define required states before finalizing UI behavior: loading, disabled, success, error, empty, offline, permission denied, and long-running task.
- Preserve or create consistent interaction patterns for shared states and actions across pages.
- Verify the implemented interaction with realistic slow-network, failure, repeated-click, keyboard, mobile, and empty-data scenarios when applicable.
Review mode
Use Review mode when auditing existing frontend interaction experience.
- Identify the page, component, or workflow being reviewed.
- Read the checklist reference and inspect the relevant dimensions.
- Prioritize findings by user impact and reliability risk.
- Report findings with this severity grouping:
必须修复: Causes misoperation, data loss, duplicate submission, inaccessible interaction, broken recovery, or blocked core flow.应该修复: Clearly harms speed, clarity, consistency, feedback, or stability.可优化: Improves polish, delight, expert efficiency, or perceived responsiveness.
Non-Negotiable Interaction Rules
- Submit, save, publish, pay, upload, delete, and batch actions must protect against repeated triggering and slow networks.
- Destructive or irreversible actions must not rely only on debounce; use confirmation, undo, or clear consequence communication.
- Frontend debounce/throttle does not replace backend idempotency when duplicate requests can change data.
- Optimistic updates must include failure rollback or visible recovery.
- The same product must use consistent loading, empty, error, success, disabled, confirmation, destructive action, offline, permission-denied, and long-running task patterns across pages unless there is an explicit product reason to differ.
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.

