master

master is a command for Cursor from wangqiqi/cursor-ai-rules. It costs 26 tokens per session (2,651 once invoked), scanned A, original, MIT.

A command center for an AI coding assistant, opened through the `/master` command. It routes requests to development, learning, architecture, deployment, and other support workflows.

In plain words
What is it for?
Use it for project setup, code review, architecture and technology choices, performance advice, CI/CD, Docker or Kubernetes guidance, monitoring plans, and structured learning. It also supports different assistant roles and communication styles.
Why use it?
It gives many coding-related tasks one place to start and helps select a suitable workflow. It also checks requests against its stated rules before processing them.

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

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 master

README.md
[![agentmods](https://agentmods.dev/badge/commands/wangqiqi/cursor-ai-rules/master.svg)](https://agentmods.dev/commands/wangqiqi/cursor-ai-rules/master)
Your own site
<a href="https://agentmods.dev/commands/wangqiqi/cursor-ai-rules/master"><img src="https://agentmods.dev/badge/commands/wangqiqi/cursor-ai-rules/master.svg" alt="Measured on agentmods" height="20"></a>
Per session 26 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,651 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.00026 $0.02651
Opus 5 $0.00013 $0.01326
Sonnet 5 $0.00005 $0.00530
Haiku 4.5 $0.00003 $0.00265

Measured 4d ago against content hash 5e08d9d2dc0d, 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 4d 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/commands/master.md · 297 lines

How it starts

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

🎯 Master智能命令中心

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

在处理任何 /master 请求前,必须确保 .cursorGrowth 目录存在:

  • .cursorGrowth 不存在,先运行:bash .cursor/features/automation/automation/scripts/growth_init.sh
  • 然后再继续处理用户的 /master 请求

概述

Cursor AI Rules的智能Master控制器 - 你的AI编程助手和命令中心,提供全方位的开发支持和智能指导。

🚀 核心功能

📚 学习与培训

  • 技术学习路径: 提供结构化的学习路线和资源推荐
  • 最佳实践指导: 分享行业标准和最佳实践
  • 技能提升建议: 基于当前水平的个性化提升计划

🛠️ 开发工具链

  • 项目脚手架: 智能推荐和生成项目模板
  • 代码质量检查: 自动化代码审查和质量评估
  • 性能优化指导: 识别瓶颈并提供优化方案

🎯 架构与设计

  • 系统架构设计: 从需求到实现的完整架构方案
  • 技术栈选择: 基于项目特点的智能技术栈推荐
  • 设计模式应用: 合适的设计模式和架构模式指导

🔧 运维与部署

  • CI/CD配置: 自动化流水线设计和实现
  • 容器化方案: Docker和Kubernetes部署指导
  • 监控告警: 系统监控和日志收集方案

🎭 个性角色系统

  • 21种AI人格: 专业助手到动漫风格角色的丰富选择
  • 昵称呼叫: 支持亲切的昵称呼叫,如"小妮"、"小妹"等
  • 动态切换: 基于心情和任务类型即时改变人格
  • 个性化体验: 每种角色都有独特的语言风格和交互方式

🔄 工作流程

🎯 Master智能处理流程

graph TD
    A[用户输入 /master] --> B[宪法合规检查]
    B --> C{是否合规?}
    C -->|合规| D[Parser意图分析]
    C -->|违规| E[STOP机制 + 合规响应]
    D --> F[Router智能编排]
    F --> G[能力映射查询]
    G --> H[执行器分发]
    H --> I[规则系统]
    H --> J[技能系统]
    H --> K[脚本系统]
    H --> L[MCP工具]
    I --> M[结果整合]
    J --> M
    K --> M
    L --> M
    M --> N[学习优化]
    N --> O[个性化反馈]

🧠 智能意图识别流程

graph TD
    A[自然语言输入] --> B[上下文感知]
    B --> C[技术栈检测]
    C --> D[项目状态分析]
    D --> E[意图分类]
    E --> F{意图类型}
    F -->|学习| G[学习路径推荐]
    F -->|创建| H[项目脚手架生成]
    F -->|优化| I[性能分析优化]
    F -->|架构| J[架构设计方案]
    G --> K[执行编排]
    H --> K
    I --> K
    J --> K
    K --> L[结果反馈]

📋 命令使用指南

基础语法

/master [具体需求描述]

智能意图识别

系统会自动识别你的意图并提供相应帮助:

学习类意图
/master 学习JavaScript高级特性
/master 掌握React Hooks使用方法
/master 理解微服务架构设计
项目创建意图
/master 创建一个电商网站后端API
/master 搭建React + Node.js全栈项目
/master 初始化Python数据分析项目
代码分析意图
/master 分析这个函数的性能问题
/master 检查代码的安全漏洞
/master 优化数据库查询性能
架构设计意图
/master 设计高并发系统架构
/master 规划微服务拆分方案
/master 设计API网关和认证系统
角色管理意图
/master 列出角色                    # 查看所有可用角色
/master 当前角色                    # 查看当前激活的角色
/master 切换角色 loli               # 切换到可爱萝莉
/master 呼叫 小妮                    # 用昵称呼叫可爱萝莉
/master 给可爱萝莉添加昵称 小妮       # 为角色设置昵称
/master 查看昵称                    # 查看所有角色昵称

Read the full file on GitHub · 297 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. 4d ago First seen · 297 lines · 26 tokens per session scan A 5e08d9d2dc0d

Subscribe to this mod's changes

master is a command published in the GitHub repository wangqiqi/cursor-ai-rules (16 stars, last pushed 3mo ago), licensed MIT. It adds 26 tokens to every session and 2,651 once invoked, about $0.0001 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.