Files
watchman/.cursor/rules/sy-standards.mdc
T
unknownandCursor 8b2a809f06 建立 Watchman 规划基线,并接入 Marionettist Cursor 工作流。
公司规范只约束代码内容,门禁仍按插件执行;MCP token 不入库。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-17 10:11:27 +08:00

22 lines
1.4 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
description: 写代码前经 sy-standards 检索并遵循公司开发规范
alwaysApply: true
---
##### 公司级开发规范检索(sy-standards MCP)
- 场景:任何写代码的任务
- 要求:动手前按任务类型经 sy-standards 检索并遵循——
写/改 API → standards://api/api-envelope 与 standards://api/error-handling;
声明权限点 → standards://api/permission-nodes(禁止编造编码);
写前端 → standards://frontend/frontend-stack 与 standards://frontend/element-plus;
写注释/提交 → standards://engineering/code-comments、standards://workflow/git-commit;
涉密钥/迁移/导出/端口 → standards://security/red-line。
先 search_rules("关键词") 找篇目,再按 uri 读原文,引用标注 ?version,多版本取最新。
工具不可用时向用户说明缺哪篇,不要静默跳过。
##### 与 Marionettist 的关系
- 写什么听本规则:API、权限点、前端、注释、提交格式、密钥、迁移、导出、端口。
- 能不能写、写哪一片听 Marionettist:`.cursor/rules/workflow-rules.mdc` 和 `marionettist.config.yaml` 的 `gatePolicy`。
- 公司 `conduct/ai-conduct` 里「按规划自动做完、中间不反复确认」不取消分析确认,也不取消高风险切片停顿。
- 角色分工和业务进度仍以 `AGENTS.md` 的项目本地段为准。token 只放 `.cursor/mcp.json`,不入库。