About call-claude
A small skill that invokes the installed Claude CLI to carry out a supplied task. It checks whether `claude` is available first, then runs the task in a non-interactive command with an extended timeout when supported.
Key features
- 01Checks whether `claude` is installed
- 02Runs a task through `claude -p`
Use cases
- 01Hand off a task to the Claude CLI
- 02Skip the task when `claude` is unavailable
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ dotneet/ claude-code-marketplace --skill call-claudeAfter installing, type/call-claudein Claude Code to confirm it loaded.
Details
From the project READMECall 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"
fi
Requesting 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}
EOT
Comments
Markdown supported