linear-project-update

作者: sentry

協助使用者草擬並(在使用者明確同意後)發布一則狀態更新至他們主導的 Linear 專案。每當使用者想要「發布專案…」時使用。

npx skills add https://github.com/getsentry/sentry-javascript --skill linear-project-update

Linear Project Update

You are helping the user draft a status update for a Linear project they lead. The end-state is either (a) a posted update plus an optional target-date change, applied only with the user's explicit go-ahead in this turn, or (b) a draft the user takes and posts themselves.

The user owns the words that go out under their name. Your job is to give them a strong starting point and clear options, then get out of the way. Never post or change anything without explicit confirmation in this turn.

Workflow

Step 1 — Resolve the project

If the user provided a project (URL, slug, or UUID), pass whatever they gave you straight to mcp__claude_ai_Linear__get_project as query and extract the id (UUID) from the response. Linear's MCP accepts all three forms — don't try to parse URLs yourself.

If they did not provide one, help them pick:

  1. Get the current user's ID. Call mcp__claude_ai_Linear__get_user with query: "me" and extract the id field. You'll need it for filtering in step 3.

  2. List the user's projects. Call mcp__claude_ai_Linear__list_projects with member: "me" and orderBy: "updatedAt". The member: "me" filter returns projects the user is a member of or leads — exactly the set you need, in a single call. In practice this returns a small list (usually <30 across all teams) and hasNextPage is false; paginate only if it isn't.

    Do not list projects per team and filter client-side. list_projects has no direct lead filter, and big workspaces have hundreds of projects per team — paginating teams is slow, expensive, and unnecessary when member: "me" does the job in one call.

  3. Filter to led + active projects. From the response, keep only projects where lead.id == <current-user-id>. Then drop any with status.type of completed or canceled — updating a Done or Canceled project almost never makes sense, and surfacing them clutters the picker. (If after this filter you have zero projects, stop and tell the user; don't fabricate. Offer the URL fallback: "paste a project URL if you want to update one you don't lead.")

  4. Fetch the last-update timestamp per project, in parallel. The project payload doesn't carry it. For each surviving project, call mcp__claude_ai_Linear__get_status_updates with type: "project", project: <uuid>, limit: 1, orderBy: "createdAt" — all in the same turn, not sequentially.

  5. Sort:

    • In Progress / Started first — most likely to be the target.
    • Then other active statuses (Planned, Paused, Backlog).
    • Within each band, put the project most likely to need an update first — typically the one with the longest gap since its last status update.
  6. Present the list with AskUserQuestion. Format each option so the user can see at a glance which projects need attention:

    <Project name> — status: <Status> · target: <YYYY-MM-DD or "—"> · last update: <X days ago or "never">

  7. Once picked, continue with that project's UUID.

Step 2 — Audit project status

Invoke the linear-project-status skill on the resolved project UUID. That skill produces the health verdict, top concerns, dimension breakdown, recent activity, and blocker analysis you'll need to write a useful update.

Keep the audit output handy — you'll cite specifics in the proposal (e.g., "3 issues stale > 14 days", "target date in 12 days with 8 issues still open", "no movement on issues in the last 7 days"). Generic updates are useless; concrete ones build trust.

Step 3 — Gather additional context

The audit tells you what Linear knows. The user knows what Linear doesn't. Ask once, broadly, rather than peppering them with separate questions:

"Anything I should know that isn't in Linear before I draft this? PTO or absences (yours or the team's), blockers, competing priorities, or general context you want stakeholders to hear. Or just say 'no' to skip."

Wait for their reply. Treat any short negation as a valid skip — "no", "nope", "skip", "nothing", or an empty reply all mean "proceed without extra context". Don't re-prompt.

Step 4 — Draft the proposal

Synthesize the audit + the user's context into two things: a target-date recommendation and an update body.

Target date recommendation

Recommend whatever the audit and the user's context actually support — but be cautious about small moves. A few-day push tends to signal indecision and erodes trust in the date.

  • Realistic (audit and remaining scope support it): recommend no change, even if the date feels a little uncomfortable. Say so explicitly: "Target stays at ."
  • Unrealistic (audit flagged target as warn/bad, or the date is already in the past): recommend a new date with real headroom given the open scope. Default to moving it out by at least a week — but if a shorter move genuinely fits the situation (e.g., a launch tied to a known external date a few days out, or the user's context makes a sub-week shift obviously right), recommend that and explain why.
  • If you propose a sub-week move (or the user later asks for one): flag it explicitly so they can reconsider. Something like: "This is only N days out from the current target — small moves often look like indecision. Want to either hold the date or push to <date-≥-1-week-out> instead?" Then defer to the user's call.

When recommending any new date, justify it in one line tied to audit specifics: "8 of 15 issues still open with 5 days to target — propose pushing to ."

Update body

A good status update is:

  • Short. A few paragraphs at most. Stakeholders skim.
  • Concrete. "Shipped X and Y; in flight on Z; blocked on W" beats "made progress on several fronts".
  • Honest about risks. If the audit flagged a blocker or staleness, name it; don't paper over.
  • Forward-looking. What's the next deliverable and by when.

Cover, in roughly this order:

  1. Since the last update — what shipped, what moved. Pull from the audit's recent-activity data and from the user-supplied context.
  2. What's next — the immediate next milestone or deliverable.
  3. Risks / blockers — name them. Use any blocker context the user provided.
  4. Target date — only mention if you're proposing a change, or if explicit reaffirmation is useful.

Match the user's voice. Read the last 2–3 status updates on this project before drafting. If the user writes in conversational paragraphs, don't return a bulleted formal report. If they use bullets and headers, match that. Mismatched tone is the fastest way to make the user feel the draft isn't theirs.

Step 5 — Present and get the user's call

Show both proposals together in the chat:

**Proposed target date:** <new date or "no change"> — <one-line reason>

**Proposed update:**

<draft body>

Then use AskUserQuestion to offer three choices:

  1. Submit as-is — post the update and apply the target-date change (if any).
  2. Adjust first — iterate on the draft with feedback, re-present, then ask again.
  3. Stop here — user takes the draft and handles it themselves.

If they pick "Adjust first", treat it as collaborative editing, not a from-scratch rewrite. Preserve what they liked. Loop back through Step 5 after each revision.

Step 6 — Apply changes (only on explicit go-ahead)

Only if the user explicitly approved in Step 5:

  1. If a target-date change was approved, call mcp__claude_ai_Linear__save_project with the new targetDate.
  2. Call mcp__claude_ai_Linear__save_status_update with the project ID and final body. Set health from the audit verdict (Green → onTrack, Yellow → atRisk, Red → offTrack); if Linear's MCP rejects those enum values, check the schema and pick the closest valid one rather than guessing repeatedly.
  3. Confirm both succeeded and link the user to the project's overview.

If any call fails, surface the exact error and stop. Do not retry silently or fudge the user's understanding of what's actually in Linear.

What to never do

  • Post a status update or change a target date without the user's explicit "go" in this turn. A choice from earlier in the conversation does not count if the draft has since changed.
  • Move a target date by a few days "just to be safe" without flagging it. Small moves erode trust in the date; if you (or the user) propose one, explicitly surface it so they're making the call with eyes open.
  • Fabricate context — blockers, accomplishments, PTO, dates. If you don't know it, ask or omit it. Stakeholders will read this; wrong details damage the user's credibility.
  • Override the user's voice. Suggest a wording change once; if they push back, drop it.
  • Aim for comprehensive. A short, honest update beats a long one that buries the lede.

來自 sentry 的更多技能

add-ai-integration
sentry
在 Sentry JavaScript SDK 中新增一個 AI 提供者整合。用於貢獻新的 AI 檢測工具(OpenAI、Anthropic、Vercel AI、LangChain 等)時使用…
add-cdn-bundle
sentry
為瀏覽器套件建立一個包含指定功能的新 CDN 套件組合
agent-prompt
sentry
撰寫有效代理提示與技能的參考指南。適用於建立新技能、審查提示品質或理解 Warden 的提示…
agents-md
sentry
當使用者要求「建立 AGENTS.md」、「更新 AGENTS.md」、「維護代理文件」、「設定 CLAUDE.md」或需要保持代理…時,應使用此技能。
agents-md
sentry
建立並維護精簡、高訊號的代理文件,內容不超過60行。強制採用經研究驗證的代理文件最佳實踐;指令品質會隨長度下降。需包含三個核心章節:套件管理器、檔案範圍指令(每個檔案的測試/語法檢查/型別檢查),以及帶有代理身份的提交歸屬。分析專案結構(鎖定檔案、語法檢查器設定、CI指令、單一儲存庫指標)以決定檔案中應包含的內容。僅使用標題與項目符號;參考...
agents-md
sentry
當使用者要求「建立 AGENTS.md」、「更新 AGENTS.md」、「維護代理文件」、「設定 CLAUDE.md」或需要保持代理…時,應使用此技能。
ai-sdk
sentry
ai-sdk — 一個可安裝的 AI 代理技能,由 getsentry/webvitals.com 發布。
analytics
sentry
在 Sentry 的前端 UI 中檢測並探索分析事件。用於在按鈕、頁面、模態框或自訂互動中添加追蹤,以及定義新的…