big-job

Run long-running shell commands (builds, tests, data pipelines, scraping, training runs, etc.) as detached background jobs that survive agent restarts, with OOM protection, structured logging, and lifecycle management. Use this skill whenever the user asks you to run something that will take more than a few seconds — large test suites, long builds, batch processing, data migrations, ML training, or any command the user explicitly wants running "in the background". Also use it when you need to run multiple heavy commands in parallel without blocking. Trigger on phrases like "run in background", "long running", "don't wait for it", "kick off a build", "run tests and come back", "start a training run", "batch process", or any task where blocking the conversation would be annoying.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "big-job" with this command: npx skills add ematvey/big-job/ematvey-big-job-big-job

Big Jobs

Run heavy or long-running shell commands as detached background processes that survive agent restarts. Each job gets OOM protection (on systemd), captured stdout/stderr, an exit code, and metadata.

Usage

All commands go through the big-job dispatcher in scripts/. Set the path once:

J="<path-to-skill>/scripts/big-job"
CommandUsagePurpose
start[-d DIR] [-n] CMD...Launch job, tail output until done. -n to detach silently.
status<ID>Check running/completed/failed.
output<ID> [tail|head] [N]Read output.log (default: tail 50).
kill<ID> [SIGNAL]Send signal (default: TERM).
list[-n COUNT]List jobs (most recent first, default 10).
wait<ID> [TIMEOUT]Block until done (default: 300s).
cleanup[DAYS]Remove finished jobs older than N days (default: 7).

Typical workflow

# Start and see output streaming (job survives if agent dies):
"$J" start -d /home/user/project make -j8

# Start without following (fire-and-forget):
"$J" start -n -d /home/user/project make -j8

# Check on a job later:
"$J" status <ID>
"$J" output <ID>

# List all jobs:
"$J" list

The start command prints big-job:<ID> immediately, then tails the log until the job finishes. The job is already detached — if the Bash call times out or is killed, the job keeps running. Use -n for fire-and-forget.

Exit codes

CodeMeaning
0Success / completed
1Usage error
2Job not found
3Still running
4Failed

Jobs directory

~/.local/share/big-job/<ID>/ (override with $BIG_JOB_DIR):

  • meta.json — id, command, timestamps, pid/unit
  • command.sh — raw command text
  • output.log — combined stdout+stderr (line-buffered)
  • exit_code — written atomically on completion

Dependencies

None beyond standard POSIX utilities (sh, sed, od, find, tail, head). Optional: systemd-run for OOM protection on Linux.

Guidelines

  • Always tell the user the job ID and what's running
  • Default to background for anything > 30 seconds
  • Check exit codes — don't assume success; read output on failure
  • Use tail for output — logs can be huge; don't cat the entire file
  • Working directory — always pass an absolute path with -d
  • Reconnection — run "$J" list to find active jobs after restart

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

Financial Ai Agent

查询金融行情数据(股票、黄金、原油等)。当用户提到查询行情、价格、指数、股票时使用。例如:'查询纳斯达克'、'现在金价多少'、'标普最近一周表现'、'设置我的key'、'替换key'。

Registry SourceRecently Updated
Automation

Git Workflow

Use this skill for any git commit, pull request, or release task. Invoke immediately when the user wants to: stage and commit changes, write a commit message...

Registry SourceRecently Updated
Automation

Deck Narrative Planner

把材料转成 PPT/Deck 叙事结构,生成每页一句标题、证据需求与过渡逻辑。;use for presentation, deck, storytelling workflows;do not use for 直接生成花哨视觉稿, 编造证据.

Registry SourceRecently Updated
Automation

Atlassian Jira by altf1be

Atlassian Jira Cloud CRUD skill — manage issues, comments, attachments, workflow transitions, and JQL search via Jira REST API v3 with email + API token auth.

Registry SourceRecently Updated