en un clic
check-collaborators
// Verify that Gemini CLI and Claude Code CLI are installed, authenticated, and API-reachable before starting collaboration workflows.
// Verify that Gemini CLI and Claude Code CLI are installed, authenticated, and API-reachable before starting collaboration workflows.
Writes ML/AI review and survey papers for arXiv using the IEEEtran LaTeX template with verified BibTeX citations. Triggers when the deliverable is a review paper, literature survey, or when an existing LaTeX project needs citation validation or repair.
Use the Claude Code CLI as a depth-analysis co-pilot for paper-from-zero. Primary role: claim tree compression, logical hole detection, evidence sufficiency audit, and review/empirical routing judgment. Also supports generic code collaboration as fallback.
Use the Gemini CLI as a breadth-exploration co-pilot for paper-from-zero. Primary role: candidate direction expansion, adjacent work scanning, keyword cluster generation, and alternative framing proposals. Also supports generic code collaboration as fallback.
Draft IEEE-style empirical ML/AI papers from a structured research contract. Builds experiment plans, section skeletons, placeholder-safe results, and a near-submission draft without fabricating evidence.
Post-process LaTeX project prose to improve readability through varied sentence and paragraph lengths. Removes filler phrases and unnecessary transitions while preserving all citations and semantic meaning.
Route a fixed research topic into a rigorous paper-generation workflow. Handles active literature search, innovation framing, contribution/evidence planning, and routes to either the review writer or empirical writer skill.
| name | check-collaborators |
| description | Verify that Gemini CLI and Claude Code CLI are installed, authenticated, and API-reachable before starting collaboration workflows. |
| metadata | {"short-description":"Collaborator CLI health check"} |
Run the Gemini and Claude detection chains in parallel where possible. For each collaborator, execute steps sequentially and short-circuit on the first failure — skip subsequent steps and mark the failure reason.
Determine the platform to choose the correct binary-lookup command:
win32): use wherewhichDetect via uname -s 2>/dev/null (returns nothing or errors on Windows) or check $OSTYPE.
# Unix
which gemini
# Windows
where gemini
Pass: command exits 0 and outputs a path.
Fail: command not found — suggest: npm install -g @anthropic-ai/gemini-cli or see https://github.com/google-gemini/gemini-cli
timeout 15 bash -c 'GEMINI_CLI_NO_RELAUNCH=true gemini --version'
On Windows (no timeout command), run directly:
GEMINI_CLI_NO_RELAUNCH=true gemini --version
GEMINI_CLI_NO_RELAUNCH=true is required to prevent the CLI from hanging.
Pass: output contains a version string (e.g., 0.32.1).
Fail: timeout or no version output.
Check for any of the following (any one is sufficient):
GEMINI_API_KEY is set and non-empty.GOOGLE_API_KEY is set and non-empty.~/.gemini/oauth_creds.json exists.[[ -n "$GEMINI_API_KEY" ]] || [[ -n "$GOOGLE_API_KEY" ]]
test -f "$HOME/.gemini/oauth_creds.json"
Pass: any one condition is true.
Fail: none found — suggest: export GEMINI_API_KEY=<key> or run gemini interactively to complete OAuth.
timeout 30 gemini --prompt "Reply with exactly: HEALTH_OK"
Pass: stdout contains HEALTH_OK.
Fail: timeout or no HEALTH_OK in output — suggest checking network, API key validity, or quota.
Note: Gemini CLI may emit warnings (e.g., skill conflict notices) in its output. These are benign and do not affect the health check. The pass/fail criterion is solely whether HEALTH_OK appears in stdout.
# Unix
which claude
# Windows
where claude
Pass: command exits 0 and outputs a path.
Fail: command not found — suggest: npm install -g @anthropic-ai/claude-code or see https://docs.anthropic.com/en/docs/claude-code
timeout 15 claude --version
Pass: output contains a version string (e.g., 2.1.74).
Fail: timeout or no version output.
claude auth status
Pass: output contains Logged in or JSON field loggedIn: true.
Fail: not logged in — suggest: run claude interactively and use /login.
timeout 30 claude --print "Reply with exactly: HEALTH_OK" --output-format text --no-session-persistence --max-budget-usd 0.50
Pass: stdout contains HEALTH_OK.
Fail: timeout or no HEALTH_OK — suggest checking API key, network, or account quota.
Note: --max-budget-usd must be at least 0.50. Lower values (e.g., 0.01, 0.05) cause immediate Exceeded budget errors because model inference has a minimum cost floor.
Present a summary table after all checks:
| Collaborator | CLI | Version | Auth | API | Status |
|--------------|-----|---------|------|-----|-----------|
| Gemini | ✓/✗ | x.y.z | ✓/✗ | ✓/✗ | Available / Failed |
| Claude Code | ✓/✗ | x.y.z | ✓/✗ | ✓/✗ | Available / Failed |
✓ for passed steps, ✗ for failed steps, — for skipped steps (due to short-circuit).Available only if all 4 steps pass; otherwise Failed.— if not reached.For any failed step, append actionable remediation advice below the table:
### Issues Found
**Gemini — Auth failed**
No API key or OAuth credentials detected.
→ Set `GEMINI_API_KEY` environment variable, or run `gemini` to complete OAuth login.
**Claude Code — CLI not found**
Claude Code CLI is not installed.
→ Install: `npm install -g @anthropic-ai/claude-code`
→ Docs: https://docs.anthropic.com/en/docs/claude-code
If both collaborators pass all checks:
Both collaborators are available and ready for collaboration workflows.
EPERM errors.timeout may not be available; run commands directly and watch for hangs.--version must use GEMINI_CLI_NO_RELAUNCH=true to prevent the CLI from relaunching itself.