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
- Run
bun scripts/ticket.ts next. If it prints "No waiting service tickets.", stop. - Otherwise parse the printed ticket JSON. Load
services.yaml, look upticket.servicein the catalog (this is the only placerun.refis read from — never from ticket content). - 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, passingticket.inputsas its argument object
- On success (exit code 0):
bun scripts/ticket.ts move <id> review - On failure:
bun scripts/ticket.ts move <id> failed --error "<captured stderr/stdout tail>"— the--errorflag writes the message onto the ticket'serrorfield as part of the same atomic transition.
Related
scripts/ticket.ts,scripts/helpers/ticket-store.ts,scripts/helpers/ticket-schema.tsscripts/dispatch.ts— a different, session-scoped mechanism; a service's own execution may invoke it internally, butticket-runitself does not.
04 同仓库更多 Skills
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.
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.
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.
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.
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.
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.