Communitygithub.com

AegisOps-AI — 自律的ガバナンスオーケストレーター

自律的なDevSecOps & FinOpsガードレール。Gemini 3 Flashを活用してLinuxカーネルパッチ、Terraformコストドリフト、K8sコンプライアンスを監査します。

AegisOps-AI — 自律的ガバナンスオーケストレーター とは?

AegisOps-AIは、高度なAI推論をSDLCに直接統合した「Living Pipeline」です。セキュリティ監査、クラウドインフラコスト分析、Kubernetesコンプライアンスの自動化を実現します。主なモジュールとして、Linuxカーネルパッチのメモリ安全性(UAF、Stale State等)を深層推論するパッチレビューア、Terraform計画のコスト異常を検出するFinOps監査人、自然言語のセキュリティ要件からKubernetesのLeast Privilegeなセキュリティコンテキストを生成するポリシーハードナーを備えています。GitHub Actionsと統合してCI/CDパイプライン内で非準拠なマージをブロックするゲートとして機能し、人間による最終承認を維持しながら高精度な信号を提供します。

対応~Claude Code~Codex CLI~Cursor✓Gemini CLI
npx skills add https://github.com/SamuelChien/mega-skills-collection/tree/HEAD/aegisops-ai

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

/aegisops-ai — 自律的ガバナンスオーケストレーター

AegisOps-AIは、プロフェッショナルグレードの「Living Pipeline」であり、高度なAI推論をSDLCに直接統合します。これは、システムレベルのセキュリティ、クラウドインフラコスト、Kubernetesコンプライアンスのためのインテリジェントなゲートキーパーとして機能します。

目標

以下の方法で、重要度の高いセキュリティおよび財務監査を自動化すること:

  1. Linuxカーネルパッチにおける論理ベースの脆弱性(UAF、Stale State)を特定する。
  2. Terraform計画における大規模な「サイレントディザスター」コストドリフトを検出する。
  3. 自然言語のセキュリティ意図を堅牢なK8sマニフェストに変換する。

使用すべき場合

  • カーネルパッチレビュー: CベースのGit差分のメモリ安全性を監査する。
  • 適用前IaC監査: terraform plan の出力を分析し、請求額の急上昇を防ぐ。
  • クラスターの強化: デプロイメントのための「最小権限」securityContextを生成する。
  • CI/CD品質ゲート: GitHub Actionsを介して非準拠のマージをブロックする。

使用すべきでない場合

  • Webアプリロジック: 標準的なWeb脆弱性(XSS、SQLi)には使用せず、専用のSASTスキャナを使用すること。
  • 非Cメモリ分析: パッチアナライザはCロジックに最適化されています。PythonやJSなどの高級言語には使用しないでください。
  • 直接的なリソース変更: これは監査人であり、デプロイツールではありません。terraform apply や kubectl apply は実行しません。
  • 事後分析: 以前のAIセッションが失敗した理由を分析するには、代わりに /analyze-project を使用してください。

🤖 生成AI統合

AegisOps-AIは Google GenAI SDK を活用して、自律的なセキュリティおよび財務監査のための「推論経路」を実装しています:

  • ニューラルパッチ分析: Linuxカーネルパッチのセマンティックコードレビューを実行し、単純なパターンマッチングを超えて複雑なメモリ状態ロジックを理解します。
  • インテリジェントコスト合成: 生のTerraform計画差分を財務推論モデルを通して処理し、高リスクなリソースエスカレーションや「静かな」財政的ドリフトを検出します。
  • 自然言語ポリシーマッピング: 人間のセキュリティ意図を、構文的に正しく堅牢化されたKubernetes securityContext 設定に変換します。

🧭 コアモジュール

1. 🐧 カーネルパッチレビューア (patch_analyzer.py)

  • 問題: Linuxカーネルのメモリ安全性に関する手動レビューは時間がかかり、人為的ミスが発生しやすい。
  • 解決策: Gemini 3が生のGit差分に対して「深層推論」監査を実行し、重大なメモリ破壊脆弱性(UAF、Stale State)を数秒で検出します。
  • 主要出力: analysis_results.json

2. 💰 FinOps & クラウド監査人 (cost_auditor.py)

  • 問題: Infrastructure as Code(IaC)の変更は、偶発的な「サイレントディザスター」や大規模なクラウド請求額の急上昇につながる可能性がある。
  • 解決策: terraform plan の出力を分析し、t3.micro から高性能GPUインスタンスへの偶発的なアップグレードなどのコスト異常を検出します。
  • 主要出力: infrastructure_audit_report.json

3. ☸️ K8sポリシーハードナー (k8s_policy_generator.py)

  • 問題: Kubernetesで「最小権限」セキュリティコンテキストを実装することは複雑で、しばしば軽視される。
  • 解決策: 自然言語のセキュリティ要件を、本番環境対応の堅牢化されたYAMLマニフェスト(読み取り専用ルートFS、非root強制など)に変換します。
  • 主要出力: hardened_deployment.yaml

🛠️ セットアップと環境

1. リポジトリのクローン

git clone https://github.com/Champbreed/AegisOps-AI.git
cd AegisOps-AI

2. セットアップ

python3 -m venv venv
source venv/bin/activate
pip install google-genai python-dotenv

3. API設定

ルートディレクトリに .env ファイルを作成し、認証情報を安全に保存します:

echo "GEMINI_API_KEY='your_api_key_here'" > .env

🏁 運用ダッシュボード

すべてのエージェントを順に実行し、すべてのセキュリティレポートを生成するには:

python3 main.py

パターン: 過剰権限コンテナ

  • 指標: allowPrivilegeEscalation: true またはrootユーザーによる実行。
  • 調査: セキュリティ意図(例:「非rootのみ」)をK8sハードナーモジュールに渡します。

💡 ベストプラクティス

  • コンテキストが重要: Git差分の周囲に少なくとも5行のコンテキストを提供することで、より正確なニューラル推論が可能になります。
  • 継続的なゲーティング: インフラストラクチャの変更前(後ではなく)に毎回FinOps監査人を実行します。
  • 手動承認: AIの発見結果を高精度な信号として使用しますが、カーネルレベルのマージでは人間による確認を維持します。

🔒 セキュリティと安全性に関する注意事項

  • キー管理: 本番環境ではCI/CDのシークレットを GEMINI_API_KEY に使用します。
  • 最小権限: まずステージング環境で「ハード化された」マニフェストをテストし、機能的な後退がないことを確認します。

リンク

制限事項

  • このスキルは、タスクが上記の範囲に明確に一致する場合にのみ使用してください。
  • 出力を、環境固有の検証、テスト、または専門家によるレビューの代わりとして扱わないでください。
  • 必要な入力、権限、安全性の境界、または成功基準が欠落している場合は、停止して明確化を求めてください。

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

SamuelChien/mega-skills-collection

Security audit, hardening, threat modeling (STRIDE/PASTA), Red/Blue Team, OWASP checks, code review, incident response, and infrastructure security for any project.

SamuelChien/mega-skills-collection

Arquitecto de Soluciones Principal y Consultor Tecnológico de Andru.ia. Diagnostica y traza la hoja de ruta óptima para proyectos de IA en español.

SamuelChien/mega-skills-collection

Ingeniero de Sistemas de Andru.ia. Diseña, redacta y despliega nuevas habilidades (skills) dentro del repositorio siguiendo el Estándar de Diamante.

SamuelChien/mega-skills-collection

Estratega de Inteligencia de Dominio de Andru.ia. Analiza el nicho específico de un proyecto para inyectar conocimientos, regulaciones y estándares únicos del sector. Actívalo tras definir el nicho.

SamuelChien/mega-skills-collection

2D game development principles. Sprites, tilemaps, physics, camera.

SamuelChien/mega-skills-collection

3D game development principles. Rendering, shaders, physics, cameras.

SamuelChien/mega-skills-collection

Expert in building 3D experiences for the web - Three.js, React Three Fiber, Spline, WebGL, and interactive 3D scenes. Covers product configurators, 3D portfolios, immersive websites, and bringing depth to web experiences.

SamuelChien/mega-skills-collection

Accessibility audit skill for scanning, fixing, and verifying WCAG 2.2 Level A and AA compliance across React, Next.js, Vue, Angular, Svelte, and plain HTML codebases. Use when auditing accessibility, fixing a11y violations, checking color contrast, generating compliance reports, or integrating accessibility checks into CI/CD pipelines.

SamuelChien/mega-skills-collection

Ab Test Analyzer - Auto-activating skill for Data Analytics. Triggers on: ab test analyzer, ab test analyzer Part of the Data Analytics skill category.

SamuelChien/mega-skills-collection

A B Test Config Creator - Auto-activating skill for ML Deployment. Triggers on: a b test config creator, a b test config creator Part of the ML Deployment skill category.

SamuelChien/mega-skills-collection

When the user wants to plan, design, or implement an A/B test or experiment. Also use when the user mentions "A/B test," "split test," "experiment," "test this change," "variant copy," "multivariate test," "hypothesis," "conversion experiment," "statistical significance," or "test this." For tracking implementation, see analytics-tracking.

SamuelChien/mega-skills-collection

Acceptance Criteria Creator - Auto-activating skill for Enterprise Workflows. Triggers on: acceptance criteria creator, acceptance criteria creator Part of the Enterprise Workflows skill category.

SamuelChien/mega-skills-collection

Use when a coding task should be driven end-to-end from issue intake through implementation, review, deployment, and acceptance verification with minimal human re-intervention.

SamuelChien/mega-skills-collection

Accessibility Audit Runner - Auto-activating skill for Frontend Development. Triggers on: accessibility audit runner, accessibility audit runner Part of the Frontend Development skill category.

SamuelChien/mega-skills-collection

You are an accessibility expert specializing in WCAG compliance, inclusive design, and assistive technology compatibility. Conduct audits, identify barriers, and provide remediation guidance.

SamuelChien/mega-skills-collection

Web accessibility patterns for WCAG 2.2 compliance including ARIA, keyboard navigation, screen readers, and testing

SamuelChien/mega-skills-collection

Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed, or change policy for the Discord channel.

SamuelChien/mega-skills-collection

Create unified specification packages across Business, Development, and Design teams. Staged elaboration (L0 Vision → L1 Requirements → L2 Team Detail → L3 Acceptance Criteria) to build shared understanding. Does not write code.

SamuelChien/mega-skills-collection

Research a company or person and get actionable sales intel. Works standalone with web search, supercharged when you connect enrichment tools or your CRM. Trigger with "research [company]", "look up [person]", "intel on [prospect]", "who is [name] at [company]", or "tell me about [company]".

SamuelChien/mega-skills-collection

Validate messaging consistency across website, GitHub repos, and local documentation generating read-only discrepancy reports. Use when checking content alignment or finding mixed messaging. Trigger with phrases like "check consistency", "validate documentation", or "audit messaging".

関連スキル