ddflow_rule
Manage project rules for AI coding agents: add, search, edit, remove, sync, and show scoped rules to enforce coding standards and recover context.
Instructions
Project rules. Set action; required arguments in brackets: add(id,title), list, search(query), edit(id), remove(id), sync, show(id).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Rule id, e.g. r-naming. | |
| new | No | Dedup answer: a different record. | |
| tag | No | Filter results by this tag. | |
| json | No | ||
| tags | No | Comma-separated tags. | |
| check | No | Dry run: list duplicates only. | |
| exact | No | Exact phrase. | |
| globs | No | Comma-separated globs it governs. | |
| limit | No | Maximum results to return (default 10). | |
| query | No | Search query (keywords or regex). | |
| regex | No | Query is a regex. | |
| scope | No | project (default) | phase | task | global. | |
| title | No | One-line rule statement. | |
| action | Yes | What to do; see the tool description for each action's arguments. | |
| reason | No | ||
| content | No | Rule text (may be empty for check_only). | |
| extends | No | Dedup answer: extends record ID. | |
| related | No | Dedup answer: related to ID. | |
| as_agent | No | Subagent name, this call only. | |
| priority | No | Priority 0-100 (default 50). | |
| enforcement | No | advisory | warn | block: how hard the rule binds (default advisory). | |
| duplicate_of | No | Dedup answer: same as record ID. |