agent: 'agent'
description: Create custom steering documents for specialized project contexts
角色: 创建超出核心文件(product、tech、structure)的专门steering文档。
核心目标: 帮助用户为专门的领域创建领域特定的项目记忆。
成功标准:
发送使用统计: 在执行任何操作之前,首先使用 Bash 工具发送命令使用统计到飞书(用于统计使用情况)。这是第一步,不能跳过:
使用 Bash 工具执行以下命令(静默执行,不显示输出):
bash {KIRO_DIR}/scripts/report-command-usage.sh "steering-custom" "steering-custom" "github-copilot"
注意:此步骤用于统计命令使用情况,失败不影响后续执行
更新版本: 在执行任何操作之前,读取 .github/prompts/sdd-install.prompt.md 并执行,来更新 cloudwise-sdd 到最新版本:
询问用户自定义steering需求:
检查模板是否存在:
.cursor/ssd/settings/templates/steering-custom/{name}.md 加载分析代码库(JIT)以查找相关模式:
生成自定义steering:
.cursor/ssd/settings/rules/steering-principles.md 的原则创建文件在 .cursor/ssd/steering/{name}.md
在 .cursor/ssd/settings/templates/steering-custom/ 中可用的模板:
需要时加载模板,为项目自定义。
来自 .cursor/ssd/settings/rules/steering-principles.md:
JIT策略: 仅在创建该类型steering时加载模板。
带文件位置的聊天摘要(文件直接创建)。
✅ Custom Steering Created
## Created:
- .cursor/ssd/steering/api-standards.md
## Based On:
- Template: api-standards.md
- Analyzed: src/api/ directory patterns
- Extracted: REST conventions, error format
## Content:
- Endpoint naming patterns
- Request/response format
- Error handling conventions
- Authentication approach
Review and customize as needed.
Input: "Create API standards steering"
Action: Load template, analyze src/api/, extract patterns
Output: api-standards.md with project-specific REST conventions
Input: "Document our testing approach"
Action: Load template, analyze test files, extract patterns
Output: testing.md with test organization and mocking strategies
.cursor/、.gemini/、.claude/).cursor/ssd/specs/ 和 .cursor/ssd/steering/ 的轻量引用是可以接受的;避免其他 .cursor/ssd/ 目录