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.zipInstalls 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.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
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
- Kills all services (php-fpm, nginx, crond, python3)
- Mounts tmpfs ramdisks for
/tmp/log,/tmp/api,/tmp/run,/tmp/nginx - Creates critical subdirectories
- Links
/entrypoint.dand/appsymlinks - Creates
/data,/data/config,/data/dbdirectories - Creates all log files
- Runs
/entrypoint.shto start services - 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
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.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| netalertx-idempotent-setup (this skill) | 1 | 6mo | Review | Beginner |
| bazel-build-optimization | 14 | 2mo | No flags | Advanced |
| linux-production-shell-scripts | 7 | 6mo | Review | Intermediate |
| machine-learning-ops-ml-pipeline | 4 | 4mo | No flags | Advanced |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by netalertx
View all by netalertx →You might also like
bazel-build-optimization
wshobson
Optimize Bazel builds for large-scale monorepos. Use when configuring Bazel, implementing remote execution, or optimizing build performance for enterprise codebases.
linux-production-shell-scripts
davila7
This skill should be used when the user asks to "create bash scripts", "automate Linux tasks", "monitor system resources", "backup files", "manage users", or "write production shell scripts". It provides ready-to-use shell script templates for system administration.
machine-learning-ops-ml-pipeline
sickn33
Design and implement a complete ML pipeline for: $ARGUMENTS
windows-builder
hashicorp
Build Windows images with Packer using WinRM communicator and PowerShell provisioners. Use when creating Windows AMIs, Azure images, or VMware templates.
cicd-automation-workflow-automate
sickn33
You are a workflow automation expert specializing in creating efficient CI/CD pipelines, GitHub Actions workflows, and automated development processes. Design automation that reduces manual work, improves consistency, and accelerates delivery while maintaining quality and security.
create-worktree-skill
disler
Use when the user explicitly asks for a SKILL to create a worktree. If the user does not mention "skill" or explicitly request skill invocation, do NOT trigger this. Only use when user says things like "use a skill to create a worktree" or "invoke the worktree skill". Creates isolated git worktrees with parallel-running configuration.