iranti_write_rule
Create task-specific operating rules with keyword triggers that surface during AI agent sessions to apply recurring guidelines to relevant tasks.
Instructions
Write a task-scoped user operating rule with trigger keywords. Rules surface during iranti_attend only when the current context matches one or more trigger keywords. Use this for recurring guidelines that should be applied to specific task types (e.g. "always use GitHub Releases, not npm publish" triggered by "release", "publish", "npm"). Rules are stored as rule/<rule_id> entities and persist across sessions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ruleId | Yes | Stable rule identifier (becomes entityId under rule/ type). | |
| rule | Yes | The rule text — what the agent should do or avoid. | |
| triggers | Yes | Keyword triggers. The rule surfaces when any trigger matches the attend context. | |
| scope | No | Scope of the rule. Defaults to project. | |
| enforcement | No | Enforcement level. soft=reminder, hard=required. Defaults to soft. | |
| source | No | Source label for provenance. | |
| agent | No | Override the default agent id. | |
| agentId | No | Alias for agent. Override the default agent id. |