performance-monitoring-system

performance-monitoring-system is a cursor rule for Cursor from Mr-chen-05/rules-2.1-optimized. It costs 3,555 tokens per session, scanned A, original, MIT.

A set of rules for tracking how quickly an AI coding system responds and how much memory, processor time, and disk activity it uses.

In plain words
What is it for?
Use it to check response times, file and tool operations, task duration, memory, CPU, and disk activity against stated limits.
Why use it?
It helps reveal slow requests, overloaded resources, timeouts, and possible memory leaks before they affect users.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc).

Good fit Use it to check response times, file and tool operations, task duration, memory, CPU, and disk activity against stated limits.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/mr-chen-05/rules-2.1-optimized/performance-monitoring-system
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.

Clone the repo
git clone --depth 1 https://github.com/Mr-chen-05/rules-2.1-optimized

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 performance-monitoring-system

README.md
[![agentmods](https://agentmods.dev/badge/rules/mr-chen-05/rules-2.1-optimized/performance-monitoring-system/github.svg)](https://agentmods.dev/rules/mr-chen-05/rules-2.1-optimized/performance-monitoring-system)
Your own site
<a href="https://agentmods.dev/rules/mr-chen-05/rules-2.1-optimized/performance-monitoring-system"><img src="https://agentmods.dev/badge/rules/mr-chen-05/rules-2.1-optimized/performance-monitoring-system/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.

agentmods 80×15 button for performance-monitoring-system

Your own site · 80×15
<a href="https://agentmods.dev/rules/mr-chen-05/rules-2.1-optimized/performance-monitoring-system"><img src="https://agentmods.dev/badge/rules/mr-chen-05/rules-2.1-optimized/performance-monitoring-system.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,555 This file is loaded in full into every session.
When invoked 3,555 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.03555 $0.03555
Opus 5 $0.01777 $0.01777
Sonnet 5 $0.00711 $0.00711
Haiku 4.5 $0.00356 $0.00356

Measured 10d ago against content hash 0089e77d3958, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

performance-monitoring-system 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 10d 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.

global-rules/performance-monitoring-system.mdc · 533 lines

How it starts

The opening of the file, as written. The whole thing — 533 lines — stays where its author put it; the contents beside it link to each section on GitHub.

📈 性能监控系统

实时洞察: 全面监控系统性能,识别瓶颈,优化用户体验,确保系统高效运行。

一、监控维度

1.1 响应时间监控

用户请求响应: 首次响应时间: - 目标: <2秒 - 测量点: 用户输入完成 → AI首次输出 - 监控频率: 每次请求 - 异常阈值: >5秒

完整响应时间: - 目标: 简单查询<5秒, 复杂任务<30秒 - 测量点: 请求开始 → 任务完成 - 监控频率: 每次请求 - 异常阈值: >2倍预期时间

工具调用性能: MCP工具执行: - 文件读取: <500ms - 文件写入: <1秒 - 目录操作: <200ms - GitHub API: <3秒 - Memory操作: <1秒

超时检测: - 轻度超时: >2倍正常时间 - 严重超时: >5倍正常时间 - 超时处理: 自动重试或降级

文件操作性能: 读取性能: - 小文件(<1MB): <100ms - 中文件(1-10MB): <500ms - 大文件(>10MB): 分块读取

写入性能: - 追加操作: <200ms - 完整写入: <500ms - 批量操作: <2秒

任务完成时间: 按复杂度分类: - Level 1任务: <10秒 - Level 2任务: <30秒 - Level 3任务: <2分钟 - Level 4任务: <5分钟 - Level 5任务: <15分钟

1.2 资源使用监控

内存占用: 正常范围: - 空闲状态: <100MB - 轻度使用: <300MB - 中度使用: <500MB - 重度使用: <1GB

监控指标: - 当前内存使用 - 内存使用峰值 - 内存增长率 - 内存泄漏检测

告警阈值: - 警告: >800MB - 严重: >1.5GB - 危险: >2GB

CPU使用率: 正常范围: - 空闲状态: <10% - 思考状态: 20-40% - 工具调用: 30-60% - 密集计算: 60-80%

监控指标: - 当前CPU使用率 - CPU使用峰值 - 平均CPU使用率 - CPU使用时长

告警阈值: - 警告: 持续>70%超过30秒 - 严重: 持续>90%超过10秒

磁盘IO: 读取性能: - 正常: <50MB/s - 峰值: <100MB/s - 监控: 读取次数和总量

写入性能: - 正常: <30MB/s - 峰值: <80MB/s - 监控: 写入次数和总量

IO等待: - 正常: <5% - 警告: >15% - 严重: >30%

网络请求: 请求统计: - API调用次数 - 请求成功率 - 平均响应时间 - 带宽使用

异常监控: - 连接超时 - 请求失败率 - 重试次数 - 限流触发

1.3 系统指标监控

工具调用统计: 成功率监控: - 目标: >99% - 监控: 成功/失败/超时 - 分类统计: 按工具类型分组

失败分析: - 失败原因分类 - 失败频率趋势 - 失败影响范围 - 自动修复尝试

错误频率: 错误分级: - 致命错误: 立即告警 - 严重错误: 记录并通知 - 一般错误: 记录日志 - 警告信息: 定期汇总

频率监控: - 每小时错误数 - 错误率趋势 - 错误类型分布 - 错误恢复率

重试机制: 重试统计: - 重试次数 - 重试成功率 - 平均重试时间 - 最终失败率

优化建议: - 高重试率操作识别 - 重试策略调整 - 超时阈值优化

缓存性能: 命中率统计: - L1缓存: 目标>90% - L2缓存: 目标>80% - L3缓存: 目标>70%

性能指标: - 缓存读取时间 - 缓存更新时间 - 缓存失效频率 - 缓存大小控制

Read the full file on GitHub · 533 lines

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. 10d ago First seen · 533 lines · 3,555 tokens per session scan A 0089e77d3958

Subscribe to this mod's changes

performance-monitoring-system is a cursor rule published in the GitHub repository Mr-chen-05/rules-2.1-optimized (173 stars, last pushed 10mo ago), licensed MIT. It adds 3,555 tokens to every session, about $0.0178 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.