ops-app-server-safety

ops-app-server-safety is a skill for Claude Code, Codex from CATWILLgh/MAINFRAME. It costs 43 tokens per session (1,640 once invoked), scanned A, original, MIT.

A safety check for starting, restarting, or stopping development servers and Docker Compose projects. It identifies the exact process, project, working directory, and known port before taking action.

In plain words
What is it for?
Use it before launching native development servers or container stacks to reuse a matching running instance or choose the least disruptive safe action.
Why use it?
It helps avoid duplicate servers and prevents stopping a different application just because it uses a similar name or port.

Skill for Claude CodeCodex

Part of the mainframe plugin — 19 skills, 12 hooks shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/catwillgh/mainframe/ops-app-server-safety
Any agent
npx skills add CATWILLgh/MAINFRAME --skill ops-app-server-safety
Clone the repo
git clone --depth 1 https://github.com/CATWILLgh/MAINFRAME

Made for: Claude Code, Codex.

Or install mainframe, the plugin that ships this one along with the rest of its 19 skills, 12 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ops-app-server-safety

README.md
[![agentmods](https://agentmods.dev/badge/skills/catwillgh/mainframe/ops-app-server-safety.svg)](https://agentmods.dev/skills/catwillgh/mainframe/ops-app-server-safety)
Your own site
<a href="https://agentmods.dev/skills/catwillgh/mainframe/ops-app-server-safety"><img src="https://agentmods.dev/badge/skills/catwillgh/mainframe/ops-app-server-safety.svg" alt="Measured on agentmods" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,640 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00043 $0.01640
Opus 5 $0.00022 $0.00820
Sonnet 5 $0.00009 $0.00328
Haiku 4.5 $0.00004 $0.00164

Measured 4d ago against content hash 59e834313085, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

ops-app-server-safety scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

adapters/claude-code/plugin/skills/ops-app-server-safety/SKILL.md · 133 lines

How it starts

The opening of the file, as written. The whole thing — 133 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Server safety: no duplicate long-running processes

A preflight before launching dev servers, application processes, and container stacks. Discovery does not grant permission to stop a process or mutate a Compose project; use only the authority supplied by the active task.

Rule

Before launching a long-running process, establish its expected working directory, command or Compose project, and port or service when known. Reuse an already-running matching instance unless the task requires a restart or a configuration/image change. Never stop a process merely because its name or port looks similar.

Preflight — native processes

Applies to: dev servers like vite, next dev, nodemon, uvicorn, gunicorn, flask run, rails s, custom application servers.

  1. Check the port if known.

    • macOS / Linux: lsof -nP -iTCP:<PORT> -sTCP:LISTEN
    • One line per visible listener with PID and command name. Empty output means no listener was visible at that instant; it is not durable ownership of the port.
  2. Check the process by command (fallback or in addition).

    • macOS / Linux: ps -ef | grep -E 'vite|next dev|nodemon|uvicorn|gunicorn|flask run|rails s' | grep -v grep
    • If multiple projects on the host could host similar processes, disambiguate by working directory: ps -o pid,command -p <PID> and lsof -p <PID> | grep cwd.
  3. Prove ownership before acting. Confirm the PID's working directory and full command. A regex match alone may belong to another project or session. A project-provided PID file or process manager is valid evidence when the repository actually uses one.

Preflight — Docker Compose

Applies to any docker compose up invocation.

  1. Resolve the intended Compose file, project name, and working directory. Do not let an incidental current directory select the target.
  2. Check existing containers for this compose project.
    • Run the resolved project command with ps --status running --services.
    • One or more service-name lines means those services are running. The default table output is not a valid emptiness check because it includes a header even when there are no matching containers.
  3. Choose by intended change.
    • No restart or configuration change: use the running services.
    • Restart with unchanged Compose configuration: use docker compose restart [SERVICE...].
    • Changed configuration or image: use docker compose up -d [SERVICE...] with the project's normal build or pull policy. Compose reconciles changed services; restart does not apply configuration changes.
    • Use docker compose down only when removal of the project's containers and networks is explicitly intended. It is not the default restart primitive.

Read the full file on GitHub · 133 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 133 lines · 43 tokens per session scan A 59e834313085

Subscribe to this mod's changes

ops-app-server-safety is a skill published in the GitHub repository CATWILLgh/MAINFRAME (2 stars, last pushed 14d ago), licensed MIT. It adds 43 tokens to every session and 1,640 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

container-native-deployment

Use when packaging a Spring Boot 3 application as an OCI image or GraalVM native executable. Covers buildpacks, layered images, JVM containers, AOT hints, probes, security, and verification.

rrezartprebreza/spring-boot-skills · 46 tokens

cc-hooks

Multi-agent hook system: author hooks once as rulesync-canonical hooks.json (HookDefinitionSchema), deploy via superskill install / superskill hook emit to Claude Code, Codex, OpenCode, Pi (pi-hooks), and Gemini CLI. Covers command, prompt, and http hooks, cross-platform event mapping, and safety invariants.

gobing-ai/superskill · 71 tokens

built-for-shopify-standards

Prepare a Shopify app for Built for Shopify status. Covers current quality criteria, performance, accessibility, Shopify admin integration, compliance webhooks, observability, support, application readiness, and ongoing eligibility.

khadinakbarlabs/shopify-app-builder · 47 tokens

dev-troubleshooting

Use when a Shopify dev workflow is failing — shopify app dev cryptic errors, Cloudflare tunnel not starting, App Bridge v3→v4 migration 'No AppBridge context provided', GraphQL 200 OK with throttle errors, webhook 401, double-subscribed webhooks, app proxy 404, REST 302 loops, Rust function wasm-validator errors…

khadinakbarlabs/shopify-app-builder · 175 tokens

merchant-pain-prevention

Use when designing, building, reviewing, or shipping a Shopify app to avoid the patterns that get merchants angry (1-2 star reviews, uninstalls, churn). Covers theme injection / leftover code on uninstall, surprise billing, fake urgency, slow scripts, cancel friction, scope creep, bot-only support, broken on platform…

khadinakbarlabs/shopify-app-builder · 162 tokens

app-pricing-strategy

Use when designing Shopify app pricing, choosing a pricing model (flat tiered / usage-based / freemium / hybrid), setting trial length (7/14/30 days), structuring 3-4 tier plans, sizing capped usage, raising prices on existing customers, or writing pricing copy for the App Store listing. Triggers: 'shopify app…

khadinakbarlabs/shopify-app-builder · 146 tokens