Automated summary
The ops CLI tool manages server deployments, database operations, and CLI builds within a monorepo using Bun commands.
Strengths
- Comprehensive set of commands for server management, database operations, and CLI builds.
- Integration with Cloudflare Workers and D1 for deployments and migrations.
- Automated workflows like full integration tests that deploy and run tests.
- Configuration validation and secret management via `config check` and `config push`.
Limitations
- Requires the Bun runtime and a specific monorepo structure.
- Limited to three predefined instance names (prod, staging, dev).
- Separation between deploy and environment variable updates (config push) can be confusing.
When managing deployments, database migrations, and CLI builds for a monorepo using Cloudflare Workers and D1.
For non-monorepo projects or when using alternative cloud providers.
Security analysis
SafeThe skill documents the usage of an internal ops CLI for server management and deployment. It does not instruct the AI to execute any destructive or exfiltrating commands directly; it is a reference manual. While the CLI itself has powerful capabilities (e.g., dropping database tables), the skill provides no obfuscated payloads, no direct execution instructions, and no curl/sh pipes. The risk of misuse by an AI agent is minimal as it merely describes a tool.
No concerns found
How this analysis is madeExamples
Deploy the server to production using the ops CLI: bun ops server -i prod deployRun the full integration test against staging: bun ops server -i staging testList all tables in the staging database: bun ops server -i staging db tablesOps CLI Skill
The ops CLI (bun ops) manages server deployments, database operations, and CLI builds for the Scratch monorepo.
Command Structure
All commands are run from the repository root with bun ops.
Server Commands (require -i/--instance flag)
Instance names: prod, staging, dev
# Setup and deployment
bun ops server -i <instance> setup # Interactive setup wizard for new instance
bun ops server -i <instance> deploy # Deploy server to Cloudflare Workers
bun ops server -i <instance> logs # Tail worker logs
# Configuration management
bun ops server -i <instance> config check # Validate config files
bun ops server -i <instance> config check --fix # Show commands to fix issues
bun ops server -i <instance> config push # Sync vars to Cloudflare secrets
# Database operations
bun ops server -i <instance> db migrate # Run migrations from schema.d1.sql
bun ops server -i <instance> db tables # List all tables
bun ops server -i <instance> db query "SQL" # Run arbitrary SQL query
bun ops server -i <instance> db drop-all # Drop all tables (prod requires confirmation)
# Integration testing
bun ops server -i <instance> test # Full end-to-end integration test
Server Commands (no instance required)
bun ops server regenerate-env-ts # Regenerate server/src/env.ts from .vars.example
CLI Commands
bun ops cli build # Build the scratch CLI
bun ops cli test # Run all CLI tests (uses Bun's built-in parallelism)
bun ops cli test:unit # Run unit tests only
bun ops cli test:e2e # Run e2e tests only
bun ops cli run <script> # Run any CLI script (pass-through)
Common Workflows
Verify changes are correct
Run the full integration test against staging:
bun ops server -i staging test
This builds the CLI, deploys the server, and runs end-to-end tests.
Deploy to production
bun ops server -i prod deploy
Check database state
bun ops server -i staging db tables
bun ops server -i staging db query "SELECT * FROM user LIMIT 5"
View deployment logs
bun ops server -i staging logs
Test logs are saved to logs/<instance>.log during integration tests.
Instance Configuration
Each instance has configuration files in server/:
server/.${instance}.vars- Environment variables (e.g.,.prod.vars,.staging.vars)server/wrangler.${instance}.toml- Generated wrangler config
Resource naming convention: ${instance}-scratch-server, ${instance}-scratch-db, ${instance}-scratch-files
Deploy vs Config Push
Important: deploy and config push serve different purposes. Use the right one for the job.
| Change Type | Command |
|-------------|---------|
| Code changes | deploy |
| Route changes (wrangler config) | deploy |
| Environment variable changes | config push only |
| Both routes AND env vars | deploy then config push |
deployupdates code and routes but does NOT update secretsconfig pushuseswrangler secret putto update secrets immediately without redeployment
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/server-deployment-management-with-ops-cli-mm5t89gm/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/server-deployment-management-with-ops-cli-mm5t89gm' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/server-deployment-management-with-ops-cli-mm5t89gm/download' --output '.skill-downloads/server-deployment-management-with-ops-cli-mm5t89gm/SKILL.md.part' && mv '.skill-downloads/server-deployment-management-with-ops-cli-mm5t89gm/SKILL.md.part' '.skill-downloads/server-deployment-management-with-ops-cli-mm5t89gm/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
This file does not provide a usable name/description header for this native procedure. It remains available to download and inspect; use the manual method below.
Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/server-deployment-management-with-ops-cli-mm5t89gm/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
React Hook Form Best Practices
Development
Master React Hook Form: avoid anti-patterns, manage subscriptions, and handle reset, dirty state, and controlled inputs correctly.
Emotion to Mantine Migration
Development
Migrate Emotion styled-components to Mantine components with style props and CSS modules. Use when converting .styled.tsx files or removing @emotion imports.
Scope Creep Detector
Development
Analyzes git diffs against a stated intent to detect scope creep, unrelated files, broad PRs, and oversized changes, then suggests keep, split, or justify actions.