Prep cycle

From AztecProtocol/aztec-packages · View interactive version

Prep cycle is an AI agent skill from the GitHub repository AztecProtocol/aztec-packages. Build or adjust a Linear cycle — for a whole team or just yourself. Size capacity from last-3-cycle velocity, fill with backlog bugs/high-priority items first and project work after (in your chosen project focus order), with no unassigned issues. Use when planning/prepping a cycle for a team, or whe

How to use this skill

Skill file

Prepare a Cycle

Assemble a capacity-sized cycle by curating existing issues (from focus projects + the backlog) — not by authoring new ones. The output is a cycle where each in-scope member is loaded up to their historical velocity, high-priority/bug work sits ahead of project work, and nothing in scope is unassigned.

If you do need to create a missing issue along the way, follow the [[create-issue]] standard for it.

Before you start — resolve scope, team & target

  1. Scope — determine who this run is for:

If the request doesn't make scope obvious (e.g. "prep Alpha's cycle" → team; "fill my cycle" / "sort out my sprint" → self), ask which.

  1. Team — the skill is team-agnostic; always ask which team unless the user already named one. Resolve options from get_user ("me") / list_teams. In self mode, default to the team that owns the target cycle.
  2. Target cycle — ask whether you're filling the current cycle or the next one. Get cycle numbers via list_cycles (type current / next). Call the target cycle's number C.
  3. Build vs adjust — a target cycle may already hold issues. If so, ask whether to top up in-scope members to capacity (leave existing cycle items in place, only add) or rebalance (also reconsider what's there). Either way, only ever touch the in-scope members' own work — never move or reassign another member's issues.

Step 1 — Roster & focus (prompt per in-scope member)

Default rosters (the usual cycle members for a team; confirm, don't assume):

Add other teams' defaults here as they're established.

Record, per in-scope member: { projects: [ordered] }. Out-of-scope members get nothing assigned and their existing work is left untouched.

Step 2 — Size capacity from the last 3 cycles

For each in-scope member m, compute their per-cycle velocity from completed work:

Report the per-member capacities (and team total in team mode) before filling, so the user can adjust. The cycle is filled up to each member's capacity — never over it. In self mode, subtract any work already in the target cycle for m from their capacity so a top-up doesn't overload them.

Only completed issues count (Linear "Done"/completed type). Canceled/Duplicate do not. Issues without an estimate contribute 0 to history and can't be allocated by points later — flag them (see Step 4).

Step 3 — Backlog bugs & high-priority items go first

Pull non-project backlog work that must jump the queue:

Step 4 — Fill remaining capacity with project work (in focus order)

For each included member m, after their Step-3 items, walk their projects in focus order and pull issues to fill the rest of capacity(m):

Don't assign the same issue to two members. If a project appears in multiple members' focus lists, split its issues between them as you go.

Step 5 — Enforce: no unassigned items

Everything this run added to the cycle must have an assignee. In team mode, list_issues cycle:<C> assignee:null for the team must come back empty — assign anything unassigned (ask when the owner isn't obvious) or remove it. In self mode, only guarantee this for the items you added/own; don't touch pre-existing unassigned issues you didn't put there (mention them if you spot them).

Step 6 — Write & report

Ordering note (Linear limitation)

This MCP can't set a manual board position within a cycle, so "ahead of project work" is expressed through priority — Urgent/High bug items already sort above Medium project work. If a strict manual order is needed beyond what priority gives, call it out so the user can drag-order in the Linear UI.

Tools

get_user, get_team, list_users, list_projects, list_cycles, list_issues (by cycle / project / assignee / state / priority / label), save_issue (set cycle, assignee, estimate).

Linear MCP reliability (learned the hard way — follow exactly):

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.