Boron Nmr Predictのロゴ

Boron Nmr Predict

組織
InternScience
boron-nmr-predict

Predict 11B (boron-11) NMR chemical shift for boron-containing molecules using a local CPU inference pipeline. Use when the user asks to predict boron NMR or 11B chemical shift and provides a molecule such as a SMILES string. The skill can download model weights from Hugging Face on first use, run local CPU inference, and generate a labeled molecule image so each predicted shift can be matched to a specific boron atom.

概要

公開者InternScience
リポジトリChemClaw
スキル名boron-nmr-predict
スター
53
フォーク
13
同梱ファイル
16
ライセンスMIT
リンク
  • Markdown形式の指示

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

  • どのLLMでも利用可能

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

  • 16個の同梱ファイル

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

  • オープンソース

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

インストール

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

1

TypingMindにインストール

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

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

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

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

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

TypingMindで使用

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

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

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

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

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

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

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

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

スキルの指示

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

Boron NMR Predict

Use the bundled scripts for deterministic local inference.

Workflow

  1. Create and activate a fresh conda environment for this skill.
  2. Install Python dependencies from requirements-core.txt and requirements-pyg.txt.
  3. Ensure model files exist locally by running scripts/ensure_model.py.
  4. Run scripts/predict_boron_nmr.py with a SMILES string and solvent.
  5. Return the predicted chemical shift for each boron atom in text form.
  6. Generate the labeled PNG image into the user's tmp directory so each ppm value can be matched to B(index) in the structure image.

Input contract

Prefer SMILES input.

Required:

  • Molecule SMILES containing at least one boron atom

Optional:

  • Solvent name. Supported solvents are:
    • CDCl3
    • C6D6
    • d6-DMSO
    • CD3COCD3
    • CD3CN
    • CD3OD
    • CD2Cl2
    • d8-THF
    • d8-Toluene
    • D2O

Commands

Create a fresh conda environment and install deps:

bash
bash scripts/setup_env.sh

The setup script is portable: it does not assume any machine-specific conda path. It first tries the current shell's conda, then common user-local installs such as ~/miniconda3, ~/anaconda3, and ~/conda.

Manual alternative:

bash
conda create -n boron-nmr-predict python=3.11 -y
conda activate boron-nmr-predict
python -m pip install -r requirements-core.txt
python -m pip install -r requirements-pyg.txt

Download model weights:

bash
python scripts/ensure_model.py

Run prediction:

bash
python scripts/predict_boron_nmr.py \
  --smiles "OB(O)c1ccccc1" \
  --solvent CDCl3 \
  --output-image /tmp/boron_nmr_result.png

Run an example:

bash
bash scripts/run_example.sh

Environment variables

  • BORON_NMR_MODEL_REPO: Hugging Face repo id holding the model files
  • BORON_NMR_MODEL_DIR: local cache directory for downloaded model files

Defaults:

  • model repo: SII-AI4Chem/boron-nmr-predict-model
  • model dir: ~/.cache/boron-nmr-predict/models
  • image output: user tmp directory such as /tmp/boron_nmr_<id>.png
  • device: CPU only

Output contract

Return:

  • a text summary for the user
  • canonical SMILES
  • solvent
  • number of boron atoms
  • per-boron predictions with:
    • atom_index
    • element
    • ppm
  • image path in the user's tmp directory when generated
  • image error message when text prediction succeeds but image rendering fails

When replying to the user:

  • explicitly tell the user where the image file was saved
  • include the concrete image_path in the reply
  • if the runtime/channel supports file sending, send the generated image file to the user as an attachment
  • if file sending is unavailable, still tell the user the exact saved path so they can retrieve it

Notes

  • Keep inference on CPU.
  • Use the bundled source files in src/ instead of the original web app.
  • The labeled image uses B(index) so users can map ppm values to specific boron atoms.
  • By default, model files are downloaded from SII-AI4Chem/boron-nmr-predict-model. Override only when a different repo is explicitly required.
  • Image rendering failure should not block the text prediction result; return the text result and include an image error when needed.
  • After successful image generation, do not only mention that an image exists; tell the user the saved location and send the image when channel capabilities allow it.

同梱ファイル

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

よくある質問

AIスキル「Boron Nmr Predict」では何ができますか?

Predict 11B (boron-11) NMR chemical shift for boron-containing molecules using a local CPU inference pipeline. Use when the user asks to predict boron NMR or 11B chemical shift and provides a molecule such as a SMILES string. The skill can download model weights from Hugging Face on first use, run local CPU inference, and generate a labeled molecule image so each predicted shift can be matched to a specific boron atom.

TypingMindでBoron Nmr Predictを使うメリットは何ですか?

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

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

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

Boron Nmr Predictを使えるAIモデルはどれですか?

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

Boron Nmr Predictで使えるAIモデルの数に制限はありますか?

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

AIスキル「Boron Nmr Predict」は無料ですか?

はい。InternScienceがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

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

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

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

すべて見る

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

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