aegis_create_rule
Generate a prompt for drafting a project rule from a defect or invariant description, using up to three existing workspace rules as examples; no files are written.
Instructions
Builds a prompt for drafting a rule from description, with up to three active workspace rules (500 chars each) as examples; it writes nothing to disk. Save the result to .aegis/rules/<type_dir>/<id>.md as instruction says. Check aegis_list_rules for an existing rule first.
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": {
"description": "<description>"
},
"name": "aegis_create_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | No | Domain hint for the draft prompt (security, correctness, efficiency, style, governance). | |
| rule_type | No | Rule type, passed to the draft prompt as a hint. | |
| description | Yes | The defect, anti-pattern or invariant the rule should codify. |