Lyna
SupportBlog
IntroductionFeaturesIntegrationsTips & TricksChangelog
Build

Slash Commands

Type / in the chat input to open the command menu. Slash commands give you quick access to AI actions, mode switches, and specialized workflows.


How to use slash commands

  1. Type / at the beginning of your message
  2. A dropdown appears with all available commands
  3. Arrow keys or continue typing to filter
  4. Press Enter to select
  5. Some commands accept additional input after selection

AI slash commands (11 total)

These are the core commands from the @lyna/ai package. They inject specialized instructions into the AI's context.

Slash command menu showing available commands

Mode commands

CommandShortcutDescription
/askCtrl+Shift+ASwitch to Ask Mode: answers without code changes
/buildCtrl+Shift+BSwitch to Build Mode: implement code changes
/planCtrl+Shift+PSwitch to Plan Mode: outline approach before implementing

See Plan Mode, Build Mode, and Ask Mode for details.

Workflow commands

CommandDescription
/deep-planningMulti-step reasoning with architecture analysis for complex, multi-domain tasks.
/newtaskCondense context and start fresh with a summary of the current conversation.
/newruleCreate or edit project rules in .lyna_ai/rules.md.
/fixAnalyze errors and implement the minimal fix.
/reviewCode review mode. Analyzes uncommitted changes, a commit, branch, or PR for bugs, security, and behavior changes.
/refactorStructured refactoring with safety checks. Preserves behavior while restructuring.
/iterateIteratively improve existing code or UI with focused enhancements.

Context commands

CommandDescription
/explain-changesAnalyze the current git diff and summarize intent, impact, affected areas, and potential issues.

Built-in action commands

These trigger immediate UI actions and aren't part of the AI slash command system:

CommandDescription
/clearStart a new conversation, clearing all context.
/compactSummarize the conversation to save tokens. Useful for long sessions.
/screenshotCapture the current preview and add it to chat as visual context.
/knowledgeOpen the Knowledge modal. See Knowledge.
/rulesOpen the project AI rules file for editing.
/figmaImport designs from Figma. See Figma Import.

These open interactive submenus within the dropdown:

CommandDescription
/skillsBrowse and toggle installed AI skills.
/mcpView and toggle connected MCP servers. See MCP Servers.
/hooksView and toggle AI hooks.

Each submenu lets you manage its feature without leaving the chat. Press Escape or the back button to return to the main list.


Tips

  • Use mode shortcuts: Ctrl+Shift+A/B/P to switch modes without opening the menu.
  • Combine with context: Select an element on the canvas, then type /fix to diagnose that specific component.
  • Use /compact proactively: If responses are getting slower, compact the conversation to free context space.
  • Start complex tasks with /deep-planning: More thorough than /plan for multi-domain work.