/portal:fleetshift-run-shiftfrom Spotify Portal
Executes a Fleetshift shift by triggering agent jobs per target repository and monitoring them to completion with a bounded wait. Also handles the kill switch to stop or cancel a running shift.
Ships in Spotify Portal. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Running a shift triggers an agent job per target repository, then monitors each triggered job until it finishes (or until a bounded wait expires).
Mutating action — explicit confirmation required. Do not call
fleetshift:trigger-shiftuntil the user has explicitly confirmed which shift and which targets to run. Ask for a clear "yes" first.
If the user says stop, cancel, abort, "wait", "never mind", or otherwise changes their mind at any point, do this right away. Stopping doesn't need the confirmation step that triggering does:
Stop triggering. Don't call fleetshift:trigger-shift for any target
that hasn't been triggered yet, and drop the rest of the batch.
Stop polling. End the monitor loop.
Stop the running jobs. Call fleetshift:stop-jobs right away, once,
with every triggered jobIdentifier that hasn't reached a terminal
state. Portal marks it as destructive, so the CLI needs --yes. The
user's request to stop is the authorization: don't ask again, and skip
--dry-run here because stopping must be immediate.
npx @spotify/portal-cli actions fleetshift:stop-jobs --input '{"shiftName":"<shift-name>","jobIdentifiers":["<job-identifier-1>","<job-identifier-2>"]}' --yes --json
If you no longer have the identifiers (new session, the monitor ended),
list the running targets: each one includes its jobIdentifier. Always
query with offset: 0, stop what it returns, and query again until it
returns nothing. Don't page with offset, because stopped jobs drop out
of the filtered list and later pages would skip running ones. If it
returns only jobs that stop-jobs already rejected, stop looping.
stop-jobs reports a job it couldn't stop as rejected instead of
failing the call. Report every rejected job to the user and send them
to the Fleetshift UI fallback below for those jobs.
npx @spotify/portal-cli actions fleetshift:get-shift-targets --input '{"shiftName":"<shift-name>","status":"jobRunning","limit":250,"offset":0}' --json
If stop-jobs isn't available (older Portal versions) or the call
fails, send the user to the Fleetshift UI, where stopping takes one
click:
<portal-base-url>/fleetshift/shifts/<shift-name>, select the running
targets, and press Stop (N).portalJobUrl (from the trigger-shift
response) and press Stop.List every triggered job that wasn't in a terminal state as a markdown
link to its portalJobUrl, so the user has them all in one place.
Confirm it worked. Call fleetshift:get-job-status once for each
job (after the user says they've stopped them, if you used the UI) and
check that it reports stopped or another terminal state. Report
anything still running.
Stopping doesn't delete the shift, and it doesn't touch PRs that were
already opened. Closing PRs (fleetshift:close-prs) or deleting the shift
(fleetshift:delete-shift) are separate, destructive steps. Do them only if
the user explicitly asks, and get a clear "yes" first.
npx @spotify/portal-cli auth show.
If it isn't, ask the user to run npx @spotify/portal-cli auth login.
If auth list shows more than one Portal instance, confirm which one
with the user and pass --instance <name> on every call.fleetshift_<action> tools (for example
fleetshift_list-shifts). They take the same input, but have no
--dry-run, so the confirmation steps below matter even more.--yes only to stop-jobs in the kill switch. Never pass it to
close-prs or delete-shift; these skills don't call them.fleetshift-create-shift skill).# Find the shift (list if unsure of the exact name)
npx @spotify/portal-cli actions fleetshift:list-shifts --input '{}' --json
# Its definition and status breakdown
npx @spotify/portal-cli actions fleetshift:get-shift --input '{"shiftName":"<shift-name>"}' --json
# Its targets and their current status. Targets that were never triggered
# are included as `pending`, with no job fields.
npx @spotify/portal-cli actions fleetshift:get-shift-targets --input '{"shiftName":"<shift-name>"}' --json
# Only the targets still waiting to run
npx @spotify/portal-cli actions fleetshift:get-shift-targets --input '{"shiftName":"<shift-name>","status":"pending","limit":250,"offset":0}' --json
pending (or re-running ones you
agree to re-run). Surface any targets that are already jobRunning,
jobComplete, or jobFailed and confirm the intended scope.jobComplete target and the new run
fails or is stopped, the earlier result can no longer be used to open a
PR. Before re-running a jobComplete target, say so, and suggest
fleetshift-create-prs first if the user wants that change as a PR.fleetshift:find-shift-for-soundcheck first and confirm the matched shift
with the user before running.trigger-shift runs one target per call. Validate the first call with
--dry-run, which checks the input locally and triggers nothing:
npx @spotify/portal-cli actions fleetshift:trigger-shift --input '{"shiftName":"<shift-name>","targetId":"component:default/my-service","repo":"my-org/my-service"}' --dry-run --json
Present the shift name and the exact list of targets to run, and get explicit
confirmation. List them every time, even if the user already said "run it" or
approved the shift earlier: a "yes" counts only after they've seen the exact
targets for this run. Then trigger each confirmed target without --dry-run.
Each call returns a jobIdentifier and a portalJobUrl:
npx @spotify/portal-cli actions fleetshift:trigger-shift --input '{"shiftName":"<shift-name>","targetId":"component:default/my-service","repo":"my-org/my-service"}' --json
jobIdentifier and portalJobUrl from every invocation —
you need the identifier to monitor the job.After triggering, monitor each job with fleetshift:get-job-status, passing
the jobIdentifier you recorded:
npx @spotify/portal-cli actions fleetshift:get-job-status --input '{"jobIdentifier":"<job-identifier>"}' --json
Terminal states to stop on: jobComplete, jobFailed, stopped, skipped,
noChanges (and, after PRs exist, prOpen/prMerged/prClosed).
jobFailed (or stopped/skipped), stop polling that
job, note it, and continue to the fleetshift-troubleshoot-shift skill for diagnosis —
do not silently retry it.portalJobUrl for each so the user can
keep watching. Do not keep polling past the cap.Summarize per target: status, and any prUrl. For every triggered job,
always include its portalJobUrl as a markdown link. If any targets reached
jobComplete, suggest the fleetshift-create-prs skill (which itself requires explicit
confirmation).
fleetshift-check-shift.fleetshift-create-prs.fleetshift-troubleshoot-shift.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub spotify/portal-ai-plugins --plugin portal11 skills in this plugin
/actionsDiscover, inspect, and invoke Spotify Portal actions through the Portal CLI. Use when the user asks what Portal can do, names an action ID, or wants to run a Portal operation./doctorDiagnose Spotify Portal plugin, CLI, authentication, and action access without changing state. Use when setup is failing, commands are missing, authentication is unclear, a plugin update looks stale, or the user asks whether Portal is ready./feedbackSubmit feedback about the Spotify Portal CLI to the Portal team. Use when the user explicitly asks to send CLI feedback, or voices an impression, complaint, suggestion, or praise about the Portal CLI or these Portal workflows and confirms they want it submitted./fleetshift-check-shiftRead-only status check on Fleetshift shifts: what ran, which targets finished/failed, which PRs were opened and their state. Safe to run days or weeks after a shift was created or run. Use when the user asks "how is my shift going", "what happened to that fleetshift", "are the PRs merged yet", or wants a recap of a shift they ran a while ago./fleetshift-create-prsOpen pull requests from completed Fleetshift shift runs. Use after a shift has run and targets reached a "finished/jobComplete" state — this turns the agent-made changes into reviewable PRs on the target repositories. Requires explicit user confirmation before creating any PRs. Only opens PRs; it never closes, archives, or reverts anything./fleetshift-create-shiftCreate a Fleetshift shift definition that runs an agent to apply transformations across a set of repository targets. Use when the user wants to set up a reusable, repeatable change (e.g. "add a header to every service", "migrate every repo from X to Y") that can later be run, checked on, and have PRs opened from it. Requires explicit user confirmation before creating the shift.2 plugins ship this exact skill · first indexed Oct 25, 2026
Other plugins' skills for the same job