class-sweep

仓库创建 2026年4月30日最近提交 22 天前SkillHot 收录 22 天前
▸ 精选理由

避免问题复发,适合 QA 与代码维护流程

这个 Skill 做什么

修完一个 bug 后在代码库中寻找相同缺陷类并统一修复与一致性检查

修完某个 bug 后不止改那一处,而是把问题抽象成一个“类”去全仓搜索并统一修复、校验相似视图的一致性。用在完成修复后、被 reviewer 发现成片性问题时,或有人怀疑其它组件也会复现时。特点是先给缺陷命名、构造搜索模式,再批量修和确认,避免同类问题再犯。

▸ 展开 SKILL.md 英文原文

After fixing any bug, sweep the codebase for the same defect class and check sibling views for consistency before declaring done. Use whenever a bug fix is completed, when the user asks 他でも起きていないか / 同じ問題 / 全componentチェック, or when a reviewer finding reveals a pattern that plausibly recurs elsewhere.

开发编程错误复查一致性检查维护流程通用
0
Stars
0
Forks
16
仓库内 Skill
+0
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/Eotel/skills/main/class-sweep/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/Eotel/skills/main/class-sweep/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# Class Sweep

A found defect is a **class**, not an instance. Fixing exactly what was pointed
at and stopping is the #5 correction pattern across ~2,000 sessions (「多分同じ
ような問題が他の component でも起きているんじゃない?」「同じ問題を二度と放置するな」).

## Procedure

1. **Name the class.** State the general rule the bug violated (e.g. "Popover
   with minChars:0 re-opens on blur", "placeholder replacement misses block-level
   w:sdt wrappers", "list view derives count independently of detail view").
   If you cannot name the class, you have not found the root cause yet — go back.

2. **Sweep for the pattern.** Search the codebase (rg / ast-grep for structural
   patterns) for every other occurrence of the same construct. S
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有