agentleFS
lvdaxianerlvdaxianer/skills/frontend-interaction-guidelines/SKILL.md

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.

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
  1. Very specific:

    Use this skill to make frontend interactions reliable, understandable, and consistent across a product.

    line 8
  2. Distinctive:

    If the reference cannot be read, stop and report that frontend interaction guidelines are unavailable.

    line 17
  3. Distinctive:

    Use implementation mode when building or changing frontend UI behavior.

    line 24
  4. Distinctive:

    Read the checklist reference and apply the relevant dimensions.

    line 29
  5. Distinctive:

    Verify the implemented interaction with realistic slow-network, failure, repeated-click, keyboard, mobile, and empty-data scenarios when …

    line 34
  6. Distinctive:

    Use Review mode when auditing existing frontend interaction experience.

    line 39
  7. Distinctive:

    Read the checklist reference and inspect the relevant dimensions.

    line 42

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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.

  1. Identify the user's core task path and the interaction surface.
  2. Identify high-risk actions: submit, save, delete, publish, pay, upload, batch operations, autosave, search, filters, and infinite scroll.
  3. Read the checklist reference and apply the relevant dimensions.
  4. Define required states before finalizing UI behavior: loading, disabled, success, error, empty, offline, permission denied, and long-running task.
  5. Preserve or create consistent interaction patterns for shared states and actions across pages.
  6. 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.

  1. Identify the page, component, or workflow being reviewed.
  2. Read the checklist reference and inspect the relevant dimensions.
  3. Prioritize findings by user impact and reliability risk.
  4. 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.