Agent skill

Reaction Condition Recommendation

by PKU-YuanGroup in PKU-YuanGroup/OpenAI4S

Recommend ranked catalyst, reagent, and solvent labels for a fully specified reaction using the reviewed Parrot USPTO checkpoint.

MITAuto-check passed

Install Reaction Condition Recommendation

skills CLI
$ npx skills add PKU-YuanGroup/OpenAI4S --skill reaction-condition-recommendation -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install PKU-YuanGroup/OpenAI4S reaction-condition-recommendation --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/PKU-YuanGroup/OpenAI4S.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/reaction-condition-recommendation .claude/skills/reaction-condition-recommendation && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
reaction-condition-recommendation
GitHub stars
622
Token cost
~2k tokens
SKILL.md length
839 words
Files
3
Skills in repo
17
Repo updated
First seen
Licence
MIT

At a glance

Recommend ranked catalyst, reagent, and solvent labels for a fully specified reaction using the reviewed Parrot USPTO checkpoint.

  • SKILL.md covers Install and run, Scenario 5 benchmark contract, Interpret the result and Output contract, plus 1 more section
  • Calls git and conda; reaches github.com

What it does

Reaction Condition Recommendation is an agent skill from PKU-YuanGroup/OpenAI4S. Recommend ranked catalyst, reagent, and solvent labels for a fully specified reaction using the reviewed Parrot USPTO checkpoint. Not for unknown reactions or lab procedures.

Its SKILL.md is about 2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `README.md` and `README_zh.md`).

It works with Linux. The repository describes itself as: Open-source AI agent for scientific research. Analyze data in Python/R with Claude, GPT, Gemini, and more. The licence is MIT.

Example prompts

  • “/reaction-condition-recommendation”

Requirements

  • Python 3

What it can do on your machine

Read from SKILL.md and the folder at commit 4a72e87. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • git
    • conda

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • github.com

    Also links to:

    • huggingface.co

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Reaction Condition Recommendation loads about 2k tokens when it runs. Until then it costs about 52 tokens; SKILL.md has 839 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~52
When it runs · the whole SKILL.md, loaded when a task matches
~2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from PKU-YuanGroup/OpenAI4S at commit 4a72e87, republished under its MIT licence (© PKU-YuanGroup). 839 words, ~2,043 tokens.

Download SKILL.mdSave it as .claude/skills/reaction-condition-recommendation/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
reaction-condition-recommendation
description
Recommend ranked catalyst, reagent, and solvent labels for a fully specified reaction using the reviewed Parrot USPTO checkpoint. Not for unknown reactions or lab procedures.
license
MIT
origin
openai4s

Reaction-condition recommendation

Answer one scientific question: for a fixed reaction, which condition labels does a trained model rank highest? Conditions are hypotheses used to focus literature/ELN retrieval. They are not an experimental procedure and must not be generated before reactants and products are specified.

Parrot is the implementation. The original repository code is MIT, but its Google Drive archives do not carry separate machine-readable terms in the official downloader and remain blocked. The approved deployment instead uses the first author's separately published Hugging Face repository, whose repository card declares MIT. Admission is limited to revision b9ef6049d341bfc62d835f09ad6ce33b6f86b047, USPTO_condition.mar (SHA256 4418693a91a7a3b5f2aa101a39d58702b154e58901ddbf1ac94edc4c28de8e7d) and condition_predictor_metadata.zip (SHA256 dfdf7fff11fe2d52af49146b1080dd6304ddd2b51665907fa759ffd4c5fca820).

Install and run

Keep Parrot in its own environment because it pins an older Transformers stack. This recipe is Linux-only: upstream states that Parrot was tested on Linux, and envs_cpu.yaml contains Linux-specific packages such as ld_impl_linux-64 and libgcc-ng. On macOS or another non-Linux platform, stop and route the task to a reviewed Linux container or remote host rather than trying to solve that lock file locally.

From an operator terminal whose current directory is the writable session workspace, clone the code under a workspace-owned model root and detach at the reviewed commit. Do not run a moving branch:

bash
set -eu

PARROT_ROOT="$PWD/models/parrot"
PARROT_COMMIT="0fb2325567e21011589641544e32427c8244e2a9"

mkdir -p "$PARROT_ROOT"
if [ ! -d "$PARROT_ROOT/source/.git" ]; then
  git clone https://github.com/wangxr0526/Parrot.git "$PARROT_ROOT/source"
fi
git -C "$PARROT_ROOT/source" cat-file -e "${PARROT_COMMIT}^{commit}"
git -C "$PARROT_ROOT/source" checkout --detach "$PARROT_COMMIT"
test "$(git -C "$PARROT_ROOT/source" rev-parse HEAD)" = "$PARROT_COMMIT"
SOURCE_STATUS="$(git -C "$PARROT_ROOT/source" status \
  --porcelain --untracked-files=all)"
test -z "$SOURCE_STATUS"
conda env create -n parrot -f "$PARROT_ROOT/source/envs_cpu.yaml"

The final assertion must remain empty; if a reused checkout has modified or untracked files, stop instead of executing it as reviewed source.

That source revision and the approved Hugging Face snapshot have been verified in the external deployment root. The repository-native ../retrosynthesis_planning/parrot_mar_inference.py adapter consumes a safely expanded MAR through model_location; the OpenAI4S worker has completed a real GPU canary and returned 15 joint condition beams. This is an engineering inference check, not benchmark accuracy or experimental validation. Invoke the snapshot through ReactionModelBackend("parrot", ...); temporary files must use an explicit external workspace_dir.

Do not execute the official download_data.py directly. At the reviewed revision it constructs an unquoted shell=True extraction command and does not propagate extraction failure, so a workspace path containing spaces can fail silently and shell metacharacters are unsafe. Review the downloader URLs and checkpoint terms and record an explicit allow decision in the model manifest before acquiring anything; a missing or deny decision must stop. Only after that decision, use an approved operator workflow that streams each archive to private staging, verifies its recorded size and digest, and extracts it without a shell while rejecting traversal and links. Place only the verified dataset, label dictionaries, and checkpoint at the repository-relative paths named by the reviewed configuration, and add the acquisition receipts to the manifest before inference.

The Google Drive files remain unapproved. Do not substitute the MIT source-code license for those artifacts or silently replace the admitted Hugging Face revision. A missing/deny admission decision, an unexpected filename, size, or digest, or a path/link-unsafe archive must stop before extraction or inference.

Write one complete reaction SMILES per line. For the reviewed MAR deployment, pass the expanded model directory in the backend manifest. The legacy upstream CLI example below applies only to a separately reviewed legacy snapshot:

bash
SESSION_WORKSPACE="$PWD"
PARROT_ROOT="$SESSION_WORKSPACE/models/parrot"
conda run -n parrot --cwd "$PARROT_ROOT/source" python inference.py \
  --config_path configs/config_inference_use_uspto.yaml \
  --input_path "$SESSION_WORKSPACE/reactions.txt" \
  --output_path "$SESSION_WORKSPACE/predicted_conditions.csv" \
  --num_workers 2 --inference_batch_size 8 --gpu -1

Run these blocks from the session workspace root. Shell expansion makes both input and output absolute before conda run changes to the repository working directory; do not rely on Parrot's process directory for session I/O.

The USPTO checkpoint recommends categorical condition components. Use the Reaxys configuration only when its separately obtained data/checkpoint terms have been reviewed and temperature prediction is required. Never imply that all Parrot checkpoints predict temperature.

Show full SKILL.md (273 more words)Show less

Scenario 5 benchmark contract

Use ../retrosynthesis_planning/condition_benchmark.py with the checkpoint's frozen label dictionaries. Submit ranked complete five-slot tuples (catalyst1, two solvents, and two reagents), preserving explicit empty slots. Do not form an unscored Cartesian product from independent marginal labels. The evaluator scores multi-reference exact tuples, Top-1 slot recall, OOV tuples, duplicates, and unused Top-K budget.

Interpret the result

  • Preserve the label dictionary and model configuration used to decode each categorical ID.
  • Return top-k condition sets rather than combining marginal top-1 labels into a condition set the model never emitted.
  • Keep catalyst, reagent, solvent, and temperature fields separate.
  • Use predictions to construct targeted literature/ELN searches for the exact transformation and close substrate analogues.
  • Mark missing condition classes as unknown. Do not let an LLM fill them and relabel the result as model output.

Output contract

Return canonical reaction SMILES, ordered condition sets, raw component labels and decoded names, checkpoint/config provenance, temperature support status, and validation state (model_only, literature_analog, exact_precedent, or eln_verified). Model-only is the default.

Failure modes

SymptomAction
checkpoint admission missing, denied, or hash-mismatchedStop before extraction or inference, return terms_review_required, and do not substitute LLM-generated conditions.
only target or only precursors are knownStop; select a concrete reaction before recommending conditions.
label ID is absent from the dictionaryPreserve the raw ID, mark decoding failure, and do not guess a name.
requested temperature with USPTO configReport unsupported and switch only to a reviewed temperature-capable checkpoint.
predicted combination is unsafe or incompatiblePreserve the prediction as rejected and route it to EHS/chemist review.

Primary sources: https://github.com/wangxr0526/Parrot and the first-author checkpoint distribution https://huggingface.co/xiaoruiwang/ChemEnzyRetroPlanner_metadata. The source paper is Wang et al., Research (2023), DOI 10.34133/research.0231.

© PKU-YuanGroup, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 2 other files in skills/reaction-condition-recommendation of PKU-YuanGroup/OpenAI4S.

  • SKILL.md
  • README.md
  • README_zh.md

Open the folder on GitHubat commit 4a72e87

Compare with similar skills

Reaction Condition Recommendation next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Reaction Condition Recommendation compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Reaction Condition Recommendation this skillPKU-YuanGroup/OpenAI4S622—~2kAutomated safety check: PassMIT
Configuring Horizoncoollabsio/coolify63k4 repos~898Automated safety check: PassMIT
Model Usageopenclaw/openclaw392k1 repos~637Automated safety check: PassMIT
Engine Whats Newflutter/flutter180k—~978Automated safety check: PassBSD-3-Clause
Openclaw Live Updateropenclaw/openclaw392k—~3.7kAutomated safety check: PassMIT
Upgrade Browserflutter/flutter180k—~1.1kAutomated safety check: PassBSD-3-Clause

Similar skills

  • Configuring Horizon

    coollabsio/coolify

    A skill your agent uses whenever the user mentions Horizon by name in a Laravel context.

    63k GitHub starsUsed in 4 repos~898 tokens
    Backend & APIsAuto-check passed
  • Model Usage

    openclaw/openclaw

    Summarize CodexBar local cost logs by model for Codex or Claude, including current or full breakdowns.

    392k GitHub starsUsed in 1 repo~637 tokens
    Auto-check passed
  • Engine Whats New

    flutter/flutter

    Generates the "what's new" release summary and diff file for changes in the Flutter engine (//engine/src/flutter) between two releases (e.g., 3.47 vs 3.44).

    180k GitHub stars~978 tokensUpdated today
    MobileAuto-check passed
  • Openclaw Live Updater

    openclaw/openclaw

    Maintain the canonical live OpenClaw main checkout, macOS LaunchAgent-managed Gateway, local macOS app, exact-head main CI, and recurring full release validation.

    392k GitHub stars~3.7k tokensUpdated today
    DevOps & CloudAuto-check passed
  • Upgrade Browser

    flutter/flutter

    Upgrade browser versions (Chrome or Firefox) in the Flutter Web Engine and/or Framework tests.

    180k GitHub stars~1.1k tokensUpdated today
    MobileAuto-check passed
  • K8s Security Policies

    Cybereason-Public/owLSM

    Comprehensive guide for implementing NetworkPolicy, PodSecurityPolicy, RBAC, and Pod Security Standards in Kubernetes.

    280 GitHub starsUsed in 12 repos~2k tokens
    Backend & APIsAuto-check passed

More from PKU-YuanGroup/OpenAI4S

All 17 skills in this repo
  • Single Cell Rna Analysis

    PKU-YuanGroup/OpenAI4S

    Reproducible Scanpy workflow for human or mouse 10x scRNA-seq and snRNA-seq count matrices: single-sample descriptive QC, clustering and annotation, or comparative donor-aware pseudobulk DE and Milo…

    622 GitHub stars~1.3k tokensUpdated yesterday
    Auto-check passed
  • Bioprobench

    PKU-YuanGroup/OpenAI4S

    Score an LLM's biological-protocol reasoning on the BioProBench benchmark: protocol QA, step ordering, error detection, protocol generation, and LLM-judged error reasoning; or generate the responses.

    622 GitHub stars~2.3k tokensUpdated yesterday
    Auto-check passed
  • Reaction Atom Mapping

    PKU-YuanGroup/OpenAI4S

    Map atoms and changed bonds for a complete reaction with RXNMapper.

    622 GitHub stars~1.2k tokensUpdated yesterday
    Auto-check passed
  • Reaction Forward Prediction

    PKU-YuanGroup/OpenAI4S

    Predict ranked products from reactants and reagents with ReactionT5v2-forward; use for outcome prediction or round-trip recovery.

    622 GitHub stars~2k tokensUpdated yesterday
    Auto-check passed
  • Reaction Yield Estimation

    PKU-YuanGroup/OpenAI4S

    Estimate yield for a fully specified reactant/reagent/product record with ReactionT5v2-yield.

    622 GitHub stars~2.3k tokensUpdated yesterday
    Auto-check passed
  • Rfdiffusion

    PKU-YuanGroup/OpenAI4S

    Generate de novo protein backbones with RFdiffusion for protein-target binders, hotspot-conditioned interfaces, motif scaffolding, partial diffusion, or symmetric assemblies.

    622 GitHub stars~2.2k tokensUpdated yesterday
    Auto-check passed

Works with

Questions about Reaction Condition Recommendation

What does Reaction Condition Recommendation do?

Recommend ranked catalyst, reagent, and solvent labels for a fully specified reaction using the reviewed Parrot USPTO checkpoint. Reaction Condition Recommendation is an agent skill from PKU-YuanGroup/OpenAI4S. Recommend ranked catalyst, reagent, and solvent labels for a fully specified reaction using the reviewed Parrot USPTO checkpoint.

How do I install Reaction Condition Recommendation in Claude Code?

Run `npx skills add PKU-YuanGroup/OpenAI4S --skill reaction-condition-recommendation -a claude-code`. Or copy the skill folder (skills/reaction-condition-recommendation in PKU-YuanGroup/OpenAI4S) into .claude/skills/reaction-condition-recommendation in your project. Claude Code loads it when a task matches its description.

How do I install Reaction Condition Recommendation in Codex?

Run `npx skills add PKU-YuanGroup/OpenAI4S --skill reaction-condition-recommendation -a codex`. Or copy the skill folder (skills/reaction-condition-recommendation in PKU-YuanGroup/OpenAI4S) into .agents/skills/reaction-condition-recommendation in your project. Codex loads it when a task matches its description.

Can I use Reaction Condition Recommendation in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add PKU-YuanGroup/OpenAI4S --skill reaction-condition-recommendation -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/reaction-condition-recommendation, .gemini/skills/reaction-condition-recommendation, .github/skills/reaction-condition-recommendation and .opencode/skills/reaction-condition-recommendation in your project.

What does Reaction Condition Recommendation need to run?

Going by SKILL.md and its folder, Reaction Condition Recommendation needs the command-line tools its instructions call (git and conda). Our summary lists: Python 3.

Does Reaction Condition Recommendation access the network?

SKILL.md names 2 domains. In commands or code: github.com; the agent is likely to contact it when it follows the instructions. As links in the text: huggingface.co. This is read from the text; nothing was executed.

Is Reaction Condition Recommendation safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Reaction Condition Recommendation use?

Reaction Condition Recommendation is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Reaction Condition Recommendation use?

About 2k tokens (SKILL.md is roughly 8.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Reaction Condition Recommendation?

Skills that share tags, products or a category with Reaction Condition Recommendation: Configuring Horizon (coollabsio/coolify, 63k stars), Model Usage (openclaw/openclaw, 392k stars), Engine Whats New (flutter/flutter, 180k stars) and Openclaw Live Updater (openclaw/openclaw, 392k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Reaction Condition Recommendation?

PKU-YuanGroup (a GitHub organization) maintains it in PKU-YuanGroup/OpenAI4S, which has 622 GitHub stars. The repository holds 17 skills in this directory. The repository was last updated on October 9, 2026.

Source: PKU-YuanGroup/OpenAI4S on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.