Agent skill

Askcos

by lamm-mit in lamm-mit/scienceclaw

Retrosynthetic template relevance prediction using a locally deployed ASKCOS TorchServe service.

MITAuto-check passedDevOps & Cloud

Install Askcos

skills CLI
$ npx skills add lamm-mit/scienceclaw --skill askcos -a claude-code

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

GitHub CLI
$ gh skill install lamm-mit/scienceclaw askcos --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/lamm-mit/scienceclaw.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/askcos .claude/skills/askcos && 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
askcos
GitHub stars
244
Token cost
~981 tokens
SKILL.md length
166 words
Files
5 (incl. scripts)
Skills in repo
85
Repo updated
First seen
Licence
MIT

At a glance

Retrosynthetic template relevance prediction using a locally deployed ASKCOS TorchServe service.

  • DevOps & Cloud work in your project
  • SKILL.md covers Overview, Requirements, Usage and Parameters, plus 5 more sections
  • Runs Python scripts from its folder; calls python3 and docker

What it does

Askcos is an agent skill from lamm-mit/scienceclaw. Retrosynthetic template relevance prediction using a locally deployed ASKCOS TorchServe service. Returns ranked precursor suggestions with confidence scores from 5 template sets (reaxys, pistachio, pistachioringbreaker, bkmsmetabolic, reaxysbiocatalysis). Requires local deployment at http://localhost:9410.

Its SKILL.md is about 980 tokens, which your agent loads only when the skill is triggered. The skill folder holds 6 other files, including scripts (for example `scripts/askcos_retro.py` and `scripts/askcos_scraper.py`).

It sits in DevOps & Cloud. It works with Docker. The licence is MIT.

When your agent uses it

  • DevOps & Cloud work in your project

Example prompts

  • “/askcos”

Requirements

  • Python 3
  • Docker

What it can do on your machine

Read from SKILL.md and the folder at commit ab9aba1. 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

    Ships 4 files in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python3
    • docker

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

  • Network

    Links to these hosts (documentation or services it may open):

    • gitlab.com
    • askcos-docs.mit.edu

    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

Askcos loads about 981 tokens when it runs. Until then it costs about 79 tokens; SKILL.md has 166 words of instructions outside code blocks.

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

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); the scripts in this folder are not scanned.

SKILL.md

The full file from lamm-mit/scienceclaw at commit ab9aba1, republished under its MIT licence (© lamm-mit). 166 words, ~981 tokens.

Download SKILL.mdSave it as .claude/skills/askcos/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.
name
askcos
description
Retrosynthetic template relevance prediction using a locally deployed ASKCOS TorchServe service. Returns ranked precursor suggestions with confidence scores from 5 template sets (reaxys, pistachio, pistachio_ringbreaker, bkms_metabolic, reaxys_biocatalysis). Requires local deployment at http://localhost:9410.
license
MIT License
metadata.skill-author
K-Dense Inc.

ASKCOS - Retrosynthetic Template Relevance

Overview

ASKCOS template_relevance predicts retrosynthetic disconnections using reaction template libraries. The service runs locally as a TorchServe container (retro_template_relevance) and requires a SMILES input, returning ranked precursor SMILES with template match scores.

Deployment: https://gitlab.com/mlpds_mit/askcosv2/retro/template_relevance Docs: https://askcos-docs.mit.edu/guide/4-Deployment/4.2-Standalone-deployment-of-individual-modules.html

Requirements

  • Docker container retro_template_relevance running at http://localhost:9410
  • Start/stop: docker start retro_template_relevance / docker stop retro_template_relevance

Usage

Basic Retrosynthesis (JSON output — default)
bash
python3 skills/askcos/scripts/askcos_retro.py \
  --smiles "CC(C)C1CCC(C)CC1O"
Human-readable summary
bash
python3 skills/askcos/scripts/askcos_retro.py \
  --smiles "CC(C)C1CCC(C)CC1O" \
  --model reaxys \
  --top 10 \
  --format summary
Select template set
bash
python3 skills/askcos/scripts/askcos_retro.py \
  --smiles "CC(C)C1CCC(C)CC1O" \
  --model pistachio

Parameters

FlagDefaultDescription
--smiles / -srequiredTarget molecule SMILES
--model / -mreaxysTemplate set: reaxys, pistachio, pistachio_ringbreaker, bkms_metabolic, reaxys_biocatalysis
--top / -n10Number of top suggestions to return
--base-urlhttp://localhost:9410TorchServe base URL
--format / -fjsonOutput format: json or summary

Environment Variables

VariableDefaultDescription
ASKCOS_BASE_URLhttp://localhost:9410Override TorchServe URL
ASKCOS_MODELreaxysDefault template set

Output Format (JSON)

json
{
  "target": "CC(C)C1CCC(C)CC1O",
  "model": "reaxys",
  "total_templates_matched": 191,
  "status": "success",
  "suggestions": [
    {
      "rank": 1,
      "reactants_smiles": "CC1CCC(C(C)C)C(=O)C1",
      "score": 0.4562,
      "template_smarts": "[C:1]-[CH;D3;+0:2](-[C:3])-[OH;D1;+0:4]>>[C:1]-[C;H0;D3;+0:2](-[C:3])=[O;H0;D1;+0:4]",
      "template_id": "5e1f4b6e6348832850995dbf",
      "template_count": 8688,
      "necessary_reagent": ""
    }
  ]
}

Example Output (menthol)

ASKCOS (reaxys) — CC(C)C1CCC(C)CC1O
Templates matched: 191

  # 1  score=0.4562  n= 8688  precursors: CC1CCC(C(C)C)C(=O)C1
  # 2  score=0.0387  n=   20  precursors: CC1CCC2C(C1)OC(=O)C2C
  # 3  score=0.0387  n=   20  precursors: CC(C)C1CCC2CC1OC2=O
  # 4  score=0.0321  n=  245  precursors: CC1C=CC(C(C)C)CC1  reagent: [O]
  # 5  score=0.0279  n=26868  precursors: CC(=O)OC1CC(C)CCC1C(C)C

Top hit (menthone → menthol via reduction) correctly recovers the industrial Takasago process.

Integration with Other Skills

bash
# Get SMILES from RDKit, then run retrosynthesis
SMILES="CC(C)C1CCC(C)CC1O"

# Retrosynthesis
python3 skills/askcos/scripts/askcos_retro.py --smiles "$SMILES" --top 5 --format json

# Analyse top precursor with RDKit
PRECURSOR="CC1CCC(C(C)C)C(=O)C1"
python3 skills/rdkit/scripts/molecular_properties.py --smiles "$PRECURSOR"

References

© lamm-mit, 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 4 other files (scripts) in skills/askcos of lamm-mit/scienceclaw.

  • SKILL.md
  • scripts/__pycache__/askcos_retro.cpython-313.pyc
  • scripts/__pycache__/askcos_scraper.cpython-313.pyc
  • scripts/askcos_retro.py
  • scripts/askcos_scraper.py

Open the folder on GitHubat commit ab9aba1

Compare with similar skills

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

Askcos compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Askcos this skilllamm-mit/scienceclaw244—~981Automated safety check: PassMIT
Iron Proxy Gateway for NanoClawnanocoai/nanoclaw31k—~4.6kAutomated safety check: NotesMIT
GreptimeDB Dev Docker ImageGreptimeTeam/greptimedb6.7k—~4kAutomated safety check: NotesApache-2.0
Senior DevOps Toolkitmaslennikov-ig/claude-code-orchestrator-kit2596 repos~1.1kAutomated safety check: NotesCustom licence
LangBot Deployment Guidelangbot-app/LangBot18k—~1.2kAutomated safety check: NotesApache-2.0
Build Openshell Mxc WindowsNVIDIA/OpenShell15k—~4.9kAutomated safety check: PassApache-2.0

Similar skills

  • Installs or refreshes Iron Proxy and its Iron Control web console for NanoClaw, with a local Docker setup, database, credentials and a human approval bridge.

    31k GitHub stars~4.6k tokensUpdated yesterday
    DevOps & CloudAuto-check: notes
  • GreptimeDB Dev Docker Image

    GreptimeTeam/greptimedb

    Packages a locally built GreptimeDB debug binary into a development-only Docker image for local-cluster testing, with an optional push to a dev registry.

    6.7k GitHub stars~4k tokensUpdated 2 days ago
    DevOps & CloudAuto-check: notes
  • Senior DevOps Toolkit

    maslennikov-ig/claude-code-orchestrator-kit

    Comprehensive DevOps skill for CI/CD, infrastructure automation, containerization, and cloud platforms (AWS, GCP, Azure). Includes pipeline setup…

    259 GitHub starsUsed in 6 repos~1.1k tokens
    DevOps & CloudAuto-check: notes
  • LangBot Deployment Guide

    langbot-app/LangBot

    Deploys and configures a LangBot instance with Docker Compose or Kubernetes, covering config.yaml, the Box sandbox runtime, the plugin runtime and the global API key.

    18k GitHub stars~1.2k tokensUpdated today
    DevOps & CloudAuto-check: notes
  • Official

    Maintain and validate OpenShell's build-only Windows MSVC lane for x64 and ARM64.

    15k GitHub stars~4.9k tokensUpdated today
    DevOps & CloudAuto-check passed
  • Container Dev

    yansongda/pay

    A skill your agent uses when local PHP environment is unavailable.

    5.4k GitHub stars~968 tokensUpdated 9 days ago
    DevOps & CloudAuto-check passed

More from lamm-mit/scienceclaw

All 85 skills in this repo
  • Fred Economic Data

    lamm-mit/scienceclaw

    Query FRED (Federal Reserve Economic Data) API for 800,000+ economic time series from 100+ sources.

    244 GitHub starsUsed in 4 repos~3k tokens
    Auto-check passed
  • Drug Research

    lamm-mit/scienceclaw

    Generates comprehensive drug research reports with compound disambiguation, evidence grading, and mandatory completeness sections.

    244 GitHub starsUsed in 3 repos~1.7k tokens
    Auto-check passed
  • Imaging Data Commons

    lamm-mit/scienceclaw

    Query and download public cancer imaging data from NCI Imaging Data Commons using idc-index.

    244 GitHub starsUsed in 5 repos~11k tokens
    Auto-check passed
  • Rowan

    lamm-mit/scienceclaw

    Cloud-based quantum chemistry platform with Python API. An agent skill from lamm-mit/scienceclaw.

    244 GitHub starsUsed in 4 repos~3.1k tokens
    Auto-check: warnings
  • Infographics

    lamm-mit/scienceclaw

    Create professional infographics using Nano Banana Pro AI with smart iterative refinement.

    244 GitHub starsUsed in 6 repos~4.4k tokens
    Auto-check: notes
  • Disease Research

    lamm-mit/scienceclaw

    Generate comprehensive disease research reports using 100+ ToolUniverse tools.

    244 GitHub stars~946 tokensUpdated 1 mo ago
    Auto-check passed

Works with

Categories

Questions about Askcos

What does Askcos do?

Retrosynthetic template relevance prediction using a locally deployed ASKCOS TorchServe service. Askcos is an agent skill from lamm-mit/scienceclaw. Retrosynthetic template relevance prediction using a locally deployed ASKCOS TorchServe service.

When should I use Askcos?

Askcos fits situations like: devOps & Cloud work in your project.

How do I install Askcos in Claude Code?

Run `npx skills add lamm-mit/scienceclaw --skill askcos -a claude-code`. Or copy the skill folder (skills/askcos in lamm-mit/scienceclaw) into .claude/skills/askcos in your project. Claude Code loads it when a task matches its description.

How do I install Askcos in Codex?

Run `npx skills add lamm-mit/scienceclaw --skill askcos -a codex`. Or copy the skill folder (skills/askcos in lamm-mit/scienceclaw) into .agents/skills/askcos in your project. Codex loads it when a task matches its description.

Can I use Askcos 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 lamm-mit/scienceclaw --skill askcos -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/askcos, .gemini/skills/askcos, .github/skills/askcos and .opencode/skills/askcos in your project.

What does Askcos need to run?

Going by SKILL.md and its folder, Askcos needs Python for the scripts in its folder and the command-line tools its instructions call (python3 and docker). Our summary lists: Python 3; Docker.

Does Askcos access the network?

SKILL.md names 2 domains. As links in the text: gitlab.com and askcos-docs.mit.edu. This is read from the text; nothing was executed.

Is Askcos 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. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Askcos use?

Askcos 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 Askcos use?

About 981 tokens (SKILL.md is roughly 3.9k 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 Askcos?

Skills that share tags, products or a category with Askcos: Iron Proxy Gateway for NanoClaw (nanocoai/nanoclaw, 31k stars), GreptimeDB Dev Docker Image (GreptimeTeam/greptimedb, 6.7k stars), Senior DevOps Toolkit (maslennikov-ig/claude-code-orchestrator-kit, 259 stars) and LangBot Deployment Guide (langbot-app/LangBot, 18k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Askcos?

lamm-mit (a GitHub user) maintains it in lamm-mit/scienceclaw, which has 244 GitHub stars. The repository holds 85 skills in this directory. The repository was last updated on August 21, 2026.

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