Skip to content
Agent Orchestration
Skill

/pueue

This skill should be used before running non-interactive long-running tasks, computation intensive tasks, background tasks, or needs guidance on the pueue CLI tool usage. TRIGGER when user says "use pueue", "run in background", "queue this task", or when about to run any

BOOST
From plugin
dotfiles-opencode
10845 skills
Install
$ npx -y skills add archibate/dotfiles-opencode --skill pueue --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/pueue

Context preview

The summary Claude sees to decide when to auto-load this skill.

This skill should be used before running non-interactive long-running tasks, computation intensive tasks, background tasks, or needs guidance on the pueue CLI tool usage. TRIGGER when user says "use pueue", "run in background", "queue this task", or when about to run any

SKILL.md

pueue.SKILL.md
name: pueue
description: This skill should be used before running non-interactive long-running tasks, computation intensive tasks, background tasks, or needs guidance on the pueue CLI tool usage. TRIGGER when user says "use pueue", "run in background", "queue this task", or when about to run any long-running (>2 min) task.

Pueue - Background Task Manager

When to Use

  • Non-interactive long-running tasks expected to run for >2 minutes
  • Computation intensive tasks with parallel job scheduling (prevent resource exhaustion)
  • Tasks that should continue even if you disconnect

When NOT to Use

  • Short tasks (<2 minutes): run directly
  • Interactive commands: use `tmux` instead for TUI access

Workflow

Option 1: Add and Follow (Recommended)

Start task and follow its output (blocks until complete):

# Add task and get its ID
pueue add 'PYTHONUNBUFFERED=1 uv run python -u train.py'

# Follow task output (blocks until complete)
pueue follow <task_id>

Option 2: Add and Check Later

Start task without blocking, check status later:

# Add task
pueue add 'PYTHONUNBUFFERED=1 uv run python -u train.py'

# Later, check status
pueue status

# View output when done
pueue log <task_id>

Option 3: Using the Helper Script

scripts/run_in_pueue.sh 'PYTHONUNBUFFERED=1 uv run python -u train.py'

This script:

  • Auto-starts daemon if needed
  • Creates a project-specific group
  • Adds the task and follows output

Conversation Example

User: Start training in the background.

Assistant:

pueue add 'PYTHONUNBUFFERED=1 uv run python -u train.py'

Then I'll follow the output:

pueue follow <task_id>

Training started. I'll monitor progress and report when complete.

Quick Reference

| Command | Description | |---------|-------------| | `pueue status` | List all tasks | | `pueue add 'cmd'` | Queue a task | | `pueue follow <id>` | Follow task output (blocks) | | `pueue log <id>` | View completed task output | | `pueue kill <id>` | Kill a running task | | `pueue clean` | Remove finished tasks |

Key Pitfalls

  • **Always quote the command**: `pueue add 'cmd --flag'` not `pueue add -- cmd --flag`
  • **Python needs unbuffered output**: Use `PYTHONUNBUFFERED=1` or `python -u`
  • **Use project groups**: `pueue add -g myproject 'cmd'` to avoid mixing tasks

Skill Files

  • `scripts/run_in_pueue.sh` — wraps pueue add with auto daemon start, per-project grouping, and follow
  • `references/pueue.md` — comprehensive pueue CLI usage documentation
Read more
Ships withdotfiles-opencode

小彭老师现在改用claude code的开源替代opencode,满足了开源人士旺盛的定制需求x(其实opencode中也可以继续用claude的闭源模型,只是换成了开源的opencode客户端) 安装方法:SETUP.md

Get the whole plugin

Other skills on dotfiles-opencode.