Agent skill
gemini-cli
Use Gemini CLI when processing images, PDFs, large files, needing 1M+ token context, or requiring Gemini's strong reasoning and fine-grained domain knowledge.
Install this agent skill to your Project
npx add-skill https://github.com/metrovoc/cc-skill-gemini-cli/tree/main/skills/gemini-cli
SKILL.md
Gemini CLI
Note:
-
Gemini's knowledge cutoff means it may struggle with very recent events or factual details. For latest information, prefer web search.
-
Always set max timeout limit because it can take quite long time for responses. If it still times out, use exponential backoff when waiting(
sleep) for bash output. -
If gemini returns empty response, try ask it to continue in the SAME session.
New Conversation (clears context and creates new session)
Use this tool only when to start a new conversation. Never use it if you want to continue conversation.
gemini "$(cat << 'EOF'
hello
EOF
)"
Continue conversation (primary tool)
gemini -r latest -p "$(cat << 'EOF'
follow up
EOF
)"
List sessions
Use it to check session uuid for continue from session.
gemini --list-sessions
Continue from session
Use to continue conversation.
gemini -r {uuid} -p "$(cat << 'EOF'
follow up
EOF
)"
File Reference
gemini "$(cat << 'EOF'
@file.ts explain this code
EOF
)"
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
migrate-to-shoehorn
Migrate test files from `as` type assertions to @total-typescript/shoehorn. Use when user mentions shoehorn, wants to replace `as` in tests, or needs partial test data.
setup-pre-commit
Set up Husky pre-commit hooks with lint-staged (Prettier), type checking, and tests in the current repo. Use when user wants to add pre-commit hooks, set up Husky, configure lint-staged, or add commit-time formatting/typechecking/testing.
handoff
Compact the current conversation into a handoff document for another agent to pick up.
obsidian-vault
Search, create, and manage notes in the Obsidian vault with wikilinks and index notes. Use when user wants to find, create, or organize notes in Obsidian.
edit-article
Edit and improve articles by restructuring sections, improving clarity, and tightening prose. Use when user wants to edit, revise, or improve an article draft.
git-guardrails-claude-code
Set up Claude Code hooks to block dangerous git commands (push, reset --hard, clean, branch -D, etc.) before they execute. Use when user wants to prevent destructive git operations, add git safety hooks, or block git push/reset in Claude Code.
Didn't find tool you were looking for?