aida_log_rule
Logs project-level technical rules for AI development, capturing patterns from coding deviations to improve code quality through standardized guidelines.
Instructions
沉淀项目规则。当偏差的 rootCause 为 rule-missing 且修复方案属于项目级技术规范(非业务逻辑)时,询问用户同意后调用此工具沉淀规则。仅限:公共组件使用规范、API 调用规范、参数传递规范、代码风格/架构规范。禁止沉淀业务逻辑。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"content": "<content>",
"category": "<category>"
},
"name": "aida_log_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | 规则内容,简洁描述项目规范 | |
| category | Yes | 规则分类 | |
| sourceDeviation | No | 关联的偏差 ID,如 DEV-01 |