/samocode:claudefrom samocode
Runs Anthropic Claude CLI as a subagent for second opinions, code reviews, and questions. Useful when you want a different AI perspective from a Codex or other session.
Ships in samocode. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Run Anthropic Claude CLI with its own configured model for second opinions and
external reviews. This is the symmetric counterpart to the codex skill and is
deliberately independent of the orchestration process's provider/profile.
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 \
--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 |
--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 --output-format text 2>/dev/null
claude -p "What are the tradeoffs between Redis and Memcached for session storage?" \
--dangerously-skip-permissions --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 --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 --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 --output-format text 2>/dev/null
--resume)codex skill so either provider can consult the otherWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Generated from the plugin's indexed repository (yuvasee/samocode) — no native marketplace selected
npx claudepluginhub p/yuvasee-samocode20 skills in this plugin
/code-clarityReview changed code for human comprehension cost — names, local reasoning, hidden state, working-memory load — and report findings with an impact/cost/risk assessment table. Review-only; never modifies code. Use when asked for a clarity review, readability review, comprehension-cost analysis of a diff/PR, or when running /code-clarity. Works in Claude Code and Codex./codexRun OpenAI Codex CLI as a subagent for second opinions, code reviews, and questions. Use when you want a different AI model's perspective./comment-hygieneCurate source-code comments and docstrings — delete AI-slop and stale comments, keep only the non-obvious WHY, and never change executable code. Use when cleaning up comments/docstrings, during a samocode cleanup or quality-review step, when running /comment-hygiene, or when reviewing a diff for comment quality. Works in Claude Code and Codex.Other plugins' skills for the same job