Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/wangqiqi/cursor-ai-rulesnpx agentmods add rules/wangqiqi/cursor-ai-rules/module-monitorWrote 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.
[](https://agentmods.dev/rules/wangqiqi/cursor-ai-rules/module-monitor)<a href="https://agentmods.dev/rules/wangqiqi/cursor-ai-rules/module-monitor"><img src="https://agentmods.dev/badge/rules/wangqiqi/cursor-ai-rules/module-monitor/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/rules/wangqiqi/cursor-ai-rules/module-monitor"><img src="https://agentmods.dev/badge/rules/wangqiqi/cursor-ai-rules/module-monitor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.02380 |
| Opus 5 | $0.00000 | $0.01190 |
| Sonnet 5 | $0.00000 | $0.00476 |
| Haiku 4.5 | $0.00000 | $0.00238 |
Grade A, and why
module-monitor 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 12d 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.
How it starts
The opening of the file, as written. The whole thing — 284 lines — stays where its author put it; the contents beside it link to each section on GitHub.
📊 模块监控和配置管理
🔧 配置管理器 (Configuration Manager)
当前配置机制 (Current Configuration Mechanism)
规则级配置 (Rule-level Configuration)
每个规则通过 .cursor/rules/**/*.mdc 文件顶部的 YAML frontmatter 配置(Cursor 官方 Project Rules):
---
description: "规则描述"
globs: ["**/*.ts"]
alwaysApply: false
---
项目级配置 (Project-level Configuration)
- 通过创建/删除规则目录来控制规则激活
- 通过修改规则文件内容来调整规则行为
- 通过引用语法(
@规则名)建立规则间依赖
用户级配置 (User-level Configuration)
- 用户可以通过复制和修改规则来自定义行为
- 通过创建个人规则目录扩展功能
- 通过选择性激活规则来适应工作习惯
配置合并策略 (Configuration Merge Strategy)
class ConfigurationManager {
async getConfiguration(moduleName: string, key: string): Promise<any> {
const configs = await this.loadConfigurationHierarchy();
// 从低到高优先级查找配置
for (const config of configs.reverse()) {
if (config.modules?.[moduleName]?.[key] !== undefined) {
return config.modules[moduleName][key];
}
}
// 返回默认值
return this.getDefaultValue(moduleName, key);
}
async setConfiguration(moduleName: string, key: string, value: any): Promise<void> {
const userConfig = await this.loadUserConfig();
if (!userConfig.modules) {
userConfig.modules = {};
}
if (!userConfig.modules[moduleName]) {
userConfig.modules[moduleName] = {};
}
userConfig.modules[moduleName][key] = value;
await this.saveUserConfig(userConfig);
}
}
🧩 模块工具子系统 (Module Tools Subsystem)
模块架构 (Module Architecture)
模块架构设计蓝图 (Module Architecture Blueprint)
注意: 以下目录结构是概念性设计,展示了模块化系统的理想组织方式。目前这些目录还不存在,是未来扩展时的目标架构。
当前规则的功能分类 (Current Rules by Function Category)
├── 基础设施层 (Infrastructure Layer)
│ ├── system_info/ # 系统信息获取 (✅ 已实现)
│ ├── platform_adapter/ # 跨平台适配 (✅ 已实现)
│ └── i18n/ # 国际化支持 (✅ 已实现)
├── 开发工具层 (Development Tools Layer)
│ ├── eslint/ # JavaScript代码质量检查 (✅ 已实现)
│ ├── intelligent_evolution/ # 智能感知系统 (✅ 已实现)
│ └── generator/ # 规则生成器 (✅ 已实现)
├── 演进管理层 (Evolution Management Layer)
│ ├── evolution-philosophy/ # 演进理念 (✅ 已实现)
│ ├── evolution-manual/ # 手动演进 (✅ 已实现)
│ ├── evolution-automation/ # 自动化演进 (✅ 已实现)
│ └── evolution-governance/ # 演进治理 (✅ 已实现)
└── 框架核心层 (Framework Core Layer)
├── constitution/ # AI共生宪法 (✅ 已实现)
├── philosophy/ # 协作哲学 (✅ 已实现)
├── templates/ # 配置模板框架 (✅ 已实现)
└── module_manager/ # 规则管理系统 (✅ 当前文档)
注意:以上是功能分类的逻辑分组,实际文件都位于 .cursor/rules/ 目录下
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.
- 12d ago First seen · 284 lines · 0 tokens per session scan A 45f7be198a30
module-monitor is a cursor rule published in the GitHub repository wangqiqi/cursor-ai-rules (16 stars, last pushed 3mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,380 tokens. 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.
Other cursor rules, from other repositories
ponytail
Ponytail, lazy senior dev mode. Always pick the simplest solution that works.
angular-20
This rule provides comprehensive best practices and coding standards for Angular development, focusing on modern TypeScript, standalone components, signals, and performance optimizations.
dev-standard
Apache Superset development standards and guidelines for Cursor IDE.
cli-error-handling
CLI command error handling patterns.
prefer-direct-imports-over-module-mocks
Prefer extracting a testable core over vi.mock / vi.resetModules when unit tests need to reach production logic entangled with config, env, or singletons.
control-plane-descriptors
Control plane descriptor and instance implementation patterns.