Ticket run

From 5throck/ai-workspace-standards · View interactive version

Ticket run is an AI agent skill from the GitHub repository 5throck/ai-workspace-standards. Pulls the next waiting service ticket from the Phase A ticket queue and executes its referenced skill or script. Use when: processing the local service ticket queue, running "/ticket-run".

How to use this skill

Skill file

Context

Executes exactly one kind: service ticket per invocation (no internal polling loop — repeated processing is the caller's responsibility). Never touches kind: manual tickets. Service tickets (tickets/*.yaml) are gitignored by design — their history[] field is the audit trail; governance tickets (tickets/governance/) are tracked in git. Design: docs/archive/superpowers/specs/2026-07-16-service-ticket-kanban-design.md.

Execution Steps

  1. Run bun scripts/ticket.ts next. If it prints "No waiting service tickets.", stop.
  2. Otherwise parse the printed ticket JSON. Load services.yaml, look up ticket.service in the catalog (this is the only place run.ref is read from — never from ticket content).
  3. Execute via array-form spawn only — never build a shell command string:
  1. On success (exit code 0): bun scripts/ticket.ts move <id> review
  2. On failure: bun scripts/ticket.ts move <id> failed --error "<captured stderr/stdout tail>" — the --error flag writes the message onto the ticket's error field as part of the same atomic transition.

Related

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.