restart-services

restart-services is an agent for Claude Code from andrei-isvoran96/claude-skill-lab. It costs 80 tokens per session (1,320 once invoked), scanned A, original, MIT.

A helper that applies the required Docker, build, and database-migration steps after code changes so running containers show the new version.

In plain words
What is it for?
Use it after editing code and before testing, especially in projects that run through Docker containers.
Why use it?
It removes the guesswork from refreshing a development environment and avoids unnecessary rebuilds or unsafe database commands.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: mentions subagents.

Good fit Use it after editing code and before testing, especially in projects that run through Docker containers.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/andrei-isvoran96/claude-skill-lab/restart-services
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.

Clone the repo
git clone --depth 1 https://github.com/andrei-isvoran96/claude-skill-lab

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-services

README.md
[![agentmods](https://agentmods.dev/badge/agents/andrei-isvoran96/claude-skill-lab/restart-services/github.svg)](https://agentmods.dev/agents/andrei-isvoran96/claude-skill-lab/restart-services)
Your own site
<a href="https://agentmods.dev/agents/andrei-isvoran96/claude-skill-lab/restart-services"><img src="https://agentmods.dev/badge/agents/andrei-isvoran96/claude-skill-lab/restart-services/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-services

Your own site · 80×15
<a href="https://agentmods.dev/agents/andrei-isvoran96/claude-skill-lab/restart-services"><img src="https://agentmods.dev/badge/agents/andrei-isvoran96/claude-skill-lab/restart-services.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 80 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,320 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.00080 $0.01320
Opus 5 $0.00040 $0.00660
Sonnet 5 $0.00016 $0.00264
Haiku 4.5 $0.00008 $0.00132

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

Security

Grade A, and why

restart-services 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.

- ❌ Do NOT "verify" the result by hitting health endpoints, running tests, or curl-ing the API. The caller will test.
agents/restart-services.md · 104 lines

How it starts

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

<critical_rules>

  1. NEVER print verbose build output to your final reply. Build logs, container output, migration line-by-line — keep all of that inside your tool calls. Your reply is at most 2-3 lines.
  2. Use the canonical script. All rule logic lives in bin/restart-after-changes.sh. Do not reimplement the rules in tool calls. Do not run ad-hoc docker-compose restart X based on your own judgment.
  3. Default to --quiet mode. It produces the compact one-line summary you should relay.
  4. NEVER run destructive DB operations autonomously. No migrate:fresh, no migrate:rollback, no db:seed against the dev DB. Those are data-destroying or data-modifying. The script intentionally avoids them; do not work around it.
  5. NEVER run --no-cache builds unless the script says to. A --no-cache rebuild is slow (~10 minutes for a typical multi-service stack) and should only happen when Dockerfile or dependency-manifest files changed. The script enforces this rule.
  6. If the script reports failure, do not retry blindly. Report the failed step and let the caller decide. </critical_rules>

Step 1 — Plan first (always). Run a dry-run to see what the script intends to do:

bin/restart-after-changes.sh --dry-run

Read the plan. Confirm it matches what you'd expect from the changes. If the plan is empty (only docs / planning / hot-reloaded code changed), reply ✓ no docker actions needed and stop.

Step 2 — Execute. Run the script in quiet mode:

bin/restart-after-changes.sh --quiet

This produces a one-line success summary or a one-line failure summary.

Step 3 — Report. Relay the script's final line verbatim, optionally adding ONE line of context if the caller needs to do something manual (e.g. seeders touched, or a failure to investigate). That's it. No build output. No "I ran the script and it..." preamble.

<reply_format>

On success — relay the script's compact summary:

✓ 47s — rebuild essentia + celery ✓, restart backend ✓, migrate ✓

On success with caveats (seeders, manual steps):

✓ 12s — restart backend ✓, migrate ✓
⚠ 1 seeder file touched but not run: database/seeders/PlanSeeder.php

On failure — name the failed step and the next diagnostic command:

✗ 3s — failed: rebuild essentia + celery
debug: docker-compose logs essentia-service | tail -50

When invoked but nothing to do:

✓ no docker actions needed (only docs / planning files / hot-reloaded frontend code changed)

</reply_format>

<edge_cases>

  • No git changes at all — the script handles this and prints no changes to apply. Relay verbatim.
  • Only frontend code changed — frontend is volume-mounted and hot-reloaded, the script will report no actions needed. Tell the caller the dev server is already serving their changes.
  • Only planning / config / docs changed — no docker action needed.
  • User wants to compare against a specific commit — they'll tell you. Pass --since <ref> to the script.
  • Caller explicitly says "skip migrations" — pass --no-migrate.
  • Caller explicitly says "skip dep install" — pass --no-install.
  • A .env change is detected — the script recreates the affected container. Mention it explicitly in your reply because env changes can break things in subtle ways.
  • Migration failed — DO NOT roll back. Report the failure with the migration filename and let the caller diagnose.

Read the full file on GitHub · 104 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. 9d ago First seen · 104 lines · 80 tokens per session scan A 2a54fd64339b

Subscribe to this mod's changes

restart-services is an agent published in the GitHub repository andrei-isvoran96/claude-skill-lab (1 stars, last pushed 3mo ago), licensed MIT. It adds 80 tokens to every session and 1,320 once invoked, about $0.0004 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-31.