Command Palette

Search for a command to run...

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

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от 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

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

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

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

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

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

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

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

scripts/handle-pr-errors.js

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 запускает скрипты?

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

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

Сравнить handle-pr-errors с