I'm a PhD student in lightning and atmospheric physics at the University of Chinese Academy of Sciences (UCAS). Like a lot of people doing scientific computing lately, I've been using AI coding agents (Claude Code, Codex CLI, Gemini CLI) to write Python diagnostic scripts and data-processing pipelines.
They are great at getting boilerplate running quickly, but I kept hitting a frustrating problem: the code runs cleanly, throws zero exceptions, and even passes basic unit tests, yet silently breaks physics.
So I built PhysGate (MIT license, free and open-source)—a lightweight SKILL.md workflow (/physgate or $physgate) that gates AI coding agents behind executable physics contracts before any scientific code is accepted.
What PhysGate Actually Does
Instead of letting an agent jump straight into "vibe-coding" an implementation, /physgate forces it through four strict gates:
Socratic Alignment (QA_RAW.md → SPEC.md)
Before touching implementation code, the agent has
Discussion
Be the first to comment
Add your perspective to get the discussion started.