| name | energy-converter |
| description | Convert energy units between electronvolts and joules. |
Energy Converter Skill
Use this skill when the user asks to convert an energy value between electronvolts and joules.
Instructions
- Extract the energy and its unit from the user query.
- The user may use symbols.
eV represents electronvolt and J represents joule.
keV means 10^3 eV, MeV means 10^6 eV, GeV means 10^9 eV, and TeV means 10^12 eV.
- Run the following script to convert units, passing the value, source unit, and target unit.
python3 scripts/converter.py 1.5 GeV J
- Use
eV, keV, MeV, GeV, TeV, or J as the target unit. For example, convert joules back to electronvolts with:
python3 scripts/converter.py 2.403264951e-10 J GeV
- Present the conversion result clearly and professionally to the user.