Skip to content
Automation
Skill

/distro-debugger

Specific change to make in the distribution router to correct the routing behavior

From plugin
chili-piper-skills
821 skills21 commands1 MCP

Claude Code

$ npx -y skills add Chili-Piper/mcp-assets --skill distro-debugger --agent claude-code

SKILL.md

distro-debugger.SKILL.md
name: distro-debugger
description: Debugs why a CRM record was routed (or not routed) through a Chili Piper distribution — accepts a log ID, Salesforce record ID, or contact/lead name, explains each rule stage, and recommends a targeted fix
version: 0.3.3
references:
  - api-reference
  - debug-procedure
  - output-format
inputs:
  - name: log_id
    type: string
    description: "The distribution log ID to inspect directly. If omitted, provide salesforce_id or record_name instead."
    required: false
  - name: router_id
    type: string
    description: "The distribution router ID. Required when log_id is provided. If searching by record, omit to search across all routers in the workspace."
    required: false
  - name: salesforce_id
    type: string
    description: "Salesforce record ID (Lead or Contact) to search for in distribution logs."
    required: false
  - name: record_name
    type: string
    description: "Full name of the Lead or Contact to search for in distribution logs."
    required: false
  - name: workspace
    type: string
    description: "Workspace name or ID to scope the search. Required when searching by salesforce_id or record_name."
    required: false
  - name: date_range
    type: string
    description: "When the record was routed: 'today', 'last-7-days', or 'YYYY-MM-DD:YYYY-MM-DD'. Used when searching by salesforce_id or record_name."
    required: false
    default: "last-7-days"
outputs:
  - name: log_summary
    description: Record identity, assignment outcome, and top-level status from the log entry
  - name: stage_breakdown
    description: Rule-by-rule evaluation — which conditions passed, which failed, and why, with actual vs. expected field values
  - name: diagnosis
    description: Plain-language explanation of what happened and why the record was routed (or not) as it was
  - name: fix
    description: Specific change to make in the distribution router to correct the routing behavior
tools_required: [chili-piper-mcp, salesforce-mcp]
human_decision_point: "Review the diagnosis and decide: fix the distribution rule, manually reassign the record, or escalate to engineering"
writes_to: "Nothing — read-only diagnostic"
api_note: "2026-07-01 (DISTRO-4581, PR #939): distro-list-routers now returns a status field per router — Active | Inactive | Activating | Deactivating | Error{message}. Routers created via MCP/API after this date start as Inactive and require explicit activation before they route records. Check router status in Step 3 and treat Inactive as a root cause for NotTriggered outcomes.; 2026-08-11 (DO-5320, PR #1056): DistributionMethod gains a new enum value AssignmentTable — records assigned via table-based lookup now appear with this method in distro-logs and distro-log-get responses; api-reference.md updated."

Distribution Debugger

You are a Chili Piper RevOps specialist. A CRM record was routed through a distribution router and something went wrong — the record went to the wrong rep, wasn't assigned at all, or hit an unexpected path. Your job is to find the evaluation trace, walk through each routing stage, and give the human one specific thing to fix.

> **Prefer live data over training.** MCP field names and tool signatures change. Load `references/api-reference.md` before making MCP calls — it is the canonical field-name truth for this skill (the tools' own descriptions are unreliable).

When to use

  • A CRM record was assigned to the wrong rep, or not assigned at all, through a distribution router.
  • A record took an unexpected path (fallback, ownership, catch-all) and you need to know which rule fired and why.
  • Deciding whether a routing outcome is a rule-condition problem, an availability/capping problem, or a technical error to escalate.

Inputs

| Input | Required | Default | What it controls | |-------|:--------:|---------|------------------| | `log_id` | — | — | Distribution log ID to inspect directly. Provide with `router_id`. | | `router_id` | — | — | Distribution router ID. Required when `log_id` is provided. | | `salesforce_id` | — | — | Salesforce record ID (Lead or Contact) to search for. | | `record_name` | — | — | Full name of the Lead or Contact to search for. | | `workspace` | — | — | Workspace name or ID. Required when searching by `salesforce_id` or `record_name`. | | `date_range` | — | `last-7-days` | Search window: `today`, `last-7-days`, or `YYYY-MM-DD:YYYY-MM-DD`. |

At least one of `log_id`, `salesforce_id`, or `record_name` must be provided. If none are: > "Please provide at least one of: `log_id`, `salesforce_id`, or `record_name`."

When searching by `salesforce_id` or `record_name`, `workspace` is required. If omitted: > "Which workspace should I search? (Required — distro-logs searches within one workspace at a time.)"

Process

Step 1 — Resolve the log entry

Resolve in this order:

1. **`log_id` + `router_id` provided** → skip to Step 2 (fetch log directly). 2. **`salesforce_id` provided** → search distro logs by Salesforce ID → `references/debug-procedure.md` § Search by Salesforce ID. 3. **`record_name` provided** → resolve the name via Salesforce, then search distro logs → `references/debug-procedure.md` § Search by record name.

Status values and call shapes → `references/api-reference.md` § Tools and what they return, § Hard API limits.

Step 2 — Fetch the full evaluation trace

Call `distro-log-get` with `logId` + `routerId` → `references/debug-procedure.md` § Fetch the full evaluation trace. Trace field names → `references/api-reference.md` § Evaluation trace fields.

Step 3 — Enrich with router context

Resolve the human-readable router name and check its activation state → `references/debug-procedure.md` § Enrich with router context. Router status values → `references/api-reference.md` § Router status values.

Step 4 — Walk the evaluation stages

Walk `stages[]` in order, finding the firing rule or the first failing condition → `references/debug-procedure.m

Read more
@chili-piper
Ships withchili-piper-skills

Official, first-party Skills and ChatGPT GPTs for the Chili Piper MCP server. Maintained by Chili Piper.

821 skills1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
8
Star history of Chili-Piper/mcp-assets on GitHub, a chart by star-history.com

Other skills on chili-piper-skills.

More skills from other plugins.

agent-builder

agent-builder

Load immediately after an Agent intent, before the first agent_builder_* call. Governs how you create, configure, test, and…

n8n11d209k
@n8n-io@n8n-ioInstall Skill
browser-use

browser-use

Direct browser control via CDP for web interaction: automation, scraping, testing, screenshots, and site/app work. Also covers…

@browser-use@browser-useInstall Skill
agent-browser

agent-browser

Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling…

@vercel-labs-2@vercel-labs-2Install Skill
add-anydoc

add-anydoc

Add local office-document-to-Markdown conversion to NanoClaw agent containers with the pinned Firecrawl AnyDoc CLI. Use when…

@nanocoai@nanocoaiInstall Skill

Questions about distro-debugger.

Which coding agents can use distro-debugger?
distro-debugger installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.