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.
npx agentmods add skills/catwillgh/mainframe/ops-app-server-safetynpx skills add CATWILLgh/MAINFRAME --skill ops-app-server-safetygit clone --depth 1 https://github.com/CATWILLgh/MAINFRAMEWrote 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.
[](https://agentmods.dev/skills/catwillgh/mainframe/ops-app-server-safety)<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>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.
| Model | Per session | Once 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 |
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.
Copies of this mod
1 near-identical copy found in the catalogue:
- mainframe-ops-app-server-safety — 94% identical, 6 lines differ
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.
-
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.
- macOS / Linux:
-
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>andlsof -p <PID> | grep cwd.
- macOS / Linux:
-
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.
- Resolve the intended Compose file, project name, and working directory. Do not let an incidental current directory select the target.
- 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.
- Run the resolved project command with
- 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;restartdoes not apply configuration changes. - Use
docker compose downonly when removal of the project's containers and networks is explicitly intended. It is not the default restart primitive.
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.
- 4d ago First seen · 133 lines · 43 tokens per session scan A 59e834313085
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.
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.
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.
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.
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…
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…
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…