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★ 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_ROUTINGmap. - Uses
userSelectedTemplatewhen 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
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
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 запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic