agentleFS
HridayKapoorHridayKapoor/syntopik/.agents/skills/organic-chemistry-tutor/SKILL.md

organic-chemistry-tutor

Skill0 starsChanged 8 days agoMITView on GitHub

Teach and drill Organic Chemistry mechanisms, stereochemistry R/S and E/Z, 3D MMFF94 conformers, GOC, and reagent chemoselectivity using verified RDKit 2D/3D structures and grids.

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    NEVER Draw ASCII Rings or Unverified Structures: always render real 2D skeletal structures (wedge/dash stereochemistry) via chem_3d.py or …

    line 19
  2. Very specific:

    Always inspect demos/<slug>.png via read_file / Read before presenting.

    line 40
  3. Very specific:

    Check [ -d ~/.gemini/config/plugins/chemistry ] first.

    line 59

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Organic Chemistry Tutor & Mechanism Studio

Organic chemistry fails when taught with ASCII rings or hand-waved stereochemistry. Every structure, chiral center, conformer, and reagent selectivity comparison in Syntopik is programmatically verified with RDKit across all harnesses (Antigravity, Claude Code, Codex, and offline).

(Portable CLI: prefer syntopik run chem_3d|organic_reagents ... in attached repos, or .venv/bin/python -B scripts/<engine>.py ... in direct clones.)


Core Rules

  1. NEVER Draw ASCII Rings or Unverified Structures: always render real 2D skeletal structures (wedge/dash stereochemistry) via chem_3d.py or organic_reagents.py, then inspect the PNG via read_file / Read before presenting (<= 160 words prose/turn).
  2. Never Guess (R)/(S), (E)/(Z), IUPAC Names, or Selectivity: verify programmatically first!
  3. Portable Plugin Fallback:
    • Built-in Portable Engine (Always Available in Every Harness): scripts/chem_3d.py (inspect, render2d, render3d + offline py2opsin IUPAC→SMILES) and scripts/organic_reagents.py (knowledge-graph/reagents.json, 40 RDKit-validated reagents + compare --out-grid).
    • Optional Antigravity chemistry Plugin Bonus: if ~/.gemini/config/plugins/chemistry exists on disk, you may also invoke its render_mechanism.py (curved Crimson #E11D48 electron-pushing arrows) and prochirality.py — skipping pharma patent/vendor workflows. When absent, use chem_3d.py render2d --highlight-smarts and organic_reagents.py compare --out-grid seamlessly!

Verified Local Tooling

1. Verify Stereochemistry, IUPAC Name, Formula & Hybridization (< 1s)

syntopik run chem_3d inspect "<SMILES>"
syntopik run chem_3d inspect "(2R)-2-bromobutane" --name

Returns canonical isomeric SMILES, formula, MW, exact CIP (R)/(S) centers, (E)/(Z) double-bond geometry, ring count, and hybridization.

2. Draw 2D Skeletal Structures & Functional-Group Highlights

syntopik run chem_3d render2d "<SMILES>" --legend "Substrate" --highlight-smarts "[CX3]=O" --out demos/<slug>.png

Always inspect demos/<slug>.png via read_file / Read before presenting.

3. Reagent Chemoselectivity & Named-Reaction Matrix (scripts/organic_reagents.py)

Query the curated 40-reagent RDKit-validated database (knowledge-graph/reagents.json):

syntopik run organic_reagents list --category reduction
syntopik run organic_reagents lookup "DIBAL-H" --json
syntopik run organic_reagents compare nabh4 lialh4 dibal_h b2h6_thf --out-grid demos/reducers-grid.png --json
syntopik run organic_reagents selectivity carboxylic_acid --json
syntopik run organic_reagents drill-pair hbr_ionic hbr_peroxide --json

4. Interactive 3D MMFF94 Conformers (Chair Flips, Newman, Anti-Periplanar E2)

syntopik run chem_3d render3d "<SMILES>" --title "Methylcyclohexane Conformers" --conformers 4 --out demos/<slug>-3d.html

Generates ETKDGv3 + MMFF94 conformers ranked by relative kcal/mol with a built-in zero-CDN offline Canvas 3D viewer.

5. Optional Curved-Arrow Mechanisms (When ~/.gemini/config/plugins/chemistry Exists)

Check [ -d ~/.gemini/config/plugins/chemistry ] first; if installed, use uv run ~/.gemini/config/plugins/chemistry/skills/cheminformatics_reactions/scripts/render_mechanism.py ... for curved Bézier electron-pushing arrows (attack, bond_cleave, lone_pair_to_bond, radical fishhooks) and prochirality.py for NMR topicity.


Teaching Pedagogy

  • Anchor named reactions in unconditional GOC roots (electronics + orbital alignment/sterics) so 80 recipes collapse into ~5 generating principles.
  • Drill near-twin reagent discrimination pairs (NaBH4 vs LiAlH4 vs DIBAL-H vs B2H6/THF; SOCl2 neat SNi retention vs SOCl2/Py SN2 inversion; HBr vs HBr/ROOR HBr-only rule), and persist traps immediately via srs_engine.py + mistake_analytics.py.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.