unitsPerform unit conversions and calculations using GNU Units.
Install via ClawdBot CLI:
clawdbot install Asleep123/unitsRequires:
Use GNU units to perform unit conversions and calculations via the command line. Can be installed using brew and apt under "units".
Use the bash tool to run the units command. Use the -t (terse) flag to get just the numeric result.
units -t 'from-unit' 'to-unit'
Basic Conversion:
units -t '10 kg' 'lbs'
# Output: 22.046226
Compound Units:
units -t '60 miles/hour' 'm/s'
# Output: 26.8224
Temperature (Non-linear):
Temperature requires specific syntax: tempF(x), tempC(x), tempK(x).
units -t 'tempF(98.6)' 'tempC'
# Output: 37
Time:
units -t '2 weeks' 'seconds'
Rounding Output:
To round to specific decimal places (e.g. 3 places), use -o "%.3f":
units -t -o "%.3f" '10 kg' 'lbs'
# Output: 22.046
Definition Lookup:
To see what a unit definition is (without converting), omit the second argument (without -t is more verbose/useful for definitions):
units '1 acre'
units supports currency (USD, EUR, etc.), but exchange rates may be out of date as they are static in the definitions file.units -t '1/2 inch' 'mm').Generated Mar 1, 2026
Engineers use this skill to convert units during design phases, such as converting force from newtons to pounds-force for structural analysis or converting fluid flow rates between liters per minute and gallons per hour. It ensures accuracy in specifications and compliance with international standards, reducing errors in technical documentation.
Researchers apply the skill to convert measurement units in experimental data, like transforming temperature readings from Celsius to Kelvin for physics experiments or converting energy units from joules to electronvolts in chemistry studies. This facilitates data comparison across studies and adherence to publication requirements in academic journals.
Logistics professionals utilize the skill to convert weight and volume units for shipping calculations, such as converting kilograms to pounds for cargo weight limits or cubic meters to cubic feet for container space optimization. It helps in cost estimation, regulatory compliance, and efficient resource allocation in global trade operations.
Chefs and food service managers use the skill to adjust recipe quantities by converting units like grams to ounces for ingredients or liters to cups for liquids when scaling up production. This ensures consistency in food quality, minimizes waste, and supports menu planning in restaurants and catering businesses.
Accountants employ the skill for basic currency conversions in financial reports, such as converting USD to EUR for international transactions, though exchange rates may be static. It aids in preliminary budget analysis and multi-currency bookkeeping, though real-time rates should be verified for accuracy in final documents.
Integrate the skill into a cloud-based platform as a microservice for unit conversions, offering APIs to developers for embedding in engineering software or e-commerce sites. Revenue is generated through subscription tiers based on usage volume and premium features like real-time currency updates, targeting tech companies and enterprises.
Create online courses or tutorials that teach unit conversion techniques using this skill, aimed at students and professionals in STEM fields. Revenue comes from course sales, certification programs, and partnerships with educational institutions, leveraging the skill's simplicity to build practical learning modules.
Offer consulting services to help businesses implement accurate unit conversions in their operations, such as ensuring manufacturing specs meet international standards or optimizing logistics calculations. Revenue is based on project-based contracts and ongoing support fees, focusing on industries with strict regulatory requirements.
💬 Integration Tip
Always quote unit strings in commands to prevent shell errors, and use the -t flag for numeric outputs to simplify parsing in automated scripts.
Advanced filesystem operations - listing, searching, batch processing, and directory analysis for Clawdbot
Perform advanced filesystem tasks including listing, recursive searching by name or content, batch copying/moving/deleting files, and analyzing directory siz...
Essential SSH commands for secure remote access, key management, tunneling, and file transfers.
Extract text from PDF files for LLM processing
The directory for AI agent services. Discover tools, platforms, and infrastructure built for agents.
Advanced filesystem operations - listing, searching, batch processing, and directory analysis for Clawdbot