---
title: "List Slash Commands"
method: GET
path: "/api/slash-commands"
---

# List Slash Commands

`GET /api/slash-commands`

## Response `200`

Successful Response

- SlashCommandListResponse
  - `commands` SlashCommandResponse[], required
    - `description` string, required
    - `name` string, required
    - `prompt` string, required
    - `syncTargets` SlashSyncEntryResponse[], required
      - `error` string, nullable
      - `path` string, required
      - `status` 'synced' | 'removed' | 'not_selected' | 'blocked_manual_file' | 'blocked_modified_file' | 'missing' | 'drifted' | 'failed', required
      - `target` 'opencode' | 'claude' | 'cursor' | 'codex', required
  - `defaultTargets` string[], required
  - `reviewCommands` SlashCommandReviewResponse[], required
    - `actions` string[], required
    - `canImport` boolean, required
    - `commandExists` boolean, required
    - `description` string, required
    - `error` string, nullable
    - `kind` 'unmanaged' | 'drifted' | 'missing', required
    - `name` string, required
    - `path` string, required
    - `prompt` string, required
    - `reviewRef` string, required
    - `target` 'opencode' | 'claude' | 'cursor' | 'codex', required
    - `targetLabel` string, required
  - `storePath` string, required
  - `syncStatePath` string, required
  - `targets` SlashTargetResponse[], required
    - `available` boolean, required
    - `defaultSelected` boolean, required
    - `docsUrl` string, required
    - `enabled` boolean, required
    - `fileGlob` string, required
    - `id` 'opencode' | 'claude' | 'cursor' | 'codex', required
    - `invocationPrefix` string, required
    - `label` string, required
    - `outputDir` string, required
    - `renderFormat` 'frontmatter_markdown' | 'cursor_plaintext', required
    - `rootPath` string, required
    - `scope` 'global' | 'project', required
    - `supportNote` string, nullable
    - `supportsFrontmatter` boolean, required

---

[API](https://skmtc.net/mode-io/apis/skill-manager.md) · [All operations](https://skmtc.net/mode-io/apis/skill-manager/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mode-io/skill-manager/versions/a2b29a5aa8b4/schema)
