Hestiacp Devopsのロゴ

Hestiacp Devops

コミュニティ
Fandry96
hestiacp-devops

Autonomous HestiaCP server management with AI agents. Two-brain Orchestrator+Sentinel architecture for VPS monitoring, troubleshooting, security hardening, PHP-FPM tuning, Exim mail forensics, and post-compromise detection. Use when: HestiaCP, VPS, server monitoring, DevOps agent, Linux admin, Nginx/Apache, PHP-FPM, Exim, Fail2Ban, ClamAV, SSL, backup.

概要

公開者Fandry96
リポジトリk3-agentic-skills
スキル名hestiacp-devops
スター
27
フォーク
5
同梱ファイル
18
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 18個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    Fandry96がGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキルHestiacp DevopsをTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/Fandry96/k3-agentic-skills/tree/master/skills/hestiacp-devops
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Fandry96/k3-agentic-skills.git /tmp/k3-agentic-skills
mkdir -p .claude/skills
cp -r /tmp/k3-agentic-skills/skills/hestiacp-devops .claude/skills/hestiacp-devops
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでHestiacp Devopsを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあると、モデルが自動的にHestiacp Devopsを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Hestiacp Devopsは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、未使用のスキルにはコストがかかりません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

HestiaCP DevOps AI Skill

Source: webxtekstudio/hestiacp-useful-tools (GitHub, MIT License) Architecture: Two-brain Orchestrator + Sentinel pattern Platform: HestiaCP on Debian 12 (Bookworm) Blueprint: See hestiacp_two_brain_blueprint.md in session artifacts

When to Use

  • Server health monitoring and automated reporting
  • HestiaCP CLI operations (v-* commands)
  • PHP-FPM pool tuning and troubleshooting (502/504 errors)
  • Exim4 mail queue forensics and spam mitigation
  • Fail2Ban management and attack response
  • SSL certificate management (Let's Encrypt)
  • Post-compromise detection (rogue ports, temp executables, webshells)
  • Backup verification and disaster recovery
  • Nginx/Apache reverse proxy debugging
  • CMS permission hardening (WordPress, Laravel, Drupal, Joomla, Magento)

Architecture: Two-Brain Model

Brain 1: Sentinel (Passive Monitor)

  • File: prompts/System-Monitor-Prompt.md
  • Input: CRON-injected telemetry (RAM, CPU, Disk, Services, Logs)
  • Output: Structured health report (HEALTHY ✅ / WARNING ⚠️ / CRITICAL 🔴)
  • Tool: run_ssh_command (Round 3 deep dives only)
  • Key Innovation: Post-compromise detection, attack-is-root-cause principle

Brain 2: Orchestrator (Active DevOps)

  • File: prompts/DevOps-Agent-Prompt.md
  • Input: User request or Sentinel alert trigger
  • Output: Diagnosis + remediation + verification report
  • Tools: run_ssh_command + ask_knowledge_expert (RAG)
  • Constraint: Max 10 ReAct steps

Decision Heuristics (Mandatory)

1. LOOK BEFORE LEAP     — cp config.conf config.conf.bak
2. LEAST DESTRUCTIVE    — nginx -t BEFORE systemctl restart
3. SILENT EXECUTION     — Act safely, report async (no permission prompts in automation)
4. FALSIFIABILITY TEST  — After "fixing", run the command that PROVES it's fixed

Noise Filter (False Positive Suppression)

Ignore these — they are NORMAL in HestiaCP:

  • cloud-init, cloud-config, cloud-final service failures
  • Apache on port 8080 (backend behind Nginx — this IS the architecture)
  • SSH brute-force in auth logs (Fail2Ban handles it)
  • High memory if mostly buffers/cache
  • Zombie count ≤ 5
  • Load spikes during v-backup-users
  • Transient PHP-FPM CPU spikes during backup windows

Severity Classification

LevelTrigger
✅ HEALTHYZero thresholds breached, or only marginal
⚠️ WARNINGClear threshold breach with operational concern
🔴 CRITICALService down, disk >90%, backup FAILED, active attack, OOM kills, compromise indicators

Attack Principle: When PHP-FPM CPU is high AND attack vectors are present, the ROOT CAUSE is the attack — not PHP-FPM. Report as attack, not "busy workload."

Critical Thresholds

ResourceWarningCritical
Disk (/ or /home)>80%>90%
Load (1min)> nproc> nproc × 2
RAM (excl. cache)>85%—
Swap>1GB>2GB (OOM risk)
Mail Queue (Exim)>10 messages>50 messages
Backup Age>8 daysSTATUS=FAILED
SSL Expiry<14 days<7 days

Post-Compromise Detection (6 Vectors)

VectorCheckCritical
Rogue Portsss -tlnp vs expected4444, 5555, 6666, 8888 → 🔴
Temp Executables/tmp, /var/tmp, /dev/shmANY executable → 🔴
User AuditUID ≥ 1000 with /bin/bashUnknown user → 🔴
Recent PHP ModsFiles modified <6hrsshell.php, c99.php → 🔴
Outbound C2ss -tnp state establishedIRC 6667, crypto 3333 → 🔴
Suspicious Croncurl, wget, base64, /tmp/🔴 possible backdoor

Service Name Gotchas

ServiceCorrectWRONG
Mailexim4exim
Databasemariadbmysql
PHPphp8.2-fpmphp-fpm
DB CLImariadbmysql

PHP-FPM Tuning Formula

Max Total Workers = (Total RAM - 2GB) / 60MB

Low Traffic:    2-5 workers
Medium Traffic: 10-20 workers
High Traffic:   30-50 workers

Exim Log Decoder

<=  Email arrived at server
=>  Normal delivery (local or external)
->  Forwarded or aliased delivery
**  Delivery permanently FAILED (bounced)
==  Delivery temporarily DELAYED (queued)

CRITICAL: mainlog does NOT store email subjects. To get subjects, grep the physical Maildir:

/home/<user>/mail/<domain>/<account>/new/  (unread)
/home/<user>/mail/<domain>/<account>/cur/  (read)

False Path Map (Never Use These)

Generic PathHestiaCP Reality
/etc/letsencrypt/live/home/[USER]/conf/web/[DOMAIN]/ssl/
/etc/nginx/sites-enabled/etc/nginx/conf.d/domains/
/var/www/html/home/[USER]/web/[DOMAIN]/public_html/

Knowledge Base (16 files in knowledge/)

#FileSizeDomain
01hestia-system-paths.md11.5KBComplete path map
02hestia-troubleshooting-logs.md5.7KBDiagnostic commands
03hestia-cron-guide.md2.7KBCRON management
04hestia-php-tuning.md4.2KBPHP-FPM optimization
05hestia-database-guide.md2.6KBMariaDB config
06hestia-fail2ban-guide.md2.0KBJail management
07hestia-ssl-guide.md2.2KBSSL lifecycle
08hestia-clamav-guide.md2.1KBAntivirus config
09hestia-exim-troubleshooting.md5.0KBMail queue forensics
10hestia-nginx-templates.md1.8KBProxy templates
11hestia-backups.md3.1KBBackup/restore
12hestia-cli-reference.md23.2KB400+ v-commands
13hestia-common-issues.md3.1KBDecision trees
14hestia-dovecot-guide.md4.4KBIMAP/POP3 debug
15exim-forensics.md2.8KBMaildir forensics
16hestia-custom-tools-extended.md6.3KBv-fix-web-permissions, v-security-audit

Integration

  • Skill Router: Category 4 (Deploy & Ops)
  • Related Skills: @gcp-cloud-run, @docker-expert, @security-auditor, @systematic-debugging
  • MRL Index: Rebuild mrl_index.pkl to include these 19 files for semantic search

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Hestiacp Devops」では何ができますか?

Autonomous HestiaCP server management with AI agents. Two-brain Orchestrator+Sentinel architecture for VPS monitoring, troubleshooting, security hardening, PHP-FPM tuning, Exim mail forensics, and post-compromise detection. Use when: HestiaCP, VPS, server monitoring, DevOps agent, Linux admin, Nginx/Apache, PHP-FPM, Exim, Fail2Ban, ClamAV, SSL, backup.

TypingMindでHestiacp Devopsを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Hestiacp Devopsはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにHestiacp Devopsをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/Fandry96/k3-agentic-skills/tree/master/skills/hestiacp-devopsを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Hestiacp Devopsを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストが合致したときにこのスキルを読み込めます。

Hestiacp Devopsは何個のAIモデルで使えますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもHestiacp Devopsを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Hestiacp Devops」は無料ですか?

Fandry96がGitHubで公開しています。ライセンス条件はリポジトリでご確認ください。支払いが必要なのは、利用したトークンに対する、ご自身が契約するAIプロバイダーへの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇