home / skills / tdhopper / dotfiles2.0 / monitor-deploy
This skill helps you monitor Spotify deployments by using Tugboat CLI, showing status, progress, and optionally tails logs.
npx playbooks add skill tdhopper/dotfiles2.0 --skill monitor-deployReview the files below or copy the command above to add this skill to your agents.
---
name: monitoring-deployments
description: Use this skill when monitoring Spotify deployments, checking deployment status, viewing deploy progress, or tailing deployment logs. Triggers on "check deployment", "deploy status", "monitor deploy", "what's deploying", or when user runs /monitor-deploy.
---
# Monitoring Deployments
Monitor Spotify deployments via the Tugboat CLI with optional GCP log tailing.
## Prerequisites
Check if `tugboat` exists. If not, auto-install:
```bash
uv tool install --from git+ssh://[email protected]/warpspeed/tugboat-cli.git tugboat-cli
```
## Workflow
### 1. Get component
Use provided component name/pattern, or ask the user.
### 2. List installations
```bash
tugboat installations list --component=<component-or-pattern>
```
### 3. Get deployment status
```bash
tugboat deployments show --installation=<installation-id> <deployment-id>
```
For full JSON details:
```bash
tugboat deployments dump --installation=<installation-id> <deployment-id>
```
### 4. Get version info
```bash
tugboat version <component-id> show <version-id>
```
### 5. Summarize
Present concisely: state, progress %, version/commit, errors.
### 6. Offer log tailing
When in-progress or failed, offer to tail GCP logs. Parse log info from tugboat output and run:
```bash
gcloud logging tail "<filter>" --project=<project>
```
## Batch mode
For patterns like `fan-audio-*`, show a table of all matching components.
## Errors
- Auth issues → `gcloud auth login`
- Missing tugboat → auto-install
- Bad component → list available ones
This skill monitors Spotify deployments using the Tugboat CLI and can optionally tail GCP logs for live insight. It helps check deployment status, view progress, summarize version and errors, and follow logs when a deployment is in progress or failed. Use it interactively or via the /monitor-deploy trigger for quick checks.
The skill ensures tugboat is available and auto-installs it if missing. It lists installations for a component, fetches deployment details and version information, and summarizes state, progress, version/commit, and errors. When needed, it parses log filters from tugboat output and runs gcloud logging tail to stream logs for the relevant project.
What if tugboat is not installed?
The skill auto-installs tugboat using the configured tool installer command. If that fails, install tugboat manually with the provided uv tool install command.
How do I stream logs for a failing deployment?
When the deployment is in-progress or failed, the skill extracts a log filter from tugboat output and runs gcloud logging tail "<filter>" --project=<project>. Make sure you are authenticated with gcloud (gcloud auth login).