Skill Tracer
Skills › Superpowers › using-superpowers › gemini-tools.md

gemini-tools.md

63 lines · skills/using-superpowers/references/gemini-tools.md at 2ce8aa1

Open on GitHub

Most marks come from matching words in the file, so treat them as pointers.

1# Gemini CLI Tool Mapping
2
3Skills speak in actions ("dispatch a subagent", "create a todo", "read a file"). On Gemini CLI these resolve to the tools below.
4
5| Action skills request | Gemini CLI equivalent |
6|----------------------|----------------------|
7| Read a file | `read_file` |
8| Read multiple files at once | `read_many_files` |
9| Create a new file | `write_file` |
10| Edit a file | `replace` |
11| Run a shell command | `run_shell_command` |
12| Search file contents | `grep_search` |
13| Find files by name | `glob` |
14| List files and subdirectories | `list_directory` |
15| Fetch a URL | `web_fetch` |
16| Search the web | `google_web_search` |
17| Invoke a skill | `activate_skill` |
18| Dispatch a subagent (`Subagent (general-purpose):` template) | `invoke_agent` with `agent_name: "generalist"` (invocable via `@generalist` chat syntax — see [Subagent support](#subagent-support)) |
19| Multiple parallel dispatches | Multiple `invoke_agent` calls in the same response |
20| Task tracking ("create a todo", "mark complete") | `write_todos` (statuses: pending, in_progress, completed, cancelled, blocked) |

Gemini CLI Tool Mapping

Skills speak in actions ("dispatch a subagent", "create a todo", "read a file"). On Gemini CLI these resolve to the tools below.

Action skills requestGemini CLI equivalent
Read a fileread_file
Read multiple files at onceread_many_files
Create a new filewrite_file
Edit a filereplace
Run a shell commandrun_shell_command
Search file contentsgrep_search
Find files by nameglob
List files and subdirectorieslist_directory
Fetch a URLweb_fetch
Search the webgoogle_web_search
Invoke a skillactivate_skill
Dispatch a subagent (Subagent (general-purpose): template)invoke_agent with agent_name: "generalist" (invocable via @generalist chat syntax — see Subagent support)
Multiple parallel dispatchesMultiple invoke_agent calls in the same response
Task tracking ("create a todo", "mark complete")write_todos (statuses: pending, in_progress, completed, cancelled, blocked)
Raw lines 1 to 21
Starts an agent dispatch :3
Starts an agent subagent :3
Starts an agent Dispatch :18
Starts an agent Subagent :18
Starts an agent dispatches :19
22## Instructions file
24When a skill mentions "your instructions file", on Gemini CLI this is **`GEMINI.md`**. Gemini CLI loads `GEMINI.md` hierarchically: global at `~/.gemini/GEMINI.md`, project-level files in workspace directories and their ancestors, and sub-directory `GEMINI.md` files when a tool accesses files in those directories.

Instructions file

When a skill mentions "your instructions file", on Gemini CLI this is **GEMINI.md**. Gemini CLI loads GEMINI.md hierarchically: global at ~/.gemini/GEMINI.md, project-level files in workspace directories and their ancestors, and sub-directory GEMINI.md files when a tool accesses files in those directories.

Raw lines 22 to 25
Project instruction file GEMINI.md :24
26## Personal skills directory
28User-level skills live at **`~/.gemini/skills/`**, with **`~/.agents/skills/`** as a cross-runtime alias (shared with Codex and Copilot CLI). When both directories exist at the same scope, `.agents/skills/` takes precedence. Each skill is a subdirectory containing a `SKILL.md` (with `name` and `description` frontmatter).

Personal skills directory

User-level skills live at **~/.gemini/skills/, with ~/.agents/skills/** as a cross-runtime alias (shared with Codex and Copilot CLI). When both directories exist at the same scope, .agents/skills/ takes precedence. Each skill is a subdirectory containing a SKILL.md (with name and description frontmatter).

Raw lines 26 to 29
30## Subagent support
32Gemini CLI dispatches subagents through the `invoke_agent` tool, which takes `agent_name` and `prompt` parameters. The same dispatch is also surfaced as a chat-syntax shortcut: typing `@generalist <prompt>` is equivalent to calling `invoke_agent` with `agent_name: "generalist"`. Built-in agent names include `generalist`, `cli_help`, `codebase_investigator`, and (with browser tooling enabled) `browser_agent`.
34Skills dispatch with `Subagent (general-purpose):` and either reference a prompt-template file (e.g., `superpowers:subagent-driven-development`'s `./implementer-prompt.md`) or supply an inline prompt. On Gemini CLI:
36| Skill dispatch form | Gemini CLI equivalent |
37|---------------------|----------------------|
38| References a `*-prompt.md` template (implementer, task-reviewer, code-reviewer, etc.) | Fill the template, then `invoke_agent` with `agent_name: "generalist"` and the filled prompt |
39| References `superpowers:requesting-code-review`'s `./code-reviewer.md` | `invoke_agent` with `agent_name: "generalist"` and the filled review template |
40| Inline prompt (no template referenced) | `invoke_agent` with `agent_name: "generalist"` and your inline prompt |

Subagent support

Gemini CLI dispatches subagents through the invoke_agent tool, which takes agent_name and prompt parameters. The same dispatch is also surfaced as a chat-syntax shortcut: typing @generalist <prompt> is equivalent to calling invoke_agent with agent_name: "generalist". Built-in agent names include generalist, cli_help, codebase_investigator, and (with browser tooling enabled) browser_agent.

Skills dispatch with Subagent (general-purpose): and either reference a prompt-template file (e.g., superpowers:subagent-driven-development's ./implementer-prompt.md) or supply an inline prompt. On Gemini CLI:

Skill dispatch formGemini CLI equivalent
References a *-prompt.md template (implementer, task-reviewer, code-reviewer, etc.)Fill the template, then invoke_agent with agent_name: "generalist" and the filled prompt
References superpowers:requesting-code-review's ./code-reviewer.mdinvoke_agent with agent_name: "generalist" and the filled review template
Inline prompt (no template referenced)invoke_agent with agent_name: "generalist" and your inline prompt
Raw lines 30 to 41
Starts an agent Subagent :30
Starts an agent dispatches :32
Starts an agent subagents :32
Starts an agent dispatch :32
Names a skill subagent-driven-development :34
Names a skill requesting-code-review :39
42### Prompt filling
44Skills provide prompt templates with placeholders like `{WHAT_WAS_IMPLEMENTED}` or `[FULL TEXT of task]`. Fill all placeholders before passing the complete prompt to `invoke_agent`. The prompt template itself contains the agent's role, review criteria, and expected output format — the subagent will follow it.

Prompt filling

Skills provide prompt templates with placeholders like {WHAT_WAS_IMPLEMENTED} or [FULL TEXT of task]. Fill all placeholders before passing the complete prompt to invoke_agent. The prompt template itself contains the agent's role, review criteria, and expected output format — the subagent will follow it.

Raw lines 42 to 45
Starts an agent subagent :44
46### Parallel dispatch
48Gemini CLI supports parallel subagent dispatch. Issue multiple `invoke_agent` calls in the same response (or multiple `@generalist` invocations in one prompt) to run independent subagent work in parallel. Keep dependent tasks sequential, but do not serialize independent subagent tasks just to preserve a simpler history.

Parallel dispatch

Gemini CLI supports parallel subagent dispatch. Issue multiple invoke_agent calls in the same response (or multiple @generalist invocations in one prompt) to run independent subagent work in parallel. Keep dependent tasks sequential, but do not serialize independent subagent tasks just to preserve a simpler history.

Raw lines 46 to 49
Starts an agent dispatch :46
Starts an agent subagent :48
50## Additional Gemini CLI tools
52These tools are unique to Gemini CLI:
54| Tool | Purpose |
55|------|---------|
56| `save_memory` (legacy) | Persist facts across sessions when `experimental.memoryV2 = false` |
57| `get_internal_docs` | Look up Gemini CLI's bundled documentation |
58| `ask_user` | Pose structured questions to the user (text / single-select / multi-select) |
59| `enter_plan_mode` / `exit_plan_mode` | Switch into and out of read-only plan mode |
60| `update_topic` | Update the current conversation's topic / strategic-intent metadata |
61| `complete_task` | Signal that a Gemini subagent has completed and return its result to the parent agent |
62| `tracker_create_task`, `tracker_update_task`, `tracker_get_task`, `tracker_list_tasks`, `tracker_add_dependency`, `tracker_visualize` | Rich task tracker with dependency and visualization support |
63| `read_mcp_resource`, `list_mcp_resources` | MCP resource access |

Additional Gemini CLI tools

These tools are unique to Gemini CLI:

ToolPurpose
save_memory (legacy)Persist facts across sessions when experimental.memoryV2 = false
get_internal_docsLook up Gemini CLI's bundled documentation
ask_userPose structured questions to the user (text / single-select / multi-select)
enter_plan_mode / exit_plan_modeSwitch into and out of read-only plan mode
update_topicUpdate the current conversation's topic / strategic-intent metadata
complete_taskSignal that a Gemini subagent has completed and return its result to the parent agent
tracker_create_task, tracker_update_task, tracker_get_task, tracker_list_tasks, tracker_add_dependency, tracker_visualizeRich task tracker with dependency and visualization support
read_mcp_resource, list_mcp_resourcesMCP resource access
Raw lines 50 to 63
Starts an agent subagent :61
Uses an outside tool MCP :63