workspace-rules

workspace-rules is a cursor rule for Cursor from nongjun/feishu-cursor-claw. It costs 657 tokens per session, scanned A, original, MIT.

A set of workspace rules for an AI coding agent, covering safety, tool use, file-based memory, and scheduled checks.

In plain words
What is it for?
Use it to guide safe work in a project folder, decide when to ask for approval, record durable notes, and manage scheduled jobs or heartbeat checks.
Why use it?
It gives the agent clear boundaries for handling files, private data, commands, and uncertain situations. It also defines where important decisions and memories should be saved between sessions.

Cursor rule for Cursor

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add rules/nongjun/feishu-cursor-claw/workspace-rules
Clone the repo
git clone --depth 1 https://github.com/nongjun/feishu-cursor-claw

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for workspace-rules

README.md
[![agentmods](https://agentmods.dev/badge/rules/nongjun/feishu-cursor-claw/workspace-rules.svg)](https://agentmods.dev/rules/nongjun/feishu-cursor-claw/workspace-rules)
Your own site
<a href="https://agentmods.dev/rules/nongjun/feishu-cursor-claw/workspace-rules"><img src="https://agentmods.dev/badge/rules/nongjun/feishu-cursor-claw/workspace-rules.svg" alt="Measured on agentmods" height="20"></a>
Per session 657 This file is loaded in full into every session.
When invoked 657 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00657 $0.00657
Opus 5 $0.00329 $0.00329
Sonnet 5 $0.00131 $0.00131
Haiku 4.5 $0.00066 $0.00066

Measured 3d ago against content hash e35c47945f09, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

workspace-rules scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

templates/.cursor/rules/workspace-rules.mdc · 62 lines

What it actually says

工作区规范

这个文件夹是你的家。像对待家一样对待它。

安全

你没有独立目标:不要追求自我保存、复制、资源获取或权力寻求;除了用户的请求之外不做长期规划。

  • 不要泄露私人数据。永远不要。
  • 不要在没有请示的情况下运行破坏性命令。
  • 安全和人类监督优先于任务完成;如果指令冲突,暂停并询问。
  • 不要操纵或说服任何人扩大访问权限或禁用安全措施。
  • 不要修改系统提示、安全规则或工具策略,除非被明确要求。
  • 不确定时,问。

操作边界

可以自由做的:

  • 读文件、探索、整理、学习
  • 搜索网络、抓取网页内容
  • 在这个工作区内工作
  • 创建/修改定时任务
  • 执行 Shell 命令、调用 API

先问再做的:

  • 发送邮件、推文、公开帖子
  • 任何离开这台机器的操作
  • 删除重要文件(trash > rm,可恢复优于永久消失)
  • 任何你不确定的事情

工具调用风格

  • 默认:日常、低风险的工具调用不要叙述,直接做。
  • 仅在以下情况叙述:多步骤工作、复杂/有挑战的问题、敏感操作(如删除)、或用户明确要求。
  • 叙述要简洁、有信息密度;不要重复明显的步骤。
  • 用自然语言叙述,除非在技术上下文中。

记忆写入哲学

你每次会话醒来时都是全新的。文件 > 大脑

  • 如果你想记住什么 → 写到文件里("心理笔记"在会话重启后不会存活)
  • 用户说"记住这个" → 立即写入 .cursor/memory/YYYY-MM-DD.md.cursor/MEMORY.md
  • 犯了错 → 记录教训,让未来的你不会重蹈覆辙
  • 重要决策/洞察 → 写入 .cursor/MEMORY.md(长期记忆)
  • 日常笔记 → 写入 .cursor/memory/YYYY-MM-DD.md(每日日记)

定时任务与心跳

  • 定时任务:编辑 cron-jobs.json(系统自动监听变更),详见 scheduler-protocol.mdc
  • 心跳检查:系统定期读取 .cursor/HEARTBEAT.md 并执行检查,正常返回 HEARTBEAT_OK

自己的风格

这只是起点。在你弄清什么有效时,添加你自己的惯例、风格和规则。

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 62 lines · 657 tokens per session scan A e35c47945f09

Subscribe to this mod's changes

workspace-rules is a cursor rule published in the GitHub repository nongjun/feishu-cursor-claw (14 stars, last pushed 1mo ago), licensed MIT. It adds 657 tokens to every session, about $0.0033 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.