agentleFS
tanbopptanbopp/ai-development-framework/.agents/skills/ui-interaction-authority/SKILL.md

ui-interaction-authority

Skill1 starsChanged 19 days agoMITView on GitHub

Enforces designated headless UI primitives, portal rendering, collision detection, and single-library consistency in Phase 6 while banning unapproved native form and dialog primitives.

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 0 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read docs/project/STACK.md and docs/project/DESIGN.md to identify the approved headless UI library (for example, Radix UI, Base UI, or Ark …

    line 15
  2. Very specific:

    Every popover, dropdown menu, select, date picker, and combobox MUST use portal={true} (or the library's portal wrapper such as …

    line 19
  3. Very specific:

    Never mix headless UI libraries within one component tree (for example, a Radix dropdown inside a Base UI modal).

    line 23
  4. Very specific:

    Write and maintain docs/project/INTERACTION_AUDIT.md listing every interactive component, its designated primitive, its portal …

    line 25

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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

UI Interaction Authority

Trigger

Phase 6 (Implementation) -- mandatory before generating any form, input, dropdown, date picker, combobox, popover, modal, or toast.

Process

  1. Identify Designated Headless Library:
    • Read docs/project/STACK.md and docs/project/DESIGN.md to identify the approved headless UI library (for example, Radix UI, Base UI, or Ark UI).
  2. Ban Native Interactive Primitives for Core UI:
    • Native <select>, <input type="date">, <input type="time">, alert(), confirm(), and prompt() are strictly forbidden unless explicitly approved in docs/project/DESIGN.md with a written justification.
  3. Enforce Portal Rendering:
    • Every popover, dropdown menu, select, date picker, and combobox MUST use portal={true} (or the library's portal wrapper such as <Select.Portal> / <Popover.Portal>) so floating content renders inside document.body and escapes parent overflow: hidden containers.
  4. Enforce Collision Detection:
    • Floating elements MUST use a positioning engine (Floating UI or the designated library's built-in collision engine) with flip, shift, and autoUpdate enabled.
  5. Enforce Single Library Consistency:
    • Never mix headless UI libraries within one component tree (for example, a Radix dropdown inside a Base UI modal). Pick the single library specified in docs/project/STACK.md and use it consistently.
  6. Record Component Compliance:
    • Write and maintain docs/project/INTERACTION_AUDIT.md listing every interactive component, its designated primitive, its portal configuration, and its collision-detection setup.

Output Contract

docs/project/INTERACTION_AUDIT.md listing every interactive UI component and confirming designated-library primitive usage, portal={true} (or equivalent) rendering, collision detection (flip, shift, autoUpdate), and single-library consistency.

Checklist

  • Designated headless UI library identified from docs/project/STACK.md
  • Zero unapproved native <select>, <input type="date">, <input type="time">, alert(), confirm(), or prompt() calls
  • portal={true} (or equivalent) verified on every dropdown, select, date picker, popover, and combobox
  • Positioning engine collision detection (flip, shift, autoUpdate) enabled on every floating element
  • Single headless UI library maintained across all component trees
  • All interactive components logged in docs/project/INTERACTION_AUDIT.md

Prohibitions

  • Defaulting to native browser <select>, <input type="date">, <input type="time">, alert(), confirm(), or prompt() without explicit justification in docs/project/DESIGN.md.
  • Rendering popovers, selects, or date pickers inline inside clipped containers without a portal and collision detection.
  • Mixing competing headless primitive libraries inside the same application component tree.

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.