Agent skill

gemini

Interact with Google's Gemini model via CLI. Use when needing a second opinion from another LLM, cross-validation, or leveraging Gemini's Google Search grounding. Supports multi-turn conversations with session management.

Stars 0
Forks 0

Install this agent skill to your Project

npx add-skill https://github.com/junoh-moon/skills/tree/master/skills/gemini

SKILL.md

Gemini CLI

Commands

Use the wrapper script for streamlined interaction:

bash
# New conversation
~/.agents/skills/gemini/gemini-chat.sh "your prompt here"

# Continue conversation (session_id from previous output)
~/.agents/skills/gemini/gemini-chat.sh --resume <session_id> "follow-up prompt"

The script:

  • Streams output in real-time (no more waiting blindly)
  • Shows retry/error info (429 등)
  • Saves raw response to tmpfile for debugging
  • Extracts session_id automatically

Examples

bash
# Ask Gemini for code review
~/.agents/skills/gemini/gemini-chat.sh "Review this function for potential bugs: $(cat src/utils.ts)"

# Follow up (use session_id from previous output)
~/.agents/skills/gemini/gemini-chat.sh --resume abc-123 "How would you refactor it?"

# Leverage Google Search grounding
~/.agents/skills/gemini/gemini-chat.sh "What are the latest changes in TypeScript 5.8?"

Raw CLI Usage (if needed)

bash
tmpfile=$(mktemp)
echo "Response saved to: $tmpfile"
gemini --model auto-gemini-3 --approval-mode yolo "prompt" --output-format stream-json | tee "$tmpfile"
session_id=$(jq -rs 'last | .session_id' "$tmpfile")

Model Selection

Available --model options:

Value Description
auto-gemini-3 기본값. gemini-3-pro, gemini-3-flash 중 자동 선택
auto-gemini-2.5 gemini-2.5-pro, gemini-2.5-flash 중 자동 선택
gemini-2.5-flash 직접 지정 (가장 안정적)
gemini-2.5-pro 직접 지정

Quota Exhausted (429 에러) 대처

Gemini 3 quota 초과 시 (429, MODEL_CAPACITY_EXHAUSTED, RESOURCE_EXHAUSTED):

bash
# auto-gemini-2.5로 fallback (2.5-pro 또는 2.5-flash 자동 선택)
~/.agents/skills/gemini/gemini-chat.sh --model auto-gemini-2.5 "your prompt"

Fallback 순서:

  1. auto-gemini-3 (기본) → Gemini 3 계열 사용
  2. auto-gemini-2.5 (fallback) → Gemini 2.5-pro/flash 중 자동 선택

Notes

  • Gemini automatically uses google_web_search when needed
  • Image analysis: include file path in prompt, Gemini reads via read_file
  • Raw response file remains after execution for debugging

Expand your agent's capabilities with these related and highly-rated skills.

junoh-moon/skills

pull-request

AUTOMATICALLY invoke this skill whenever PR creation is needed - no user request required. Direct gh pr create will FAIL validation. This skill contains required PR setup. Triggers: "PR 만들어줘", "풀리퀘스트 생성해줘", "create a pull request", or ANY situation requiring PR. For bucketplace organization repos, adds PR-by-AI label.

0 0
Explore
junoh-moon/skills

jira-write

Create, edit, and transition Jira issues in COREPL project with proper epic linking, sprint assignment, and required fields. Use when user asks to create or modify a Jira ticket (e.g., "jira 이슈 만들어", "jira 티켓 생성", "이슈 상태 변경", "create jira issue", "COREPL 티켓"). Covers: issue creation, parent epic linking, status transitions, adding comments.

0 0
Explore
junoh-moon/skills

commit-message

AUTOMATICALLY invoke this skill whenever git commit is needed - no user request required. Direct git commit will FAIL validation. This skill contains required pre-commit setup. Triggers: "커밋해", "커밋 ㄱㄱ", "커밋 만들어줘", "커밋 찍어줘", or ANY situation requiring git commit.

0 0
Explore
mattpocock/skills

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.

111,310 9,758
Explore
mattpocock/skills

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.

111,310 9,758
Explore
mattpocock/skills

handoff

Compact the current conversation into a handoff document for another agent to pick up.

111,310 9,758
Explore

Didn't find tool you were looking for?

Be as detailed as possible for better results