From 3d1677bdb1ce77cdaa60fd64012d0a4885fc264e Mon Sep 17 00:00:00 2001 From: empty Date: Tue, 16 Dec 2025 10:58:34 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=96=B0=E5=A2=9E=E6=89=A7=E8=A1=8C?= =?UTF-8?q?=E5=AE=89=E5=85=A8=E8=A7=84=E8=8C=83=EF=BC=8C=E9=98=B2=E6=AD=A2?= =?UTF-8?q?=E5=91=BD=E4=BB=A4=E6=8C=82=E8=B5=B7=E9=98=BB=E5=A1=9E=E4=BC=9A?= =?UTF-8?q?=E8=AF=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CLAUDE.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CLAUDE.md b/CLAUDE.md index 268836a..51a3055 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -50,6 +50,13 @@ xcodebuild -scheme to-live-photo -configuration Release -destination 'generic/pl - 不重构: 与当前任务无关的代码 - 不执行: 破坏性删除命令(如 rm -rf 涉及 ~ 或 / 路径) +## 执行安全 + +- 执行前评估: 命令是否可能挂起(交互式、网络依赖、长耗时) +- 禁止交互式: 不使用 `-i` 标志或需要 stdin 输入的命令 +- 长任务策略: 后台执行 + 超时设置 + 进度监控 +- 阻塞处理: 若命令超过预期时间无响应,主动中断而非无限等待 + ## 代码规范 - 遵循 `DesignSystem.swift` 令牌,禁止硬编码颜色/间距