Skip to content
Back to skills

Physical Constants And Units

ASecurity

Look up physical constants, unit conversions, and derived scales (CODATA values) for any physics calculation; includes a Python helper and JSON data file. Use whenever a calculation needs fundamental constants, SI/CGS/natural-unit conversions, astronomical data, or energy-wavelength-temperature equivalences.

  • 8 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added November 9, 2026
ai-agentspythongit

Security analysis

A100/100

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

Scanned November 9, 2026

npx -y skills add hamzabellouch/agent-skills --skill physical-constants-and-units --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Physical Constants And Units?

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

Security grade badge for Physical Constants And Units
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/hamzabellouch-physical-constants-and-units/badge)](https://www.skillsdirectory.com/skills/hamzabellouch-physical-constants-and-units)

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: physical-constants-and-units
description: "Look up physical constants, unit conversions, and derived scales (CODATA values) for any physics calculation; includes a Python helper and JSON data file. Use whenever a calculation needs fundamental constants, SI/CGS/natural-unit conversions, astronomical data, or energy-wavelength-temperature equivalences."
---


# Physical Constants & Units

## Use
- Prefer `references/constants.json` (CODATA 2022; exact SI defining constants flagged) and `scripts/constants.py` helpers instead of recalling digits from memory.
- Run `python scripts/constants.py` to list everything, or `python scripts/constants.py G hbar` for specific values.

## Unit systems
- SI base: m, kg, s, A, K, mol, cd. Since 2019 h, e, k_B, N_A, c are exact.
- CGS (Gaussian) ↔ SI for EM: Coulomb law F = q1q2/r² (Gaussian) vs q1q2/4πε0r² (SI); B in gauss (1 T = 1e4 G); e²/ħc = α in Gaussian.
- Natural units ħ = c = 1: [E] = [mass] = [1/length] = [1/time]; ħc = 197.327 MeV·fm; 1 GeV⁻¹ = 0.1973 fm = 6.58e-25 s.
- Atomic units ħ = m_e = e = 4πε0 = 1: length a0, energy Hartree (27.211 eV), time 2.42e-17 s.
- Astronomical: AU, pc (3.26 ly), M☉, solar luminosity; Jansky 1e-26 W m⁻² Hz⁻¹.

## Handy equivalences
- 1 eV ≙ 11604.5 K ≙ 241.8 THz ≙ 1239.84 nm ≙ 8065.5 cm⁻¹
- Photon energy E[eV] = 1239.84/λ[nm]
- 1 u = 931.494 MeV/c²; m_e c² = 0.511 MeV; m_p c² = 938.272 MeV
- 1 Gauss = 1e-4 T; 1 atm = 101325 Pa; 1 cal = 4.184 J; 1 Å = 0.1 nm; 1 barn = 1e-28 m²

## Rules
Convert everything to a single system before calculating; keep units in the working; report with appropriate significant figures; cite the constant set (CODATA year).

Files in this skill

  • SKILL.md1.7 KB
  • references/constants.json2.7 KB
  • scripts/constants.py1.1 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.