Imported from stevyhacker/ask-colleague (
snippets/AGENTS.md). Install upstream withnpx skills add stevyhacker/ask-colleague --skill snippets. Copyright stays with the author.
Colleague bridge
A colleague CLI may be available for a one-shot second opinion from Claude Code. Use it only when the user explicitly asks to "ask Claude", "ask a colleague", or after you have made a concrete attempt and are genuinely blocked.
Procedure:
-
Create a private temp file and clean it up after use:
ctx="$(mktemp -t colleague-ctx.XXXXXX.md)" trap 'rm -f "$ctx"' EXIT -
Write a compact context briefing into
$ctx. Include the goal, relevant file paths/snippets, what has been tried, the exact error or dilemma, and constraints. Do not include secrets or raw transcripts. -
Run:
colleague ask claude --context "$ctx" --question "your specific question" -
Treat Claude's response as advice from a peer, not ground truth. Compare it to your own analysis before acting. Do not start a nested or multi-turn agent-to-agent loop.