---
name: owner-routing
description: |-
  Exercise the triage server's five owner-lookup contracts and produce an
  explicit uncertainty result when the current prototype returns no team.
  Use when testing routing precedence or documenting missing ownership data.
  Trigger with "route this bug cluster".
allowed-tools: "Read, mcp__triage__lookup_service_owner, mcp__triage__lookup_oncall, mcp__triage__parse_codeowners, mcp__triage__lookup_recent_assignees, mcp__triage__lookup_recent_committers"
version: 0.2.0
author: Jeremy Longshore <jeremy@intentsolutions.io>
license: MIT
compatibility: "Designed for Claude Code with the x-bug-triage-plugin MCP server; current lookup tools are offline contract stubs and do not query GitHub, on-call, or service catalogs."
tags: [ triage, routing, ownership, prototype, uncertainty ]
argument-hint: "<owner/repo> [surface] [paths...]"
model: inherit
effort: medium
title: owner-routing
canonical_url: https://skilld.dev/gh/jeremylongshore/tons-of-skills-marketplace/owner-routing
last_updated: 2026-10-23T05:08:30.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> Supporting files, fetch one when the Skill refers to it: [references/runtime-contract.md](https://skilld.dev/api/skills-raw/jeremylongshore/tons-of-skills-marketplace/owner-routing/references/runtime-contract.md).
>
> If the user asked to install this Skill, run `npx skilld install jeremylongshore/tons-of-skills-marketplace/owner-routing`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/owner-routing`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/jeremylongshore/tons-of-skills-marketplace/owner-routing) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/owner-routing`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/owner-routing --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/owner-routing --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

# Owner Routing

Run the public routing contract honestly. The current MCP lookup tools return their precedence level
and base confidence but no team or assignee, so a normal result is explicit uncertainty.

## Overview

The runtime registers five read-only routing tools for levels 1-5. Level 6 is a conceptual fallback,
not an MCP tool, and this repository has no populated fallback map. Read
[the runtime contract](https://skilld.dev/api/skills-raw/jeremylongshore/tons-of-skills-marketplace/owner-routing/references/runtime-contract.md) before interpreting a response.

## Prerequisites

- Start the triage MCP server from this repository.
- Provide an owner/repo; optionally provide a surface and affected paths.
- Treat the supplied repo name as data only. These tools do not authenticate to or inspect GitHub.

## Instructions

1. Call lookup_service_owner with the repo and optional surface.
2. If the result contains a non-empty team or assignee, retain it as level 1. Otherwise continue.
3. Call lookup_oncall, parse_codeowners, lookup_recent_assignees, and lookup_recent_committers in order.
4. Reject results with neither team nor assignee; base confidence alone is not ownership evidence.
5. If a caller supplies a previously reviewed routing override, present it separately as human input.
   The MCP tools do not load overrides from SQLite.
6. If every level is empty, return uncertainty and explain that live integrations are absent.
7. Never invent level 6. A fallback recommendation requires an explicit operator-supplied mapping.

## Output

Return one routing report:

- repo, surface, and paths evaluated;
- all five tool results in precedence order;
- accepted recommendation or null;
- uncertainty and a plain-language reason;
- any operator-supplied override, clearly labeled as external input.

## Examples

```text
Repo: example/product
Levels checked: 1, 2, 3, 4, 5
Recommendation: null
Uncertainty: true
Reason: current lookup tools are offline stubs and returned no team or assignee.
```

```text
Operator override: platform-team
Disposition: use as human-supplied routing input; not independently verified by this runtime.
```

## Error Handling

| Situation                          | Response                                                                      |
| ---------------------------------- | ----------------------------------------------------------------------------- |
| MCP server is unavailable          | Stop and report setup failure.                                                |
| A tool throws                      | Record that level as failed and continue; do not relabel failure as no match. |
| Result has confidence but no owner | Reject it as an empty routing signal.                                         |
| No fallback mapping was supplied   | Return uncertainty rather than guessing.                                      |
| Repo string is malformed           | Stop and request owner/repo.                                                  |

## Guardrails

- Never claim these tools read CODEOWNERS, commits, issues, on-call data, or a service catalog today.
- Never let numeric base confidence substitute for an actual team or assignee.
- Never persist or announce an assignment without human review outside this skill.

## Resources

- [Runtime contract](https://skilld.dev/api/skills-raw/jeremylongshore/tons-of-skills-marketplace/owner-routing/references/runtime-contract.md)
- [Repository source](https://github.com/jeremylongshore/x-bug-triage-plugin/tree/main/mcp/triage-server)
