Use Claude Code as an independent `claude -p` subagent when the user explicitly asks for Claude, wants a second-agent opinion from Claude, or asks to delegate a well-scoped task to Claude. Supports selecting `--model` and thinking/effort level with defaults of `opus` and `high`.
npx skills add https://github.com/dzhng/skills --skill claude
Claude Code is an independent agent on PATH (claude), sharing this working
tree and already authenticated. Use it as a second opinion or delegated worker,
not as ground truth: verify its claims, own any changes, and keep its task
contract narrow.
Use claude -p --model opus --effort high unless the user or task calls for a
different model or thinking level.
opus, sonnet, or fable, or a fullmodel name. Default opus.
--effort flag. Valid levels arelow, medium, high, xhigh, and max. Default high.
--max-budget-usd <amount> whenthe user gives a budget or the task is likely to sprawl.
Example:
claude -p --model opus --effort high "<prompt>"
Prompt Claude like an operator: compact, block-structured, and explicit about
the artifact you need. A sharper contract beats higher effort.
prompts.
write-docs for the doc" or "obey refactor-clean: no compatibility wrappers"
instead of pasting those skills into the prompt.
<task> — the concrete job, context, and expected end state.<output_contract> — exact response shape, highest-value first.<default_follow_through> — take low-risk interpretations and continue;stop only when a missing detail changes correctness, safety, or an
irreversible action.
<verification_loop> — inspect the result against requirements and revisebefore finalizing.
<grounding> — ground every claim in code or tool output; labelinferences.
<action_safety> — keep the diff tightly scoped; no drive-by refactors.to "think harder" instead of tightening the task, and accepting its answer
without checking the evidence.
Use Claude for consultation when the user asks for Claude's view or when a
second-agent read would materially reduce risk. Keep it read-oriented unless
the user explicitly asks it to edit.
output, or labelled inferences.
--tools "Read,Grep,Glob,Bash" --permission-mode dontAsk.
flagged, what you accepted, and what you dismissed.
Delegate implementation to Claude only when the user names Claude for the task.
Never hand it work on your own initiative, and never re-delegate follow-up work
without a fresh ask.
An underspecified task stays with you until a fresh agent could not misread
it.
separable from yours. Tell Claude to keep scratch files (probes, dumps,
notes) out of the tree — its diff must contain only the deliverable.
--tools "Read,Grep,Glob,Bash" --permission-mode dontAsk.--dangerously-skip-permissions only in adedicated worktree, with a self-authored prompt and a mandatory diff
review after.
--output-format text by default. Use--output-format json only when the caller needs structured metadata.
report it. "Claude says it's done" is not done.
claude -p is a networked, authenticated non-interactive run. If it fails,
classify the failure before retrying.
blocker. If sandboxed claude -p says Not logged in, retry once with the
required approval because local auth can depend on keychain/session access.
important to the task.
--max-budget-usd or a narrower prompt before raisingeffort.
-p skips the interactive trust dialog, so run it only froma repo or worktree you intentionally trust.
claude -p --model opus --effort high as the default invocation.--model and --effort.
Take dzhng/claude from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.