synkit
Skill6 starsChanged 9 months agoMITView on GitHub
Use when working with SynKit for graph-based reaction informatics: ITS/MTG graph construction, reaction canonicalization, AAM validation, DPO rule extraction and composition, chemical reaction network (CRN) analysis, subgraph matching, and synthesis planning primitives.
- Installs packages
In this repository27 other files it gives its agents.
- config/CLAUDE.mdCLAUDE.md
- active-learningSkill
- aseSkill
- binding-kineticsSkill
- chem-brainstormSkill
- coarse-grainedSkill
- daylight-theorySkill
- deepchemSkill
- dockingSkill
- fbddSkill
- force-fieldsSkill
- free-energySkill
- generative-designSkill
- homology-modelingSkill
- lit-rescueSkill
- mdanalysisSkill
- mmpaSkill
- nextflowSkill
- openbabelSkill
- organic-mechanismsSkill
- pepflexSkill
- pharmacophoreSkill
- py3DmolSkill
- qm-dftSkill
- rdkitSkill
- torchdrugSkill
- uncertainty-qsarSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 88
All conversions are lossless for balanced, atom-mapped reactions.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
SynKit
Graph-based Python toolkit for reaction informatics: ITS graph construction, canonicalization, AAM validation, DPO rule extraction, CRN analysis, and synthesis planning.
Paper: doi:10.1021/acs.jcim.5c02123 | JCIM 2025
When to Use This Skill
- Converting reaction SMILES → ITS graphs (NetworkX) → DPO rules (GML)
- Validating or comparing atom-to-atom mappings (AAMValidator)
- Canonicalizing reaction SMILES (CanonRSMI) or ITS graphs (GraphCanonicaliser)
- Clustering reactions by structural similarity (WL graph hash)
- Extracting and composing reaction rules (DPO formalism)
- Analyzing chemical reaction networks (Feinberg deficiency theory, Petri nets)
- Detecting autocatalysis, siphons, traps in reaction networks
- Planning synthetic routes via rule composition (SynReactor)
- Building reaction databases or curating USPTO/ChEMBL reaction data
Core Concept: ITS Graph
The Imaginary Transition State (ITS) graph merges reactant and product graphs into a single labeled multigraph:
- Nodes: atoms with attributes (symbol, charge, radical, hybridization, H count)
- Edges: bonds with attributes (bond type,
changeflag: formed / broken / unchanged)
ITS ≡ CGR (Condensed Graph of Reaction) — same structure, different naming tradition.
Quick Start
from synkit.IO import load_reaction_smiles
from synkit.Graph import ITSConstruction
from synkit.Chem import CanonRSMI, AAMValidator
# 1. Parse reaction SMILES → ITS graph (NetworkX)
rxn_smiles = "[CH3:1][OH:2].[Na:3][H:4]>>[CH3:1][O:2][Na:3].[H:4][H:5]"
its = ITSConstruction.from_reaction_smiles(rxn_smiles)
# 2. Canonicalize the reaction SMILES
canon = CanonRSMI(rxn_smiles).canonicalize()
# 3. Validate atom-atom mapping
valid = AAMValidator(rxn_smiles).is_valid()Router — What to Read
| Task | Reference |
| Load reactions, format conversion (SMILES ↔ ITS ↔ GML), data I/O | references/io-conversion.md |
| Canonicalization (CanonRSMI), AAM validation, Reaction class | references/chem-standardization.md |
| ITS construction, MTG, graph canonicalization, WL hashing, subgraph search | references/graph-its.md |
| DPO rules, GML format, rule composition, SynReactor forward/retro | references/rule-dpo.md |
| CRN building, Feinberg deficiency theory, Petri nets, autocatalysis | references/crn-analysis.md |
| Synthesis planning, route construction, pathway analysis | references/synthesis-planning.md |
Key Submodules
| Module | Role |
synkit.IO | Reaction SMILES parsing, SMILES ↔ ITS ↔ GML conversion |
synkit.Chem | CanonRSMI, AAMValidator, Reaction standardization |
synkit.Graph | ITSConstruction, GraphCanonicaliser, WL hash, subgraph search |
synkit.Rule | DPO rules, GML handling, rule composition |
synkit.Synthesis | Forward/retro prediction, route exploration |
synkit.CRN | CRN construction, Feinberg theory, Petri-net analysis |
synkit.Vis | Reaction and mechanism visualization |
Conversion Pipeline
Reaction SMILES (atom-mapped)
│
▼ IO / Graph.ITSConstruction
ITS Graph (NetworkX) ← cluster, hash, validate
│
▼ Graph.GraphCanonicaliser
Canonical ITS Graph ← canonical form independent of atom ordering
│
▼ Rule module
DPO Rule (GML format) ← compose, apply, storeAll conversions are lossless for balanced, atom-mapped reactions. Caveats: stereochemistry is omitted; explicit H at reaction centers required for GML → SMILES reversion.
Installation
pip install synkit # core (RDKit + NetworkX)
pip install synkit[all] # full (+ transformers for RXNMapper)
# Python ≥ 3.11 requiredRelated Skills
rdkit— molecule preprocessing before SynKit ingestiontorchdrug— retrosynthesis with GNNs (complementary ML approach)deepchem— molecular ML when rule-based approach insufficient
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

