Skill library

Agent skill Review & testing

Build Primitive

Review the accessibility of visible web interface elements and interactions.

  • Accessibility
  • Interaction design
  • Design systems

Install the skill

Installation method

Run the command from your project root with Node.js and npm.

npx skills@latest add https://github.com/PrototyperAI/prototyper-ui/tree/main/apps/docs/skill/build-primitive --skill build-primitive --agent claude-code --yes

Check this file in your project.claude/skills/build-primitive/SKILL.md

Other ways to install
  • Choose an assistant interactively

    npx skills@latest add https://github.com/PrototyperAI/prototyper-ui/tree/main/apps/docs/skill/build-primitive --skill build-primitive

    Select your assistant and choose the project installation scope.

    Official instructions

The tested Skills CLI 1.10.0 requires Node.js 22.20 or later. Bring a project, a local preview and real inputs. Verify the installed Skill files and project versions first.

View operation manual

What this skill helps with

  • Review the accessibility of visible web interface elements and interactions.

Good for

  • Accessible interfaces
Goal
Decide whether to build a new interactive primitive
Inputs
A control contract, existing primitives and unsupported behavior
Acceptance
Exercise pointer and keyboard interaction, disabled behavior, focus entry and return, and a controlled-state example. Check the real DOM output against the approved semantic contract.
Skill name
build-primitive

Start with one task that can be reviewed

Open-ended request

Use this Skill to improve my whole page.

There is no clear scope, existing behavior or acceptance target.

A scoped pilot

  1. Decide whether to build a new interactive primitive
  2. A control contract, existing primitives and unsupported behavior

Build Primitive operation manual

Decide whether to build a new interactive primitive

A control contract, existing primitives and unsupported behavior

  1. Check real inputs and the baseline

    A control contract, existing primitives and unsupported behavior

    Prompt · Step 1
    Use PrototyperAI’s build-primitive and read the installed SKILL.md. The scope is [Project and target surface]. Review [Required control] and check the existing library and native elements first. Use the installed decision gate to identify a concrete gap. Write the applicable semantic and keyboard contract before styling.
  2. Apply the documented technique

    Decide whether to build a new interactive primitive

    Prompt · Step 2
    Use PrototyperAI’s build-primitive and read the installed SKILL.md. The scope is [Project and target surface]. If the existing library cannot supply [Confirmed gap], implement a scoped primitive with its state transitions, focus behavior and styling hooks. Unit-test public props or callbacks and use the simplest relevant control template.
  3. Review the actual result

    Exercise pointer and keyboard interaction, disabled behavior, focus entry and return, and a controlled-state example. Check the real DOM output against the approved semantic contract.

    Prompt · Step 3
    Use PrototyperAI’s build-primitive and read the installed SKILL.md. The scope is [Project and target surface]. Exercise pointer and keyboard interaction, disabled behavior, focus entry and return, and a controlled-state example. Check the real DOM output against the approved semantic contract.

Look up a specific workflow question

Use the real project inputs and results to decide.

Find the required inputsSKILL.md
Command or reference
Decide whether to build a new interactive primitive
Examples
A control contract, existing primitives and unsupported behavior
Review the outcomeVerify
Command or reference
Decide whether to build a new interactive primitive
Examples
Exercise pointer and keyboard interaction, disabled behavior, focus entry and return, and a controlled-state example. Check the real DOM output against the approved semantic contract.

Troubleshooting and FAQ

What if the required project inputs are absent?

Check the publisher instructions and current project first. Name the missing inputs and the verification they affect.

How do I check the result?

Exercise pointer and keyboard interaction, disabled behavior, focus entry and return, and a controlled-state example. Check the real DOM output against the approved semantic contract.