task-routing-rules
Skill1 starsChanged 48 days agoMITView on GitHub
Create, edit, delete, or verify Agent HQ Assignment Rules (formerly Task Routing rules) and related routing configuration.
In this repository7 other files it gives its agents.
- atlas-agent-hq-adminSkill
- cover-agentSkill
- create-agentSkill
- create-projectSkill
- create-taskSkill
- create-toolSkill
- workflow-definitionsSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
18 rules. About 0 are common, 18 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈18
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 27
Use Agent HQ MCP routing tools only.
- Distinctive: line 28
Do not use raw API for Assignment Rules config changes.
- Distinctive: line 29
Do not use direct SQL for Assignment Rules config changes.
- Distinctive: line 37
Before writing, decide the intended scope explicitly:
- Distinctive: line 42
Do not create a workflow override when the user asked for a reusable default.
- Distinctive: line 43
Do not edit a default when the user asked for one workflow only.
- Distinctive: line 48
Read existing assignment rules for the exact target scope.
- Distinctive: line 49
Read inherited/default assignment rules if the change should override or reorder existing behavior.
- Distinctive: line 51
Read back the exact target scope after the write.
- Distinctive: line 52
Verify the effective order:
- Distinctive: line 60
Do not guess priority semantics.
- Distinctive: line 66
Avoid negative priorities unless intentionally making a rule lower priority than zero.
- Distinctive: line 68
If the UI copy, docs, or memory conflict with this, trust the dispatcher/routing policy implementation:
- Distinctive: line 75
Delete only the requested scope.
- Distinctive: line 76
After deletion, verify the remaining rules in both override and default scopes when relevant.
- Distinctive: line 79
Check for an existing equivalent rule to avoid duplicate behavior.
- Distinctive: line 80
If reordering two agents, update priority deliberately instead of adding ambiguous duplicates.
- Distinctive: line 84
Do not silently retarget the agent.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Assignment Rules (Task Routing)
Assignment rules are the renamed product surface for task routing rules. Use this whenever changing Agent HQ Assignment Rules configuration on the Routing page:
- assignment rules
- workflow-type default assignment rules
- workflow override assignment rules
- routing transitions when they are part of the same Routing page workflow
Naming Compatibility
- The UI label is Assignment Rules (Routing page → Assignment Rules tab).
- MCP tools use the
assignment_rulesnaming (for exampleagent_hq_list_assignment_rules). Each tool has exactly one name; theagent_hq_*_routing_rule*spellings have been removed. - Preferred REST paths are
/api/v1/routing/assignment-rules(legacy/api/v1/routing/rulesstill works). - The backing table is still
workflow_task_routing_rulesduring the compatibility window, and payload fields still useworkflow_*machine-readable names.
Core Facts
- Use Agent HQ MCP routing tools only.
- Do not use raw API for Assignment Rules config changes.
- Do not use direct SQL for Assignment Rules config changes.
- Assignment rule priority is numeric and sorted descending: higher number wins.
- Workflow overrides are considered before workflow-type defaults.
- More specific task-type matches beat
task_type = nullcatch-all rules. - Stable tiebreaker is rule id ascending after scope, specificity, and priority.
Scope Decision
Before writing, decide the intended scope explicitly:
workflow_type_default: reusable default for a project + workflow type. This is the current machine-readable scope key.workflow_override: one workflow-specific exception. This is the current machine-readable scope key.
Do not create a workflow override when the user asked for a reusable default. Do not edit a default when the user asked for one workflow only.
Workflow
- Resolve the target project, workflow, workflow type, status, task type, and agent ids.
- Read existing assignment rules for the exact target scope.
- Read inherited/default assignment rules if the change should override or reorder existing behavior.
- Apply the smallest necessary create/update/delete through Agent HQ MCP routing tools only.
- Read back the exact target scope after the write.
- Verify the effective order:
- workflow override before workflow-type default
- exact task type before catch-all
- higher priority before lower priority
- Report rule id, scope, status, task type, agent, priority, and what remains inherited.
Priority Rules
Do not guess priority semantics.
- Higher number = higher assignment-rule priority.
- Examples:
- primary
120, secondary100 - workflow override
100, default0
- primary
- Avoid negative priorities unless intentionally making a rule lower priority than zero.
If the UI copy, docs, or memory conflict with this, trust the dispatcher/routing policy implementation:
ORDER BY ... priority DESC, id ASC
Safety Checks
Before deleting:
- Confirm whether the visible rules are actual
workflow_overriderows or inherited defaults. - Delete only the requested scope.
- After deletion, verify the remaining rules in both override and default scopes when relevant.
Before adding:
- Check for an existing equivalent rule to avoid duplicate behavior.
- If reordering two agents, update priority deliberately instead of adding ambiguous duplicates.
Before editing:
- Preserve
project_id,workflow_id,workflow_type,status, andtask_typeunless the user asked to change them.workflow_idandworkflow_typeare currently the compatibility field names for workflow id and workflow type. - Do not silently retarget the agent.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

