collaborating-with-claude — Claude Code skill: install & use
collaborating-with-claude consults Claude Code CLI as an advisor for diff reviews and tradeoffs while your primary agent builds.
no license ★ 475 updated 2026-10-13
npx skills add cnfjlhj/ai-collab-playbook --skill collaborating-with-claude -a claude-codeWhat collaborating-with-claude does
This skill routes inquiries to the Claude Code CLI using a helper script named scripts/claude_bridge.py. It returns structured JSON and retains conversation state across rounds using SESSION_ID. Claude acts strictly as an advisor here: file writes remain locked down, and the script enforces replies formatted exclusively as unified diff patches.
Execution works via --cd at the project root, passing file references rather than entire file dumps. Routine runs lean on the sonnet model alias, reserving opus strictly for tricky debugging or explicit requests.
Without prior terminal authentication via claude and /login, headless script execution will fail immediately.
What it helps with
- gather a second opinion on architecture tradeoffs and edge cases
- generate unified diff patches without modifying working directory files
- review existing diffs for missing automated tests and edge bugs
- maintain stateful multi-turn debugging sessions through a bridge script
Example prompts for the agent
- Ask Claude via the bridge for a second opinion on
src/auth.py - Request a unified diff patch from Claude to fix the bug in session
s-12345
How to install collaborating-with-claude
1Skills CLI (Vercel)
npx skills add cnfjlhj/ai-collab-playbook --skill collaborating-with-claude -a claude-code2Manually: put the files in place
~/.claude/skills/collaborating-with-claude/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/collaborating-with-claude/
1Skills CLI (Vercel)
npx skills add cnfjlhj/ai-collab-playbook --skill collaborating-with-claude -a codex2Manually: put the files in place
.agents/skills/collaborating-with-claude/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add cnfjlhj/ai-collab-playbook --skill collaborating-with-claude -a cursor2Manually: put the files in place
.cursor/skills/collaborating-with-claude/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install cnfjlhj/ai-collab-playbook skills/full/collaborating-with-claude2Manually: put the files in place
.github/skills/collaborating-with-claude/SKILL.md1Skills CLI (Vercel)
npx skills add cnfjlhj/ai-collab-playbook --skill collaborating-with-claude -a gemini-cli2Platform CLI
gemini skills install https://github.com/cnfjlhj/ai-collab-playbook --path skills/full/collaborating-with-claudeManually: put the files in place
.devin/skills/collaborating-with-claude/SKILL.mdThe legacy .windsurf/skills/ path still works
Claude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about collaborating-with-claude
How do I install collaborating-with-claude in Claude Code?
Run npx skills add cnfjlhj/ai-collab-playbook --skill collaborating-with-claude -a claude-code in your terminal.
What does collaborating-with-claude do?
It runs Claude Code CLI as a secondary reviewer to inspect diffs and suggest patches via a Python bridge script.
What prerequisites are required before using the bridge?
You must log in interactively via claude beforehand so headless calls can authenticate without an interactive prompt.