Agent skill

Collaborating With Gemini

by appautomaton in appautomaton/latex-arxiv-SKILL

Use the Gemini CLI to consult Gemini and delegate coding tasks for prototyping, debugging, and code review.

MITAuto-check passedResearch & Science

Install Collaborating With Gemini

skills CLI
$ npx skills add appautomaton/latex-arxiv-SKILL --skill collaborating-with-gemini -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install appautomaton/latex-arxiv-SKILL collaborating-with-gemini --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/appautomaton/latex-arxiv-SKILL.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.codex/skills/collaborating-with-gemini .claude/skills/collaborating-with-gemini && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
collaborating-with-gemini
GitHub stars
458
Used in
1 other repo
Token cost
~1.1k tokens
SKILL.md length
452 words
Files
4 (incl. scripts, references, assets)
Skills in repo
4
Repo updated
First seen
Licence
MIT

At a glance

Use the Gemini CLI to consult Gemini and delegate coding tasks for prototyping, debugging, and code review.

  • Works in 4 steps: Ask Gemini to open files itself → Enforce safe output for code changes → Use Gemini for what it’s good at → …
  • Tasks that involve Prototyping
  • SKILL.md covers Core rules, Quick start (shell-safe), Multi-turn sessions and Prompting patterns (token…, plus 3 more sections
  • Runs Python scripts from its folder; calls python3

What it does

Collaborating With Gemini is an agent skill from appautomaton/latex-arxiv-SKILL. Use the Gemini CLI to consult Gemini and delegate coding tasks for prototyping, debugging, and code review. Supports multi-turn sessions via SESSIONID. Optimized for low-token, file/line-based handoff.

Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 6 other files, including scripts, reference files and assets (for example `assets/prompt-template.md`, `references/shell-quoting.md` and `scripts/gemini_bridge.py`).

It sits in Research & Science, covering Prototyping, Design tokens and Citation management. It works with Google Gemini and LaTeX. The repository describes itself as: A highly customizable agentic harness for arXiv-ready ML/AI review papers (and beyond). It drives agentic AI like Codex CLI and Claude Code through a gated LaTeX workflow with… The licence is MIT.

When your agent uses it

  • Tasks that involve Prototyping
  • Tasks that involve Design tokens
  • Tasks that involve Citation management

Example prompts

  • “/collaborating-with-gemini”

Requirements

  • Python 3

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. Ask Gemini to open files itself
  2. Enforce safe output for code changes
  3. Use Gemini for what it’s good at
  4. Sharing clipboard screenshots with Gemini

What it can do on your machine

Read from SKILL.md and the folder at commit b5b0583. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python3

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Collaborating With Gemini loads about 1.1k tokens when it runs, and up to ~1.5k if it reads all its reference files. Until then it costs about 57 tokens; SKILL.md has 452 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~57
When it runs · the whole SKILL.md, loaded when a task matches
~1.1k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~1.5k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from appautomaton/latex-arxiv-SKILL at commit b5b0583, republished under its MIT licence (© appautomaton). 452 words, ~1,148 tokens.

Download SKILL.mdSave it as .claude/skills/collaborating-with-gemini/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.
name
collaborating-with-gemini
description
Use the Gemini CLI to consult Gemini and delegate coding tasks for prototyping, debugging, and code review. Supports multi-turn sessions via SESSION_ID. Optimized for low-token, file/line-based handoff.
metadata.short-description
Delegate to Gemini CLI

Collaborating with Gemini (Codex)

Use Gemini CLI as a collaborator while keeping Codex as the primary implementer.

Host note: this skill is written for a Codex host. When running in another host (e.g., Claude Code), adapt Codex-specific details such as the command-runner timeout and upload paths.

This skill provides a lightweight bridge script that returns structured JSON and supports multi-turn sessions via SESSION_ID.

Core rules

  • Gemini is a collaborator; you own the final result and must verify changes locally.
  • Do not invoke gemini directly; always use the bridge script (scripts/gemini_bridge.py) so output/session handling stays consistent.
  • Prefer file/line references over pasting snippets. Run the bridge with --cd set to the repo root (it sets the gemini process working directory). Use --cd "." only if your CWD is the repo root.
  • For code changes, request Unified Diff Patch ONLY and forbid direct file modification.
  • Always capture SESSION_ID and reuse it for follow-ups to keep the collaboration conversation-aware.
  • Keep a short Collaboration State Capsule updated while this skill is active.
  • Default timeout: when invoking via the Codex command runner, set timeout_ms to 600000 (10 minutes) unless a shorter/longer timeout is explicitly required.
  • Optional: pass --sandbox to run Gemini in sandbox mode.

Quick start (shell-safe)

⚠️ If your prompt contains Markdown backticks (`like/this`), do not pass it directly via --PROMPT "..." (your shell may treat backticks as command substitution). Use a heredoc instead; see references/shell-quoting.md.

bash
PROMPT="$(cat <<'EOF'
Review src/auth.py around login() and propose fixes.
OUTPUT: Unified Diff Patch ONLY.
EOF
)"
python3 .codex/skills/collaborating-with-gemini/scripts/gemini_bridge.py --cd "." --PROMPT "$PROMPT"

Output: JSON with success, SESSION_ID, agent_messages, and optional error / all_messages.

Multi-turn sessions

bash
# Start a session
PROMPT="$(cat <<'EOF'
Analyze the bug in foo(). Keep it short.
EOF
)"
python3 .codex/skills/collaborating-with-gemini/scripts/gemini_bridge.py --cd "." --PROMPT "$PROMPT"

# Continue the same session
PROMPT="$(cat <<'EOF'
Now propose a minimal fix as Unified Diff Patch ONLY.
EOF
)"
python3 .codex/skills/collaborating-with-gemini/scripts/gemini_bridge.py --cd "." --SESSION_ID "<SESSION_ID>" --PROMPT "$PROMPT"

Prompting patterns (token efficient)

Use assets/prompt-template.md as a starter when crafting --PROMPT.

1) Ask Gemini to open files itself

Provide:

  • Entry file(s) and approximate line numbers
  • Objective and constraints
  • Output format (diff vs analysis)

Avoid:

  • Pasting large code blocks
  • Multiple competing objectives in one request
Show full SKILL.md (167 more words)Show less
2) Enforce safe output for code changes

Append this to prompts when requesting code:

  • OUTPUT: Unified Diff Patch ONLY. Strictly prohibit any actual modifications.
3) Use Gemini for what it’s good at
  • Alternative solution paths and edge cases
  • UI/UX and readability feedback
  • Review of a proposed patch (risk spotting, missing tests)
4) Sharing clipboard screenshots with Gemini

Gemini can only read files inside the workspace root (--cd). Codex saves clipboard PNGs into the OS temp directory (e.g. ${TMPDIR:-/tmp}), which Gemini can’t access, and it may refuse ignored paths (e.g. tmp/). Copy the image into .codex_uploads/, then reference that path in your prompt. Delete screenshots when done. Do not add .codex_uploads/ to .gitignore: Gemini refuses to read ignored paths.

bash
mkdir -p .codex_uploads && cp "${TMPDIR:-/tmp}"/codex-clipboard-<id>.png .codex_uploads/

Advanced flags

  • --sandbox: Run Gemini in sandbox mode.
  • --model <name>: Override the default Gemini model.
  • --return-all-messages: Include all raw messages (tool calls, traces) in output JSON.

Collaboration State Capsule

Keep this short block updated near the end of your reply while collaborating:

text
[Gemini Collaboration Capsule]
Goal:
Gemini SESSION_ID:
Files/lines handed off:
Last ask:
Gemini summary:
Next ask:

References

  • assets/prompt-template.md (prompt patterns)
  • references/shell-quoting.md (shell quoting/backticks)

© appautomaton, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 3 other files (scripts, references, assets) in .codex/skills/collaborating-with-gemini of appautomaton/latex-arxiv-SKILL.

  • SKILL.md
  • assets/prompt-template.md
  • references/shell-quoting.md
  • scripts/gemini_bridge.py

Open the folder on GitHubat commit b5b0583

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in appautomaton/latex-arxiv-SKILL, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Collaborating With Gemini next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Collaborating With Gemini compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Collaborating With Gemini this skillappautomaton/latex-arxiv-SKILL4581 repos~1.1kAutomated safety check: PassMIT
Citation Managementneflibata-feng/MyArxiv-Agent12619 repos~8.1kAutomated safety check: NotesMIT
Academic Paper Writing PipelineImbad0202/academic-research-skills51k—~16kAutomated safety check: PassCustom licence
Literature Review AgentAr9av/PaperOrchestra6771 repos~5.2kAutomated safety check: PassCustom licence
Academic Searchustc-ai4science/academic-search666—~1.1kAutomated safety check: PassMIT
Arxiv MCP Serverblazickjp/arxiv-mcp-server3.2k—~353Automated safety check: PassApache-2.0

Similar skills

  • Citation Management

    neflibata-feng/MyArxiv-Agent

    Comprehensive citation management for academic research. An agent skill from neflibata-feng/MyArxiv-Agent.

    126 GitHub starsUsed in 19 repos~8.1k tokens
    Research & ScienceAuto-check: notes
  • Academic Paper Writing Pipeline

    Imbad0202/academic-research-skills

    Runs a 12-agent pipeline that plans, drafts, cites, reviews and formats academic papers, with modes for revision, rebuttals, abstracts and citation checks.

    51k GitHub stars~16k tokensUpdated today
    Research & ScienceAuto-check passed
  • Literature Review Agent

    Ar9av/PaperOrchestra

    Step 3 of the PaperOrchestra pipeline (arXiv:2604.05018). An agent skill from Ar9av/PaperOrchestra.

    677 GitHub starsUsed in 1 repo~5.2k tokens
    Research & ScienceAuto-check passed
  • Academic Search

    ustc-ai4science/academic-search

    A skill your agent uses when the user asks to search or review academic papers, retrieve scholarly metadata or citation counts, validate or deduplicate scholarly records, find an author's…

    666 GitHub stars~1.1k tokensUpdated 1 mo ago
    Research & ScienceAuto-check passed
  • Arxiv MCP Server

    blazickjp/arxiv-mcp-server

    A skill your agent uses when finding, comparing, reading, or monitoring arXiv papers, including requests for abstracts, citation graphs, original LaTeX, section-level technical details, or…

    3.2k GitHub stars~353 tokensUpdated yesterday
    Research & ScienceAuto-check passed
  • Zotero

    congcongwang0122/zotero-skill

    Use Zotero Desktop to enable/probe the local API, search a local Zotero library, list items/collections/tags, export BibTeX, insert citation keys into LaTeX or Markdown drafts, read indexed full…

    200 GitHub stars~1.6k tokensUpdated 1 mo ago
    Research & ScienceAuto-check passed

More from appautomaton/latex-arxiv-SKILL

  • Collaborating With Claude

    appautomaton/latex-arxiv-SKILL

    Use the Claude Code CLI to consult Claude and delegate coding tasks for prototyping, debugging, and code review.

    458 GitHub starsUsed in 1 repo~1.5k tokens
    Auto-check passed
  • Arxiv Paper Writer

    appautomaton/latex-arxiv-SKILL

    Write LaTeX ML/AI review articles for arXiv using the IEEEtran template and verified BibTeX citations.

    458 GitHub stars~2.3k tokensUpdated 25 days ago
    Auto-check passed
  • Latex Rhythm Refiner

    appautomaton/latex-arxiv-SKILL

    Post-process LaTeX project prose to improve readability through varied sentence and paragraph lengths.

    458 GitHub stars~890 tokensUpdated 25 days ago
    Auto-check passed

Questions about Collaborating With Gemini

What does Collaborating With Gemini do?

Use the Gemini CLI to consult Gemini and delegate coding tasks for prototyping, debugging, and code review. Collaborating With Gemini is an agent skill from appautomaton/latex-arxiv-SKILL. Use the Gemini CLI to consult Gemini and delegate coding tasks for prototyping, debugging, and code review.

When should I use Collaborating With Gemini?

Collaborating With Gemini fits situations like: tasks that involve Prototyping; tasks that involve Design tokens; tasks that involve Citation management.

How do I install Collaborating With Gemini in Claude Code?

Run `npx skills add appautomaton/latex-arxiv-SKILL --skill collaborating-with-gemini -a claude-code`. Or copy the skill folder (.codex/skills/collaborating-with-gemini in appautomaton/latex-arxiv-SKILL) into .claude/skills/collaborating-with-gemini in your project. Claude Code loads it when a task matches its description.

How do I install Collaborating With Gemini in Codex?

Run `npx skills add appautomaton/latex-arxiv-SKILL --skill collaborating-with-gemini -a codex`. Or copy the skill folder (.codex/skills/collaborating-with-gemini in appautomaton/latex-arxiv-SKILL) into .agents/skills/collaborating-with-gemini in your project. Codex loads it when a task matches its description.

Can I use Collaborating With Gemini in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add appautomaton/latex-arxiv-SKILL --skill collaborating-with-gemini -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/collaborating-with-gemini, .gemini/skills/collaborating-with-gemini, .github/skills/collaborating-with-gemini and .opencode/skills/collaborating-with-gemini in your project.

What does Collaborating With Gemini need to run?

Going by SKILL.md and its folder, Collaborating With Gemini needs Python for the scripts in its folder and the command-line tools its instructions call (python3). Our summary lists: Python 3.

Does Collaborating With Gemini access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Collaborating With Gemini safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Collaborating With Gemini use?

Collaborating With Gemini is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Collaborating With Gemini use?

About 1.1k tokens (SKILL.md is roughly 4.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 308 tokens, read only when the agent opens those files.

What are the alternatives to Collaborating With Gemini?

Skills that share tags, products or a category with Collaborating With Gemini: Citation Management (neflibata-feng/MyArxiv-Agent, 126 stars), Academic Paper Writing Pipeline (Imbad0202/academic-research-skills, 51k stars), Literature Review Agent (Ar9av/PaperOrchestra, 677 stars) and Academic Search (ustc-ai4science/academic-search, 666 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Collaborating With Gemini?

appautomaton (a GitHub organization) maintains it in appautomaton/latex-arxiv-SKILL, which has 458 GitHub stars. The repository holds 4 skills in this directory. The repository was last updated on September 13, 2026.

Source: appautomaton/latex-arxiv-SKILL on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.