Build with AI

Slash commands

Type / in the chat to switch modes, run workflows, manage context, open settings and call your own commands and skills.

Slash commands switch modes, run workflows and open settings from the composer. Type / to open the command menu, keep typing to filter it, then press Enter to run a command.

What you can do

  • Open the menu with /, or with Ctrl+Space where your cursor is.
  • Run a command from the menu, or type it in full and send it: both do the same thing.
  • Write a command's name into your message without running it.
  • See commands and skills as colored tags, in your draft and in the messages you send.
  • List every command with /help, check the conversation's size with /context, and compact it with /compact.

Open and use the menu

Type / at the start of your message or after a space. The menu lists every command, grouped by kind, with your installed skills after the groups. Keep typing to filter: the menu matches the command, its name and its description, so /switch finds Switch model.

KeyWhat it does
Up and DownMove through the rows.
EnterRun the selected row, and only that row.
TabWrite the selected name into your message, followed by a space. Nothing runs.
EscapeClose the menu and keep your text. Typing more keeps it closed.
Ctrl+SpaceOpen the menu where your cursor is: on a half-typed name, even one you closed with Escape, or type the / for you.

If you change a name you already picked or completed, the menu opens again on what is left.

Typed or picked, the same result

A command you type in full and send with Enter runs exactly what its menu row runs:

  • Actions such as /clear or /model run in the editor and send nothing to the AI. Add a value after the name: /model followed by a model name, or /effort high.
  • Modes switch the chat mode, then send the rest of your message in that mode: /plan add a pricing page.
  • Workflows, Context and Your commands are sent with your message, and the AI follows the command.
  • A skill name selects that skill and sends the rest of your message with it.

Commands and skills as tags

When a command or an installed skill matches a name exactly, it shows as a colored tag. Each kind has its own color:

ColorKind
PurpleA skill.
BlueA command that comes with Lyna: actions, modes, workflows and context.
GreenThe MCP servers command, /mcp.
OrangeA command you or a plugin wrote.

A tag is deleted whole: press Backspace after or inside it, or Delete before or inside it, and undo brings it back. A skill you pick from the menu joins your message as a purple tag with a remove button. Sent messages keep the same tags: a message that is only a command shows its tag with the command's description under it.

Modes

CommandWhat it does
/buildSwitch to Build mode to make changes.
/planSwitch to Plan mode to outline an approach first.
/askSwitch to Ask mode to ask without changing code.

Workflow

CommandWhat it does
/deep-planningPlan mode with a deeper look at the project structure first. The result is a plan you review and approve.
/newtaskCondense the context and start fresh with the key information.
/newruleCreate or edit project rules.
/fixAnalyze errors and fix them.
/reviewReview code changes for quality and correctness.
/refactorRestructure code safely, then check the result.
/iterateImprove existing code or UI in small rounds.

Context

CommandWhat it does
/explain-changesRead the Git changes and summarize their intent and impact.

Actions

CommandWhat it does
/clearStart a new conversation.
/compactSummarize the conversation now to free room.
/screenshotCapture the preview and add it to the chat.
/doctorDetect and fix errors in your code.
/agent-reviewReview the changes since main for issues: Quick by default, or /agent-review deep. See Agent Review.
/plansOpen the project's saved plans.
/knowledgeOpen project knowledge.
/figmaImport designs from Figma.
/rulesOpen the project's AI rules.
/skillsBrowse and manage skills.
/mcpTurn MCP servers on or off.
/hooksTurn hooks on or off.
/apiCall REST, GraphQL, Auth or Storage endpoints of your Lyna Cloud backend.
/modelSwitch the AI model.
/effortSet the thinking effort.
/contextOpen the details of the context meter.
/diffShow the files changed in this session.
/helpList every command.

Commands with a submenu (Skills, MCP Servers, Hooks and API) open a second list, and typing one of them opens the menu on its row. Choose Back to return.

Help

/help lists every command once, grouped like the menu, with its description in your language.

Context and compaction

/context opens the Context view of the context meter full screen: how much of the window the conversation uses, what takes the room, and when Lyna compacts. Before the first reply it shows a short card instead.

Lyna compacts a long conversation on its own when the context fills up. To do it now, type /compact or choose Compact conversation in the Context view. A short conversation is not compacted: a line says why a summary cannot help yet.

The API command

/api builds a request to your project's backend for you. Pick REST, GraphQL, Auth or Storage, then an action such as List rows or Insert row. Actions that change data (insert, update, delete) ask for your approval before they run. Your project needs a database connected in project settings.

Your commands and skills

  • Your commands appear in their own group, marked User or Plugin. Create them in Settings > AI > Customize > Commands.
  • Skills that match what you type appear in a Skills section after the command groups, so /brand finds a skill named brand-footer.

Need help?

Ask the team, read what changed, or learn from the blog.