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
- Read
Sunset-notice.md. - Slug from the capability name: a workflow's
${workflow.slug}wins; otherwise lowercase it, replace each run of characters outsidea-z0-9with-, 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. - 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.
- 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
runbook
Write or refresh an operational runbook for an alert/symptom; structured as TL;DR + Pre-checks + Steps + Verification + Rollback + Escalation.
rfc
Draft a lightweight design RFC to docs/rfcs/<slug>.md; Summary, Motivation, Detailed design, Drawbacks, Alternatives, Unresolved questions. A proposal to debate, not a recorded decision (adr).
editorial-pass
Review and tighten prose in a Markdown artifact for a target tone (terse, formal, friendly) without dropping information; preserve quotations and load-bearing constraints.
architecture-review-facilitation
Run an architecture review as a process — entry criteria, reviewer checklist, decision log, and follow-up actions — pairing the design artifact with a red-team pass.
architecture-doc
Write a C4-style architecture document; System Context + Containers (+ Components when interesting) with mermaid diagrams. Describes structure, not a decision (adr) or proposal (rfc).
adr
Write an Architecture Decision Record (Michael Nygard format) to docs/adrs/NNNN-<slug>.md; frontmatter validated by the ADR artifact schema. Records a made decision, not a proposal to debate (rfc).