# Fleetshift troubleshoot shift

> Fleetshift troubleshoot shift is an open-source agent skill for developer tools. Diagnoses why a Fleetshift shift or job failed, using read-only status and log checks. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/spotify/portal-ai-plugins/tree/main/skills/fleetshift-troubleshoot-shift
- **Repository:** https://github.com/spotify/portal-ai-plugins
- **GitHub stars:** 3,322
- **License:** Apache-2.0
- **Skill name:** fleetshift-troubleshoot-shift
- **Collection:** https://github.com/spotify/portal-ai-plugins
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-02

## About

This skill helps an agent work out why a Fleetshift shift run failed. It starts by listing the shift and its aggregate status, then narrows to targets that ended in failed, stopped or skipped states. For each one it pulls job status and archived logs, looks for the concrete cause such as agent errors, repository access problems, build failures, timeouts or missing resources, and quotes the relevant log lines in its report.

The workflow never changes anything. It does not trigger, stop, re-run or open pull requests. When a fix is needed, it recommends the appropriate companion skill for re-running failed targets, opening pull requests once a job completes, or checking overall shift state, and leaves confirmation to those skills. For soundcheck failures it cross-checks the matching shift before suggesting a re-run.

Usage requires the Portal CLI to be authenticated, and the skill calls its shift and job actions through that CLI or the equivalent Portal MCP tools. Job logs are kept for 30 days, so older failures may return no logs, in which case the skill reports that rather than guessing a cause.

## When your agent uses it

> Diagnose why a Fleetshift shift or job failed: find failed targets, pull their job logs and status, and explain the root cause and the safe next step. Read-only and safe to run anytime. Use when a shift run fails, a target ends in jobFailed/stopped, or a soundcheck check is still failing after a run.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/spotify/portal-ai-plugins/tree/HEAD/skills/fleetshift-troubleshoot-shift)
- [License: Apache-2.0](https://github.com/spotify/portal-ai-plugins/tree/HEAD/skills/fleetshift-troubleshoot-shift)

## Features

- **Failed target discovery:** Lists a shift's targets filtered to those with failed status to focus the investigation.
- **Job log analysis:** Pulls raw and summarized job logs for each failed target and extracts the relevant excerpts.
- **Root cause summary:** Explains the likely cause of each failure and what it implies for the affected target.
- **Soundcheck cross-check:** Confirms that a failing soundcheck check actually matches the shift before suggesting a re-run.
- **Read-only safety:** Performs no mutating actions and hands off any fix to skills that require explicit confirmation.

## Good for

- Why did my Fleetshift shift fail for these services?
- Show me the logs behind the jobFailed targets in this shift
- Find the root cause of a stopped job and tell me the safe next step
- Check whether a failing soundcheck check is caused by the last shift run

## Install

### Claude Code

This skill ships in the `portal` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add spotify/portal-ai-plugins
/plugin install portal@portal
```

Or copy only this skill to `~/.claude/skills/fleetshift-troubleshoot-shift`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/spotify/portal-ai-plugins.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/fleetshift-troubleshoot-shift &&
cp -R "$tmp/skills/fleetshift-troubleshoot-shift" ~/.claude/skills/fleetshift-troubleshoot-shift &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/fleetshift-troubleshoot-shift` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/fleetshift-troubleshoot-shift` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/spotify/portal-ai-plugins.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/fleetshift-troubleshoot-shift &&
cp -R "$tmp/skills/fleetshift-troubleshoot-shift" ~/.agents/skills/fleetshift-troubleshoot-shift &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/fleetshift-troubleshoot-shift` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/fleetshift-troubleshoot-shift` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/spotify/portal-ai-plugins.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/fleetshift-troubleshoot-shift &&
cp -R "$tmp/skills/fleetshift-troubleshoot-shift" ~/.cursor/skills/fleetshift-troubleshoot-shift &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/fleetshift-troubleshoot-shift` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/spotify/portal-ai-plugins.git --path skills/fleetshift-troubleshoot-shift
```

Or copy the folder to `~/.gemini/skills/fleetshift-troubleshoot-shift` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/fleetshift-troubleshoot-shift`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/spotify/portal-ai-plugins.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/fleetshift-troubleshoot-shift &&
cp -R "$tmp/skills/fleetshift-troubleshoot-shift" ~/.copilot/skills/fleetshift-troubleshoot-shift &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/fleetshift-troubleshoot-shift` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/spotify/portal-ai-plugins.git
```

Then copy `portal-ai-plugins/skills/fleetshift-troubleshoot-shift` into your agent's skills folder as `fleetshift-troubleshoot-shift`. Agents that support SKILL.md read one folder per skill.

## FAQ

### Does Fleetshift troubleshoot shift change anything in my Fleetshift setup?

No. It only inspects shift, target, job and log state and never triggers, stops, re-runs or closes anything. Fixes are handed off to other skills that require confirmation.

### What do I need before using Fleetshift troubleshoot shift?

The Portal CLI must be authenticated with npx @spotify/portal-cli auth login, or a Portal MCP server must be connected. If more than one Portal instance exists, the skill asks which one to use.

### What happens if the logs are too old?

Fleetshift keeps job logs for 30 days. For older targets the skill reports that logs have expired and offers to re-run those targets to capture fresh logs.

### When does Fleetshift troubleshoot shift trigger?

It is meant for cases where a shift run fails, a target ends in jobFailed or stopped, or a soundcheck check is still failing after a run.

### How do I install Fleetshift troubleshoot shift in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/fleetshift-troubleshoot-shift to use it in all your projects, or to .claude/skills/fleetshift-troubleshoot-shift in one project. Or install the portal plugin, which includes it: /plugin marketplace add spotify/portal-ai-plugins, then /plugin install portal@portal.

### Does Fleetshift troubleshoot shift run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Fleetshift troubleshoot shift?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Fleetshift troubleshoot shift?

The closest alternatives to Fleetshift troubleshoot shift are Fleetshift check shift, Fleetshift run shift, Fleetshift create shift, Fleetshift create prs and Observability gap.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Fleetshift check shift](https://ai-powered.com/skills/fleetshift-check-shift): Fleetshift check shift is an open-source agent skill for developer tools.
- [Fleetshift run shift](https://ai-powered.com/skills/fleetshift-run-shift): Fleetshift run shift is an open-source agent skill for developer tools.
- [Fleetshift create shift](https://ai-powered.com/skills/fleetshift-create-shift): Fleetshift create shift is an open-source agent skill for developer tools.
- [Fleetshift create prs](https://ai-powered.com/skills/fleetshift-create-prs): Fleetshift create prs is an open-source agent skill for developer tools.
- [Observability gap](https://ai-powered.com/skills/observability-gap): Observability gap is an open-source agent skill for developer tools.
- [Ci](https://ai-powered.com/skills/ci-chachamaru127): Ci is an open-source agent skill for developer tools.
- [Fix ci](https://ai-powered.com/skills/fix-ci): Fix ci is an open-source agent skill for developer tools.
- [Diagnose ci gate](https://ai-powered.com/skills/diagnose-ci-gate): Diagnose ci gate is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/fleetshift-troubleshoot-shift
