claude-handoff
MAmattpocock/skills288k近 7 天新增 10,178 个 star
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.
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/mods/
Use a focused file name, e.g. ~/.letta/mods/review.ts or ~/.letta/mods/commands.ts.
| 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.
~/.letta/mods/ for related command files.letta.commands.register() and guard with letta.capabilities.commands./reload.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,
};
},
});
}
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.id: "review", not "/review".runWhenBusy: true commands must not return prompt while the main agent is busy; use scoped conversation helpers/panels and return handled.showInTranscript: false commands should usually return handled, not prompt./reload.../creating-mods/references/commands.md../creating-mods/references/architecture.md../creating-mods/references/ui.md../creating-mods/references/plan-mode.mdMAmattpocock/skills288k近 7 天新增 10,178 个 star
AFaffaan-m/ECC278k近 7 天新增 4,046 个 star
AFaffaan-m/ECC278k近 7 天新增 4,046 个 star
AFaffaan-m/ECC278k近 7 天新增 4,046 个 star
DIDietrichGebert/ponytail162k近 7 天新增 5,405 个 star
DIDietrichGebert/ponytail162k近 7 天新增 5,405 个 star