AgentSkillsCN

work-queue

当用户有一项大型任务,需要将其拆分为若干更小的工作项时,此技能将自动启用。当用户询问工作队列的状态,或想了解尚待完成的任务时,此技能同样适用。当用户需要管理串行或并行执行时,此技能将自动创建并管理 .agent/queue/,以实现跨平台的工作追踪。

SKILL.md
--- frontmatter
name: work-queue
description: Activate when user has a large task to break into smaller work items. Activate when user asks about work queue status or what remains to do. Activate when managing sequential or parallel execution. Creates and manages .agent/queue/ for cross-platform work tracking.

Work Queue Skill

Manage work items in .agent/queue/ for cross-platform agent compatibility.

When to Invoke (Automatic)

TriggerAction
Large task detectedBreak down into work items
Work item completedCheck for next item
User asks "what's left?"List remaining items
Multiple tasks identifiedQueue for sequential/parallel execution

Directory Structure

code
.agent/
└── queue/
    ├── 001-pending-implement-auth.md
    ├── 002-pending-write-tests.md
    └── 003-completed-setup-db.md

Setup (Automatic)

On first use, the skill ensures:

  1. Create directory: mkdir -p .agent/queue
  2. Add to .gitignore (if not present):
    code
    # Agent work queue (local, not committed)
    .agent/
    

Work Item Format

Each work item is a simple markdown file:

markdown
# [Title]

**Status**: pending | in_progress | completed | blocked
**Priority**: high | medium | low
**Assignee**: developer | reviewer | etc.

## Description
What needs to be done.

## Success Criteria
- [ ] Criterion 1
- [ ] Criterion 2

## Notes
Any relevant context.

File Naming Convention

code
NNN-STATUS-short-description.md

Examples:

  • 001-pending-implement-auth.md
  • 002-in_progress-write-tests.md
  • 003-completed-setup-database.md

Operations

Add Work Item

bash
# Create new work item
echo "# Implement authentication" > .agent/queue/001-pending-implement-auth.md

Update Status

bash
# Rename to reflect status change
mv .agent/queue/001-pending-implement-auth.md .agent/queue/001-in_progress-implement-auth.md

List Pending Work

bash
ls .agent/queue/*-pending-*.md 2>/dev/null

List All Work

bash
ls -la .agent/queue/

Complete Work Item

bash
mv .agent/queue/001-in_progress-implement-auth.md .agent/queue/001-completed-implement-auth.md

Platform Behavior

PlatformPrimary Tracking.agent/queue/
Claude CodeTodoWrite (display)Persistence
Gemini CLIFile-basedPrimary
Codex CLIFile-basedPrimary
OthersFile-basedPrimary

Workflow Integration

  1. PM breaks down story → Creates work items in queue
  2. Agent picks next item → Updates status to in_progress
  3. Work completes → Updates status to completed
  4. Autonomy skill checks → Continues to next pending item

Queue Commands

Check queue status:

code
What work is in the queue?
Show pending work items

Add to queue:

code
Add "implement login" to work queue
Queue these tasks: auth, tests, deploy

Process queue:

code
Work through the queue
Execute next work item

Integration

Works with:

  • autonomy skill - Automatic continuation through queue
  • process skill - Quality gates between items
  • pm skill - Story breakdown into queue items