master

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 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 agents/wangqiqi/cursor-ai-rules/master
Clone the repo
git clone --depth 1 https://github.com/wangqiqi/cursor-ai-rules

Made for: Cursor.

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. 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.00064 $0.00843
Opus 5 $0.00032 $0.00421
Sonnet 5 $0.00013 $0.00169
Haiku 4.5 $0.00006 $0.00084

Measured 2d ago against content hash 727e07dff279, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 2d 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. 2d 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 (15 stars, last pushed 3mo ago), licensed MIT. It adds 64 tokens to every session and 843 once invoked, about $0.0003 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.