Command Palette

Search for a command to run...

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

troubleshooting-execute

БесплатноБез исполняемых скриптовНе проверен

Use when execute command encounters errors - diagnostic guide for phase failures, parallel agent failures, merge conflicts, worktree issues, and recovery…

arittrот arittr★ 20 звёзд на GitHub12 установок в других каталогах

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

Troubleshooting Execute Command

Overview

Reference guide for diagnosing and recovering from execute command failures.

This skill provides recovery strategies for common execute command errors. Use it when execution fails or produces unexpected results.

When to Use

Use this skill when:

  • Phase execution fails (sequential or parallel)
  • Parallel agent fails or doesn't complete
  • Merge conflicts occur during stacking
  • Worktree creation fails
  • Main worktree not found
  • Need to resume execution after fixing an issue

This is a reference skill - consult when errors occur, not part of normal execution flow.

Error Categories

1. Sequential Phase Execution Failure

Symptoms:

  • Task agent fails mid-execution
  • Quality checks fail (test, lint, build)
  • Branch not created after task completes

Error message format:

❌ Phase {id} Execution Failed

**Task**: {task-id}
**Error**: {error-message}

Resolution steps:

  1. Review the error output - Understand what failed (test? build? implementation?)

  2. Check current state:

    cd .worktrees/{runid}-main
    git status
    git log --oneline -5
    
  3. Fix manually if needed:

    # Current branch already has completed work from previous tasks
    # Fix the issue in the working directory
    
    # Run quality checks
    bash <<'EOF'
    npm test
    if [ $? -ne 0 ]; then
      echo "❌ Tests failed"
      exit 1
    fi
    
    npm run lint
    if [ $? -ne 0 ]; then
      echo "❌ Lint failed"
      exit 1
    fi
    
    npm run build
    if [ $? -ne 0 ]; then
      echo "❌ Build failed"
      exit 1
    fi
    EOF
    
    # Create branch if task completed but branch wasn't created
    gs branch create {runid}-task-{phase}-{task}-{name} -m "[Task {phase}.{task}] {description}"
    
  4. Resume execution:

    • If fixed manually: Continue to next task
    • If need fresh attempt: Reset branch and re-run task
    • If plan was wrong: Update plan and re-execute from this phase

2. Parallel Phase - Agent Failure

Symptoms:

  • One or more parallel agents fail
  • Some task branches created, others missing
  • Error during concurrent execution

Error message format:

❌ Parallel Phase {id} - Agent Failure

**Failed Task**: {task-id}
**Branch**: {task-branch}
**Error**: {error-message}

**Successful Tasks**: {list}

Resolution options:

Option A: Fix in Existing Branch

Use when fix is small and task mostly completed:

# Navigate to task's worktree
cd .worktrees/{runid}-task-{phase}-{task}

# Debug and fix issue
# Edit files, fix code

# Run quality checks
bash <<'EOF'
npm test
if [ $? -ne 0 ]; then
  echo "❌ Tests failed"
  exit 1
fi

npm run lint
if [ $? -ne 0 ]; then
  echo "❌ Lint failed"
  exit 1
fi

npm run build
if [ $? -ne 0 ]; then
  echo "❌ Build failed"
  exit 1
fi
EOF

# Commit fix on existing branch
git add --all
git commit -m "[Task {phase}.{task}] Fix: {description}"

# Return to main repo
cd "$REPO_ROOT"

# Proceed with stacking (failed branch now exists)

Option B: Create Stacked Fix Branch

Use when fix is significant or logically separate:

# Navigate to task's worktree
cd .worktrees/{runid}-task-{phase}-{task}

# Ensure original work is committed
git status  # Should be clean

# Create stacked fix branch
gs branch create {runid}-task-{phase}-{task}-fix-{issue} -m "[Task {phase}.{task}] Fix: {issue}"

# Implement fix
# Edit files

# Commit fix
git add --all
git commit -m "[Task {phase}.{task}] Fix: {description}"

# Return to main repo
cd "$REPO_ROOT"

Option C: Restart Failed Agent

Use when task implementation is fundamentally wrong:

# Navigate to main repo
cd "$REPO_ROOT"

# Remove task worktree
git worktree remove .worktrees/{runid}-task-{phase}-{task}

# Delete failed branch if it exists
git branch -D {runid}-task-{phase}-{task}-{name}

# Recreate worktree from base
BASE_BRANCH=$(git -C .worktrees/{runid}-main branch --show-current)
git worktree add .worktrees/{runid}-task-{phase}-{task} --detach "$BASE_BRANCH"

# Install dependencies
cd .worktrees/{runid}-task-{phase}-{task}
{install-command}
{postinstall-command}

# Spawn fresh agent for this task only
# [Use Task tool with task prompt]

Option D: Continue Without Failed Task

Use when task is non-critical or can be addressed later:

  1. Stack successful task branches
  2. Mark failed task as follow-up work
  3. Continue to next phase
  4. Address failed task in separate branch later

3. Merge Conflicts During Stacking

Symptoms:

  • Stacking parallel branches causes conflicts
  • gs upstack onto fails with merge conflict
  • Git reports conflicting changes in same files

Error message format:

❌ Merge Conflict - Tasks Modified Same Files

**Conflict**: {file-path}
**Branches**: {branch-1}, {branch-2}

This should not happen if task independence was verified correctly.

Root cause: Tasks were marked parallel but have file dependencies.

**Resolution st

Полный SKILL.md на GitHub

Установить troubleshooting-execute в Claude Code и Claude Desktop

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

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

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

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

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

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

FAQ

Что делает скилл troubleshooting-execute?

Use when execute command encounters errors - diagnostic guide for phase failures, parallel agent failures, merge conflicts, worktree issues, and recovery strategies

Как установить скилл troubleshooting-execute?

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

Скилл troubleshooting-execute запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

Сравнить troubleshooting-execute с