feature-flag-cleanup-20260722
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "feature-flag-cleanup-20260722" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-0c00975733c8660bf9d8d7da11fd2fd974d8304bfa3bd49744fb92fc9edea111. Verify the upstream source and version against https://skillhub.cn/skills/user_bd3231bd/feature-flag-cleanup-20260722 before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Organize a feature-flag list into cleanup candidates and verification/rollback checklists, for use when reducing flag debt without automatically changing configs or creating PRs.
Introduction source: third_party · user_bd3231bd · 0.1.2 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Audience
- Translation pending; see source documentation.
- Inputs and outputs
- Translation pending; see source documentation.
- Limits and differences
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: "feature-flag-cleanup-20260722"
description: 把特性开关列表整理成可清理候选与验证/回滚检查清单;当用户要降低 flag 债务且不需要自动改配置或提 PR 时使用。特性开关清理清单
用途
把用户提供的特性开关(feature flag)列表或配置说明,整理成清理参谋清单:
- 每个 flag 的建议:删除 / 保留 / 再观察
- 删除前验证项
- 回滚条件
- 待确认(缺流量/全量证据时)
模板见 references/flag-cleanup-template.md。
本技能只出清单:不登录配置中心、不自动改开关、不提删除代码的 PR。
适用场景
- 适合: 季度 flag 大扫除、全量已久仍残留的开关、准备下线实验层。
- 不适合: 发版 Go/No-Go 全量门禁、依赖升级风险评估、自动运维改配置。
怎么使用(普通用户)
在 AI 助手里直接说,例如:
- 「用特性开关清理清单,帮我看看这些 flag 哪些能删」
- 「列出删除前要验证什么、怎么回滚」
- 「没数据的标待确认,别武断建议删」
使用步骤
1. 收集输入
| 字段 | 说明 |
|---|---|
| Flag 列表 | 名称 + 用途(可粘贴表格/文档) |
| 状态线索 | 可选:是否已全量、流量、负责人、创建日期 |
| 环境 | 可选:生产/预发 |
无列表时先请用户提供,不臆造公司现有 flag。
2. 分类建议
对每个 flag 给出唯一建议:
- 删除: 素材表明已长期全量/废弃,且无依赖说明
- 保留: 仍在分流、应急开关或合规用途
- 再观察: 证据不足或处于灰度
缺「是否全量/流量」证据时,建议最多到「再观察」,状态=待确认。
3. 写验证与回滚
对「删除」候选必须写:
- 删除前验证(如:默认路径覆盖、监控看板、关键用例)
- 回滚条件(如:错误率回升则重新打开)
4. 输出
使用下方格式;高风险项置顶。
输出格式
# 特性开关清理清单:{范围}
## 元信息
- 环境: …
- 素材来源: …
- 清理窗口建议: …
## 候选表
| Flag | 用途摘要 | 建议 | 理由 | 删除前验证 | 回滚条件 | 状态 |
| --- | --- | --- | --- | --- | --- | --- |
## 高风险(置顶)
- …
## 待确认
- …
## 一句话提醒
不自动改配置中心或提删除 PR。
示例
示例 1: 常规清理(删除/保留/再观察三类)
输入:
环境: 生产
列表:
1. ff_new_checkout — 新结算页,已全量 90 天,负责人阿成
2. ff_dark_launch_search — 搜索暗发,仍 5% 流量
3. ff_legacy_coupon — 旧优惠券路径,文档写「待下线」但无全量数据
输出:
# 特性开关清理清单:生产 Flag 扫除
## 元信息
- 环境: 生产
- 素材来源: 用户粘贴列表
- 清理窗口建议: 待确认(素材未给发布窗口)
## 候选表
| Flag | 用途摘要 | 建议 | 理由 | 删除前验证 | 回滚条件 | 状态 |
| --- | --- | --- | --- | --- | --- | --- |
| ff_new_checkout | 新结算页 | 删除 | 已全量 90 天 | 结算主路径用例;支付成功率看板 | 支付失败率异常则临时以配置回滚(若仍保留开关位) | 可执行 |
| ff_dark_launch_search | 搜索暗发 | 保留 | 仍 5% 流量 | — | — | 可执行 |
| ff_legacy_coupon | 旧优惠券路径 | 再观察 | 「待下线」但无全量/流量证据 | 补齐流量与调用方清单后再评 | — | 待确认 |
## 高风险(置顶)
- ff_legacy_coupon: 证据不足,禁止直接删
## 待确认
- 清理发布窗口与审批人
- ff_legacy_coupon 当前流量与调用服务
## 一句话提醒
不自动改配置中心或提删除 PR。
示例 2: 永久应急开关(kill switch)专项 —— 未使用不等于可删除
常规判据是「长期全量或长期无流量 → 可清理」,但应急开关恰好相反:它的价值就在于平时不用。0% 流量、两年没动过,正说明系统一直健康,不构成删除理由。这类 flag 单列一节、不进候选表,避免被批量清理误伤。
输入:
环境: 生产
列表:
1. ff_kill_payment_channel_b — 支付渠道 B 熔断开关,创建 2 年,从未启用,当前 0%
2. ff_readonly_mode — 全站只读模式,去年大促演练用过 1 次,平时 0%
3. ff_new_search_ui — 新搜索界面,已全量 120 天
4. ff_temp_hotfix_20250311 — 临时热修开关,名称含日期,负责人已离职,0% 流量
输出:
# 特性开关清理清单:生产 Flag 扫除(含应急开关专项)
## 元信息
- 环境: 生产
- 素材来源: 用户粘贴列表
- 清理窗口建议: 待确认
## 常备应急开关(不参与清理,单列)
| Flag | 用途摘要 | 建议 | 理由 | 有效性保障 | 状态 |
| --- | --- | --- | --- | --- | --- |
| ff_kill_payment_channel_b | 支付渠道 B 熔断 | **保留(常备)** | 0% 流量与 2 年未启用**不是**删除理由;应急开关平时本就不用 | 建议纳入季度演练,验证开关仍能真实生效(代码路径未随重构失效) | 可执行 |
| ff_readonly_mode | 全站只读模式 | **保留(常备)** | 去年演练验证过一次,属灾备能力 | 记录上次演练日期,超 12 个月未演练则安排一次 | 可执行 |
**风险提示**:常备应急开关最大的隐患不是占用债务,而是**长期不用导致悄悄失效**(依赖的代码分支被重构删除、下游已不再读取该配置)。因此对这类 flag 的正确动作是「定期演练」而非「清理」。
## 候选表(常规清理)
| Flag | 用途摘要 | 建议 | 理由 | 删除前验证 | 回滚条件 | 状态 |
| --- | --- | --- | --- | --- | --- | --- |
| ff_new_search_ui | 新搜索界面 | 删除 | 已全量 120 天 | 搜索主路径用例;搜索成功率看板 | 搜索错误率回升则重新打开 | 可执行 |
| ff_temp_hotfix_20250311 | 临时热修 | 再观察 | 0% 流量且负责人离职,但**不能据此直接删**:需先确认热修问题是否已根治 | 补齐:对应缺陷是否已修复合入、是否仍有代码引用 | — | 待确认 |
## 高风险(置顶)
- ff_temp_hotfix_20250311: 负责人离职导致无人可确认背景,删除前必须查清原始缺陷是否已根治,否则可能移除仍在兜底的分支
## 待确认
1. 两个常备应急开关最近一次演练日期
2. ff_temp_hotfix_20250311 对应的原始缺陷单号与修复状态;现任归属人
## 一句话提醒
不自动改配置中心或提删除 PR。
对照要点:示例 1 的三类判据依据「流量与全量时长」;示例 2 引入两个例外——应急开关不按流量判生死(0% 是正常态,动作是演练而非清理),无人认领的临时开关不能因为没人管就删(负责人离职反而意味着背景不清、风险更高)。两者都是「长期 0% 流量」,结论却完全不同,区别在于该开关是否承担兜底职责。
常见问题(FAQ)
- 只有 flag 名没有用途: 用途写「未知」,建议「再观察」,待确认补用途。
- 用户要求「全部建议删除」: 拒绝无证据批量删除;逐条按证据给建议。
- 与发版检查混淆: 本技能不替代完整 Go/No-Go,只处理 flag 清理。
已知限制
- 不连接 LaunchDarkly/自研配置中心。
- 不分析代码引用图(除非用户粘贴检索结果)。
- 不保证删除后无隐藏依赖。
变更说明
- 0.1.2: 补「永久应急开关(kill switch)专项」对照示例,单列不参与清理的常备开关,明确 0% 流量是其正常态、正确动作是定期演练而非删除;同时补「负责人离职的临时开关不能因无人认领就删」的判据。
- 0.1.1: 原 slug
feature-flag-cleanup上架冲突,改名为feature-flag-cleanup-20260722。 - 0.1.0: 首发。把特性开关列表整理成可清理候选与验证/回滚检查清单。
Current listing version
0.1.2
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 高价值工程治理场景,解决 flag 债务清理痛点
- 明确区分常规清理与应急开关专项,避免误删兜底能力
- 提供结构化清单模板,显著提升治理效率
Highlights
- 触发词覆盖完整,支持多种自然语言变体
- 边界清晰,明确区分适用与不适用场景
Highlights
- Phase/步骤清晰,有出口条件
- 含端到端示例,frontmatter完整
- 单文件结构良好,易于理解执行流程
Highlights
- 工具来源明确,参数正确
- 覆盖主要异常,缺证据时建议「再观察」
- 不可逆操作有确认机制,明确不自动改配置
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.