AGENTS.md
Give coding agents project instructions for component selection, implementation and verification.
On this page
Add project instructions
Merge the relevant sections into the consuming project’s AGENTS.md alongside its framework, commands and import aliases.
File contents
MARKDOWN
# Interfaces DS project instructions
Use the Interfaces DS registry for React UI in this project. Preserve the project's import aliases, theme choice and existing component customizations.
## Find the component
When the Interfaces DS MCP server is connected, call `list_components` with task words, then call `get_component` with a returned name. Use `get_guide` for a composition recipe or design rules and `get_theme` for tokens. If the tools are unavailable, start at `docs/interfaces-ds/llms.txt` in the project, or browse the public index at https://docs.interfacesds.com/llms.txt. Follow the component entry for its import path, parts, props and usage example. Read the installed source for inherited props, event details and ref forwarding.
## Implement the interaction
The installer reads INTERFACES_DS_LICENSE_KEY from the environment. Never read or print the key. If access fails, point the user to Quick start to configure it privately.
Install missing entries using the @interfaces-ds namespace configured in the project's components.json. Let the installer resolve shared styles, utilities and component dependencies. Import from the installed local module. For interactive examples in a React Server Components application, put the event handlers and state in a client component.
Use Button for actions and a link for navigation. Use Select for a value, Dropdown Menu for commands, and Dialog for a task that needs focus. Follow the trigger composition shown for that component. Give inputs persistent labels and icon buttons accessible names.
## Verify the result
Open the actual application route. Complete the primary action with the keyboard, check its visible effect, and try cancellation. Check the accessible name, focus return and narrow-screen layout. Use the project's DESIGN.md for geometry, theme roles and visual acceptance criteria.