Use the Claude Code CLI as a depth-analysis co-pilot for paper-from-zero. Primary role: claim tree compression and deep evidence analysis (depth over breadth). 只用于逐点深挖/论证收敛;方向发散与选题扩展场景改用 latex-paper-collab-breadth. Optional collaborator, skips when CLI absent.
Installs into .claude/skills of the current project.
Are you the author of Latex Paper Collab Depth?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/fourteen1416-latex-paper-collab-depth)
---
name: latex-paper-collab-depth
description: "Use the Claude Code CLI as a depth-analysis co-pilot for paper-from-zero. Primary role: claim tree compression and deep evidence analysis (depth over breadth). 只用于逐点深挖/论证收敛;方向发散与选题扩展场景改用 latex-paper-collab-breadth. Optional collaborator, skips when CLI absent."
metadata:
short-description: Depth co-pilot (Claude) for paper-from-zero
---
<!--ACAT-ADAPTED: 资产补齐自 yunshenwuchuxun/latex-paper-skills@d0f106108cb0(collaborating-with-claude + _shared),正文未改。溯源见 references/UPSTREAM.md。2026-09-09 专项治理。-->
# Collaborating with Claude Code (Codex)
Use Claude Code CLI as a **depth-analysis** collaborator for paper-from-zero,
or as a generic code collaborator in fallback mode.
> **ACAT 宿主中立声明**:本技能把 claude CLI 当作**外部评审桥协作者**调用(可选增强),不预设执行宿主;`claude` 不在 PATH 时跳过该协作者、由当前 Agent 自审降级,不阻断流程。
This skill provides a lightweight bridge script (`scripts/claude_bridge.py`)
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 Claude-specific additions
> are listed below.
## When to Use
- contribution-map initial draft needs claim-level stress testing.
- evidence-matrix needs sufficiency audit (does evidence match claim strength?).
- Routing decision (review vs empirical) needs adversarial challenge.
- A specific claim needs deep falsification analysis.
- Fallback: generic code collaboration (analysis, patch, review).
## When NOT to Use
- Broad literature expansion or adjacent-area scanning (use Gemini).
- Generating candidate framing directions (use Gemini).
- Generating `ref.bib` entries or verified citations.
- Tasks requiring breadth exploration rather than depth analysis.
## Claude-Specific Rules
- Always run the bridge script with `--help` first if you are unsure of parameters.
- Prefer file/line references; run the bridge with `--cd` set to the repo root.
Use `--add-dir` when Claude needs access to additional directories.
- For automation, prefer `--SESSION_ID` (resume). Session selectors are mutually
exclusive: choose one of `--SESSION_ID`, `--continue`, or `--session-id`.
- Ensure Claude Code is logged in before running headless commands (run `claude`
and `/login` once if needed).
- Streamed JSON requires `--verbose`; the bridge enables this automatically.
## Model Selection
Claude Code supports model aliases, so you can use `--model sonnet` / `--model opus` instead of hard-coding versioned model IDs.
- If you omit `--model`, the driving agent uses its configured default model (see your host's model configuration; in this repo the engine adapter decides).
- If you need strict reproducibility, pass a full model name via `--model <full-name>`.
- For `claim-stress-test` and `route-review-vs-empirical` templates, prefer `opus`.
- For `evidence-sufficiency-audit`, `sonnet` is sufficient.
## Quick Start (shell-safe)
If your prompt contains Markdown backticks, use a heredoc; 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-claude/scripts/claude_bridge.py <!--ACAT-GOVERNANCE: 上游脚本未随本仓库集成,不可直接调用--> --cd "." --model sonnet --PROMPT "$PROMPT" --output-format stream-json
```
**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-claude/scripts/claude_bridge.py <!--ACAT-GOVERNANCE: 上游脚本未随本仓库集成,不可直接调用--> --cd "." --PROMPT "$PROMPT" --output-format stream-json
# Continue the same session
PROMPT="$(cat <<'EOF'
Now propose a minimal fix as Unified Diff Patch ONLY.
EOF
)"
python3 .codex/skills/collaborating-with-claude/scripts/claude_bridge.py <!--ACAT-GOVERNANCE: 上游脚本未随本仓库集成,不可直接调用--> --cd "." --SESSION_ID "<SESSION_ID>" --PROMPT "$PROMPT" --output-format stream-json
```
## Prompting Patterns (Paper Mode)
Use `assets/prompt-template.md` as a starter when crafting `--PROMPT`.
Paper-mode templates (top of the file):
- **`claim-stress-test`** — adversarial review of contribution-map (use `--model opus`)
- **`route-review-vs-empirical`** — routing recommendation with adversarial self-challenge (use `--model opus`)
- **`evidence-sufficiency-audit`** — per-claim evidence sufficiency assessment (use `--model sonnet`)
Each template specifies its input sources, output artifact mappings, and constraints.
## Verification
- Cross-check both collaborators: use the `check-collaborators` skill
- Smoke-test the bridge: `python3 .codex/skills/collaborating-with-claude/scripts/claude_bridge.py <!--ACAT-GOVERNANCE: 上游脚本未随本仓库集成,不可直接调用--> --help`
- For session testing: run one prompt with `--output-format stream-json` and confirm JSON contains `success: true` and a `SESSION_ID`.
## References
- `../../_shared/collaboration-base.md` (shared rules)
- `assets/prompt-template.md` (prompt patterns)
- `references/shell-quoting.md` (shell quoting/backticks)