lead-routing-rules
Skill by kortix-ai
Routes new HubSpot leads to the right sales rep by scoring intent, matching territories and segments, and falling back to a round-robin pool. Leads that do not resolve cleanly go to a human instead of being guessed. Built for sales teams that use HubSpot and Slack.
Install lead-routing-rules
Built from the published package, never by AI.
git clone --depth 1 https://github.com/kortix-ai/suna /tmp/suna && mkdir -p ~/.claude/skills && cp -r /tmp/suna/packages/starter/templates/marketplace/runtime/skills/lead-routing-rules ~/.claude/skills/lead-routing-rulesRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/kortix-ai/suna /tmp/suna && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/suna/packages/starter/templates/marketplace/runtime/skills/lead-routing-rules ~/.gemini/antigravity-cli/skills/lead-routing-rulesAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill is a runbook for assigning new HubSpot leads to sales reps. A sweep runs every 15 minutes, finds leads on a set lifecycle stage that have not been routed yet, and scores each one for intent. It then matches the lead against a territory map, then against segment specialists, and then against a round-robin pool that picks the rep with the fewest leads that week.
The assigned owner and a routing reason are written back to the HubSpot record, and the rep is notified in Slack. High-intent leads are flagged so they are worked first. Leads that do not resolve cleanly are posted to an escalation channel for a human to assign. The skill never deletes or merges records, and its only HubSpot writes are the owner field and a routing status property. It is meant for sales teams that run HubSpot and want consistent lead assignment.
Written from the project's SKILL.md and checked against it.
What it can do
- Intent scoringScores a lead as high-intent when it clears two or more signals such as title, company size, timeline, or engagement.
- Territory matchingAssigns a lead to a rep based on its region or country, using a territory map kept in memory.
- Segment matchingAssigns a lead by company size and industry to segment specialists when territory does not resolve.
- Round-robin fallbackAssigns the lead to the pool rep with the fewest routed leads this week, with ties broken alphabetically.
- HubSpot write-backSets the lead owner and a routing status property with a timestamp and the reason for the assignment.
- Slack notificationsPosts each routed lead to the routing channel, with high-intent leads marked clearly.
- EscalationPosts leads that cannot be resolved to the escalation channel for a human to assign and marks them flagged.
What you need
- A HubSpot account with the HubSpot connector
- Slack channels for routing and escalation notifications
- A territory-to-rep map stored in memory
- A segment-to-specialist map and round-robin pool stored in memory
Try asking
- Route all new leads in HubSpot that have not been routed yet.
- Explain why this HubSpot lead was assigned to the rep it went to.
- Re-check HubSpot for new leads and post any escalations to Slack.
Good to know
- The lifecycle stage and channel names are template placeholders in the source and must be filled in.
- Territory, segment, and round-robin rules are read from memory and must be configured first.
- The skill never deletes or merges lead records and writes only the owner and routing status fields.
- Leads flagged for escalation stay skipped until a human resolves them in HubSpot.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: packages/starter/templates/marketplace/runtime/skills/lead-routing-rules/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to lead-routing-rules
All alternatives →Scores inbound HubSpot leads on engagement, company fit and urgency, then ranks the ones worth a call today. Built for sales owners who need to decide who to call first.
Builds a ranked list of prospects by deriving an ideal customer profile from existing customers. It finds look-alike companies and decision-makers, then scores them. Built for owners who need new customers.
Writes prospect outreach and follow-up sequences in the owner's own voice, learned from their sent mail. Queues every send for approval and logs each touch to the CRM. Runs draft-only when no mail connector is available.
Writes and runs B2B cold outbound, including cold emails, follow-up sequences, LinkedIn messages and multichannel cadences. Built for sales development and outbound teams that want replies rather than template blasts.
Speed to Lead checks inbound inquiries from web forms, the shared inbox, and the CRM, then drafts replies for the owner to approve. It is for owners who lose leads because nobody replies fast enough.
Helps write, build and improve B2B cold email and follow-up sequences for prospects who did not opt in. Covers SDR and founder outreach.
Compare with lead-triage, lead-finder or outreach-composer
lead-routing-rules: common questions
Will this reassign leads that were already routed?
No. Leads that already carry the routing status property, whether routed or flagged, are skipped on later sweeps.
What happens if a lead does not match any rule?
It is posted to the escalation channel with what was checked. The skill does not invent a fallback owner.
Does the skill keep a local record of past assignments?
No. The state lives on the HubSpot lead record, and the round-robin choice is recomputed from each rep's current lead count.
How do I install lead-routing-rules?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is lead-routing-rules free?
The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.
Is lead-routing-rules safe to use?
It scores 78 of 100. Grades: maintenance A, licence F, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to lead-routing-rules?
Similar skills: lead-triage, lead-finder, outreach-composer, cold-email.
