---
title: "List skills"
method: GET
path: "/api/skill"
tags: ["skill"]
---

# List skills

`GET /api/skill`

## Request

- Base URL: `https://opencode.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://opencode.ai/api/skill`
- Auth: none required

Retrieve currently registered skills.

## Query parameters

- `location` object, nullable
  - `directory` string, nullable

## Response `200`

Success

- object
  - `location` LocationPublicRef, required
    - `directory` string, required
  - `data` SkillInfo[], required
    - `id` string, required
    - `name` string, required
    - `description` string
    - `autoinvoke` boolean
    - `path` string, required
    - `content` string, required

## Other responses

- `400`: InvalidRequestError
- `401`: UnauthorizedError
- `404`: LocationNotFoundError

---

[API](https://skmtc.dev/kaaass/apis/opencode.md) - [All operations](https://skmtc.dev/kaaass/apis/opencode/llms.txt) - [OpenAPI document](https://skmtc.dev/kaaass/apis/opencode/revisions/4e083d954707?raw)
