Expert guide for creating custom Gemini CLI commands. Covers slash command definitions (.toml), argument parsing, and shell execution. Use when creating custom Gemini commands, defining TOML command files, adding command arguments, or building extension-based commands. Delegates to gemini-cli-docs.
Limited to specific tools
Additional assets for this skill
This skill is limited to using the following tools:
STOP - Before providing ANY response about Gemini Commands:
- INVOKE
gemini-cli-docsskill- QUERY for the specific command topic
- BASE all responses EXCLUSIVELY on official documentation loaded
Expert skill for defining custom slash commands in the Gemini CLI. Unlike Claude Code's markdown-based commands, Gemini uses TOML configuration or Extension-based commands.
Keywords: gemini commands, custom slash commands, .toml commands, command arguments, command alias
Use this skill when:
commands.toml (or similar)<extension>/commands/*.toml)Gemini commands are typically defined in TOML files within extensions or configuration.
[command-name]
description = "Description"
prompt = "The actual prompt to send..."
(Note: Verify exact syntax via gemini-cli-docs as specific implementation details vary by version)
| Topic | Query Keywords |
|---|---|
| Definition | custom commands toml, define slash command |
| Arguments | command arguments, command variables |
| Scope | workspace commands, global commands |
What do you want to do?
gemini-cli-docs: "create custom command"gemini-cli-docs: "extension commands structure"Query: "How do I create a custom slash command in Gemini CLI?" Expected Behavior:
Query: "How do I add commands to my Gemini extension?" Expected Behavior:
Query: "How do I pass arguments to a Gemini command?" Expected Behavior:
Official Documentation:
Query gemini-cli-docs for: