handle-pr-errors
БесплатноЗапускает вложенные скриптыНе проверенCatches an error from any stage of the PR workflow, categorizes it, assigns a severity, and suggests recovery options and next steps. Use whenever any other…
от lightspeedwp★ 20 звёзд на GitHubОб этом скилле
handle-pr-errors
Handles errors and provides recovery mechanisms for the PR creation workflow.
When to use this skill
Whenever any other skill in this agent (validate-branch-name, route-pr-template, orchestrate-pr-creation, validate-and-apply-labels, submit-pr) returns or throws an error — to categorise it and suggest a concrete recovery path rather than surfacing a bare failure.
Input
{
error: object, // { type, message, stage }
context: object, // optional: context from the failed operation
history: array, // optional: prior attempts, for retry logic
}
Behaviour
- Categorises the error (input validation, branch name, template, GitHub API, authentication, rate limit, unknown).
- Assigns a severity (LOW/MEDIUM/HIGH/CRITICAL).
- Determines whether the error is retryable, capping retries at 3 attempts.
- Provides recovery options and ordered next steps.
Output
Handled errors include their classification and recovery plan:
{
handled: true,
errorCategory: string,
severity: string,
originalError: string,
recoveryOptions: string[],
recommendedAction: string,
nextSteps: string[],
retryable: boolean,
retryCount: number,
maxRetries: 3,
}
Invalid input and failures caught while handling an error return the same failure shape:
{
handled: false,
error: string,
recoveryOptions: [],
}
Usage
import { handlePrErrors } from './scripts/handle-pr-errors.js';
const result = await handlePrErrors({ error: { message: 'Rate limit exceeded' } });
Установить handle-pr-errors в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл handle-pr-errors?
Catches an error from any stage of the PR workflow, categorizes it, assigns a severity, and suggests recovery options and next steps. Use whenever any other pr-agent skill returns or throws an error, to turn it into an actionable recovery response instead of a bare failure.
Как установить скилл handle-pr-errors?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл handle-pr-errors запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
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