SkillAgentSearch skills...

Calorific

Command-line nutrient tracking tool

Install / Use

/learn @peterkeen/Calorific
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Calorific

This is a command-line nutrient tracking tool. It allows you to track calories, protein, or whatever nutrients you want to track by creating "recipes" and dated entries that use those recipes. Calorific's input format is a standard YAML file.

Here's a sample Calorific input file:

<pre> - 1 egg: [ 90 kcal, 8 prot ] - 1 slice Dave's Killer Bread (whole wheat): [ 100 kcal, 5 prot ] - 2 tbsp crunchy peanut butter: [ 210 kcal, 7 prot ] - 1 cup whole milk: [ 120 kcal, 8 prot ] - 2 scoop Trader Joe's protein shake mix: [ 130 kcal, 16 prot ] - 1 Trader Joe's protein shake: - 1.5 cup whole milk - 2 scoop Trader Joe's protein shake mix - 1 workout breakfast: - 2 egg - 2 tbsp crunchy peanut butter - 2 slice Dave's Killer Bread (whole wheat) - 1 Trader Joe's protein shake - 2010-03-31 breakfast: - 1 workout breakfast - 2010-04-06 breakfast: - 2 slice Dave's Killer Bread (whole wheat) - 2 tbsp crunchy peanut butter </pre>

And here's the default output for it:

<pre> $ calorific -f sample.yaml 2010-03-31 <total> 900 kcal 61 prot 2010-04-06 <total> 410 kcal 17 prot </pre>

Entries are really just dated recipes, so anything can go in them. This is perfectly valid:

<pre> - 2010-04-07 lunch: - 1 pizza leftovers: 500 kcal - 1 soda: 300 kcal </pre>

Installation

Calorific isn't quite ready for the CPAN yet, so installation is only recommended for the brave. First, clone this project. Then, run these commands:

<pre> perl ./Build.PL ./Build sudo ./Build install </pre>

from the root of your clone and wait for the dependencies to build. We depend on Moose and YAML::XS, among other things, so if you don't ahve this stuff already this could take awhile. Eventually you'll end up with a 'calorific' program in your bin directory.

View on GitHub
GitHub Stars79
CategoryDevelopment
Updated11d ago
Forks3

Languages

Perl

Security Score

80/100

Audited on Mar 27, 2026

No findings