Commands
OpenCode slash commands defined in this repo.
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 |
/bro |
Re-pitch the previous response plainly, concisely, and with enough context | default |
/check-skill-updates |
Check imported skills for upstream updates | default |
/code-review |
Review current branch work with the code-review skill and BranchContextPlugin context | reviewer |
/commit-push-watch |
Split current changes into coherent commits, push, then watch workflows | default |
/commit-push |
Split current changes into coherent commits and push without workflow watchers | default |
/commit |
Split current changes into coherent commits via the dot git-commit gateway | default |
/debug-frontend |
Debug browser-specific UI issues with Chrome DevTools tools first | default |
/explore-codebase |
Explore a codebase topic with the task explore subagent | default |
/fix-workflows |
Diagnose and fix recent GitHub Actions failures, optionally scoped to a workflow or run | default |
/grill |
Stress-test a plan, decision, or idea with light or full question rounds | 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 and codebase stack context and optionally execute an instruction | default |
/inject-stack |
Inject codebase stack context and optionally execute an instruction | default |
/investigate |
Investigate a topic, issue, or area without editing by default | default |
/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 |
/plannotator-annotate |
Open interactive annotation UI for a file, folder, or URL | default |
/plannotator-last |
Annotate the last assistant message | default |
/plannotator-review |
Open interactive code review for current changes or a PR URL; pass –git to force Git in JJ workspaces | default |
/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 |
/research |
Research a topic from primary sources and compare evidence where judgement is involved | researcher |
/reset-branch-reapply |
Reset branch to default and reapply current diff staged | build |
/session-reference |
Load another OpenCode session into this conversation by its sidebar title | default |
/update-docs |
Keep documentation current with recent code changes, via Context MCP and delegated investigation | default |