Token导航 LogoToken导航TokenDH.com
开发执行命令clawhub未标认证来源可访问clear审计提醒

claude-task-runnerClaude task runner 开发

Agent Skill

claude-task-runner 用于补充开发相关能力,适合在 OpenClaw 中需要让 Agent 承接开发相关任务时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

4,110

周安装

173

GitHub Stars

公开资料未说明

下载量

1,439
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:claude-task-runner(Claude task runner 开发)
来源仓库:https://github.com/zwd0313/claude-task-runner
安装命令:
openclaw skills install claude-task-runner
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install claude-task-runner

简介

以无头模式运行 Claude Code 任务并支持模型切换。

  • 适合自动化脚本集成与结构化输出捕获需求。适用宿主包括 OpenClaw,接入前应确认版本、权限和运行环境要求。
  • 可通过 JSON 格式获取任务结果,便于后续处理。
  • 执行命令时需注意工作目录权限及临时文件清理策略。
  • claude-task-runner 属于开发类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

name
claude-task-runner
description
Run Claude Code tasks in headless mode with claude -p through the local cc-task-runner.sh wrapper, including model switching, JSON output capture, structured schema checks, multi-file artifact validation, and glob matching. Use when you need reliable non-interactive Claude Code execution for coding, review, analysis, report generation, or file-producing tasks. Triggers include headless runner, claude -p automation, scripted Claude Code tasks, JSON-schema validation, artifact verification, and GLM-5.1 / MiniMax-M2.7 task orchestration.

Claude Task Runner

Use the local runner script instead of raw claude -p when the task needs any of these:

  • model switching via cc-switch
  • durable task state under ~/.openclaw/state/cc-tasks/
  • notification on completion/failure
  • structured-output enforcement via JSON Schema
  • multi-file artifact validation (--expect-file, --expect-contains, --expect-glob)

Primary script:

  • /Users/zhengweidong/.openclaw/workspace/scripts/cc-task-runner.sh

Quick decision

Use this skill when:

  • the user asks to run Claude Code non-interactively / in batch / in background
  • you need a coding or analysis task to survive beyond a single shell command
  • you want the result judged by actual outputs, not just model text
  • tmux interaction is unnecessary or risky

Do not use this skill when:

  • a direct read / edit is simpler
  • the user explicitly wants a live interactive tmux session
  • the task needs persistent interactive back-and-forth inside Claude Code

Default workflow

  1. Pick the model alias.

- GLM-5.1 for architecture / long-context reasoning - minimax-m2.7 for deeper problem solving and robust headless runs

  1. Decide whether the task needs validation.
  2. If validation is needed, prefer both:

- structured result validation with --json-schema-file - artifact validation with --expect-file, --expect-contains, --expect-glob

  1. Run the task with cc-task-runner.sh run or run-file.
  2. Inspect with status, then log if anything looks off.
  3. Treat missing artifact or structured_output.status=failure as a real failure.

Command patterns

Minimal run

bash /Users/zhengweidong/.openclaw/workspace/scripts/cc-task-runner.sh run \
  "task-name" \
  "GLM-5.1" \
  "/abs/workdir" \
  -- "Your task prompt here"

Write task with permission mode

bash /Users/zhengweidong/.openclaw/workspace/scripts/cc-task-runner.sh run \
  "task-name" \
  "GLM-5.1" \
  "/abs/workdir" \
  --permission-mode bypassPermissions \
  -- "Create /abs/workdir/output.txt with content: hello world"

Multi-file validation

All --expect-file, --expect-contains, --expect-glob support repeat usage. --expect-contains binds to the most recent --expect-file before it.

bash /Users/zhengweidong/.openclaw/workspace/scripts/cc-task-runner.sh run \
  "multi-check" \
  "GLM-5.1" \
  "/abs/workdir" \
  --permission-mode bypassPermissions \
  --expect-file "/abs/workdir/a.txt" \
  --expect-contains "alpha" \
  --expect-file "/abs/workdir/b.txt" \
  --expect-glob "out/*.log" \
  -- "Create a.txt with 'alpha ok', b.txt with 'bravo ok', and out/run.log"

Meaning:

  • a.txt must exist AND contain "alpha"
  • b.txt must exist (no content check)
  • out/*.log glob must match at least one file

Full combo: schema + multi-file + glob

bash /Users/zhengweidong/.openclaw/workspace/scripts/cc-task-runner.sh run \
  "full-check" \
  "GLM-5.1" \
  "/abs/workdir" \
  --permission-mode bypassPermissions \
  --json-schema-file "/abs/schema.json" \
  --expect-file "/abs/workdir/output.txt" \
  --expect-contains "expected text" \
  --expect-glob "logs/*.log" \
  -- "Your task prompt"

Prompt from file

bash /Users/zhengweidong/.openclaw/workspace/scripts/cc-task-runner.sh run-file \
  "task-name" \
  "minimax-m2.7" \
  "/abs/workdir" \
  "/abs/prompt.txt" \
  --json-schema-file "/abs/schema.json"

Inspect state

bash /Users/zhengweidong/.openclaw/workspace/scripts/cc-task-runner.sh status "task-name"
bash /Users/zhengweidong/.openclaw/workspace/scripts/cc-task-runner.sh log "task-name"
bash /Users/zhengweidong/.openclaw/workspace/scripts/cc-task-runner.sh list
bash /Users/zhengweidong/.openclaw/workspace/scripts/cc-task-runner.sh kill "task-name"
bash /Users/zhengweidong/.openclaw/workspace/scripts/cc-task-runner.sh clean

Validation parameters

ParameterRepeatableBinds toDescription
--expect-file <path>✅ yesselfFile must exist after task
--expect-contains <text>✅ yesprevious --expect-fileThat file must contain text
--expect-glob <pattern>✅ yesselfGlob must match ≥1 file
--json-schema-file <file>❌ noselfEnforces structured output
--permission-mode <mode>❌ noselfbypassPermissions or acceptEdits
--fallback-model <alias>❌ noselfRetry with this model on failure
--max-retries <n>❌ noselfMax retry attempts (default: 1)

Binding order example

--expect-file a.txt \
--expect-contains "hello" \
--expect-contains "world" \   # both "hello" AND "world" checked in a.txt
--expect-file b.txt \          # b.txt just needs to exist
--expect-glob "out/*.csv"      # independent glob check

Validation rules

For tasks that must produce files, always provide at least one artifact check.

Preferred combinations:

  • file creation only → --expect-file
  • exact or critical content → --expect-file + --expect-contains
  • one-or-more generated files → --expect-glob
  • non-file report / analysis → --json-schema-file
  • implementation task → schema + artifact checks together

Permission mode: Prefer --permission-mode bypassPermissions in trusted local environments when the task must write files or run Bash. Without it, Claude may ask for manual approval and the task will hang.

Do not trust plain language like "已完成" or "done" without validation.

Exit codes

CodeMeaning
0Task completed, all validations passed
1Model/runtime error
2Artifact validation failed
3Structured output reported failure

JSON schema guidance

Keep schemas small. Use them to force a machine-checkable result contract.

Good default schema for most tasks:

  • status: success|failure
  • summary: short text
  • files_changed: optional array
  • error_category: optional
  • suggestion: optional

Model notes

Current local environment supports GLM-5.1 headless via:

  • base URL: https://open.bigmodel.cn/api/anthropic
  • model id: glm-5.1

The local cc-switch wrapper already special-cases this. Use the alias GLM-5.1, not a raw model id, when calling the runner.

Failure handling

If a task fails:

  1. run status
  2. run log
  3. identify which layer failed:

- model/runtime error (exit 1) - artifact validation failure (exit 2) - structured schema failure (exit 3)

  1. either rerun with a stricter prompt or fix the prompt/schema/expectations

If the model says success but artifact validation fails, trust the validator, not the prose.

Files to read when needed

Read these only when you need deeper details:

  • references/runner-usage.md for usage notes and patterns
  • references/task-schema-example.json for a reusable schema template
  • scripts/run-task-example.sh for a concrete invocation pattern

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

86.58%
按下载量换算1,246

安全审计

VirusTotal

可疑

ClawScan

可疑

Static analysis

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 openclaw skills install claude-task-runner 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills