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.
npx agentmods add instructions/tencentcloudcommunity/mcp-server/copilot-instructionsgit clone --depth 1 https://github.com/TencentCloudCommunity/mcp-serverWhat 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 | $0.02482 | $0.02482 |
| Opus 5 | $0.01241 | $0.01241 |
| Sonnet 5 | $0.00496 | $0.00496 |
| Haiku 4.5 | $0.00248 | $0.00248 |
Grade A, and why
mcp-server copilot-instructions.md 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.
How it starts
The opening of the file, as written. The whole thing — 198 lines — stays where its author put it; the contents beside it link to each section on GitHub.
cloudbaseAIVersion:1.8.28 description: CloudBase AI 开发规则指南 - 提供场景化的最佳实践,确保开发质量 globs: * alwaysApply: true
📋 CloudBase AI 开发规则指南
🎯 开发流程规范 - 场景识别与最佳实践
重要:为确保开发质量,AI 需要在开始工作前完成以下步骤:
1. 场景识别
首先需要识别当前的开发场景类型:
- Web 项目:React/Vue/原生 JS 等前端项目
- 微信小程序:小程序云开发项目
- 数据库相关:涉及数据操作的项目
- UI 设计:需要界面设计的项目
2. 规则文件选择
根据识别的场景,需要参考对应的专业规则文件:
📋 场景规则映射表(必须遵守):
- Web 项目 → 必读:
rules/web-development.mdc+rules/cloudbase-platform.mdc - 微信小程序 → 必读:
rules/miniprogram-development.mdc+rules/cloudbase-platform.mdc - 数据库操作 → 额外读:
rules/database.mdc - UI 设计 → 额外读:
rules/ui-design.mdc
3. 开发确认
在开始工作前建议向用户确认:
- "我识别这是一个 [场景类型] 项目"
- "我将严格遵循以下规则文件:[具体文件列表]"
- "请确认我的理解是否正确"
核心行为规则
- 工具优先:关于腾讯云开发的操作,优先使用 cloudbase 的 MCP 工具
- 项目理解:首先阅读当前项目的 README.md,遵照项目说明开发
- 目录规范:在当前目录下产出项目代码,先检查当前目录文件
- 部署顺序:有后端依赖时,优先部署后端再预览前端
- 交互确认:需求不明确时使用 interactiveDialog 澄清,执行高风险操作前必须确认
- 实时通信:使用云开发的实时数据库 watch 能力
- 认证规则:严格区分平台的认证方式
- Web 项目:必须使用 CloudBase Web SDK 内置认证(如
auth.toDefaultLoginPage()) - 小程序项目:天然免登录,云函数中获取
wxContext.OPENID
- Web 项目:必须使用 CloudBase Web SDK 内置认证(如
版本检测和升级约束
自动版本检测
- 当用户使用 CloudBase 相关功能时,AI Agent 应自动检查当前项目的 cloudbaseAIVersion 字段
- 通过 npm registry API 查询 @cloudbase/cloudbase-mcp 的最新版本
- 比较版本差异,如果发现新版本可用,主动向用户提示升级建议
- 首次使用时显示友好的欢迎信息和当前版本
升级指导流程
- 检测到版本差异时,使用 interactiveDialog 工具与用户确认升级意愿
- 提供详细的升级指导,包括 MCP 升级和 AI 规则下载两个选项
- 集成官方文档链接:https://docs.cloudbase.net/ai/cloudbase-ai-toolkit/faq#如何更新-cloudbase-ai-toolkit
- 指导用户执行 downloadTemplate 操作,参数为 template:rules
工作流
Workflow 命令控制
可用命令:
- 默认 - AI 根据任务复杂度智能判断
- /spec - 强制使用完整 spec 流程
- /no_spec - 跳过 spec 流程,直接执行
- /help - 显示命令帮助
智能判断标准:
- 使用 spec:新功能开发、复杂架构设计、多模块集成、涉及数据库/UI设计
- 跳过 spec:简单修复、文档更新、配置修改、代码重构
<spec_workflow> 0. 请注意!必须遵守以下的规则,每个环节完成后都需要由我进行确认后才可进行下一个环节;
- 如果你判断我的输入提出的是一个新需求,可以按照下面的标准软件工程的方式独立开展工作,需要时才向我询问,可以采用 interactiveDialog 工具来收集
- 每当我输入新的需求的时候,为了规范需求质量和验收标准,你首先会搞清楚问题和需求,然后再进入下一阶段
- 需求文档和验收标准设计:首先完成需求的设计,按照 EARS 简易需求语法方法来描述,如果你判断需求涉及到前端页面,也可在需求中提前确定好设计风格和配色等,跟我进行确认需求细节,最终确认清楚后,需求定稿,然后再进入下一阶段,保存在
specs/spec_name/requirements.md中,参考格式如下
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.
- 2d ago First seen · 198 lines · 2,482 tokens per session scan A 75ee98cacd57
mcp-server copilot-instructions.md is an instructions file published in the GitHub repository TencentCloudCommunity/mcp-server (28 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 2,482 tokens to every session, about $0.0124 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.
Other instructions, from other repositories
activepieces AGENTS.md
AGENTS.md instructions for activepieces/activepieces, covering activepieces, architecture (non-obvious rules), coding conventions, query error handling and key utilities (@activepieces/shared).
activepieces CLAUDE.md
Claude Code instructions for activepieces/activepieces, covering activepieces, architecture (non-obvious rules), coding conventions, query error handling and key utilities (@activepieces/shared).
gradle-mcp AGENTS.md
Instructions for rnett/gradle-mcp, covering gradle mcp project memory, primacy zone: fundamental mandates, technical standards (openspec), build & test commands and misc tips.
mcp-server-fuzzer AGENTS.md
Instructions for Agent-Hellboy/mcp-server-fuzzer, covering ai agent instructions, branch creation, commit message style, lint and tests and tox venv setup.
raindrop-mcp dxt.instructions.md
Instructions for adeze/raindrop-mcp: I want to build this as an MCP Bundle, abbreviated as "MCPB". Please follow these steps.
mcpscore AGENTS.md
Instructions for mcp-box/mcpscore, covering agent instructions for mcpscore and gotchas (learned the hard way).