Skip to content

feat(skills): bundle log-food Claude Code skill in-repo#39

Merged
phitoduck merged 1 commit into
mainfrom
feat/skill-log-food
Jun 12, 2026
Merged

feat(skills): bundle log-food Claude Code skill in-repo#39
phitoduck merged 1 commit into
mainfrom
feat/skill-log-food

Conversation

@phitoduck

Copy link
Copy Markdown
Owner

Summary

Moves the `log-food` Claude Code skill out of phitoduck/private-claude-marketplace and into this repo. The skill lives next to the CLI it drives, so contract changes (CLI surface) and consumer changes (skill prose) ship in the same git history.

What changed

  • `skills/log-food/SKILL.md` — full rewrite for the post-overhaul CLI:
  • `.claude-plugin/marketplace.json` + `.claude-plugin/plugin.json` — makes the repo a Claude Code marketplace exposing the `log-food` plugin.
  • README "Claude Code skill" section — install via:
    ```bash
    claude plugin marketplace add phitoduck/lose-it
    claude plugin install log-food@lose-it
    ```

Catalog reset

The stale `~/.config/loseit/my-foods.toon` cache (built against the pre-overhaul `--grams` workflow with hardcoded pick indices) was backed up to `my-foods.toon.bak.` outside this PR. The new skill doesn't rely on a catalog at all — `describe-food` does the same inspection job inline and gives correct results on the first try.

Follow-up

Separate PR on `phitoduck/private-claude-marketplace` will remove the now-orphaned skill and update its README to point here.

Test plan

  • `uv run ruff check`, `ruff format --check`, `pytest tests/ --ignore=tests/functional` — 155 passing, all gates green
  • `.claude-plugin/marketplace.json` validates against the documented schema
  • SKILL.md frontmatter has `name`, `description`, `triggers` (matches phitoduck-skills format)

Moves the log-food skill out of phitoduck/private-claude-marketplace and
into this repo so the skill lives next to the CLI it drives — easier to
keep in sync, and one git history covers both the contract (CLI surface)
and the consumer (skill prose).

What's new:
- skills/log-food/SKILL.md — full rewrite for the post-overhaul CLI.
  Replaces the old 14-pick Python probe workflow with describe-food
  (one batched concurrent fetch returning labeled per-serving data).
  Uses TOON output throughout (40-60% fewer tokens in context).
  --serving-amount + --serving-unit replace the legacy --grams flag.
  Diary readback uses labeled keys (food_measure_unit, nutrients_by_label)
  instead of ordinal-keyed dicts. Documents --log-level trace +
  --log-headers + chrome-mcp as last-resort debugging.
- .claude-plugin/marketplace.json + plugin.json — makes the repo
  itself a Claude Code marketplace exposing the log-food plugin.
- README "Claude Code skill" section with install via:
    claude plugin marketplace add phitoduck/lose-it
    claude plugin install log-food@lose-it

The old phitoduck/private-claude-marketplace removal is a separate PR.
@phitoduck phitoduck merged commit 9f3e467 into main Jun 12, 2026
1 check passed
@phitoduck phitoduck deleted the feat/skill-log-food branch June 12, 2026 05:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant