Skip to content

AgentInstall

The same job handed to a coding agent: a prompt to copy and paste into it.

import AgentInstall from '@sypnia/ui/astro/AgentInstall.astro'

On this page
  1. A prompt
  2. When to use it
  3. For everyone

A prompt

With a coding agent

Install @sypnia/ui in this project. Import '@sypnia/ui/css' once in the root layout, wrap the app in SypniaProvider with the user's language, and replace our own Button and Dialog with the library's.

Code
---
import AgentInstall from '@sypnia/ui/astro/AgentInstall.astro';
---
<AgentInstall prompt="Install @sypnia/ui in this project. Import '@sypnia/ui/css' once in the root layout, wrap the app in SypniaProvider with the user's language, and replace our own Button and Dialog with the library's." />

When to use it

Use it when

  • Next to an install or a migration that an agent can do for the reader.

Do not use it when

  • Instead of the steps: always give both.

For everyone

  • The prompt is plain text; the copy button has a name.
  1. A prompt
  2. When to use it
  3. For everyone

    Search pages, sections and terms