agentleFS
HridayKapoorHridayKapoor/syntopik/.agents/skills/physics-circuits-and-units/SKILL.md

physics-circuits-and-units

Skill0 starsChanged 8 days agoMITView on GitHub

Render verified circuit schematics and parametric physics diagrams (FBDs, pulleys, optics, fields, projectiles) and deterministically verify symbolic math, ODEs, error propagation, and units.

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 1 is distinctive, and 2 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.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Never draw ASCII circuits, eyeball ray angles or force vectors, or guess SI/CGS conversions.

    line 11
  2. Very specific:

    Mandatory visual check: always inspect generated PNGs via read_file / Read to verify crisp labels and zero overlapping nodes before …

    line 24
  3. Very specific:

    Use physics_draw.py whenever Mechanics, Ray Optics, or Electrostatics requires exact angles, focal lengths, vector proportions, or Total …

    line 30

≈ “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

Physics Diagrams, Circuits, Units & Deterministic Verification

Never draw ASCII circuits, eyeball ray angles or force vectors, or guess SI/CGS conversions. Verify every physics calculation and figure deterministically across any harness.

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


1. Textbook-Grade Circuit & Digital Logic Schematics (scripts/circuit_draw.py)

  • Quick presets (rc, rl, lcr, wheatstone, divider, kirchhoff):
    syntopik run circuit_draw preset wheatstone --dark --out demos/wheatstone.png
  • Declarative JSON spec (syntopik run circuit_draw spec <file.json> --out demos/<slug>.png --dark) supporting multi-loop bridges, switches, logic gates (And/Or/Not/Nand/Nor/Xor/Xnor), transistors, meters, and current arrows.
  • Mandatory visual check: always inspect generated PNGs via read_file / Read to verify crisp labels and zero overlapping nodes before presenting.

2. Precision Parametric Physics Diagrams (scripts/physics_draw.py)

Use physics_draw.py whenever Mechanics, Ray Optics, or Electrostatics requires exact angles, focal lengths, vector proportions, or Total Internal Reflection (--out <path.svg|path.png>, --theme light|dark, --dpi 220, --json):

# Free-Body Diagram on incline (computes N, friction, netForce, acceleration, regime):
syntopik run physics_draw fbd-incline --angle 30 --mass 2 --mu 0.2 --show-components --theme dark --out demos/fbd-incline.png --json

# Pulley systems (atwood | incline-pulley | table-pulley):
syntopik run physics_draw pulley --preset incline-pulley --m1 4 --m2 2 --angle 30 --mu 0.1 --out demos/pulley.png --json

# Ray Optics — Thin Lens (Cartesian sign convention: object left -> u < 0; handles u == -f):
syntopik run physics_draw optics-lens --f 15 --u -30 --h 4 --out demos/lens.png --json

# Ray Optics — Spherical Mirror (concave | convex; handles u == f cleanly):
syntopik run physics_draw optics-mirror --type concave --f -15 --u -25 --h 4 --out demos/mirror.png --json

# Ray Optics — Prism (exact Snell's law, --min-dev, automatic TIR when r2 > theta_c):
syntopik run physics_draw optics-prism --A 60 --n 1.5 --min-dev --out demos/prism.png --json

# 2D Electric Field Lines + Equipotentials:
syntopik run physics_draw field-charges --charges "1,-1.5,0;-1,1.5,0" --equipotentials --out demos/dipole.png --json

# Projectile Motion (level ground or inclined plane --incline beta):
syntopik run physics_draw projectile --v0 20 --angle 45 --incline 15 --out demos/projectile.png --json
  • Mandatory visual check: inspect the rendered PNG via read_file / Read before presenting (and embed inline via visual-and-demo when teaching).

3. Deterministic Symbolic Math, ODEs, Error Propagation & Units (scripts/math_verify.py)

syntopik run math_verify eval "integrate(x*exp(-x), (x, 0, oo))"
syntopik run math_verify check-eq "sin(2*x)/(1 + cos(2*x))" "tan(x)"
syntopik run math_verify small-osc "U0*(1 - cos(alpha*x))" --x0 0
syntopik run math_verify units "1 atm * L" --to "J"
syntopik run math_verify check-dim "sqrt(k/m)" --defs "k=N/m,m=kg" --expect "1/s"
syntopik run math_verify error-prop "g = 4*pi**2*L/T**2" --vals "L=1.00+-0.01,T=2.00+-0.02"

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.