deprecation-plan
Plan a deprecation — two dates (warn + remove), telemetry-gated removal, comms cadence, exception path, code/header markers. The lifecycle plan, not the customer notice (write-sunset-notice).
- License 许可
- MIT
- 最近更新
- 2026-10-29
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- deprecation-plan
- description
- Plan a deprecation — two dates (warn + remove), telemetry-gated removal, comms cadence, exception path, code/header markers. The lifecycle plan, not the customer notice (write-sunset-notice).
03 SKILL.md 正文
deprecation-plan
Deprecation is a contract with a timeline, not a surprise. Set two dates, prove usage actually dropped before you pull it, and give people a way out.
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, flag, feature, config) is going away and you need the staged plan.
- The user asks how to deprecate/sunset/retire something on a schedule.
- A workflow invokes
polymath-release:deprecation-plan(see also thedeprecationToRemoval/sunsetCapabilityworkflows).
This is the plan. It is not the customer-facing notice copy (polymath-communication:write-sunset-notice), the consumer upgrade steps (polymath-release:migration-guide), or removing dead code (engineering).
Inputs
- What is being deprecated and why; the replacement (or "no replacement").
- Who depends on it (internal/external; known consumers) and current usage signal.
- Constraints: contracts/SLAs, support windows, regulatory.
- Missing dates or usage data are never invented: dates the owner hasn't set are proposed and marked
[VERIFY: date]; an unmeasured usage baseline is[TBD: baseline — measure before announcing].
Procedure
- Two dates — warn (deprecation announced, still works) and remove (gone). State the support window between them and the rationale.
- Telemetry gate — define the usage metric and the threshold the metric must be under before removal proceeds; removal is gated on data, not just the calendar.
- Markers — how the deprecation is signalled in-product:
Deprecation/SunsetHTTP headers, log warnings, SDK deprecation annotations, changelog. - Comms cadence — announce at warn, reminders at intervals, final notice before remove; route to the affected audience.
- Exception path — how a blocked consumer requests an extension, and who approves.
- Migration — link the upgrade path (
polymath-release:migration-guide); deprecation without a migration path is just breakage. - 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. - Write
docs/deprecations/<slug>-plan.md(the customer notice fromwrite-sunset-noticelives beside it atdocs/deprecations/<slug>.md).
Output
docs/deprecations/<slug>-plan.md, in this shape:
Deprecation plan: GET /v1/search → replacement: GET /v2/search
Dates: warn 2026-11-02 · remove 2027-02-01 (90-day window: matches the public API support policy)
Gate: remove only when v1 calls < 0.5% of v2 calls for 14 consecutive days
metric: http_requests_total{route="/v1/search"} — baseline [TBD: measure before announcing]
Markers: Deprecation + Sunset headers on every v1 response; SDK @deprecated in 4.8; CHANGELOG Deprecated entry
Comms: announce at warn → reminders at −60d, −30d, −7d → final notice at remove (owner: API PM)
Exception: extension requests via the API support form; approver: [VERIFY: approver role]; max +60 days
Migration: docs/migrations/v1-search-guide.md
If the gate fails on the remove date: removal slips; re-check weekly; escalate the top 3 callers by name.
Quality bar
- Two explicit dates with a justified support window between them.
- Removal is gated on a usage threshold, not the date alone; the metric is named.
- An exception/extension path exists with an approver.
- A migration path is linked; "just stop using it" is not a migration path.
- What happens when the gate fails on the removal date is written down.
Anti-patterns to avoid
- One date ("deprecated as of today") with no removal date — open-ended deprecations rot.
- Removing on the calendar while usage is still above the gate.
- An exception path with no approver or no maximum extension.
- Inventing a usage baseline instead of measuring it.
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).