nodeskclaw / rules
Cursor rule757 starsChanged 5 months agoApache-2.0View on GitHub
敏感信息隔离策略 — 文档放 EE、规则不留隐私
In this repository20 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/admin-portal-boundary.mdcCursor rule
- .cursor/rules/auto-plan-review.mdcCursor rule
- .cursor/rules/ce-ee-boundary.mdcCursor rule
- .cursor/rules/coding-style.mdcCursor rule
- .cursor/rules/community-pr-review.mdcCursor rule
- .cursor/rules/docs-first-workflow.mdcCursor rule
- .cursor/rules/docs-writing-style.mdcCursor rule
- .cursor/rules/figma-rate-limit.mdcCursor rule
- .cursor/rules/first-principles.mdcCursor rule
- .cursor/rules/gene-skill-sync.mdcCursor rule
- .cursor/rules/git-conventions.mdcCursor rule
- .cursor/rules/grep-search-discipline.mdcCursor rule
- .cursor/rules/k8s-cluster-operations.mdcCursor rule
- .cursor/rules/plan-no-line-numbers.mdcCursor rule
- .cursor/rules/plan-ui-summary.mdcCursor rule
- .cursor/rules/proxy-no-proxy.mdcCursor rule
- .cursor/rules/runtime-provider-awareness.mdcCursor rule
- release-deploySkill
The file
Files
--- description: 敏感信息隔离策略 — 文档放 EE、规则不留隐私 alwaysApply: true --- # 敏感信息隔离策略 ## 文档归属 **所有项目文档必须放在 EE 私有仓库(`ee/docs/`),禁止在 CE 公开仓库中新建文档目录或文档文件。** - 新增设计文档、架构文档、PRD、部署方案等 → 写入 `ee/docs/` - 需要引用文档内容时 → 引用路径为 `ee/docs/xxx.md` - CE 仓库的 `docs/` 目录已清空并移除,不得重建 ## Rules 文件信息边界 **`.cursor/rules/*.mdc` 规则文件属于 CE 公开仓库,禁止包含以下内容:** - IP 地址、域名、URL(内部服务地址) - 数据库连接串、密钥、Token - 集群名称、Namespace、节点信息等基础设施细节 - 内部人员信息、组织架构 - 业务数据样例(用户名、手机号等) **如果规则需要引用敏感上下文**,使用间接引用: ```markdown # 正确 — 引导去 EE 文档查阅 详细的集群配置和部署拓扑见 `ee/docs/VKE部署方案.md`。 # 错误 — 在规则里直接写敏感信息 集群 API 地址为 https://10.x.x.x:6443,context 名称为 xxx。 ``` ## 代码中禁止出现真人个人信息 **代码(含注释、placeholder、demo 数据、测试 fixture)中严禁出现真实的个人信息:** - 真人邮箱地址 - 真人姓名、手机号 - 真实用户名、员工工号 **必须使用 `example.com` 等占位域名或虚构数据:** ```python # 正确 placeholder = "user@example.com" test_email = "alice@example.com" # 错误 — 使用了真人邮箱 placeholder = "zhangsan@company.com" test_email = "realuser@gmail.com" ``` - 邮箱 placeholder / 测试数据统一用 `@example.com`(RFC 2606 保留域名) - 姓名用 `Alice`、`Bob` 等虚构名或 `user1`、`admin` 等通用标识 - 发现代码中存在真人信息时,**立即替换并提交**,不需要等用户确认 ## CLAUDE.md / AGENTS.md 同样适用 根目录的 `CLAUDE.md` 和 `AGENTS.md` 属于 CE 公开仓库,同样禁止包含敏感信息。只保留通用的开发规范和项目结构说明。
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

