announcing-behavior-changes
БесплатноБез исполняемых скриптовНе проверенDecides whether a behavior-changing fix needs an in-app notice, then builds one that reaches only the affected users and can be removed later. Use when a…
от PostHog★ 41 278 звёзд на GitHubОб этом скилле
Announcing behavior changes
Some fixes correct wrong behavior but change what a user sees. The number moves, the chart shifts, the count drops. Nothing is broken, but from the user's side it is indistinguishable from a regression, and they have no way to find out why.
An in-app change notice closes that gap: it appears where the user sees the different result, says what changed, and then goes away.
The reference implementation is frontend/src/queries/nodes/DataVisualization/Components/SqlInsightDateFilterNotice.tsx, shipped in commit 76f2905222a alongside the backend change it explains. Read it before writing a new one — it is 60 lines and it is the whole pattern.
First: does this change need a notice?
Most changes do not. A notice that fires for people it does not concern is worse than no notice, because it teaches everyone to dismiss banners without reading them. Ship one only when all four hold.
- A user who does nothing sees something different. Not a new feature, not a change they opted into behind a flag.
- They cannot work out why from the screen. If the UI already explains it, the UI is the notice.
- The difference is big enough to notice. A rounding change in the fourth decimal is not.
- You can identify who is affected, in code. See below — this is the one that usually fails.
The narrowing test
Write the predicate first. If you cannot express "this user is affected" as a function of state the client already has, you are about to show a banner to everyone about something that concerns a minority.
When that happens, pick a different mechanism instead of widening the blast radius:
| Situation | Use instead |
|---|---|
| Only the backend can tell who is affected | A per-object field on the API response, rendered where that object is shown. Action.selector_warning (#80653) is the model. |
| The condition is permanent, not a one-time transition | Same — a computed warning, not a time-boxed notice. |
| Everyone is affected but the change is minor | Changelog only. |
| The old behavior was plainly broken and the new one is self-evidently right | Nothing. An error that stops happening needs no announcement. |
The pattern
Five pieces. All of them ship in the same PR as the behavior change, so a reviewer sees the change and its explanation together, and the notice cannot be forgotten once the change is out.
1. An exported, tested predicate
Mirror the backend rule in a named function, and say in a comment which backend code it mirrors so the two can be kept honest.
/** Whether the SQL date filter resolution fix can produce different results for this query.
* Mirrors the affected shapes of ReplaceFilters in posthog/hogql/filters.py. */
export function isAffectedByDateFilterResolutionChange(source: HogQLQuery): boolean {
Export it separately from the component so it can be unit tested without rendering.
2. A feature flag
Declare it in frontend/src/lib/constants.tsx with an owner comment, in the same style as the neighbours:
SQL_INSIGHT_DATE_FILTER_NOTICE: 'sql-insight-date-filter-notice', // owner: #team-analytics, gates the notice on SQL insights affected by the date filter resolution fix
The flag does three jobs: it lets you roll the notice out gradually, it lets you turn it off without a deploy if the copy is wrong or the predicate is too broad, and it is the handle you retire the notice by when it has served its purpose.
3. A component that returns null by default
Both gates, flag first — it is the cheaper check and the kill switch:
export function SqlInsightDateFilterNotice({ source }: { source: HogQLQuery }): JSX.Element | null {
const { featureFlags } = useValues(featureFlagLogic)
if (!featureFlags[FEATURE_FLAGS.SQL_INSIGHT_DATE_FILTER_NOTICE] || !isAffectedByDateFilterResolutionChange(source)) {
return null
}
return (
<LemonBanner type="info" dismissKey="sql-insight-date-filter-notice">
Установить announcing-behavior-changes в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл announcing-behavior-changes?
Decides whether a behavior-changing fix needs an in-app notice, then builds one that reaches only the affected users and can be removed later. Use when a change alters what an existing user sees without them doing anything — a metric moves, a chart shifts, a count drops, a date range resolves differently, a matcher matches differently — and when adding, reviewing, or removing such a notice. Trigger terms: behavior change, breaking change, semantics change, "results may differ", change notice, deprecation banner, migration banner. Carries the gate (narrow to the affected users with a tested predicate, or do not ship a notice at all), the pattern from `SqlInsightDateFilterNotice`, where to anchor the notice, and the flag-based removal path. Not for new features (use the changelog), not for permanent per-object warnings computed by the backend, and not for the wording itself (see `/writing-user-facing-copy`).
Как установить скилл announcing-behavior-changes?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл announcing-behavior-changes запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic