ops-utils

Clean up GitHub preview deployment environments older than three days.

1.1k|68|Updated Nov 14, 2025
One-click install
npx skills add https://github.com/vm0-ai/vm0 --skill ops-utils
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ops-utils
Source: https://github.com/vm0-ai/vm0/tree/main/.claude/skills/ops-utils
Command: npx skills add https://github.com/vm0-ai/vm0 --skill ops-utils

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates routine VM0 infrastructure operations, reducing manual toil and preventing stale environments.

Core Features & Use Cases

  • Automated cleanup: Remove outdated GitHub preview deployments and environments.
  • Safe pruning: Preserve production and recently active previews, ensuring system stability.
  • Operational transparency: Generates a summary of deletions and remaining environments.

Quick Start

Use the ops-utils skill to cleanup outdated preview environments for your repository.

Frequently Asked Questions about ops-utils

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate the cleanup of outdated GitHub preview deployment environments?

Automating GitHub preview deployment cleanup is done by targeting repositories and deleting preview environments aged beyond three days using GitHub CLI and shell scripting. Production and recent previews are preserved.

What is the best way to prune stale GitHub environments without affecting production deployments?

Pruning stale GitHub environments safely requires filtering deployments by age and deleting those older than three days. This approach ensures production deployments and recently active previews are preserved from deletion.

Does the preview environment cleanup script preserve recently active deployments?

Preview environment cleanup preserves recently active deployments by filtering environments before deletion. It specifically targets previews aged beyond three days while explicitly protecting production environments and recent previews from removal.

Can I use GitHub CLI to list and delete multiple repository environments?

GitHub CLI can list and delete multiple repository environments by executing shell scripts that filter preview deployments older than three days. It processes targeted repositories and outputs a final summary of actions taken.

Why should I clean up GitHub preview environments that are older than three days?

Cleaning up GitHub preview environments older than three days prevents stale environments from accumulating. Automated removal reduces manual infrastructure toil and maintains operational efficiency across multiple repositories.

How does the GitHub environment cleanup process report its actions?

The GitHub environment cleanup process reports actions by generating a final summary of deletions and remaining environments. This operational transparency ensures you can track which outdated previews were removed and what is preserved.