Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

route-pr-template

БесплатноЗапускает вложенные скриптыНе проверен

Selects the correct PR template for a branch based on its type using the static branch-type routing map or an explicit user override. Use once the branch has…

lightspeedwpот lightspeedwp★ 20 звёзд на GitHub

Об этом скилле

route-pr-template

Routes a pull request to the correct template based on branch type.

When to use this skill

After validate-branch-name confirms the branch name, and before orchestrate-pr-creation assembles the PR body — to determine which template structure the PR body must follow.

Input

{
  branchName: string,          // full branch name, e.g. "feat/new-feature"
  branchType: string,          // alternative: just the type, e.g. "feat"
  userSelectedTemplate: string, // optional: explicit user override
}

Behaviour

  • Matches the branch type against the static BRANCH_TYPE_ROUTING map.
  • Uses userSelectedTemplate when provided.
  • Does not yet load repository template-routing configuration or follow template content verbatim; that guarantee is deferred to T020.

Output

Matched routes and user overrides return:

{
  routed: true,
  template: string,
  reason: string,
  fallback: false,
  userOverride?: true,
}

Invalid input and unknown branch types use the fallback template and include a warning:

{
  routed: false,
  template: "pr_feature.md",
  reason: "invalid-input" | "unknown-branch-type",
  fallback: true,
  warning: string,
}

Usage

import { routePrTemplate } from './scripts/route-pr-template.js';

const result = await routePrTemplate({ branchName: 'feat/new-feature' });

Установить route-pr-template в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

scripts/route-pr-template.js

FAQ

Что делает скилл route-pr-template?

Selects the correct PR template for a branch based on its type using the static branch-type routing map or an explicit user override. Use once the branch has been validated and before assembling the PR body, to know which template structure to follow.

Как установить скилл route-pr-template?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл route-pr-template запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить route-pr-template с