Ops CLI Skill

Manage server deployments, database operations, and CLI builds for the Scratch monorepo.

19|4|Updated Dec 20, 2025
One-click install
npx skills add https://github.com/scratch/scratch --skill ops-cli-skill
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Ops CLI Skill
Source: https://github.com/scratch/scratch/tree/main/.claude/skills/ops
Command: npx skills add https://github.com/scratch/scratch --skill ops-cli-skill

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the management of server deployments, database operations, and CLI builds for the Scratch monorepo, simplifying complex operational tasks.

Core Features & Use Cases

  • Server Management: Deploy servers to Cloudflare Workers, manage configurations, and tail logs across different instances (prod, staging, dev).
  • Database Operations: Perform database migrations, list tables, and execute arbitrary SQL queries.
  • CLI Management: Build and test the Scratch CLI, including unit and end-to-end tests.
  • Use Case: Verify that recent code changes are correct by running the full integration test against the staging environment before deploying to production.

Quick Start

Run the full integration test against staging by typing 'bun ops server -i staging test'.

Frequently Asked Questions about Ops CLI Skill

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

FAQPage Schema
How do I deploy servers to Cloudflare Workers for a monorepo?

Server deployment to Cloudflare Workers is managed through the command-line interface using instance-specific operations for production, staging, and development environments to push builds and manage configurations.

Can I run database migrations and SQL queries from the command line?

Yes, database migrations, table listing, and arbitrary SQL queries are supported directly via the command-line interface, allowing you to manage database operations without switching to a separate database client.

What's the best way to test staging environment before a production deployment?

You can verify code changes by running the full integration test against the staging environment using the command 'bun ops server -i staging test' before deploying to production.

Does this support tailing logs across different server instances?

Yes, log tailing is supported across different instances including production, staging, and development environments, allowing you to monitor server behavior directly from the command line.

How do I build and run tests for a CLI tool?

CLI builds and testing are facilitated through the command-line interface, supporting both unit and end-to-end tests to verify that the command-line tool functions correctly.

When do I need instance-specific configuration checks for server management?

Configuration checks are needed before deploying servers to ensure environment-specific settings for production, staging, or development are correct and prevent deployment failures.