Skip to content
Back to skills

Pueue

ASecurity

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.

  • 106 stars
  • 0 votes
  • 0 copies
  • 8 views
  • Added September 12, 2026
toolspythonbashdocumentation

Works with

  • cli

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned September 12, 2026

npx -y skills add archibate/dotfiles-opencode --skill pueue --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Pueue?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Pueue
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/archibate-pueue/badge)](https://www.skillsdirectory.com/skills/archibate-pueue)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
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):

```bash
# 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:

```bash
# 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

```bash
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:
```bash
pueue add 'PYTHONUNBUFFERED=1 uv run python -u train.py'
```

Then I'll follow the output:
```bash
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

Files in this skill

  • SKILL.md2.5 KB
  • references/pueue.md3.9 KB
  • scripts/run_in_pueue.sh1.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.