Commands
Commands are thin routing prompts: they name an agent, declare required skills or injected context, and define the output shape. They are loaded from ~/.config/opencode/commands/.
| Command | Description | Agent |
|---|---|---|
/all-lit-skills | Apply all Lit rendering skills in current git scope | default |
/all-ts-skills | Apply all TypeScript-specific skills in current git scope | default |
/check-skill-updates | Check imported skills for upstream updates | default |
/debug-frontend | Debug browser-specific UI issues with Chrome DevTools tools first | ask |
/explore-codebase | Explore a codebase topic with the task explore subagent | ask |
/fallow-audit | Audit changed JavaScript or TypeScript code with Fallow | ask |
/fallow-project-analyse | Analyse a JavaScript or TypeScript project with Fallow | ask |
/grill | Stress-test a proposed change with one-question-at-a-time planning questions | grill |
/handoff | Write a handoff document for the next agent session | default |
/handoffs-list | List handoff notes for the current repository | default |
/home-assistant/all-frontend-skills | Apply all Home Assistant frontend skills in current git scope | default |
/home-assistant/lazy-context | Review and fix Home Assistant frontend lazy-context and memoization usage in current git scope | default |
/home-assistant/list-components | Migrate Home Assistant list components from MWC to new primitives in current git scope | default |
/home-assistant/lit-rendering | Review and fix Home Assistant Lit rendering and picker callback-shape patterns in current git scope | default |
/home-assistant/replace-spacing | Replace hardcoded spacing values with ha-space tokens from core.globals.ts | default |
/import-external-skill | Import or review external skills for the local skill library | default |
/improve-codebase-architecture | Review a codebase area for architectural friction and focused structural improvements | plan |
/inject-context | Inject branch context and optionally execute an instruction | default |
/investigate | Investigate a topic, issue, or area without editing by default | ask |
/note-append | Append new notes to an existing note file for the current repository | default |
/note-create | Create a new note for the current repository in your Obsidian notes vault | default |
/note-reference | Load one or more notes, relevant skills, and next steps for the current repository | default |
/notes-list | List notes for the current repository, optionally filtered by tag | default |
/notes-search | Search notes for the current repository by topic, keyword, or tag | default |
/plan | Manual entrypoint to native plan mode from the current conversation context | plan |
/refactor-cleanup-variables | Refactor - inline and remove unnecessary variables from current git scope | refactorer |
/refactor-current-work | Refactor current branch work while preserving behaviour | refactorer |
/refactor-enforce-types | Refactor - enforce TypeScript type safety in current git scope | refactorer |
/refactor-remove-single-use | Refactor - inline and remove safe single-use functions from current git scope | refactorer |
/reset-branch-reapply | Reset branch to default and reapply current diff staged | build |
/review-current-work | Review current branch work with BranchContextPlugin context | reviewer |