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.
In this repository40 other files it gives its agents.
- AGENTS.mdAGENTS.md
- platform-cliSkill
- platform-desktopSkill
- platform-mobileSkill
- platform-pluginSkill
- platform-webSkill
- agentic-security-guardSkill
- architecture-guardSkill
- artifact-analyzerSkill
- boundary-guardSkill
- code-quality-gateSkill
- cognitive-load-auditorSkill
- context-groundingSkill
- copy-auditSkill
- cost-estimatorSkill
- dast-scannerSkill
- database-architectSkill
- design-auditSkill
- design-system-generatorSkill
- design-system-integratorSkill
- environment-preflightSkill
- evidence-gated-blockingSkill
- human-in-the-loopSkill
- lessons-learnedSkill
- mcp-discoverySkill
- meta-judgeSkill
- ponytail-wrapperSkill
- prd-generatorSkill
- prompt-historySkill
- sast-scannerSkill
- sca-secret-scannerSkill
- security-context-managerSkill
- security-gateSkill
- security-hardeningSkill
- snapshot-rollbackSkill
- stack-advisorSkill
- task-breakdownSkill
- tech-spec-writerSkill
- test-suite-auditorSkill
- viewport-qaSkill
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
- Very specific: line 15
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 …
- Very specific: line 19
Every popover, dropdown menu, select, date picker, and combobox MUST use portal={true} (or the library's portal wrapper such as …
- Very specific: line 23
Never mix headless UI libraries within one component tree (for example, a Radix dropdown inside a Base UI modal).
- Very specific: line 25
Write and maintain docs/project/INTERACTION_AUDIT.md listing every interactive component, its designated primitive, its portal …
≈ “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.
Files
UI Interaction Authority
Trigger
Phase 6 (Implementation) -- mandatory before generating any form, input, dropdown, date picker, combobox, popover, modal, or toast.
Process
- Identify Designated Headless Library:
- Read
docs/project/STACK.mdanddocs/project/DESIGN.mdto identify the approved headless UI library (for example, Radix UI, Base UI, or Ark UI).
- Read
- Ban Native Interactive Primitives for Core UI:
- Native
<select>,<input type="date">,<input type="time">,alert(),confirm(), andprompt()are strictly forbidden unless explicitly approved indocs/project/DESIGN.mdwith a written justification.
- Native
- 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 insidedocument.bodyand escapes parentoverflow: hiddencontainers.
- Every popover, dropdown menu, select, date picker, and combobox MUST use
- Enforce Collision Detection:
- Floating elements MUST use a positioning engine (Floating UI or the designated library's built-in collision engine) with
flip,shift, andautoUpdateenabled.
- Floating elements MUST use a positioning engine (Floating UI or the designated library's built-in collision engine) with
- 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.mdand use it consistently.
- 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
- Record Component Compliance:
- Write and maintain
docs/project/INTERACTION_AUDIT.mdlisting every interactive component, its designated primitive, its portal configuration, and its collision-detection setup.
- Write and maintain
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(), orprompt()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(), orprompt()without explicit justification indocs/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.
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.

