Boron Nmr Predict logo

Boron Nmr Predict

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

Overview

PublisherInternScience
RepositoryChemClaw
Skill nameboron-nmr-predict
Stars
53
Forks
13
Bundled files
16
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 16 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by InternScience on GitHub. Read the source before you install it.

Installation

Install the Boron Nmr Predict AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/InternScience/ChemClaw/tree/main/skills/boron-nmr-predict
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

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
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Boron Nmr Predict in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Boron Nmr Predict on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Boron Nmr Predict is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Boron Nmr Predict AI skill do?

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.

Why use Boron Nmr Predict on TypingMind?

Because you install it once and use it with any model. Boron Nmr Predict is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Boron Nmr Predict in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/InternScience/ChemClaw/tree/main/skills/boron-nmr-predict. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Boron Nmr Predict?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Boron Nmr Predict?

As many as you like. As long as a model supports skills, you can use Boron Nmr Predict with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Boron Nmr Predict AI skill free?

Yes. It is published on GitHub by InternScience under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇