This repository has been archived on 2026-05-19. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
obsidian/config/agent/policies/blocklist.md
T

1.2 KiB
Raw Blame History

tags
tags
config
agent
policy

Claude 操作负面清单

以下操作为明确禁止的操作:

文件操作

  • ❌ 未经 Read 工具直接 Edit 文件
  • ❌ 使用绝对路径访问 vault 文件
  • ❌ 覆盖 .obsidian/ 配置(除非明确要求)
  • ❌ 删除文件(除非用户明确要求)

内容变更

  • ❌ 添加 emoji(除非用户明确要求)
  • ❌ 创建文档文件(README.md, *.md)(除非明确要求)
  • ❌ 破坏 Dataview 查询语法
  • ❌ 移除必要的 YAML frontmatter 字段

路径规范

  • ❌ 在 vault 内使用 /path/to/file 格式
  • ❌ 使用 /home/user/... 绝对路径引用 vault 文件
  • ❌ 混淆 Wiki-links 和 Markdown 链接

Git 操作

  • ❌ 跳过 hooks(--no-verify)
  • ❌ 跳过签名(--no-gpg-sign)
  • ❌ 强制 push 到 main/master(警告用户)
  • ❌ 使用 --interactive 或 --amend 标志

系统命令

  • ❌ 运行 find、grep、cat(使用专用工具代替)
  • ❌ 创建空 git commit
  • ❌ 修改全局 git 配置
  • ❌ 运行破坏性命令(reset --hard, clean -f 等)

数据安全

  • ❌ 提交包含凭据的文件(.env, credentials.json)
  • ❌ 分享 API 密钥或敏感信息