Toolverse
All skills

netalertx-plugin-run-development

by netalertx

Create and run NetAlertX plugins. Use this when asked to create plugin, run plugin, test plugin, plugin development, or execute plugin script.

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Author
netalertx
Category
Testing
Views
3

About this skill

Create and run NetAlertX plugins. Use this when asked to create plugin, run plugin, test plugin, plugin development, or execute plugin script.

How to use

  1. Zażądaj od agenta stworzenia lub uruchomienia wtyczki NetAlertX, podając nazwę kodową (code_name) wtyczki, którą chcesz opracować.
  2. Agent przeczyta plik konfiguracyjny config.json i skrypt script.py z folderu front/plugins/[code_name]/, aby zrozumieć strukturę i ustawienia wtyczki.
  3. Agent sformułuje i wykona polecenie: python3 front/plugins/[code_name]/script.py, upewniając się, że ścieżki sys.path zawierają /app/front/plugins i /app/server.
  4. Po uruchomieniu wtyczka zapisze wynik w pliku /tmp/log/plugins/last_result.[PREFIX].log — agent natychmiast pobierze ten plik, zanim backend go usunie.
  5. Jeśli chcesz zmodyfikować zachowanie wtyczki, edytuj ustawienia w config.json (np. u003cPREFu003e_RUN dla fazy wykonania, u003cPREFu003e_RUN_TIMEOUT dla limitu czasu) i ponownie uruchom skrypt.
  6. Sprawdź wynik w logu — agent wyświetli dane zwrócone przez wtyczkę lub błędy, jeśli coś poszło nie tak.

Related skills