Back to Registry View Author Profile
Official Verified
batchjob-async-job
Use BatchJob HTTP APIs for strict upload validation, precheck, submit, polling, and cancellation. Full-auto file source resolution (file_id/local path/public URL/channel attachment path) with fallback interaction only when source is not readable.
skill-install — Terminal
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/cocovs/ssy-batchjob-async-jobOr
BatchJob Async Job Skill
Use this skill when the user wants to run or manage batch jobs through the BatchJob service.
Required Environment
BATCHJOB_BASE_URLBATCHJOB_BEARER_TOKEN
All HTTP requests must include:
-H "Authorization: Bearer ${BATCHJOB_BEARER_TOKEN}"
-H "Content-Type: application/json"
API Endpoints
POST /v1/batch/files:uploadPOST /v1/batch/jobs:precheckPOST /v1/batch/jobsGET /v1/batch/jobs/{job_id}GET /v1/batch/jobs?page=1&page_size=10&status=...POST /v1/batch/jobs/{job_id}:cancel
Automation Policy (Default)
- Always run in full-auto mode.
- Do not ask user for
file_idfirst. - Resolve file source from current message/context, then upload automatically when needed.
- Ask follow-up questions only when no readable file source can be obtained.
- Accepted input file formats for upload:
jsonl,csv,xlsx,xls(BatchJob normalizes to internal JSONL). - For
jsonl, each line must be either:- canonical Vertex format (
contents+ optionalgenerationConfig) - simple prompt format (
prompt+ optionalaspect_ratio/image_urls, whereimage_urlsmust be publicly reachable URLs)
- canonical Vertex format (
- If user gives only
model modeafter a file message, treat it as confirmation and continue automatically.
Guardrails (Must Follow)
- Do not auto-retry by creating a second job unless user explicitly asks.
- Do not auto-rewrite dataset format after a terminal failure unless user explicitly asks.
- Before upload, auto-normalization is allowed only once for known safe mappings (e.g. simple prompt JSONL -> Vertex JSONL).
- Upload failure is terminal for this run: do not continue to precheck/submit when upload fails.
- Never submit when
row_count <= 0. - Do not fetch or parse
output_summary_urlautomatically; only do it when user asks for detailed failure reason. - After reaching terminal status (
completed,failed,partially_failed), stop execution and return summary immediately.
JSONL Compatibility Rule (Important)
BatchJob internal execution expects each JSONL line to be a VertexGeminiImageRequest shape.
- Canonical line format:
contents[0].parts[0].textcontains prompt textgenerationConfig.imageConfig.aspectRatiois optionalgenerationConfig.responseModalitiesshould includeIMAGEandTEXT
- Non-canonical simple JSONL like
{"prompt":"...","aspect_ratio":"1:1"}is acceptable; server will normalize it to Vertex format. - If JSONL has neither
contentsnorprompt, stop and ask user to provide valid data. - Explicitly unsupported (must reject before submit):
- OpenAI Batch style lines containing
method+url+body(for example/v1/chat/completionspayload). - This schema will fail with Vertex error:
at least one contents field is required.
- OpenAI Batch style lines containing
Dataset Output Rule (Important)
When user asks you to generate a template/demo file for BatchJob image tasks:
Metadata
AI Skill Finder
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skill Add to Configuration
Paste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-cocovs-ssy-batchjob-async-job": {
"enabled": true,
"auto_update": true
}
}
}Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.