# Build with an AI agent

> Give Claude Code, Codex or Cursor the Songstress extension skill, then ask for the extension you want.

Page: https://songstress.app/docs/develop/ai-agents/

`songstress-extensions` is an Agent Skill that teaches an AI coding agent to build Songstress extensions. It comes
with the SDK, in a Claude Code plugin named `songstress`, and its version follows the SDK's.

It teaches the agent:

- the workflow: `npm create songstress-extension`, `songstress dev`, `check`, `pack`, a release and a listing;
- the rules `songstress check` holds an extension to;
- what to build for each idea: providers, hooks, pages and panels, jobs, routes, sign-in, themes.

For the format itself, it sends the agent to the installed SDK's `SPEC.md` and to these docs as Markdown
([songstress.app/llms.txt](/llms.txt), and each page's `.md`), so it never copies the reference and stays as current
as the SDK.

## Get the skill [#get-the-skill]

### 1. In a new extension [#1-in-a-new-extension]

```sh title="Terminal"
npm create songstress-extension@latest
```

The project it writes holds the skill in `.claude/skills/songstress-extensions/`, which Claude Code picks up by
itself. Its `AGENTS.md` sends other agents, like Codex and Cursor, to the same `SKILL.md`.

### 2. In an extension you already have [#2-in-an-extension-you-already-have]

With an SDK release that carries the skill installed, copy it into your project:

```sh title="Terminal"
cp -R node_modules/songstress/skill/skills/songstress-extensions .claude/skills/
```

## Ask for an extension [#ask-for-an-extension]

Open your agent in the project and say what you want, in plain words:

```txt title="Prompt"
Make a Songstress extension that fetches synced lyrics from lrclib.net.
```

The skill has the agent write the manifest and the code, then check them the way a server will. Before you install
what it made,
read the permissions and hosts it asks for, and run it on your own server with
[`songstress dev`](/docs/develop/cli/). See [Test and debug](/docs/develop/testing/).
