Agent Skillsnetalertx/NetAlertX › reset-netalertx-database

reset-netalertx-database

GitHub

用于重置 NetAlertX 数据库和配置文件,通过终止进程、删除数据并重新初始化来恢复初始状态。

.github/skills/database-reset/SKILL.md netalertx/NetAlertX

Trigger Scenarios

reset database wipe db fresh database clean slate start fresh

Install

npx skills add netalertx/NetAlertX --skill reset-netalertx-database -g -y
More Options

Non-standard path

npx skills add https://github.com/netalertx/NetAlertX/tree/main/.github/skills/database-reset -g -y

Use without installing

npx skills use netalertx/NetAlertX@reset-netalertx-database

指定 Agent (Claude Code)

npx skills add netalertx/NetAlertX --skill reset-netalertx-database -a claude-code -g -y

安装 repo 全部 skill

npx skills add netalertx/NetAlertX --all -g -y

预览 repo 内 skill

npx skills add netalertx/NetAlertX --list

SKILL.md

Frontmatter
{
    "name": "reset-netalertx-database",
    "description": "Wipe and regenerate the NetAlertX database and config. Use this when asked to reset database, wipe db, fresh database, clean slate, or start fresh."
}

Database Reset

Completely wipes devcontainer database and config, then regenerates from scratch.

Command

killall 'python3' || true
sleep 1
rm -rf /data/db/* /data/config/*
bash /entrypoint.d/15-first-run-config.sh
bash /entrypoint.d/20-first-run-db.sh

What This Does

  1. Kills backend to release database locks
  2. Deletes all files in /data/db/ and /data/config/
  3. Runs first-run config provisioning
  4. Runs first-run database initialization

After Reset

Run the startup script to restart services:

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

Database Location

  • Runtime: /data/db/app.db (SQLite)
  • Config: /data/config/app.conf

Version History

  • 8aec57b Current 2026-07-24 22:14

Same Skill Collection

.gemini/skills/devcontainer-management/SKILL.md
.gemini/skills/mcp-activation/SKILL.md
.gemini/skills/project-navigation/SKILL.md
.gemini/skills/settings/SKILL.md
.gemini/skills/skills-index/SKILL.md
.gemini/skills/testing-workflow/SKILL.md
.github/skills/api-development/SKILL.md
.github/skills/authentication/SKILL.md
.github/skills/code-standards/SKILL.md
.github/skills/database-patterns/SKILL.md
.github/skills/devcontainer-configs/SKILL.md
.github/skills/devcontainer-services/SKILL.md
.github/skills/devcontainer-setup/SKILL.md
.github/skills/docker-build/SKILL.md
.github/skills/docker-prune/SKILL.md
.github/skills/mcp-activation/SKILL.md
.github/skills/plugin-run-development/SKILL.md
.github/skills/project-navigation/SKILL.md
.github/skills/sample-data/SKILL.md
.github/skills/settings-management/SKILL.md
.github/skills/skills-overview/SKILL.md
.github/skills/testing-workflow/SKILL.md

Metadata

Files
0
Version
548d698
Hash
ddfee69e
Indexed
2026-07-24 22:14

Главная - Вики-сайт
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-20 18:13
浙ICP备14020137号-1 $Гость$