Maybe you're looking for a more efficient way to calculate food nutrition?
Honestlychecking nutrition tables every time you eat or slowly searching in a mobile app is pretty annoyingEspecially for someone like me who cooks oftencalculating the caloriesproteinand fat of a meal feels more exhausting than cooking itselfBut recentlyI discovered something great—Nutrition Pro CLIa completely command-line based open-source nutrition toolIt feels like something from the Matrix; just type a few commands and you're done.
This skill is a sub-project called nutrition-pro from the nutrition-cli repository by javi23ruiz on GitHubIt's essentially a Node.js command-line programbut after installing it via the npx skills mechanismit becomes a skill you can call anytimeWhen I first saw itI was skeptical: "Eat something and I need to open a terminal? Isn't that too geeky?" But after actually using itit's amazing!
What exactly can it do?
Simply putthis skill helps you:
- Search food nutrition data: Enter a food name (supports both Chinese and English)and it returns per 100g values for caloriesproteinfatcarbsdietary fiberetc.
- Log daily diet: Record what you ate and the weightand it will automatically accumulate the nutrition indicators.
- Set goals: You can set your daily calorie or protein goalsthen check if you're on track.
- Generate statistical reports: View intake trends over the past week or distribution of a specific nutrient.
- Export data: Export records as CSV or JSON for deeper analysis.
All these operations are done through the command lineFor exampleif you want to check the nutrition of "chicken breast"just type nutrition-pro search chicken breast in the terminaland the next second you'll see output like "Per 100g: Calories 165Protein 31gFat 3.6g"To record that you ate 200g of chicken breast for breakfasttype nutrition-pro log chicken breast --amount 200Simple as that!
How to install? Here's how
Installation is super easyas long as you have Node.js (version 14 or above) on your computerThen open the terminal and run this single command:
npx skills add https://github.com/javi23ruiz/nutrition-cli --skill nutrition-pro
Once it finishes downloading and extractingyou have the skillNote that the npx skills system handles dependencies automaticallyso it's basically a one-command setupIf you preferyou can also download the ZIP package from the GitHub repository and manually extract it to a directory.
Of courseif you're using the "" platform (don't ask me what that is—just a cool terminal tool)you can directly click the "Run in " button at the top of the pagewhich will automatically configure the runtime environment and start it with one click.
First-time usage notes
I made a mistake the first time I used it—I forgot to initialize the configurationAfter running the install commandI immediately searched for foodand it gave an errorAfter checking the ONBOARDING.md documentI realized I needed to run nutrition-pro init first to generate a configuration filewhere you can set your default unit (grams or ounces)weightactivity leveletcAfter initializationit also automatically downloads a local nutrition database (about tens of megabytes)so the first time it'll be slowerbut subsequent uses are smooth.
Alsothe database is based on the public USDA dataso it's best to use English or pinyin for food nameslike "apple""chicken breast"Some Chinese foods are supportedbut not as comprehensiveI usually search in English for better accuracy.
Some super practical tips
- Batch logging: If you have a meal with multiple foodsyou can log them all in one commande.g
nutrition-pro log --file meal.txtwhere you write the foods and weights in a text file in the specified formatand it imports everythingSaves you from typing each one. - Custom foods: If an ingredient is not in the databaseyou can add your own nutrition data using
nutrition-pro add-customso even homemade items can be included. - Command aliases: To be lazierI set an alias
npfornutrition-proin myzshrcso daily logging is as fast asnp log chicken 200. - Scheduled reminders: Although the skill itself doesn't have push notificationsyou can combine it with a cron job to automatically remind yourself to log your diet at a specific time each dayFor examplerun
nutrition-pro remindat 8 PM to check if you've already logged.
Practical use cases
I think this skill is best suited for:
- Fitness/bulking or cutting individuals: Precisely calculate daily proteincarbsand fat intakecombined with training planswith visible results.
- People with diabetes or special dietary needs: Track carbohydrate and sugar intake to help control blood sugar.
- Programmers/geeks: If you love doing everything in the terminal and wish you could even eat via command linethis tool is tailor-made for you.
- Nutritionists or researchers: Batch process food data and export for statistical analysis.
PersonallyI'm using it for fat lossAfter about two weekscombined with exercisemy weight dropped by 2 kgAnd because the records are detailedI know exactly what I've eatengiving me peace of mindCompared to mobile appsthis command-line tool has no distracting ads or unnecessary features—it's purely focused on nutrition tracking.