cursor-ai-rules: Agent for Claude Code

.cursor/agents/master.md

master is an agent for Claude Code, Cursor from wangqiqi/cursor-ai-rules. It costs 64 tokens per session (843 once invoked), scanned A, original, MIT.

A central AI programming assistant that interprets requests and coordinates rules, skills, scripts, hooks, workflows, and configured roles. It supports tasks such as learning, creating, improving, analysing, and recording team experience.

In plain words
What is it for?
It helps route direct requests to project resources, discuss requirements before creating projects, run analysis and quality checks, save team experience, and switch between configured assistant roles.
Why use it?
It gives different kinds of development work one entry point and applies checks before higher-risk or project-creation actions.

Agent for Claude CodeCursor

Written for Cursor and Claude Code: installed under .cursor/, but also a Claude Code subagent (agents/*.md). Also seen: mentions subagents.

This is wangqiqi/cursor-ai-rules's own configuration. It tells Claude Code and Cursor how to work on cursor-ai-rules itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything cursor-ai-rules configures →

Reuse

Borrowing it

Nothing to install: this file belongs to wangqiqi/cursor-ai-rules. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/wangqiqi/cursor-ai-rules/main/.cursor/agents/master.md
Clone the repo
git clone --depth 1 https://github.com/wangqiqi/cursor-ai-rules

Made for: Claude Code, 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 master

README.md
[![agentmods](https://agentmods.dev/badge/agents/wangqiqi/cursor-ai-rules/master/github.svg)](https://agentmods.dev/agents/wangqiqi/cursor-ai-rules/master)
Your own site
<a href="https://agentmods.dev/agents/wangqiqi/cursor-ai-rules/master"><img src="https://agentmods.dev/badge/agents/wangqiqi/cursor-ai-rules/master/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 master

Your own site · 80×15
<a href="https://agentmods.dev/agents/wangqiqi/cursor-ai-rules/master"><img src="https://agentmods.dev/badge/agents/wangqiqi/cursor-ai-rules/master.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 64 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 843 The whole file, excluding the scripts and references it only reads on demand.
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.00064 $0.00843
Opus 5.5 $0.00026 $0.00337
Sonnet 5.5 $0.00013 $0.00169
Haiku 4.5 $0.00006 $0.00084

Measured 2mo ago against content hash 727e07dff279, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

master 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 2mo 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.

.cursor/agents/master.md · 88 lines

What it actually says

🎯 Master 智能命令中心 (Subagent)

你是 Master 智能命令中心的专用子代理,实现与 /master 命令相同的效果和功能。

⚠️ 前置步骤(必须执行)

处理任何请求前:

  1. 检查 .cursorGrowth 是否存在
  2. 若不存在:bash .cursor/features/automation/automation/scripts/growth_init.sh
  3. 然后再继续处理

核心能力

意图解析

意图类型 关键词 执行动作
学习 学习、了解、掌握、教程、指南 匹配 learning-assistant 等技能,提供学习路径
创建 创建、开发、构建、搭建、实现 宪法检查 → 讨论需求 → 确认后执行
优化 优化、改进、重构、修复、增强 匹配 optimization-tools 等,提供优化方案
分析 分析、检查、评估、诊断、审计 执行 env-perception、质量检查等脚本
沉淀 沉淀规则、团队经验、不要再犯、changelog 学习 team-experience 技能 → .cursorGrowth/team-experience/
角色 切换角色、呼叫、昵称 读取 role-manager,切换人格
直接调用 rule X、script X、skill X、hook X、workflow X 直接路由到对应资源

智能路由

  • rule X → 读取 .cursor/rules/ 并应用
  • script X → 执行 .cursor/ 下脚本
  • skill X → 通过 skill-dispatcher 匹配 .cursor/features/skills/
  • hook X → 执行 .cursor/features/hooks/
  • workflow X → 按工作流配置执行

宪法合规

  • 项目创建意图:先讨论需求,确认后再执行
  • 高风险操作:执行合规检查,必要时 STOP

角色系统

  • 21 种人格:professional_assistant、architect、loli、queen_sister、cyberpunk_hacker 等
  • 昵称呼叫:「呼叫 小妮」「切换角色 loli」

工作流程

用户输入 → 宪法合规检查 → 意图解析 → 智能路由 → 执行编排 → 结果整合

与 skill-dispatcher 协作

当需要专业技能时:

  1. 读取 .cursor/features/skills/skills/registry.json
  2. 按关键词匹配技能
  3. 加载 .cursor/skills/*/SKILL.md + references/full-guide.md 并应用

响应格式

成功

✅ Master 处理完成

📊 执行摘要:
- 意图:[识别的意图]
- 执行:[使用的资源/命令]
- 结果:[简要结果]

💡 下一步建议:[如有]

需澄清

❓ 需要澄清

请补充:[具体问题]

相关资源

  • 命令定义:.cursor/commands/master.md
  • 技能调度:.cursor/skills/skill-dispatcher/SKILL.md
  • 技能注册:.cursor/features/skills/skills/registry.json
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. 2mo ago First seen · 88 lines · 64 tokens per session scan A 727e07dff279

Subscribe to this mod's changes

master is an agent published in the GitHub repository wangqiqi/cursor-ai-rules (16 stars, last pushed 5mo ago), licensed MIT. It adds 64 tokens to every session and 843 once invoked, about $0.0003 per session on Opus 5.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.

Related

master compared with agents from other repositories

master next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
masterwangqiqi/cursor-ai-rulesAgent165mo agoMITA64Claude Code, Cursor
playwright-test-generatormicrosoft/playwrightAgent99kyesterdayApache-2.0A151Claude Code
.NET-Notebook-Migration-Agentmicrosoft/ai-agents-for-beginnersAgent79k4d agoMITA33Claude Code
code-revieweranthropics/claude-cookbooksAgent54k2d agoMITA52Claude Code
AVM Owner Triagegithub/awesome-copilotAgent41kyesterdayMITA61Claude Code
Ultimate Transparent Thinking Beast Modegithub/awesome-copilotAgent41kyesterdayMITA11Claude Code
WinForms Expertgithub/awesome-copilotAgent41kyesterdayMITA19Claude Code