NE

netalertx-idempotent-setup

Performs a clean, idempotent reset and reprovision of the local development container environment.

Install

mkdir -p .claude/skills/netalertx-idempotent-setup && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/3446" && unzip -o skill.zip -d .claude/skills/netalertx-idempotent-setup && rm skill.zip

Installs to .claude/skills/netalertx-idempotent-setup

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Reprovision and reset the devcontainer environment. Use this when asked to re-run startup, reprovision, setup devcontainer, fix permissions, or reset runtime state.
164 chars✓ has a “when” trigger
Beginner

Key capabilities

  • Kill active system services
  • Recreate critical directory structures
  • Reset symbolic links and configuration files
  • Force service restart via entrypoint scripts

How it works

Runs an idempotent script that destroys existing runtime state and forces a fresh initialization of all service files and symlinks.

Inputs & outputs

You give it
Reset command request
You get back
Cleaned environment logs and restarted services

When to use netalertx-idempotent-setup

  • Fix broken devcontainer state
  • Reset runtime environment after rebuild
  • Re-run setup scripts after configuration changes

About this skill

Devcontainer Setup

The setup script forcefully resets all runtime state. It is idempotent—every run wipes and recreates all relevant folders, symlinks, and files.

Command

/workspaces/NetAlertX/.devcontainer/scripts/setup.sh

What It Does

  1. Kills all services (php-fpm, nginx, crond, python3)
  2. Mounts tmpfs ramdisks for /tmp/log, /tmp/api, /tmp/run, /tmp/nginx
  3. Creates critical subdirectories
  4. Links /entrypoint.d and /app symlinks
  5. Creates /data, /data/config, /data/db directories
  6. Creates all log files
  7. Runs /entrypoint.sh to start services
  8. Writes version to .VERSION

When to Use

  • After modifying setup scripts
  • After container rebuild
  • When environment is in broken state
  • After database reset

Philosophy

No conditional logic. Everything is recreated unconditionally. If something doesn't work, run setup again.

When not to use it

  • Production environments where uptime is critical
  • Situations where current runtime state must be preserved

Prerequisites

Devcontainer environment

Limitations

  • Wipes all current runtime data/cache
  • Destructive to existing service state

How it compares

Performs an unconditional total reset instead of trying to patch a broken environment.

Compared to similar skills

netalertx-idempotent-setup side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
netalertx-idempotent-setup (this skill)16moReviewBeginner
bazel-build-optimization142moNo flagsAdvanced
linux-production-shell-scripts76moReviewIntermediate
machine-learning-ops-ml-pipeline44moNo flagsAdvanced

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry