🎨 style(markdown): format all markdown files with prettier

- 使用 prettier 格式化所有 markdown 文件
- prose-wrap: always, print-width: 80
- 保持代码块和表格格式
- 提升可读性和一致性

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
csh
2026-01-07 17:18:01 +08:00
co-authored by Claude Sonnet 4.5
parent 7e96bc86d8
commit 99bef309b7
86 changed files with 1858 additions and 981 deletions
+4 -5
View File
@@ -1,6 +1,9 @@
---
name: bulk-refactor-workflow
description: "Safe bulk refactors and mass edits across a repo (rename APIs, global replacements, mechanical changes). Triggers: bulk refactor, mass edit, rename symbol, global replace, 批量重构, 全局替换, 统一改名, 大范围修改."
description:
"Safe bulk refactors and mass edits across a repo (rename APIs, global
replacements, mechanical changes). Triggers: bulk refactor, mass edit, rename
symbol, global replace, 批量重构, 全局替换, 统一改名, 大范围修改."
---
# Bulk Refactor Workflow(批量重构 / 大范围修改)
@@ -21,23 +24,19 @@ description: "Safe bulk refactors and mass edits across a repo (rename APIs, glo
## Proceduredefault
1. **Baseline**
- 确保工作区干净:`git status --porcelain`
- 跑一个基线验证(至少 build 或核心测试子集),避免“本来就坏”
2. **Enumerate**
- 先搜索再改:用 `rg`/`git grep` 列出全部命中
- 分类命中:真实调用 vs 注释/文档/样例;避免误改
3. **Apply Mechanical Change**
- 优先使用确定性的机械变换(脚本/结构化编辑)而非手工逐个改
- 每轮改动后立即做小验证(编译/单测子集)
- 复杂迁移优先“两阶段”:先兼容旧接口(deprecated),再清理旧接口
4. **Format & Lint(按项目约定)**
- 仅在确认“会破坏 diff 可读性”前提下分批格式化(避免把重构和格式揉在一起)
5. **Verify & Report**