academic-paper-helper
Use only when the user explicitly asks for help drafting or revising an AI/ML research paper in LaTeX, including structure,…
Use when you want Gemini CLI as a second opinion for coding tasks such as prototyping, debugging, or diff review, while keeping Codex as the primary implementer.
$ npx -y skills add cnfjlhj/ai-collab-playbook --skill collaborating-with-gemini --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/collaborating-with-geminiContext preview
The summary Claude sees to decide when to auto-load this skill.
Use when you want Gemini CLI as a second opinion for coding tasks such as prototyping, debugging, or diff review, while keeping Codex as the primary implementer.
name: collaborating-with-gemini description: Use when you want Gemini CLI as a second opinion for coding tasks such as prototyping, debugging, or diff review, while keeping Codex as the primary implementer. metadata: short-description: Delegate to Gemini CLI
Use Gemini CLI as a collaborator while keeping Codex as the primary implementer.
This skill provides a lightweight bridge script that returns structured JSON and supports multi-turn sessions via `SESSION_ID`.
⚠️ 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`.
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`.
# 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"
Use `assets/prompt-template.md` as a starter when crafting `--PROMPT`.
Provide:
Avoid:
Append this to prompts when requesting code:
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.
mkdir -p .codex_uploads && cp "${TMPDIR:-/tmp}"/codex-clipboard-<id>.png .codex_uploads/Keep this short block updated near the end of your reply while collaborating:
[Gemini Collaboration Capsule] Goal: Gemini SESSION_ID: Files/lines handed off: Last ask: Gemini summary: Next ask:
Practical AI collaboration playbook for research, writing, reading, and coding: article, prompts, agent rules, and reusable skills.
Use only when the user explicitly asks for help drafting or revising an AI/ML research paper in LaTeX, including structure,…
Use when a task is ambiguous and needs deep multi-role planning with designer, inspiration, and reviewer perspectives before…
Use when you want Claude Code CLI as a second opinion for coding tasks such as design tradeoffs, debugging, or diff review, while…
Use when you explicitly want a second local or SSH remote Codex CLI session to prototype, debug, or review code, while your…
Use when the user asks whether a skill exists, wants help finding or installing one, or asks how to extend agent capabilities…
Use when a mostly complete ML conference paper needs self-review, pre-submission QA, camera-ready checking, section-by-section…