Skip to main content
Build your own legal AI skills and make them available to your organization’s agents. Custom skills are stored with vector embeddings and automatically appear in unified search alongside the 870+ curated skills.
Requires authentication. All custom skills endpoints require a Case.dev API key with skills permission scope.

How It Works

Custom skills live in your organization and are the canonical way to manage private skills. When your agents search for skills via /skills/resolve, results from your custom skills are merged with curated skills in a single ranked list. If a custom skill has the same slug as a curated skill, the custom skill takes priority for your organization. Use the /skills API for the full lifecycle: Each custom skill includes:
  • Content in markdown, up to 64KB
  • Vector embedding (generated automatically) for semantic search
  • Tags for categorization and search boosting
  • Metadata for arbitrary key-value data
  • Optional companion files for Skills.sh-style SKILL.md bundles, scripts, templates, and references
  • Version tracking with automatic increment on updates
  • Soft-delete so deleted skills can be recreated

Create a Skill

Request body:

Bundled Skill Files

Use files[] when a skill needs scripts, references, examples, or templates in addition to its root SKILL.md instructions. The root content becomes <slug>/SKILL.md; each companion file is installed at <slug>/<path>.
cURL
Bundled paths must be relative, cannot contain . or .. segments, and cannot be SKILL.md. Send files[] again on PUT /skills/:slug to replace the companion tree; omit files to leave companion files unchanged. Response (201):
Slugs are unique per organization. Reserved slugs (resolve, custom) cannot be used. If you omit slug, one is auto-generated from the skill name.

Read a Skill

Retrieve a skill by slug. For authenticated users, custom skills are checked first, then curated skills.
The response includes a source field indicating whether the skill is "custom" (your organization’s) or "curated" (from the open-source library). For bundled root skills, GET /skills/:slug also includes a bundle object:

Export a Skill Tree

Use GET /skills/:slug/export to inspect the exact files that will be installed into an agent runtime sandbox. Custom skills in your organization are resolved first; curated skills are used as a fallback.
cURL
Response:
Most applications do not need to call export directly. Pass skillSlugs when creating an agent runtime and Case.dev installs the right tree for that sandbox.

Install Skills in Agent Runtimes

When creating an agent runtime through a Case.dev integration that supports skills, pass skillSlugs to install custom or curated skills into the sandbox before the runtime starts. Case.dev installs the root SKILL.md and any companion files into the sandbox’s skill directory before the runtime process starts. Use the same skillSlugs field for any Case.dev runtime that supports skill installation. Case.dev selects the correct sandbox paths for that runtime.

Search Skills

Use /skills/resolve to search across both curated and custom skills. Results are ranked by relevance using semantic search, BM25 text matching, and tag boosting.
Each result includes:
Custom skills with the same slug as a curated skill take priority in your organization’s results. This lets you override curated skills with org-specific versions.

List Custom Skills

List all custom skills in your organization, with optional filtering.
Query parameters: Response:

Update a Skill

Update one or more fields. The version is automatically incremented. If you change content-related fields (name, summary, or content), the embedding is regenerated.
You can also rename a skill’s slug:
cURL
After renaming, the old slug returns 404 and the new slug is active.

Delete a Skill

Soft-deletes a skill. It will no longer appear in search results or be accessible by slug.
Response (200):
Deletion frees the slug. You can create a new skill with the same slug after deleting.

Permissions

Custom skills require the skills permission scope on your API key. Configure permissions when creating API keys in the Console.

Limits

What’s Next?

Browse Curated Skills

Explore 870+ open-source legal skills

API Reference

Full endpoint documentation

Skills Overview

Learn about the curated skills library and MCP setup

Rate Limits

Understand request limits and pricing