agentleFS
cooklangcooklang/cooklang-skills/skills/manage-pantry/SKILL.md

manage-pantry

Skill8 starsChanged 10 months agoMITView on GitHub

Track kitchen inventory, find expiring items, and discover recipes you can make now

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 4 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill when:

    line 16
  2. Very specific:

    Create or update config/pantry.conf:

    line 26
  3. Distinctive:

    When you cook a recipe, update quantities:

    line 66
  4. Distinctive:

    Add newly purchased items with quantities and expiration dates.

    line 72
  5. Distinctive:

    Add new items with quantities

    line 195
  6. Very specific:

    Check cook pantry depleted before shopping

    line 206

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Manage Pantry

Overview

Track what's in your kitchen using CookCLI's pantry features:

  • Maintain inventory in pantry.conf
  • Track expiration dates
  • Find items running low
  • Discover recipes you can make with what you have

Use this skill when:

  • Setting up pantry tracking
  • Checking what's about to expire
  • Deciding what to cook based on available ingredients
  • Updating inventory after shopping or cooking

Process

Step 1: Set Up Pantry File

Create or update config/pantry.conf:

[pantry]
flour = "2%kg"
sugar = "1%kg"
rice = "500%g"

[fridge]
milk = { quantity = "1%L", expire = "2026-01-28" }
eggs = "12"
butter = "250%g"

[freezer]
chicken breast = "1%kg"
frozen peas = "500%g"

Step 2: Check Status

Find depleted items:

cook pantry depleted

Find expiring items:

cook pantry expiring --days 7

Step 3: Find Recipes

What can I make now?

cook pantry recipes

Shows recipes where you have all (or most) ingredients.

Step 4: Update After Cooking

When you cook a recipe, update quantities:

  • Subtract used ingredients
  • Note items that are now low

Step 5: Update After Shopping

Add newly purchased items with quantities and expiration dates.

Examples

User: "Set up pantry tracking"

Created config/pantry.conf:

# Kitchen Inventory
# Update quantities after shopping and cooking

[pantry]
# Dry goods - no expiration needed
flour = "2%kg"
sugar = "1%kg"
rice = "1%kg"
pasta = "500%g"
olive oil = "500%ml"
soy sauce = "200%ml"
salt = "500%g"
black pepper = "100%g"

[fridge]
# Fresh items - track expiration
milk = { quantity = "1%L", expire = "2026-01-28" }
eggs = { quantity = "12", expire = "2026-02-05" }
butter = "250%g"
parmesan = { quantity = "200%g", expire = "2026-02-15" }
cream = { quantity = "250%ml", expire = "2026-01-25" }

[freezer]
# Frozen items - longer dates
chicken breast = "1%kg"
ground beef = "500%g"
frozen peas = "500%g"

User: "What's expiring soon?"

Run:

cook pantry expiring --days 7

Output:

Items expiring within 7 days:

URGENT (1-2 days):
- cream: 250ml (expires Jan 25)

THIS WEEK:
- milk: 1L (expires Jan 28)

Suggestion: Use cream in Pasta Carbonara or Mushroom Risotto

User: "What can I make with what I have?"

Run:

cook pantry recipes

Output:

Recipes you can make now:

COMPLETE (have all ingredients):
- Pasta Aglio e Olio
- Fried Rice
- Scrambled Eggs

ALMOST (missing 1-2 items):
- Carbonara (need: pancetta)
- Stir Fry (need: vegetables)
- Pancakes (need: baking powder)

Reference

Pantry.conf Format

[section]
# Simple quantity
ingredient = "quantity%unit"

# With expiration
ingredient = { quantity = "amount%unit", expire = "YYYY-MM-DD" }

# With purchase date and low threshold
ingredient = { quantity = "1%kg", bought = "2026-01-15", low = "100%g" }

Sections: [pantry], [fridge], [freezer], or custom

CookCLI Pantry Commands

# Items that are low or out
cook pantry depleted

# Expiring within N days
cook pantry expiring --days 7
cook pantry expiring --days 3

# Recipes you can make
cook pantry recipes

Inventory Attributes

AttributePurposeExample
quantityAmount you have"500%g"
expireExpiration date"2026-02-15"
boughtPurchase date"2026-01-10"
lowLow stock threshold"100%g"

Maintenance Tips

After shopping:

  • Add new items with quantities
  • Update expiration dates
  • Reset quantities for restocked items

After cooking:

  • Subtract used ingredients
  • Note items now running low

Weekly:

  • Check cook pantry expiring --days 7
  • Plan meals around expiring items
  • Check cook pantry depleted before shopping

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.