anthropics / anthropics/claude-agent-sdk-typescript

Can't define custom slash commands/skills programmatically in SDK options

Aperta
#141 2 commenti 8 reazioni 0 assegnatari Vedi su GitHub
enhancement
Lingua principale
Shell
Stelle
1.8k
Fork
226
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

## Problem

We cannot define custom slash commands/skills in `Options` in the SDK. This is inconsistent with other types of configurations, which we _can_ provide in `Options`:

- `agents?: Record;`
- `mcpServers?: Record;`
- `plugins?: SdkPluginConfig[];`

This prevents us from using custom slash commands and skills when using the SDK, and forces us to define them as project files in `.claude/`.

## Proposed Solution

We need a `commands` field in `Options` of type `SlashCommand` to pass in custom slash commands and skills.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.