AGENT SKILL

write-sunset-notice

Author a deprecation / sunset notice — two dates (warn, remove), concrete migration with before/after code, exception path, FAQ.

License 许可
MIT
最近更新
2026-10-29
Stars
★ 0
Forks
0

01 前言 Front Matter

name
write-sunset-notice
description
Author a deprecation / sunset notice — two dates (warn, remove), concrete migration with before/after code, exception path, FAQ.

03 SKILL.md 正文

write-sunset-notice

A sunset notice is two dates and a migration. Anything else is decoration. The reader needs to know what to do and by when.

Mode: analytical — judgment inside a fixed frame. Keep the output shape; every verdict cites its evidence; unknowns are marked [TBD] or [VERIFY], never filled in.

When to use

  • A capability (API endpoint, feature, integration) is being deprecated.
  • A library version is going end-of-life.
  • A workflow's sunset step needs structured user-facing content.

Inputs

  • The capability being sunset (required).
  • Sunset date (when warnings appear / new usage blocked).
  • Removal date (when the capability stops working).
  • The replacement (required — sunset without a replacement is just removal, write that differently).

Procedure

  1. Read Sunset-notice.md.
  2. Slug from the capability name: a workflow's ${workflow.slug} wins; otherwise lowercase it, replace each run of characters outside a-z0-9 with -, trim - at the ends, and cut to ≤ 60 characters at a -. An existing file at the target path is updated in place (show the diff), never duplicated.
  3. Draft docs/sunsets/<slug>.md:
    • What's being sunset: one sentence in the user's vocabulary.
    • When: today's deprecation warning + sunset date + removal date. All three.
    • Why: one paragraph, honest. "We're refocusing" beats "tech debt".
    • What you should do: before/after code example. The only section that matters for most readers.
    • What replaces it: the supported alternative + one-line comparison.
    • Out of scope: what's not changing (calms the readers who feared more).
    • Exception / extension path: how to request more time.
    • FAQ: the 3 hardest questions, answered.
  4. Surface this with at least the standard sunset window (60–90 days for most capabilities; 6+ months for paid integrations).

Quality bar

  • Two dates: sunset (warnings start / new usage blocked) and removal (stops working). Both must exist; the announcement date is stated alongside them.
  • Before/after code or config example present.
  • A replacement is named. If there's no replacement, the doc is a removal-notice, not a sunset-notice — rewrite accordingly.
  • Exception path documented.

Output

  • File: docs/sunsets/<slug>.md.
  • Summary: capability + sunset date + removal date + replacement.

Anti-patterns to avoid

  • "We're sunsetting X" without a removal date. Open-ended deprecations rot.
  • Sunset notice without a replacement. That's a removal, not a sunset.
  • "Why" section that's "tech debt cleanup". Customers don't care about your debt; explain the user-impacting reason.
  • No FAQ. Readers will have questions; better to answer the ones you anticipate.

04 同仓库更多 Skills