Latex paper collab breadth

From FOURTEEN1416/academic-agent-toolkit · View interactive version

Latex paper collab breadth is an AI agent skill from the GitHub repository FOURTEEN1416/academic-agent-toolkit. Use an external CLI agent as a breadth-exploration co-pilot for paper-from-zero. Primary role: candidate direction expansion and idea divergence (breadth over depth). 只用于选题/方向发散;逐点深挖与论证收敛场景改用 latex-paper-collab-depth. Optional collaborator, skips when CLI absent.

How to use this skill

Skill file

<!--ACAT-ADAPTED: 资产补齐自 yunshenwuchuxun/latex-paper-skills@d0f106108cb0(collaborating-with-gemini + _shared),正文未改。溯源见 references/UPSTREAM.md。2026-09-09 专项治理。-->

Collaborating with Gemini

Use Gemini CLI as a breadth-exploration collaborator for paper-from-zero,

or as a generic code collaborator in fallback mode.

协作者定位:本技能把 gemini CLI 当作外部评审桥协作者调用(可选增强),不预设执行环境;gemini 不在 PATH 时跳过该协作者、由当前 Agent 自审降级,不阻断流程。

This skill provides a lightweight bridge script that returns structured JSON

and supports multi-turn sessions via SESSION_ID.

Shared rules: This skill inherits all shared rules from

../../_shared/collaboration-base.md (core rules, candidates-only

constraint, fallback code-collaboration mode, safety guardrails, and

collaboration state capsule format). Only Gemini-specific additions

are listed below.

<!--ACAT-GOVERNANCE: ../../_shared/collaboration-base.md 未随本仓库集成(资产缺口已登记于本技能 ASSET-GAP.md),共享基线文件缺失。降级执行口径:无共享基线时按本页要点执行——候选产出仅作输入不直写工件(Candidates-Only)、协作者不可用即跳过并由当前 Agent 自审降级、不生成/不覆写 ref.bib、协作输出须经验证后方可采纳。-->

When to Use

When NOT to Use

Gemini-Specific Rules

(<repo>/.gemini_cli_home/) to avoid Gemini CLI hanging in some runners.

--use-user-home.

--prefer-oauth to unset API-key env vars for this run.

Quick Start (shell-safe)

If your prompt contains Markdown backticks, use a heredoc; see references/shell-quoting.md.

本技能未随包提供 gemini bridge 脚本;gemini 在 PATH 时由调用方按上游参数(--cd/--PROMPT/--SESSION_ID/--output-format)直接调用,或使用自备的等价桥脚本;CLI 缺位时按协作者定位声明降级。

PROMPT="$(cat <<'EOF'
Review src/auth.py around login() and propose fixes.
OUTPUT: Unified Diff Patch ONLY.
EOF
)"
python3 <gemini-bridge-script> --cd "." --PROMPT "$PROMPT"

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

Multi-turn Sessions

# Start a session
PROMPT="$(cat <<'EOF'
Analyze the bug in foo(). Keep it short.
EOF
)"
python3 <gemini-bridge-script> --cd "." --PROMPT "$PROMPT"

# Continue the same session
PROMPT="$(cat <<'EOF'
Now propose a minimal fix as Unified Diff Patch ONLY.
EOF
)"
python3 <gemini-bridge-script> --cd "." --SESSION_ID "<SESSION_ID>" --PROMPT "$PROMPT"

Prompting Patterns (Paper Mode)

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

Paper-mode templates (top of the file):

Each template specifies its input sources, output artifact mappings, and constraints.

Advanced Flags

Verification

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.