mcpField
C
call-claude

call-claude

github.com/dotneetAgent workflows3402 installsUpdated 40w ago
Repository

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

  1. 01Checks whether `claude` is installed
  2. 02Runs a task through `claude -p`

Use cases

  1. 01Hand off a task to the Claude CLI
  2. 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-claude

After installing, type/call-claudein Claude Code to confirm it loaded.

Details

From the project README

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"
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