Project tickets

From stevehuang0115/crewly · View interactive version

Project tickets is an AI agent skill from the GitHub repository stevehuang0115/crewly. A project's own backlog — list, read, create, update, claim, release, assign, link, log and ask-owner (structured decision cards) on project tickets (markdown files in <project>/.crewly/tickets/, tracked in git), plus the per-project ticket autopilot switch, its speed mode, its stats, the daily retr

How to use this skill

Skill file

Project Tickets

Every project keeps its own backlog as one markdown file per ticket in

<project>/.crewly/tickets/<ID>-<slug>.md. The files are tracked in git, so

the owner sees and edits them on GitHub too. Always go through this skill

(not by editing the file yourself) so the ticket and its WorkItem stay in step.

Statuses: backlog → ready → in_progress → done (or review when the

ticket asks for owner review), plus cancelled. Priorities P0 (highest) to P3.

--project takes the project id, its name, or its absolute path.

See what there is

# All tickets of the projects your teams work on
bash execute.sh list
# One project, only what can be picked up
bash execute.sh list --project /path/to/project --status ready
# One ticket with its description, acceptance criteria and log
bash execute.sh show --project /path/to/project --id APP-12

Pick up work

bash execute.sh claim --project /path/to/project --id APP-12

Claiming gives you a WorkItem (workItemId in the output). Work it like any

other WorkItem and complete it the usual way (complete-task /

report-status with that workItemId). Your lead reviews it; when it is

verified the ticket moves to done by itself. If the review sends it back you

get a retry WorkItem and the ticket stays yours.

When you are idle and nobody assigned you anything, Crewly may also claim the

highest-priority ready ticket of your projects for you — you then receive it

as a normal [CREWLY-DISPATCH].

Only members of the teams assigned to the project can claim, and only one

agent works a ticket at a time.

# Progress note into the ticket's Log
bash execute.sh log --project P --id APP-12 --note "API done, UI next"
# Cannot finish it? Give it back (→ ready) with the reason
bash execute.sh release --project P --id APP-12 --note "blocked on the design"

Add to the backlog

bash execute.sh create --project P --title "Export the report as CSV" \
  --description "Why and what" --acceptance "A header row is present" --acceptance "Opens in Excel" \
  --priority P2 --labels export

orchestrator or a team lead makes it ready (update --status ready).

(orchestrator / team lead): create it with --source request:<TKT id> when

it came in as a harness ticket, and tell the owner the new ticket id. Do not

start working on it unless the owner asked for that too.

and the expected effect: --metric "<goal metric> → <expected effect>"

(e.g. --metric "weekly /feed visitors → +150"). It is written as the

description's first line (Metric: …). Without it the create is refused

with a message saying so — add the metric and create it again.

Change a ticket

A ticket whose work was already delivered elsewhere (another WorkItem, a PR, a

commit) closes in one step from backlog or ready: `--status done

--delivered-by <WorkItem id | PR URL | #number | commit sha>`. The reference goes

into the ticket Log, no WorkItem is created, and only an owner / orchestrator /

lead may do it. Without --delivered-by the old rule stands (claim it, or

cancel it).

bash execute.sh update --project P --id APP-12 --priority P1 --labels "export,ui" --note "owner asked"
bash execute.sh update --project P --id APP-12 --status ready          # owner / orc / lead only
bash execute.sh update --project P --id APP-12 --status done --delivered-by '#1632'   # owner / orc / lead only
bash execute.sh update --project P --id APP-12 --acceptance "new list item" --acceptance "another"

Put a ticket on hold when the owner says to stop ("do not merge PR #12", "no further

work", "don't ask me again"). Write his words as the reason:

bash execute.sh update --project P --id APP-12 --hold "owner 10-06: do not merge PR #12, no further work"
bash execute.sh update --project P --id APP-12 --hold none   # the owner lifted it

On held work the only allowed action is to close the PR and remove the worktree. A new

ticket that names the same PR / branch / worktree is held too (its description says so),

and an ask-owner card about it is refused unless it only asks whether to close it.

Park or defer a ticket so the autopilot stops offering it in triage (it still

shows in list, with its label / deferUntil):

bash execute.sh update --project P --id APP-12 --labels "export,parked"   # parked until someone removes the label
bash execute.sh update --project P --id APP-12 --defer-until 2026-11-01   # offered again on that date
bash execute.sh update --project P --id APP-12 --defer-until none         # clear the date

Tickets labelled parked or deferred (the project's skipLabels) and tickets

whose deferUntil is still in the future are skipped by triage. When the owner

says "not now" / "after October", park or defer instead of leaving the ticket

in the backlog for the next triage to re-send. --labels replaces the whole

list, so include the labels the ticket already has.

--description and --acceptance replace those sections; everything else a

human wrote in the file is kept.

Assign (orchestrator / team lead)

# The worker gets a linked WorkItem and is dispatched
bash execute.sh assign --project P --id APP-12 --to worker-session
# Only record who will do it
bash execute.sh assign --project P --id APP-12 --to worker-session --no-start

Only the owner, the orchestrator or a lead of a team on the project may

assign, and only to members of those teams (a person's name is recorded

without a WorkItem). Team leads also have the assign-ticket skill.

A stopped member is available: assigning starts it for the ticket (the

answer's wake says started, or which gate refused it — then it picks the

ticket up on its next start). Role is a preference, not a limit: prefer an idle member; keep only lead-level work.

Link work already in flight (orchestrator / team lead)

bash execute.sh link --project P --id APP-12 --work-item <WorkItem id>

For a WorkItem that is already queued or running without a ticket (e.g. it was

delegated before tickets were used). The ticket becomes in_progress (a ticket

in review stays there), its assignee is the WorkItem's target, and it closes

by itself when that WorkItem is verified. Refused when the ticket is done or

cancelled, the WorkItem is finished or already works another ticket, or the

ticket already has another live WorkItem.

New delegations need no link: delegate-task puts work for a teammate on a

project through a ticket by itself (pass --ticket APP-12 to use an existing one).

Ask the owner (assignee / team lead / orchestrator)

bash execute.sh ask-owner --project P --id APP-12 \
  --question "Send the draft to the 3 partners?" \
  --option "Send Monday — after the review call" --option "Hold — wait for legal" \
  --default "Hold" [--deadline 2026-10-02T12:00] [--sensitive email]
# no longer needed (withdraws the open card and removes the mark):
bash execute.sh ask-owner --project P --id APP-12 --clear --note "resolved in the review call"

ONE question with 2–5 options and a default (an option, or wait). The deadline defaults to

tomorrow at 12:00. The ticket's assignee, else the lead, posts the question as a card in the

ticket's Slack thread, using its own bot. The ticket gets needs-owner until the question is

answered.

and the ticket log records it.

spend) are never auto-applied. The owner is re-asked once, then the question is parked.

to fix.

Ticket autopilot (owner / orchestrator)

bash execute.sh autopilot --project P                       # show settings + status
bash execute.sh autopilot --project P --on                  # switch on (the owner said so)
bash execute.sh autopilot --project P --on --daily-budget 20M --max-in-flight 1   # budget in tokens
bash execute.sh autopilot --project P --driver <lead session>   # or --driver default
bash execute.sh autopilot --project P --speed rush          # rush | normal | chill | default
bash execute.sh autopilot --project P --skip-labels parked,deferred   # labels triage skips (default; --skip-labels default resets)
bash execute.sh autopilot --project P --off

Off by default. While on, Crewly wakes the project's team lead to triage the

backlog when someone on the team is idle (make tickets ready and assign them,

split, ask the owner, or cancel), pauses for the day at the daily token budget

(input incl. cached + output; a usage boost on the team raises it for the day), and

sends the owner the batched questions plus one evening digest. Only switch it

on when the owner asked for it. Refused for anyone but the owner and the

orchestrator.

--retro on|off|default switches the team lead's daily retro (default: on

while an autopilot experiment on the project is running).

When the project has a goal (its goals log or an active project OKR) but

nothing is left to triage and someone on the team is idle, the team lead gets

ONE goal_replan WorkItem: the goal, the lead's last self-review, the

tickets closed in the last 7 days, any open experiment card, and the ask

"open the next tickets toward this goal, or say why there are none". The lead

opens the tickets (each with --metric); the autopilot never makes them ready

or starts work. A replan still open after --replan-ttl-hours (default 4) is

expired. Only goals-log entries from the last 30 days count as an active goal.

Speed (--speed, the owner can also DM the orc "set CE to rush" /

"CE 切到 chill"):

| | Rush | Normal (default) | Chill |

|---|---|---|---|

| Replan when nothing is left | ≥ 1 h apart, ≤ 12 a day | ≥ 3 h apart, ≤ 4 a day | ≤ 1 a day |

| Self-review | hourly | daily | weekly |

| After a replan that opened nothing | retry in 1 h | next day | next week |

| Daily budget when none is set | 50M | 20M | 8M |

An explicit --daily-budget (and boosts) and --replans-per-day <0-12>

(0 = off) override the speed's. A new goal / OKR or a new ticket lifts the

wait after an empty replan.

Self-review: at the speed's cadence the lead gets one short

autopilot_self_review WorkItem (skipped when nothing changed and nobody is

idle, never for a paused team or over the budget). File it, then complete the

WorkItem:

bash execute.sh self-review --project P --gap "620 of 1,000 weekly visitors" \
  --moved "CE-41 feed cards (+90)" --next-bet "two feed cards a day on the top search queries"

The status (autopilot --project P) and the evening digest show the latest

self-review and why the autopilot stopped, if it did: paused (every team

paused), budget_reached, system_error (failed work / a wake that never

landed), waiting_on_owner, no_ideas (the last replan opened nothing).

Autopilot numbers and retro (owner / orchestrator / team lead)

bash execute.sh stats --project P [--days 14] [--label feed]   # per day + total
bash execute.sh runs  --project P [--days 7]  [--label feed]   # run trace + ticket traces per day

stats counts tickets triaged / started / done (worker finished) / verified

(ticket done) / sent back / stalled, goal replans, cycle times, owner touches by kind,

stalls by cause, harness interventions, traced tokens and $ against the daily

budget, and time paused on the budget. Read a day's run with `trace-read

--trace <runTraceId>`.

Once a day (09:00) the driver gets an autopilot_retro WorkItem for the

previous day. File it with:

bash execute.sh retro --project P --day 2026-10-02 \
  --summary "Shipped CE-12 and CE-14. CE-15 stalled 3h waiting on the owner for the copy." \
  --problem "owner_dependency|CE-15 waited 3h for copy approval|Decision D-40 open 3h|tr-20261002-ab12cd34" \
  --problem "harness_gap|Triage brief listed a stopped member as busy"

--problem "class|title|detail|evidence", class one of agent_judgment,

missing_skill, harness_gap, owner_dependency. Crewly writes the retro to

the project wiki (llm-curated/autopilot-retros/<day>.md); harness gaps

become backlog tickets on the Crewly project, deduplicated and at most 3 a

day, and the owner approves them with one card. Never file harness gaps as

tickets yourself.

Weekly cross-team retro (orchestrator)

Once a week (Monday 09:00, or the first tick after) the orchestrator gets one

autopilot_retro WorkItem titled Weekly autopilot retro: <week> when at

least one lead filed a daily retro that ISO week. The brief lists every

project's week numbers, its daily retro pages and the harness gaps filed. Read

the pages, name what repeated across teams and what only Crewly can fix, then

file it:

bash execute.sh retro --week 2026-W44 \
  --summary "Three teams stalled on owner copy approvals; CE and Flopost both lost a day to a stopped member shown as busy." \
  --problem "harness_gap|Triage brief shows stopped members as busy|Seen in CE 10-27 and Flopost 10-29 retros" \
  --problem "owner_dependency|Copy approvals waited >3h in 4 of 7 days"

Same problem classes and limits as the daily retro. Crewly writes the page to

the global wiki (llm-curated/autopilot-retros/weekly/<week>.md) and files the

harness gaps on the Crewly project with one owner card. Only the owner or the

orchestrator may file it.

What to look for

Read yesterday's run with trace-read first; each problem names the stage

that failed and cites a stall or event by its time. Beyond "what shipped and

where it stalled", check these six, each with the sign that says it applies

(#985):

| Category | Sign | Usual class |

|---|---|---|

| Navigation | an agent spent turns finding the right file, page or owner of a step | missing_skill (a pointer or SOP line) |

| Automated checks | a check that already exists sat unwired or silently broken; a human caught what a command could have | harness_gap |

| Coding standards | the same correction given twice; a mechanical rule enforced by prose instead of a check | harness_gap (make it a check), not more norms text |

| Steering file size | an always-loaded brief or norm that nobody acted on this run | missing_skill (move it out or drop it) |

| Tool economy | an expensive call (full file dumps, broad searches, long polls) where a narrower one existed | agent_judgment |

| Information access | a fact the agent needed was not available to it, and a person had to supply it | harness_gap or owner_dependency |

A waiting_on_owner stall is owner_dependency only when the owner had

something to decide; one with nothing to decide is harness_gap (the ask

should not have gone out). nobody_pushing is the run's real gap: name the

step that had no owner, not the agent that eventually picked it up.

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.