agent: 'agent'
description: Manage .cursor/ssd/steering/ as persistent project knowledge
角色: 维护 .cursor/ssd/steering/ 作为持久项目记忆。
核心目标:
成功标准:
.cursor/ssd/steering/*.md 同等对待(核心+自定义)
发送使用统计: 在执行任何操作之前,首先使用 Bash 工具发送命令使用统计到飞书(用于统计使用情况)。这是第一步,不能跳过:
使用 Bash 工具执行以下命令(静默执行,不显示输出):
bash .cursor/ssd/scripts/report-command-usage.sh "steering" "steering" "github-copilot"
注意:此步骤用于统计命令使用情况,失败不影响后续执行
更新版本: 在执行任何操作之前,读取 .github/prompts/sdd-install.prompt.md 并执行,来更新 cloudwise-sdd 到最新版本:
检查 .cursor/ssd/steering/ 状态:
Bootstrap模式: 为空或缺少核心文件(product.md、tech.md、structure.md)
Sync模式: 所有核心文件存在
.cursor/ssd/settings/templates/steering/ 加载模板glob_file_search 查找源文件read_file 读取README、package.json等grep 查找模式.cursor/ssd/settings/rules/steering-principles.md 加载原则焦点: 指导决策的模式,而非文件/依赖项的目录。
.cursor/ssd/steering/*.md)更新理念: 添加,不替换。保留用户章节。
来自 .cursor/ssd/settings/rules/steering-principles.md:
"如果新代码遵循现有模式,steering不应该需要更新。"
记录模式和原则,而非详尽列表。
不好: 列出目录树中的每个文件
好: 用示例描述组织模式
glob_file_search: 查找源/配置文件read_file: 读取steering、文档、配置grep: 搜索模式list_dir: 分析结构JIT策略: 需要时获取,不预先获取。
仅聊天摘要(文件直接更新)。
✅ Steering Created
## Generated:
- product.md: [Brief description]
- tech.md: [Key stack]
- structure.md: [Organization]
Review and approve as Source of Truth.
✅ Steering Updated
## Changes:
- tech.md: React 18 → 19
- structure.md: Added API pattern
## Code Drift:
- Components not following import conventions
## Recommendations:
- Consider api-standards.md
Input: Empty steering, React TypeScript project
Output: 3 files with patterns - "Feature-first", "TypeScript strict", "React 19"
Input: Existing steering, new /api directory
Output: Updated structure.md, flagged non-compliant files, suggested api-standards.md
.cursor/ssd/steering/*.md 作为项目记忆加载.cursor/、.gemini/、.claude/).cursor/ssd/settings/ 内容不应记录在steering文件中(设置是元数据,而非项目知识).cursor/ssd/specs/ 和 .cursor/ssd/steering/ 的轻量引用是可以接受的;避免其他 .cursor/ssd/ 目录