Agent Skills
› netalertx/NetAlertX
› netalertx-idempotent-setup
netalertx-idempotent-setup
GitHub重置 devcontainer 环境,强制清除并重建运行时状态、目录及服务。适用于环境损坏、修改配置脚本后或需恢复初始状态的场景。
Trigger Scenarios
修复 devcontainer 权限问题
重置运行时状态
环境处于损坏状态
重新运行启动流程
Install
npx skills add netalertx/NetAlertX --skill netalertx-idempotent-setup -g -y
SKILL.md
Frontmatter
{
"name": "netalertx-idempotent-setup",
"description": "Reprovision and reset the devcontainer environment. Use this when asked to re-run startup, reprovision, setup devcontainer, fix permissions, or reset runtime state."
}
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.
Version History
- 8aec57b Current 2026-07-24 22:14


