jcsnap/claude-code-queue/queue
Claude Code and agent skill by jcsnap/claude-code-queue
- community
Checking that the SKILL.md file is still in the repository.
Use when the user wants to queue a task for Claude Code, add prompts to claude-queue, create prompt template files with YAML frontmatter, check queue status, manage the prompt bank, process batch jobs, or when a task is complex enough that it may hit API rate limits and should run automatically with retry. Triggers on: "queue this", "add to queue", "run later", "rate limit", "prompt bank", "save as template", "batch of tasks", "claude-queue".
Install
npx vskill@latest install jcsnap/claude-code-queue/queueSKILL.md
Claude Queue Skill
claude-queue queues prompts for Claude Code with automatic rate-limit retry. Use it proactively when tasks are complex, rate-limit-prone, or when the user asks to queue something.
When to Proactively Suggest Queuing
Suggest using claude-queue when you notice:
- The task involves many sequential tool calls that may hit the usage limit
- The user says "run this later" or "I'll come back to this"
- The user describes a batch of similar tasks (multiple files, features, etc.)
- A rate limit was already hit in this session
Example: "This refactor spans many files and may hit API limits midway. Want me to queue it with claude-queue so it retries automatically?"
Core Commands
Continuing a Rate-Limited Session
When the current session hits the usage limit mid-task, suggest queuing its continuation rather than starting the work over later:
To continue an earlier session, find its id first:
Each row is a session id and the title Claude Code generated for it, so the id can be copied straight into resume-session.
With no arguments it uses $CLAUDE_CODE_SESSION_ID, so it works from inside the session that hit the limit. At reset the queue reopens that conversation — the whole history is intact, so work already done is not repeated.
The continuation runs non-interactively (claude --print --resume). Results land in ~/.claude-queue/completed/, and the session stays reopenable with claude --resume <session-id> afterwards.
Queued jobs get this automatically: an interrupted job resumes its own session on retry instead of restarting.
Prompt Template Format
Template files live at ~/.claude-queue/queue/task-name.md:
Frontmatter Fields
| Field | Notes | |
|---|---|---|
priority | 0 = highest. Lower number executes first. | |
working_directory | Absolute path. Use the actual project path from context. | |
context_files | Paths relative to working_directory. Only include files that exist. | |
max_retries | Total attempts: 3 = 3 total, -1 = unlimited, 1 = no retry. Rate-limit retries and failures share this counter. | |
estimated_tokens | Optional hint; set null if unknown. | |
model | Claude model ID. Omit or set null to use the configured default. | |
resume_message | Sent when continuing an interrupted attempt. Omit to use the configured default. | |
claude_config_dir | Claude Code profile to bill. Set automatically from $CLAUDE_CONFIG_DIR at queue time. |
The queue persists session_id before launch. Do not set it by hand. The resume-session command also sets resume_existing_session: true so an older Claude CLI cannot silently run the continuation as a new task.
Priority Guidelines
0— critical / blocks other work1— high priority (default for explicit user requests)2— normal work5+— background / batch jobs
Deciding: add vs. Template File
Use `claude-queue add` when:
- Prompt is short (~200 chars or less)
- No context files needed
- Single, clear action
Use a template file when:
- Multi-step task needing structured instructions
- Context files should be attached
- The user will want to review or edit before running
For template files: construct the content and either run claude-queue template task-name and show the user what to paste in, or write the YAML+markdown content directly and tell the user to save it to ~/.claude-queue/queue/task-name.md.
Template Bank (Reusable Templates)
Bank templates live at ~/.claude-queue/bank/ and use the same YAML frontmatter format. bank use copies them to the active queue — templates themselves never execute directly.
Batch Processing
For running the same task across many inputs:
Batch templates use {{variable}} placeholders that match CSV column names:
Queue Directory Layout
Key Behavior Notes
`--dangerously-skip-permissions`: Passed to claude by default so the daemon runs unattended. To disable interactive permission prompts: claude-queue start --no-skip-permissions.
Multiple accounts: each Claude Code profile is a separate account and a separate usage limit. A prompt records the active profile when queued (override with --profile DIR), and one processor serves them all — when one account hits its limit, work billed to the others keeps running.
Resume message defaults: set resume_message in the prompt, or resume_message: in .claude-queue.yaml in the project directory, or in ~/.claude-queue/config.yaml queue-wide.
At-least-once semantics: If the daemon crashes mid-execution, the task reruns on restart. Prompt users to design queued tasks to be idempotent (safe to run twice) — especially for actions like "send email", "open PR", "create payment", etc.
Always suggest running claude-queue status --detailed before starting the daemon so the user can review what will execute.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingsrc/claude_code_queue/skills/queue/SKILL.md
Popularity
- Repository stars
- 57
- Repository forks
- 14
- 7-day trend score
- 20
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 12 Sep 2026, a month ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/jcsnap/claude-code-queue/queue)