Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 78
  • 21k stars
  • NOASSERTION
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

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-rules

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install lead-routing-rules in Claude Code

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

A

No 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 →

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.

lead-routing-rules Install

Add to stack

Loading.