> ## Documentation Index
> Fetch the complete documentation index at: https://docs.clideck.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Prompt Library

> Save reusable prompts and paste them into any terminal session

The Prompt Library stores prompts you use often. Type `//` in any terminal to pick from your list and paste it in.

## Creating a Prompt

Open the **Prompts** panel from the sidebar rail. Click the **+** button at the top.

Each prompt has two fields:

* **Name** — A short label for the prompt (up to 60 characters). This is what you'll search for.
* **Text** — The full prompt text that gets pasted into the terminal.

Click **Add** to save, or press **Ctrl+Enter** / **Cmd+Enter** from the text field.

## Using a Prompt

There are two ways to paste a prompt into a terminal session.

### Click to paste

Click any prompt in the Prompts panel. The text is sent directly to the active terminal session, and the terminal regains focus.

### Autocomplete with //

Type `//` in any terminal to open the autocomplete dropdown.

1. Type `//` — the first `/` goes to the terminal, the second activates autocomplete and erases the first
2. Start typing to filter by name or prompt text
3. Use **Arrow keys** to navigate the list
4. Press **Enter** or **Tab** to paste the selected prompt
5. Press **Escape** to cancel

The autocomplete searches both prompt names and prompt text, and highlights matching characters in the results.

<Note>
  The `//` trigger only activates when you have at least one prompt saved. If your library is empty, `/` characters pass through to the terminal normally.
</Note>

## Editing and Deleting

Hover over any prompt in the list to reveal the **edit** and **delete** buttons.

* **Edit** — Opens the editor with the existing name and text pre-filled. Click **Save** to update.
* **Delete** — Removes the prompt immediately. There is no confirmation dialog.

## Starter Prompts

New CliDeck installations include three demo prompts: **Update documentation**, **Investigate codebase**, and **Reviewer findings**. These are fully editable — modify them, delete them, or add your own.

<Note>
  Starter prompts are only seeded on first run when no config exists. Existing users keep their current prompt library untouched.
</Note>

## Storage

Prompts are stored in your CliDeck configuration file (`~/.clideck/config.json`) under the `prompts` array. They sync across all connected browser tabs automatically.
