customizing-commands
БесплатноБез исполняемых скриптовНе проверенCreates, edits, and enables Letta Code mod-provided slash commands. Use when the user asks to add a custom /command, slash command, command shortcut, scoped…
от letta-ai★ 3 947 звёзд на GitHubОб этом скилле
Customizing Commands
Use this as the command-specific entrypoint for local mod slash commands. For broader mod work, recipes live in ../creating-mods/references/commands.md, ../creating-mods/references/architecture.md, ../creating-mods/references/ui.md, and ../creating-mods/references/plan-mode.md.
Mod files live in:
${LETTA_CONFIG_DIR:-$HOME/.letta}/mods/
Use a focused file name, e.g. ${LETTA_CONFIG_DIR:-$HOME/.letta}/mods/review.ts or ${LETTA_CONFIG_DIR:-$HOME/.letta}/mods/commands.ts.
First decide whether a command is right
| User wants | Build |
|---|---|
/foo sends a prompt or shows local output |
Mod command |
/foo starts a reusable agent workflow |
Skill + thin mod command |
| Agent/model should autonomously call the capability | Mod tool, not a command |
| Command shows transient progress/results | Mod command + panel |
| Command needs model output while the main agent is busy | runWhenBusy: true command + forked ctx.conversation |
If the command is a reusable workflow like /goal, put the workflow instructions in a skill and keep the mod command as a small launcher/prompt.
Workflow
- Inspect
${LETTA_CONFIG_DIR:-$HOME/.letta}/mods/for related command files. - Preserve unrelated mod code; create a focused new file if merging is messy.
- Register with
letta.commands.register()and guard withletta.capabilities.commands. - Return the unregister function, or a disposer that calls it plus any timer/panel cleanup.
- Tell the user the exact file path changed and to run
/reload.
Default prompt command
export default function activate(letta) {
if (!letta.capabilities.commands) return;
return letta.commands.register({
id: "review",
description: "Review current git changes",
args: "[focus]",
run(ctx) {
const focus = ctx.args.trim();
return {
type: "prompt",
content: focus
? `Review current git changes. Focus on ${focus}.`
: "Review current git changes. Focus on correctness issues.",
systemReminder: true,
};
},
});
}
Command result types
type ModCommandResult =
| { type: "prompt"; content: string; systemReminder?: boolean }
| { type: "output"; output: string; success?: boolean }
| { type: "handled" };
prompt: sends content to the agent. Use for normal slash shortcuts.output: prints local text and does not contact the agent.handled: command handled its own side effects/UI; common for panel commands.
Rules
- Command IDs omit the slash:
id: "review", not"/review". - Use lowercase slugs with letters, numbers, and hyphens.
- Do not register built-in command IDs.
runWhenBusy: truecommands must not returnpromptwhile the main agent is busy; use scoped conversation helpers/panels and returnhandled.showInTranscript: falsecommands should usually returnhandled, notprompt.- Do not import Letta Code app internals.
- Do not do surprising side effects on startup; mods activate on app start and
/reload.
More recipes
- Simple output command, panel command, busy-safe conversation command:
../creating-mods/references/commands.md - Complex command architecture, state, cleanup:
../creating-mods/references/architecture.md - Panel/status UI patterns:
../creating-mods/references/ui.md - Worked plan-mode command/tool composition:
../creating-mods/references/plan-mode.md
Установить customizing-commands в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл customizing-commands?
Creates, edits, and enables Letta Code mod-provided slash commands. Use when the user asks to add a custom /command, slash command, command shortcut, scoped conversation-backed command, or command-driven panel behavior.
Как установить скилл customizing-commands?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл customizing-commands запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic