From samocode
Runs Anthropic's Claude CLI as a subagent for second opinions, code reviews, and questions from a Codex (or other) session when you want an external perspective.
How this skill is triggered — by the user, by Claude, or both
Slash command
/samocode:claudeThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Run Anthropic Claude CLI (Claude Opus) for second opinions and external reviews —
Run Anthropic Claude CLI (Claude Opus) for second opinions and external reviews —
the symmetric counterpart to the codex skill, for use when the orchestration
provider is Codex (or any non-Claude agent) and you want Claude's perspective.
Before using Claude, verify it's installed:
which claude >/dev/null 2>&1 || echo "CLAUDE_NOT_INSTALLED"
If not installed, inform the user: "Claude CLI is not installed. Skipping Claude review."
claude -p "$PROMPT" \
--dangerously-skip-permissions \
--model opus \
--output-format text 2>/dev/null
Output goes straight to stdout — no temp file needed.
| Flag | Purpose |
|---|---|
-p / --print | Non-interactive print mode |
--dangerously-skip-permissions | No permission prompts |
--model opus | Pick the model (e.g. opus, sonnet) |
--output-format text | Clean text output |
2>/dev/null | Suppress session info and stderr noise |
Claude can take several minutes for complex prompts. Use a 15 minute timeout:
timeout 900 claude -p "$PROMPT" --dangerously-skip-permissions --model opus --output-format text 2>/dev/null
claude -p "What are the tradeoffs between Redis and Memcached for session storage?" \
--dangerously-skip-permissions --model opus --output-format text 2>/dev/null
DIFF=$(git diff main...HEAD)
claude -p "Review this diff for issues:
$DIFF
List concerns with severity (blocking/important/nice-to-have)." \
--dangerously-skip-permissions --model opus --output-format text 2>/dev/null
Claude runs in the current directory; use --add-dir to grant access to others:
( cd /path/to/repo && claude -p "Analyze the architecture of this codebase" \
--dangerously-skip-permissions --model opus --output-format text 2>/dev/null )
Claude has access to the gh CLI. Pass the PR URL and let it fetch the diff:
timeout 900 claude -p "Review this PR: https://github.com/owner/repo/pull/123
Use gh CLI to get the diff and review for issues." \
--dangerously-skip-permissions --model opus --output-format text 2>/dev/null
--resume)codex skill so either provider can consult the othernpx claudepluginhub yuvasee/samocodeRuns OpenAI Codex CLI as a subagent for second opinions, code reviews, and questions. Useful when you want a different AI model's perspective.
Use when the user asks to run Claude Code CLI (`claude`, `claude resume`) for review, analysis, implementation, refactoring, debugging, or follow-up specifically through Claude Code.
Provides complete reference for Claude Code CLI including installation methods across macOS, Windows, Linux; basic usage; session management, output, and permission flags. Ideal for quick command lookups.