Communitygithub.com

SamuelChien/mega-skills-collection

マルチエージェントシステムにおける連携プロファイリング、ワークロード分散、コストを意識したオーケストレーションを最適化します。エージェントのパフォーマンス、スループット、信頼性の向上に使用します。

mega-skills-collection とは?

このスキルは、マルチエージェントシステムの総合的なパフォーマンス最適化フレームワークです。AIエージェント間の連携、ワークロード分散、コスト効率、レイテンシ低減など、システム全体のボトルネックを特定し改善します。特徴的な機能として、データベース、アプリケーション、フロントエンドの各パフォーマンスエージェントによる多層プロファイリング、コンテキストウィンドウの圧縮最適化、LLMコスト管理のためのモデル選択やキャッシュ戦略、並列実行によるスループット向上などをサポートしています。このスキルは、マルチエージェントシステムのパフォーマンスエンジニアリングに特化しており、単一エージェントの調整や評価データがない状況では使用すべきではありません。コード例や実装パターンを通じて、実践的な最適化手法を提供します。

対応✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/SamuelChien/mega-skills-collection/tree/HEAD/agent-orchestration-multi-agent-optimize

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

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

ドキュメント

マルチエージェント最適化ツールキット

このスキルを使用する場合

  • マルチエージェントの連携、スループット、レイテンシを改善する場合
  • エージェントのワークフローをプロファイリングし、ボトルネックを特定する場合
  • 複雑なワークフロー向けのオーケストレーション戦略を設計する場合
  • コスト、コンテキスト使用量、ツール効率を最適化する場合

このスキルを使用しない場合

  • 単一のエージェントプロンプトを調整するだけでよい場合
  • 測定可能なメトリクスや評価データがない場合
  • タスクがマルチエージェントオーケストレーションに関係しない場合

手順

  1. ベースラインメトリクスと目標パフォーマンス目標を確立します。
  2. エージェントのワークロードをプロファイルし、連携のボトルネックを特定します。
  3. オーケストレーション変更とコスト制御を段階的に適用します。
  4. 再現可能なテストとロールバックで改善を検証します。

安全性

  • 回帰テストなしにオーケストレーション変更をデプロイしないでください。
  • システム全体の回帰を防ぐために、変更を段階的に展開してください。

役割: AI駆動型マルチエージェントパフォーマンスエンジニアリングスペシャリスト

コンテキスト

マルチエージェント最適化ツールは、インテリジェントで調整されたエージェントベースの最適化を通じて、システムパフォーマンスを総合的に改善するために設計された、高度なAI駆動型フレームワークです。最先端のAIオーケストレーション技術を活用し、複数のドメインにわたるパフォーマンスエンジニアリングに包括的なアプローチを提供します。

コア機能

  • インテリジェントなマルチエージェント調整
  • パフォーマンスプロファイリングとボトルネック特定
  • 適応型最適化戦略
  • クロスドメインパフォーマンス最適化
  • コストと効率の追跡

引数の処理

このツールは、柔軟な入力パラメータで最適化引数を処理します。

  • $TARGET: 最適化するプライマリシステム/アプリケーション
  • $PERFORMANCE_GOALS: 具体的なパフォーマンスメトリクスと目標
  • $OPTIMIZATION_SCOPE: 最適化の深さ(クイックウィン、包括的)
  • $BUDGET_CONSTRAINTS: コストとリソースの制約
  • $QUALITY_METRICS: パフォーマンス品質のしきい値

1. マルチエージェントパフォーマンスプロファイリング

プロファイリング戦略

  • システムレイヤー全体での分散パフォーマンス監視
  • リアルタイムメトリクス収集と分析
  • 継続的なパフォーマンスシグネチャ追跡

プロファイリングエージェント

  1. データベースパフォーマンスエージェント

    • クエリ実行時間分析
    • インデックス使用率追跡
    • リソース消費監視
  2. アプリケーションパフォーマンスエージェント

    • CPUおよびメモリプロファイリング
    • アルゴリズム複雑性評価
    • 並行性と非同期操作分析
  3. フロントエンドパフォーマンスエージェント

    • レンダリングパフォーマンスメトリクス
    • ネットワークリクエスト最適化
    • Core Web Vitals監視

プロファイリングコード例

def multi_agent_profiler(target_system):
    agents = [
        DatabasePerformanceAgent(target_system),
        ApplicationPerformanceAgent(target_system),
        FrontendPerformanceAgent(target_system)
    ]

    performance_profile = {}
    for agent in agents:
        performance_profile[agent.__class__.__name__] = agent.profile()

    return aggregate_performance_metrics(performance_profile)

2. コンテキストウィンドウ最適化

最適化手法

  • インテリジェントなコンテキスト圧縮
  • 意味的関連性フィルタリング
  • 動的なコンテキストウィンドウサイズ調整
  • トークン予算管理

コンテキスト圧縮アルゴリズム

def compress_context(context, max_tokens=4000):
    # 埋め込みベースのトランケーションによる意味的圧縮
    compressed_context = semantic_truncate(
        context,
        max_tokens=max_tokens,
        importance_threshold=0.7
    )
    return compressed_context

3. エージェント調整の効率性

調整の原則

  • 並列実行設計
  • 最小限のエージェント間通信オーバーヘッド
  • 動的なワークロード分散
  • フォールトトレラントなエージェント相互作用

オーケストレーションフレームワーク

class MultiAgentOrchestrator:
    def __init__(self, agents):
        self.agents = agents
        self.execution_queue = PriorityQueue()
        self.performance_tracker = PerformanceTracker()

    def optimize(self, target_system):
        # 調整された最適化による並列エージェント実行
        with concurrent.futures.ThreadPoolExecutor() as executor:
            futures = {
                executor.submit(agent.optimize, target_system): agent
                for agent in self.agents
            }

            for future in concurrent.futures.as_completed(futures):
                agent = futures[future]
                result = future.result()
                self.performance_tracker.log(agent, result)

4. 並列実行最適化

主要な戦略

  • 非同期エージェント処理
  • ワークロード分割
  • 動的リソース割り当て
  • 最小限のブロッキング操作

5. コスト最適化戦略

LLMコスト管理

  • トークン使用量追跡
  • 適応型モデル選択
  • キャッシングと結果の再利用
  • 効率的なプロンプトエンジニアリング

コスト追跡例

class CostOptimizer:
    def __init__(self):
        self.token_budget = 100000  # 月間予算
        self.token_usage = 0
        self.model_costs = {
            'gpt-5': 0.03,
            'claude-4-sonnet': 0.015,
            'claude-4-haiku': 0.0025
        }

    def select_optimal_model(self, complexity):
        # タスクの複雑さと予算に基づく動的モデル選択
        pass

6. レイテンシ低減手法

パフォーマンス高速化

  • 予測キャッシング
  • エージェントコンテキストのプリウォーム
  • インテリジェントな結果メモ化
  • ラウンドトリップ通信の削減

7. 品質と速度のトレードオフ

最適化スペクトラム

  • パフォーマンスしきい値
  • 許容可能な劣化マージン
  • 品質を考慮した最適化
  • インテリジェントな妥協選択

8. 監視と継続的改善

可観測性フレームワーク

  • リアルタイムパフォーマンスダッシュボード
  • 自動化された最適化フィードバックループ
  • 機械学習駆動型改善
  • 適応型最適化戦略

参考ワークフロー

ワークフロー1: Eコマースプラットフォーム最適化

  1. 初期パフォーマンスプロファイリング
  2. エージェントベースの最適化
  3. コストとパフォーマンスの追跡
  4. 継続的改善サイクル

ワークフロー2: エンタープライズAPIパフォーマンス向上

  1. 包括的なシステム分析
  2. 多層エージェント最適化
  3. 反復的なパフォーマンス調整
  4. コスト効率の高いスケーリング戦略

重要な考慮事項

  • 最適化の前後を常に測定する
  • 最適化中はシステムの安定性を維持する
  • パフォーマンス向上とリソース消費のバランスを取る
  • 段階的で元に戻せる変更を実装する

目標最適化: $ARGUMENTS

制限事項

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

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".

関連スキル