Agent Skillsdoodledood/manifest-dev › sweep-tickets

sweep-tickets

GitHub

按调度触发从共享票仓安全选取并恢复一个无人值守工单,优先处理中断任务,确保自动化流程正确性。

claude-plugins/manifest-dev/skills/sweep-tickets/SKILL.md doodledood/manifest-dev

Trigger Scenarios

定时调度器触发 恢复中断的自动化执行

Install

npx skills add doodledood/manifest-dev --skill sweep-tickets -g -y
More Options

Non-standard path

npx skills add https://github.com/doodledood/manifest-dev/tree/main/claude-plugins/manifest-dev/skills/sweep-tickets -g -y

Use without installing

npx skills use doodledood/manifest-dev@sweep-tickets

指定 Agent (Claude Code)

npx skills add doodledood/manifest-dev --skill sweep-tickets -a claude-code -g -y

安装 repo 全部 skill

npx skills add doodledood/manifest-dev --all -g -y

预览 repo 内 skill

npx skills add doodledood/manifest-dev --list

SKILL.md

Frontmatter
{
    "name": "sweep-tickets",
    "description": "Recover or start one unattended Ticket from a configured shared Ticket Store, then stop. Use from a scheduled agent trigger to resume one interrupted automation-owned Auto Ticket or select one ready Auto Ticket and invoke run-ticket. This is the low-frequency correctness path beside issue-event triggers, not a backlog batch runner.",
    "user-invocable": true
}

sweep-tickets

Advance unattended Ticket work by at most one Ticket. A scheduled runner invokes this skill; the selected Ticket still executes through run-ticket.

Read ../ticket-up/references/TICKET_CONVENTION.md, the project's venue reference, and ../ticket-up/references/AUTOMATED_EXECUTION.md before reading or changing store state.

Establish the shared store and runner

Resolve tickets/store-config.md or the project-declared equivalent. The venue must provide one live claim surface every runner reads. A files venue spread across clones, branches, or worktrees does not: report that it cannot safely sweep and stop without changing a Ticket.

Resolve the adapter's stable automation claim identity and any configured effort or type filter. The automation identity must be distinguishable from human assignees. Missing or ambiguous store, identity, or policy context stops before selection.

Select one Ticket

Build the eligible set before choosing a branch: open Auto Tickets that carry no escalation mark, match every configured effort or type filter, and whose dependencies are all closed. A type filter never treats an untyped Ticket as a wildcard. Leave closed, ungranted, escalated, dependency-blocked, policy-filtered, and human-assigned items untouched. Ignore tracking items and venue items that are not Tickets.

  1. Recover first. From the eligible set, find Tickets claimed by this automation identity. The adapter's per-Ticket single-flight guarantees that a run-ticket invocation waits for any live run for that same canonical Ticket before it reaches this state. If any admitted interrupted attempt exists, recover one before considering new work. When several recovery candidates exist, use the store's explicit override or the convention's delay-loss rule to choose among them.
  2. Otherwise start ready work. Compare the unassigned Tickets in the eligible set using the store's explicit priority override or the convention's expected-delay-loss rule. Judge current unattended end-to-end execution and landing time only when its difference materially changes what other eligible work loses by waiting. Do not infer days from traditional feature size or apply a fixed agent-speed multiplier; when plausible runtimes are all short relative to the consequences, treat them as effectively equal and use shorter duration only as a tiebreak.

Human-assigned Tickets are paused, not recovery candidates. An escalated Ticket is not one either, and for a different reason: its attempt did not stop mid-flight, it ended by handing the work to a person. It holds no claim, so nothing about it looks interrupted and nothing distinguishes it from ordinary ready work except the mark — which is why the eligible set tests for that mark rather than the recovery branch catching it. Never mutate any claim during selection, remove Auto, clear an escalation mark, or create a ready/running/retry label. If no Ticket qualifies, report why and stop without a write.

Run and stop

Invoke the manifest-dev:run-ticket skill with the chosen Ticket's canonical reference and the complete current venue context. Do not invoke next-ticket: it is a human selector, does not filter on Auto, and stops after presentation.

After run-ticket returns, stop. Do not select a second Ticket, even when the first one was already done, reconciled, escalated, or completed quickly. The next scheduled invocation advances the graph again.

Gotchas

  • Selection is not execution. Let run-ticket own the claim transition, recovery inspection, branch, pull request, comments, and terminal Ticket outcome.
  • Closing a dependency needs no label pulse or dependent-issue mutation. The next sweep derives that the dependent Ticket is ready.
  • Two overlapping sweep jobs may initially name the same Ticket. The adapter's canonical per-Ticket single-flight serializes their run-ticket calls; the later call refreshes state and stops when the earlier one finished or handed the Ticket to a person.
  • One Ticket per invocation is the simplicity boundary. Throughput comes from issue events and independent Ticket keys, not from turning a sweep into a batch orchestrator.

Version History

  • 6357f8a Current 2026-08-28 19:58

    新增对升级(escalation)标记的处理逻辑:升级操作会清除认领状态并携带独立标记,选择器需完整读取工单以区分普通就绪工作与已移交人工的任务。

  • 2ac487e 2026-08-20 08:57

Same Skill Collection

.claude/skills/auto-optimize-prompt/SKILL.md
.claude/skills/compress-prompt/SKILL.md
.claude/skills/harden-task-file/SKILL.md
.claude/skills/learn-from-session/SKILL.md
.claude/skills/optimize-prompt-token-efficiency/SKILL.md
.claude/skills/sync-claude-code-plugins/SKILL.md
.claude/skills/sync-tools/SKILL.md
claude-plugins/manifest-dev-tools/skills/babysit-pr/SKILL.md
claude-plugins/manifest-dev-tools/skills/handoff/SKILL.md
claude-plugins/manifest-dev-tools/skills/prompt-engineering/SKILL.md
claude-plugins/manifest-dev-tools/skills/re-pitch/SKILL.md
claude-plugins/manifest-dev-tools/skills/review-pr/SKILL.md
claude-plugins/manifest-dev-tools/skills/review-prompt/SKILL.md
claude-plugins/manifest-dev-tools/skills/walk-pr/SKILL.md
claude-plugins/manifest-dev/skills/auto/SKILL.md
claude-plugins/manifest-dev/skills/check-pr/SKILL.md
claude-plugins/manifest-dev/skills/define/SKILL.md
claude-plugins/manifest-dev/skills/do/SKILL.md
claude-plugins/manifest-dev/skills/done/SKILL.md
claude-plugins/manifest-dev/skills/escalate/SKILL.md
claude-plugins/manifest-dev/skills/figure-out-team/SKILL.md
claude-plugins/manifest-dev/skills/figure-out/SKILL.md
claude-plugins/manifest-dev/skills/init-context/SKILL.md
claude-plugins/manifest-dev/skills/just-auto/SKILL.md
claude-plugins/manifest-dev/skills/just-do/SKILL.md
claude-plugins/manifest-dev/skills/next-ticket/SKILL.md
claude-plugins/manifest-dev/skills/poll-slack/SKILL.md
claude-plugins/manifest-dev/skills/review-writing/SKILL.md
claude-plugins/manifest-dev/skills/run-ticket/SKILL.md
claude-plugins/manifest-dev/skills/ticket-up/SKILL.md
claude-plugins/PLUGIN_TEMPLATE/skills/example/SKILL.md
claude-plugins/manifest-dev-tools/skills/teach-me/SKILL.md
claude-plugins/manifest-dev/skills/chat-surface/SKILL.md
claude-plugins/manifest-dev/skills/review-code/SKILL.md
claude-plugins/manifest-dev-tools/skills/eli5/SKILL.md

Metadata

Files
0
Version
6357f8a
Hash
f574ba74
Indexed
2026-08-20 08:57

Accueil - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-28 22:52
浙ICP备14020137号-1 $Carte des visiteurs$