Skip to content

Latest commit

 

History

History
105 lines (82 loc) · 4.58 KB

EXAMPLE-SKILL.md

File metadata and controls

105 lines (82 loc) · 4.58 KB
name wq
description Work queue ticket tracker for managing tasks and work items. Use this skill when the user asks what work needs to be done, what to work on next, wants to track a new task or item for later, asks about the status of work, mentions tickets or work items, or references a Jira-style key like PROJ-123.

Work Queue (wq)

You have access to wq, a file-based ticket tracker. Use it to manage work items — finding what needs to be done, creating new tickets, claiming work, and tracking progress.

Agent Identity

Always set the agent identity via flag so every write command is attributed.

Use the identifier that matches the agent runtime:

# Claude
wq <command> --agent="claude-${CLAUDE_SESSION_ID}"

# Codex
wq <command> --agent="codex-${CODEX_THREAD_ID}"

If you are not sure which runtime you are in, choose the convention for the current agent and ensure the ID comes from that agent's session/thread variable.

When to Use wq

  • User asks what to work on / what's next: Run wq next to show actionable tickets
  • User wants to track something for later: Run wq create with a title, project, description, and acceptance criteria.
  • User references a ticket key (e.g. PROJ-1): Run wq show <key> for details
  • User starts working on a ticket: Run wq claim <key> to assign it
  • User finishes a ticket: Run wq complete <key> to mark it done
  • User asks about work status or ticket list: Run wq list with appropriate filters
  • User asks to triage or prioritize: Run wq list --untriaged to find unprioritized tickets

Handling Invocations

Interpret user intent the same way in both runtimes:

  • No args: Run wq list to display all tickets
  • <PROJ-N>: Run wq show <PROJ-N> to display ticket details
  • next: Run wq next
  • create <title>: Ask for a project prefix if not obvious, then create the ticket. Fill in the description, acceptance criteria, and tags. Ask clarifying questions if there is not enough information. Leave the priority blank so other agents can properly prioritize it later.
  • Any other args: pass them through directly to wq

Runtime-specific input source:

  • Claude slash command form: /wq ... with Arguments: $ARGUMENTS
  • Codex and other runtimes: parse arguments directly from the user message text.

Command Reference

Finding work

wq next                          # actionable tickets (open + unblocked + unclaimed), sorted by priority
wq next --project PROJ           # scoped to a project

wq list                          # all incomplete tickets (open + claimed)
wq list --actionable             # same as next
wq list --state open             # only open tickets
wq list --blocked                # tickets waiting on dependencies
wq list --untriaged              # open tickets with no priority set
wq list --project PROJ --tag foo # filter by project and/or tags
wq list --claimed-by <agent>     # tickets claimed by a specific agent

Viewing a ticket

wq show PROJ-1                   # human-readable details
wq show PROJ-1 PROJ-4 PROJ-28    # show multiple tickets at once
wq show --json PROJ-1            # full JSON for programmatic use
wq history PROJ-1                # event log for a ticket

Creating tickets

wq create --project PROJ --title "Title" --description "Details" --tag feature --acceptance-criteria "AC 1" --acceptance-criteria "AC 2"

Required flags: --project and --title. Everything else is optional.

Updating tickets

wq claim PROJ-1                          # claim (assign to yourself)
wq complete PROJ-1                       # mark done
wq release PROJ-1                        # unclaim (back to open)
wq delete PROJ-1                         # soft-delete
wq update PROJ-1 --priority high         # change priority
wq update PROJ-1 --add-tag urgent        # add a tag
wq update PROJ-1 --add-blocker PROJ-2    # mark PROJ-2 as blocking PROJ-1
wq update PROJ-1 PROJ-2 PROJ-3 --add-tag milestone-1   # update multiple tickets at once

Guidelines

  • Use --json when you need to process output programmatically
  • When creating tickets on behalf of the user, ask for a project prefix if one isn't clear from context
  • When the user describes a task in passing (e.g., "we should also fix X later"), offer to create a ticket for it
  • Prefer wq next over wq list when the user just wants to know what to do
  • Always claim a ticket before starting work on it, and complete it when done
  • When creating lots of related tickets at once, use a tag to group tickets together. The tags should be short (2-15 chars), unique, and relevant to the tickets/context.