call-claude
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseCall claude to perform a task
调用Claude执行任务
Call claude to perform a task.
调用Claude执行任务。
Checking for the Existence of claude
检查Claude是否存在
bash
undefinedbash
undefinedCheck if claude is installed. Exit code 0 means success, 1 means failure.
Check if claude is installed. Exit code 0 means success, 1 means failure.
If not installed, skip the subsequent steps of the skill.
If not installed, skip the subsequent steps of the skill.
which claude
if [ $? -ne 0 ]; then
echo "claude is not installed"
fi
undefinedwhich claude
if [ $? -ne 0 ]; then
echo "claude is not installed"
fi
undefinedRequesting a Task to claude
向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.
bash
claude -p --dangerously-skip-permissions <<EOT
{task_description}
EOT此任务可能需要较长时间。如果可以设置Bash工具的超时值,请指定最大超时时间。
bash
claude -p --dangerously-skip-permissions <<EOT
{task_description}
EOT