Skip to content
Back to skills

Synkit

ASecurity

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.

  • 6 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added June 4, 2026
ai-agentspythonbashreactnodedatabase

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 7 files and shows the line behind each finding

Scanned June 4, 2026

npx -y skills add Kdevos12/ALKYL --skill synkit --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Synkit?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Synkit
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/kdevos12-synkit/badge)](https://www.skillsdirectory.com/skills/kdevos12-synkit)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: synkit
description: 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.
---

# 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, `change` flag: formed / broken / unchanged)

ITS ≡ CGR (Condensed Graph of Reaction) — same structure, different naming tradition.

## Quick Start

```python
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, store
```

All conversions are **lossless** for balanced, atom-mapped reactions.
Caveats: stereochemistry is omitted; explicit H at reaction centers required for GML → SMILES reversion.

## Installation

```bash
pip install synkit          # core (RDKit + NetworkX)
pip install synkit[all]     # full (+ transformers for RXNMapper)
# Python ≥ 3.11 required
```

## Related Skills

- `rdkit` — molecule preprocessing before SynKit ingestion
- `torchdrug` — retrosynthesis with GNNs (complementary ML approach)
- `deepchem` — molecular ML when rule-based approach insufficient

Files in this skill

  • SKILL.md4.2 KB
  • references/chem-standardization.md6.1 KB
  • references/crn-analysis.md8 KB
  • references/graph-its.md7.5 KB
  • references/io-conversion.md6.1 KB
  • references/rule-dpo.md6.4 KB
  • references/synthesis-planning.md8.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.