
Call Claude
- 372 installs
- 3 repo stars
- Updated January 23, 2026
- dotneet/claude-code-marketplace
call-claude is a Claude Code marketplace skill that invokes the claude CLI with piped task prompts for developers who need programmatic sub-agent delegation inside Bash workflows and custom agent automation scripts.
About
call-claude is a minimal Claude Code marketplace skill for delegating work to a separate Claude process from shell workflows. It first checks whether the claude binary is installed using which claude, exiting gracefully when absent. For task execution it runs claude -p --dangerously-skip-permissions with a heredoc-fed task description, and recommends setting the maximum Bash tool timeout because runs may be long. Developers use call-claude inside marketplace automations when a parent agent should hand off an isolated subtask—code review passes, batch transformations, or scripted pipelines—without embedding raw API calls. The pattern suits Claude Code environments where the CLI is already authenticated and non-interactive execution is required.
- Wraps Claude API calls with consistent parameters
- Supports tool-use and structured output patterns
- Integrates invocations into Claude Code agent flows
- Handles retries, timeouts, and error responses
- Enables scripted multi-turn Claude interactions
Call Claude by the numbers
- 372 all-time installs (skills.sh)
- Ranked #2,077 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
- Data as of Jul 29, 2026 (Skillselion catalog sync)
npx skills add https://github.com/dotneet/claude-code-marketplace --skill call-claudeAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 372 |
|---|---|
| repo stars | ★ 3 |
| Last updated | January 23, 2026 |
| Repository | dotneet/claude-code-marketplace ↗ |
How do you call Claude from Claude Code scripts?
Invoke Claude from Claude Code workflows or scripts—structured API calls, tool use, and response handling—for custom agent automation in the marketplace.
Who is it for?
Developers building Claude Code marketplace workflows who need non-interactive sub-agent calls from Bash with the local claude CLI installed.
Skip if: Teams without the claude CLI, those requiring fine-grained permission prompts, or HTTP API orchestration should use direct API clients instead.
When should I use this skill?
User wants to delegate a subtask to Claude from a Claude Code script, workflow, or marketplace automation via the CLI.
What you get
CLI stdout response from a nested claude -p invocation executed inside a parent workflow or marketplace automation script.
- cli task response
Files
Call claude to perform a task
Call claude to perform a task.
Checking for the Existence of claude
# Check if claude is installed. Exit code 0 means success, 1 means failure.
# If not installed, skip the subsequent steps of the skill.
which claude
if [ $? -ne 0 ]; then
echo "claude is not installed"
fiRequesting a Task to claude
This task may take a long time. If the timeout value of the Bash tool can be set, please specify the maximum timeout value.
claude -p --dangerously-skip-permissions <<EOT
{task_description}
EOTRelated skills
FAQ
What command does call-claude use to invoke Claude?
call-claude runs claude -p --dangerously-skip-permissions with a heredoc-fed task description. It first verifies the claude binary exists via which claude before attempting execution.
Why does call-claude recommend a maximum Bash timeout?
call-claude notes that delegated Claude tasks may run for a long time. Setting the Bash tool timeout to its maximum value reduces premature termination during nested claude -p executions.