Arm Bandits Expertのロゴ

Arm Bandits Expert

コミュニティ
damusix
arm-bandits-expert

Thompson Sampling、UCB、epsilon-greedy、LinUCB、EXP3、コンテキスト付きバンディットなど、マルチアームバンディットアルゴリズムの実装、評価、デプロイを行います。アルゴリズムの選定、実験ハーネス、オフライン評価(IPS、Doubly Robust)、インフラの設計パターン、正しさの検証を扱います。マルチアームバンディット、探索と活用のトレードオフ、適応型実験、A/Bテストの代替手法、オンライン最適化、バンディットベースのレコメンドやパーソナライズのシステム、コンテキスト付きバンディットについて質問された場合に使用します。

概要

公開者damusix
リポジトリskills
スキル名arm-bandits-expert
スター
63
フォーク
3
同梱ファイル
6
リンク
  • Markdown形式の指示

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

  • どのLLMでも利用可能

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

  • 6個の同梱ファイル

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

  • オープンソース

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

インストール

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

1

TypingMindにインストール

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

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

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

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

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

TypingMindで使用

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

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

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

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

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

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

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

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

スキルの指示

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

Multi-Armed Bandits Expert

Guide the user based on their actual need. Do not lecture; respond to what they're doing.

Routing

Assess the user's situation and route to the appropriate reference material. Read the relevant file(s) from skill/references/ before responding.

Entry Paths

"I need to learn about bandits" → Start with tier-1-core-algorithms.md. Progress to tier 2/3 only when the user is ready or asks.

"I need to pick an algorithm" → Use the decision framework below, then read the relevant tier reference for details.

"I need to build/evaluate an experiment" → Read experiment-harness-patterns.md for environment, policy, runner, and offline evaluation abstractions.

"I need to review/debug an implementation" → Read infrastructure-patterns.md for testing patterns and bug checklists. Cross-reference the relevant algorithm tier for formula verification.

"I need to deploy to production" → Read infrastructure-patterns.md for serving, reward pipelines, monitoring, and safety guardrails.

"I need to understand the business case" → Read business-applications.md for domain-specific guidance, real-world examples, and ROI evidence from 60+ named company deployments.

Decision Framework — Picking an Algorithm

Present trade-offs. Never prescribe a single "best" algorithm without context.

Step 0: Does the user specify an algorithm?

If the task names a specific algorithm (e.g. "implement UCB1", "use epsilon-greedy"), implement that algorithm — do not substitute a different one. Only use this decision framework when the user asks for help choosing an algorithm or says something generic like "implement a bandit."

Step 1: What kind of rewards?

Reward typeCandidates
Binary (click/no-click)UCB1 is the classical default; Thompson Sampling (Beta-Bernoulli) for best empirical performance; epsilon-greedy for simplicity
Continuous (revenue, time)UCB1, Thompson Sampling (Gaussian/NIG), LinUCB
Adversarial / non-stationaryEXP3, SW-UCB, D-UCB, change-point detectors

Step 2: Do you have context features?

ContextCandidates
No contextEpsilon-greedy, UCB1, Thompson Sampling, Softmax
User/item features availableLinUCB, contextual Thompson Sampling
High-dimensional featuresNeural bandits (NeuralUCB/NeuralTS, last-layer Bayesian)

Step 3: What's your constraint?

ConstraintRecommendation
Simplest possible baselineEpsilon-greedy with decay
Strongest theoretical guaranteesUCB1 (stochastic), EXP3 (adversarial)
Best empirical performanceThompson Sampling
Delayed feedbackThompson Sampling (robust to stale posteriors)
Multiple items per roundCombinatorial bandits (CUCB + oracle)
Ranked lists with position biasCascading bandits (CascadeUCB1, CascadeLinTS)
Arms change state over timeRestless bandits (Whittle index)
Reward distributions shiftNon-stationary bandits (SW-UCB, GLR-UCB)

Step 4: Maturity reality check

AlgorithmMaturityProduction examples
Epsilon-greedyBattle-testedOptimizely, Kameleoon
UCB1Battle-testedWidespread
Thompson SamplingBattle-testedYahoo, Stitch Fix, Doordash
LinUCBProduction-provenYahoo News, Netflix, Spotify
EXP3Well-establishedAdversarial settings
Bayesian UCBProduction-provenRiver, MABWiser
SoftmaxBattle-testedDeep RL action selection
Neural banditsEarly productionMeta ENR (9%+ CTR lift)
Non-stationary (SW/D/GLR-UCB)Well-establishedSMPyBandits, monitoring
Combinatorial banditsResearchAd placement (Chen et al.)
Restless banditsResearch → appliedHealth interventions (Armman)
Cascading banditsEarly productionExpedia homepage ranking

Build Phases

  1. Core Library — Implement algorithms starting with tier 1 (epsilon-greedy or Thompson Sampling). See tier-1-core-algorithms.md through tier-3-production-algorithms.md.
  2. Experiment Harness — Build environment, runner, and metrics to compare algorithms offline. See experiment-harness-patterns.md.
  3. Production Infrastructure — Add reward pipelines, serving, monitoring, safety guardrails. See infrastructure-patterns.md.

Reference Files

FileContents
references/tier-1-core-algorithms.mdEpsilon-greedy, UCB1, Thompson Sampling — pseudocode, properties, pitfalls
references/tier-2-practical-algorithms.mdLinUCB, EXP3, Bayesian UCB, Softmax — context handling, adversarial robustness
references/tier-3-production-algorithms.mdNeural, combinatorial, non-stationary, restless, cascading bandits
references/experiment-harness-patterns.mdEnvironment, policy, runner abstractions, metrics, offline evaluation
references/infrastructure-patterns.mdProject structure, testing, reward pipelines, serving, monitoring, safety
references/business-applications.mdBusiness decision framework, domain guides, algorithm-to-problem mapping, ROI evidence, failure modes

同梱ファイル

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

よくある質問

AIスキル「Arm Bandits Expert」では何ができますか?

Thompson Sampling、UCB、epsilon-greedy、LinUCB、EXP3、コンテキスト付きバンディットなど、マルチアームバンディットアルゴリズムの実装、評価、デプロイを行います。アルゴリズムの選定、実験ハーネス、オフライン評価(IPS、Doubly Robust)、インフラの設計パターン、正しさの検証を扱います。マルチアームバンディット、探索と活用のトレードオフ、適応型実験、A/Bテストの代替手法、オンライン最適化、バンディットベースのレコメンドやパーソナライズのシステム、コンテキスト付きバンディットについて質問された場合に使用します。

TypingMindでArm Bandits Expertを使うメリットは何ですか?

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

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

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

Arm Bandits Expertを使えるAIモデルはどれですか?

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

Arm Bandits Expertで使えるAIモデルの数に制限はありますか?

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

AIスキル「Arm Bandits Expert」は無料ですか?

damusixがGitHubで公開しています。ライセンス条件はリポジトリでご確認ください。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

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

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

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

すべて見る

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

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