OpenELIS-Global-2: Command for Claude Code

.specify/oe/commands/restart-dev-env.md

restart-dev-env is a command for Claude Code from DIGI-UW/OpenELIS-Global-2. It costs 0 tokens per session (2,053 once invoked), scanned A, original, MPL-2.0.

A command that rebuilds and restarts a local development environment, including its web application and optionally its database.

In plain words
What is it for?
Rebuilding a WAR file, recreating web-app containers, resetting database volumes, loading end-to-end test data, and setting up Let's Encrypt for non-local domains.
Why use it?
It automates the repeated setup steps needed to get a working test environment after code changes. Flags let you skip slower steps or start with a clean database.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: mentions AGENTS.md.

This is DIGI-UW/OpenELIS-Global-2's own configuration. It tells Claude Code how to work on OpenELIS-Global-2 itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything OpenELIS-Global-2 configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is ./scripts/generate-letsencrypt-certs.sh.

Reuse

Borrowing it

Nothing to install: this file belongs to DIGI-UW/OpenELIS-Global-2. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/DIGI-UW/OpenELIS-Global-2/develop/.specify/oe/commands/restart-dev-env.md
Clone the repo
git clone --depth 1 https://github.com/DIGI-UW/OpenELIS-Global-2

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-dev-env

README.md
[![agentmods](https://agentmods.dev/badge/commands/digi-uw/openelis-global-2/restart-dev-env.svg)](https://agentmods.dev/commands/digi-uw/openelis-global-2/restart-dev-env)
Your own site
<a href="https://agentmods.dev/commands/digi-uw/openelis-global-2/restart-dev-env"><img src="https://agentmods.dev/badge/commands/digi-uw/openelis-global-2/restart-dev-env.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,053 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.00000 $0.02053
Opus 5 $0.00000 $0.01026
Sonnet 5 $0.00000 $0.00411
Haiku 4.5 $0.00000 $0.00205

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

Security

Grade A, and why

restart-dev-env 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 8d 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 -sk https://localhost/api/OpenELIS-Global/LoginPage
.specify/oe/commands/restart-dev-env.md · 266 lines

How it starts

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

Restart Dev Environment

When the user invokes /restart-dev-env (optionally with arguments), perform a development environment restart workflow with:

  • A WAR file rebuild (unless skipped)
  • Container restart with force-recreate for the webapp
  • Optional database reset (drop volumes with --full-reset)
  • E2E test fixture loading (by default)
  • Let's Encrypt setup (only for non-localhost domains)

This command is action-oriented: it builds and restarts by default. Use flags to skip steps when iterating quickly. The command reports progress at each checkpoint so you can monitor the restart process.

User Input

$ARGUMENTS

Interpret arguments best-effort. Support these patterns:

  • /restart-dev-env → Full restart (build WAR, restart containers, load fixtures)
  • /restart-dev-env --full-reset → Drop database volumes before restart (clean slate)
  • /restart-dev-env --skip-build → Skip WAR rebuild (use existing target/OpenELIS-Global.war)
  • /restart-dev-env --skip-fixtures → Skip loading E2E test fixtures
  • Combine flags as needed: /restart-dev-env --full-reset --skip-build

If any inputs are unclear, ask a single concise question and continue with safe defaults.

Safety Rules (non-negotiable)

  • Warn if there are uncommitted changes (but proceed unless user stops).
  • Never drop database volumes unless --full-reset is explicitly passed.
  • Always wait for webapp readiness before loading fixtures.
  • Report container status after restart (even if some containers fail).
  • If Let's Encrypt generation fails, warn but continue (use self-signed certs).

Workflow

0) Preflight (gather facts, no changes yet)

Run these and summarize the results:

  • git rev-parse --show-toplevel (verify project root)
  • Load .env if present (so dev servers with a domain use it):
    set -a; [ -f .env ] && . ./.env; set +a
    
    Then LETSENCRYPT_DOMAIN and LETSENCRYPT_EMAIL from .env are available for the rest of the workflow. If .env is missing, both vars are unset; DOMAIN then uses the default below (same as scripts/reset-dev-env.sh).
  • git status --porcelain (warn if uncommitted changes)
  • Check LETSENCRYPT_DOMAIN env var (default: analyzers.openelis-global.org when unset, so hosted dev envs get the right domain even without .env)
  • Check LETSENCRYPT_EMAIL env var (required for Let's Encrypt cert generation)

Read the full file on GitHub · 266 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. 8d ago First seen · 266 lines · 0 tokens per session scan A cd007ef4c17a

Subscribe to this mod's changes

restart-dev-env is a command published in the GitHub repository DIGI-UW/OpenELIS-Global-2 (251 stars, last pushed today), licensed MPL-2.0. It costs nothing until one of its globs matches a file; then it loads 2,053 tokens. 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.