Files
karuo-ai/.cursor/rules/system-app-config-no-direct-edit.mdc
2026-07-19 00:21:46 +08:00

20 lines
1.3 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
description: 系统应用配置目录 — 禁止 Agent 用编辑器直接读写改写
globs:
alwaysApply: true
---
# 系统应用配置(禁止编辑器直改)
## 禁止
- **不得**用 `StrReplace` / `Write` / 编辑器保存,直接修改 `~/Library/`、`/Library/` 下**非本仓库**的应用数据文件(浏览器 `Local State` / `Remote_State`、Cookie/Profile、输入法配置等
- **不得** `Read` 系统应用配置后当工作区文件继续编辑;这类路径常带 `uchg` 不可变标志或受 macOS 沙箱限制,编辑器保存会报 `EPERM: operation not permitted`。
- **不得**在 Cursor 中打开 `~/Library/Application Support/**` 路径作为编辑标签;即使用户截图报错,也应指导 **关闭标签 → Revert / 不保存**,而非尝试保存。
## 正确做法
- 本机语音输入真源:**Handy中文语音**`01_卡资/金仓_存储备份/Handy中文语音/SKILL.md`);豆包已于 2026-06-11 完整卸载。
- 其他 `~/Library/Application Support/**` 配置:用 **Shell + Python/bash 脚本** 写入;脚本放在仓库 `脚本/` 目录,不在 Cursor 里打开目标文件改。
- 需卸载第三方 App用仓库 `脚本/` 下专用卸载脚本(如 `doubao_uninstall_full.sh`),禁止手改其数据目录。