restart-nginx

restart-nginx is a skill for Claude Code from KnoxOps/agent-runbook. It costs 19 tokens per session (519 once invoked), scanned A, original, Apache-2.0.

A procedure for restarting the Nginx web server on a remote machine over SSH and checking that it is running again. Nginx is software that serves websites and can route web traffic.

In plain words
What is it for?
It is for restarting Nginx on a specified server, checking the service afterward, and saving progress and results in the required files.
Why use it?
It records each step and its result, making a remote restart easier to track and verify when a website or service needs recovery.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Good fit It is for restarting Nginx on a specified server, checking the service afterward, and saving progress and results in the required files.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/knoxops/agent-runbook/restart-nginx
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.

Any agent
npx skills add KnoxOps/agent-runbook --skill restart-nginx
Clone the repo
git clone --depth 1 https://github.com/KnoxOps/agent-runbook

Made for: Claude Code.

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 restart-nginx

README.md
[![agentmods](https://agentmods.dev/badge/skills/knoxops/agent-runbook/restart-nginx/github.svg)](https://agentmods.dev/skills/knoxops/agent-runbook/restart-nginx)
Your own site
<a href="https://agentmods.dev/skills/knoxops/agent-runbook/restart-nginx"><img src="https://agentmods.dev/badge/skills/knoxops/agent-runbook/restart-nginx/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for restart-nginx

Your own site · 80×15
<a href="https://agentmods.dev/skills/knoxops/agent-runbook/restart-nginx"><img src="https://agentmods.dev/badge/skills/knoxops/agent-runbook/restart-nginx.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 19 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 519 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00019 $0.00519
Opus 5 $0.00010 $0.00260
Sonnet 5 $0.00004 $0.00104
Haiku 4.5 $0.00002 $0.00052

Measured 9d ago against content hash d42e31d35c3b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

restart-nginx scanned grade A with 1 finding 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 9d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl http://{host}/health and check the status code
examples/restart-nginx/SKILL.md · 99 lines

What it actually says

Input Parameters

Name Type Required Description
host string Yes Target server hostname or IP

Execution Flow

Task Context

Before starting execution, initialize task_context.json:

{
  "task_id": "<task_id from input>",
  "current_step": 0,
  "current_step_id": null,
  "status": "running",
  "steps": {
    "restart": "pending",
    "verify": "pending"
  },
  "updated_at": "<ISO timestamp>"
}

Update this file after each step completes. On error, set step status to "failed" and overall status to "failed".

Step 1: restart

Type: agent Description: SSH in and restart Nginx

Execution

Launch an independent agent with the following prompt file:

Dispatch instruction:

SSH into {host} and run systemctl restart nginx

Agent workflow:

  1. Prepare the execution environment

  2. Execute the agent with the prompt

  3. Write results to:

    • File: restart_result.json

Output

  • Schema: schemas/restart.schema.json
    • File: restart_result.json

Progress Tracking

After completing this step, update task_context.json:

  • Set current_step_id to "restart"
  • Set steps.restart to "completed"

Step 2: verify

Type: agent Description: Verify Nginx is healthy

Input Files

  • restart_result.json (from Step restart, schema: schemas/restart.schema.json)

Execution

Launch an independent agent with the following prompt file:

Dispatch instruction:

curl http://{host}/health and check the status code

Agent workflow:

  1. Read input data from:

    • Schema: schemas/restart.schema.json
  2. Execute the agent with the prompt

  3. Write results to:

    • File: verify_result.json

Output

  • Schema: schemas/verify.schema.json
    • File: verify_result.json

Progress Tracking

After completing this step, update task_context.json:

  • Set current_step_id to "verify"
  • Set steps.verify to "completed"
Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 9d ago First seen · 99 lines · 19 tokens per session scan A d42e31d35c3b

Subscribe to this mod's changes

restart-nginx is a skill published in the GitHub repository KnoxOps/agent-runbook (17 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 19 tokens to every session and 519 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

llm-aiops

Use when working on AIOps (AI for IT Operations) tasks — incident management, root cause analysis, log parsing/anomaly detection, cloud infrastructure management, or applying LLMs to IT operations. Also use when researching LLM-based solutions for incident response, fault localization, or infrastructure-as-code.

renky1025/agent-skills · 66 tokens

vercel-deploy

Deploy applications and websites to Vercel. Use this skill when the user requests deployment actions such as "Deploy my app", "Deploy this to production", "Create a preview deployment", "Deploy and give me the link", or "Push this live". No authentication required - returns preview URL and claimable deployment link.

bytedance/deer-flow · 69 tokens

design-taste-frontend

Anti-slop frontend skill for landing pages, portfolios, and redesigns. The agent reads the brief, infers the right design direction, and ships interfaces that do not look templated. Real design systems when applicable, audit-first on redesigns, strict pre-flight check.

Leonxlnx/taste-skill · 61 tokens

image-to-code

Elite website image-to-code skill for Codex. For visually important web tasks, it must first generate the design image(s) itself, deeply analyze them, then implement the website to match them as closely as possible. In Codex, it must prefer large, readable, section-specific images instead of tiny compressed boards…

Leonxlnx/taste-skill · 116 tokens

brandkit

Premium brand-kit image generation skill for creating high-end brand-guidelines boards, logo systems, identity decks, and visual-world presentations. Trained for minimalist, cinematic, editorial, dark-tech, luxury, cultural, security, gaming, developer-tool, and consumer-app brand systems. Optimized for intentional…

Leonxlnx/taste-skill · 89 tokens

minimalist-ui

Clean editorial-style interfaces. Warm monochrome palette, typographic contrast, flat bento grids, muted pastels. No gradients, no heavy shadows.

Leonxlnx/taste-skill · 34 tokens