AGENT SKILL

ticket-run

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".

License 许可
AGPL-3.0
最近更新
2026-11-14
Stars
★ 25
Forks
9

01 前言 Front Matter

name
ticket-run
owner
automation-engineer
scope
workspace
status
active
version
1.0.0
metadata
{ "type": "process", "triggers": [ "ticket-run", "process ticket queue", "run next ticket" ] }
description
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".
l2_propagate
false
last_reviewed
1794096000000
prerequisites
[]

03 SKILL.md 正文

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:
    • run.type: script → Bun.spawn(['bun', absPath, '--inputs-json', JSON.stringify(ticket.inputs ?? {})]) <!-- encoding-check-ignore -->
    • run.type: skill → invoke the named skill, passing ticket.inputs as its argument object
  4. On success (exit code 0): bun scripts/ticket.ts move <id> review
  5. 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

  • scripts/ticket.ts, scripts/helpers/ticket-store.ts, scripts/helpers/ticket-schema.ts
  • scripts/dispatch.ts — a different, session-scoped mechanism; a service's own execution may invoke it internally, but ticket-run itself does not.

04 同仓库更多 Skills

5throck
5throck/ai-workspace-standards

i18n-layout

Text layout and encoding guidance: character encoding (UTF-8, legacy Korean code pages, BOM hazards), line endings, RTL/bidi handling, and script-specific font selection (Hangul focus). Use when: encoding is corrupted or mojibake appears, an RTL locale must render correctly, fonts must be chosen for a script, or CRLF/BOM issues surface.

★ 25
5throck
5throck/ai-workspace-standards

i18n-layout

Text layout and encoding guidance: character encoding (UTF-8, legacy Korean code pages, BOM hazards), line endings, RTL/bidi handling, and script-specific font selection (Hangul focus). Use when: encoding is corrupted or mojibake appears, an RTL locale must render correctly, fonts must be chosen for a script, or CRLF/BOM issues surface.

★ 25
5throck
5throck/ai-workspace-standards

i18n-layout

Text layout and encoding guidance: character encoding (UTF-8, legacy Korean code pages, BOM hazards), line endings, RTL/bidi handling, and script-specific font selection (Hangul focus). Use when: encoding is corrupted or mojibake appears, an RTL locale must render correctly, fonts must be chosen for a script, or CRLF/BOM issues surface.

★ 25
5throck
5throck/ai-workspace-standards

i18n-layout

Text layout and encoding guidance: character encoding (UTF-8, legacy Korean code pages, BOM hazards), line endings, RTL/bidi handling, and script-specific font selection (Hangul focus). Use when: encoding is corrupted or mojibake appears, an RTL locale must render correctly, fonts must be chosen for a script, or CRLF/BOM issues surface.

★ 25
5throck
5throck/ai-workspace-standards

i18n-layout

Text layout and encoding guidance: character encoding (UTF-8, legacy Korean code pages, BOM hazards), line endings, RTL/bidi handling, and script-specific font selection (Hangul focus). Use when: encoding is corrupted or mojibake appears, an RTL locale must render correctly, fonts must be chosen for a script, or CRLF/BOM issues surface.

★ 25
5throck
5throck/ai-workspace-standards

i18n-layout

Text layout and encoding guidance: character encoding (UTF-8, legacy Korean code pages, BOM hazards), line endings, RTL/bidi handling, and script-specific font selection (Hangul focus). Use when: encoding is corrupted or mojibake appears, an RTL locale must render correctly, fonts must be chosen for a script, or CRLF/BOM issues surface.

★ 25