# Computational Physics Ts

> Build stable, scientifically accurate physics engines in TypeScript that work perfectly in any browser.

Computational Physics Ts is a paid AI agent skill on Agensi by Andres Lopez, in Frontend & Web Apps. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $4 (one-time purchase)
- Creator: [Andres Lopez](https://www.agensi.io/creators/andruu)
- Category: [Frontend & Web Apps](https://www.agensi.io/skills/frontend-web-apps)
- Version: 1.0
- Last updated: 2026-12-04
- Security: scan passed (2026-12-04); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/computational-physics-ts
- Tags: web-design, typescript, physics-engine, numerical-methods, simulation

## What it does

- Architects physics engines in TypeScript that keep math separate from visual code
- Uses real-world SI units to ensure calculations match physical reality
- Prevents particles from spiraling out of control using stable math integrators
- Fixes simulation speed so it runs the same on every monitor and refresh rate
- Provides templates for complex math like magnetic dipoles and spherical flux
- Guards against math errors like dividing by zero or infinite energy gains

## Who it's for

- **Developers building web-based physics simulations:** Build accurate, stable physics engines in TypeScript that work perfectly across different screen refresh rates. Try: "Build a magnetic field simulator in TypeScript using the Boris Pusher method."
- **Science educators creating interactive lab tools:** Create virtual experiments that follow real physics laws without mathematical errors or "magic" energy gains. Try: "Create a simulation of particles moving through an electric field with SI units."
- **Engineers prototyping numerical solvers in the browser:** Implement high-accuracy math for fields and particles without fighting UI framework bugs. Try: "Write a function to calculate magnetic flux over a disk using Gauss-Legendre quadrature."

## About this skill

When you build physics simulations for the web, typical coding tricks often break the laws of science. Particles might gain "fake" energy and fly off screen, or the simulation might run at different speeds on different monitors. This skill helps your AI agent architect and write TypeScript code for physics engines that are mathematically accurate and stable.

### How it works
1. You describe the physical system you want to simulate, like a planet's magnetic field or a particle accelerator.
2. The skill guides your AI agent to separate the math from the visuals, ensuring the physics stays "pure" and independent of your UI.
3. Your AI agent writes the specific math functions needed, such as solvers that prevent numerical drift or tools for measuring field strength.
4. You receive clean TypeScript code that uses real-world units and stays stable over time.

### Frameworks & tools
This skill focuses on pure TypeScript and SI units. It provides strategies for integrating with browser APIs like requestAnimationFrame and tools for numerical integration.

### Why this beats prompting it yourself
Standard AI prompts often produce "game physics" which looks okay but fails real science tests. This skill forces the use of specific high-accuracy methods like the Boris Pusher or RK4, which stop particles from spiraling out of control. It also ensures the simulation speed is the same on a 60Hz or 144Hz screen by using a fixed-timestep approach.

### Use cases
- Building a browser-based lab for electromagnetism or plasma physics.
- Creating an interactive tool to visualize 3D magnetic field lines.
- Developing a simulation of charged particles in a vacuum.
- Calculating complex integrals for surfaces or loops in a web app.

### Known limitations
This skill handles the math and logic, not the 3D rendering or GPU shaders. It assumes a basic understanding of vector math.

## Technical details

Implements Symplectic Boris Pusher, Runge-Kutta 4 (RK4), and Gauss-Legendre quadrature in TypeScript. Uses fixed-timestep accumulators to decouple simulation logic from requestAnimationFrame. Enforces strict UI/Physics isolation and SI unit consistency. Includes regularization strategies for 1/r^2 and 1/r^3 singularities.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Computational Physics Ts skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### Why should I use this instead of just asking my AI to write a physics engine?

Standard AI coding often results in physics that look right but break scientific laws, such as particles gaining fake energy or simulations running at different speeds on different monitors. This skill forces your AI to use mathematically accurate methods that keep particles on their real physical paths and ensures the simulation speed stays the same regardless of the screen refresh rate.

### What kind of code will my AI agent produce with this skill?

You get pure TypeScript code that handles all the math and logic of the simulation. This code is kept completely separate from any visuals or website frameworks, and it uses real world units like meters and seconds instead of arbitrary pixels.

### Do I need to install anything special to use the physics engines this creates?

You do not need any special software or accounts. However, you should have a basic understanding of vector math, as the skill focuses on the core logic rather than the visual 3D rendering or graphics shaders.

### What are the best uses for this skill?

This skill is ideal for building browser based science labs or interactive tools for electromagnetism and plasma physics. It is specifically designed for simulating charged particles in vacuums, calculating complex magnetic field lines, and measuring field strength through surfaces.

### Are there any parts of a physics app that this skill does not handle?

The skill handles the heavy lifting of math and physics logic, but it does not write the code for 3D rendering or GPU shaders. You will still need to connect the resulting physics code to your preferred visual tool to see the simulation on screen.

### How do I tell my AI agent to start building with this?

Simply tell your AI agent to architect a physics engine using SI units and pure TypeScript. You can specify the physical system you want to simulate, such as a particle accelerator or a magnetic field, and the agent will use the skill to ensure the math is stable and scientifically accurate.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
