Skip to content

fix(meal-planning): follow the staples doc's three-list restructure in add-recipe - #188

Merged
st0nefish-ci[bot] merged 1 commit into
masterfrom
fix/add-recipe-staples-three-lists
Sep 2, 2026
Merged

fix(meal-planning): follow the staples doc's three-list restructure in add-recipe#188
st0nefish-ci[bot] merged 1 commit into
masterfrom
fix/add-recipe-staples-three-lists

Conversation

@St0nefish

Copy link
Copy Markdown
Owner

Why

The meal-planning KB and this plugin encode the same rules in two places, and
the KB half already changed. The staples document used to carry a single "do
not stock" section; it was restructured into three lists that do different
jobs (a ban list that changes a recipe, pantry staples that decide a shopping
line's class, and preferred substitutes that are offerable defaults). This
skill's add-recipe was still reading it the old way, pointing at a section
that no longer exists.

Nothing about that failure is loud. Nothing errors when a skill's fallback
role-search or its "apply this section" instruction points at a name the KB
no longer has — it just resolves to less than intended, or gets collapsed
into a single instruction where pantry-staple status quietly becomes a
reason to drop an ingredient. That's the actual bug this closes: recipes
were having ingredients wrongly deleted because "pantry staples" and "do not
stock" got applied as one thing.

What changed

  • Step 2 ("Conform it to the profile") now distinguishes the three
    lists explicitly, and states the rule that an ingredient absent from all
    three is simply bought — never omitted, never avoided.
  • Preflight fallback role-search list now names the three lists instead
    of the old "pantry staples and do-not-stock".
  • Retrofit mode gained a check for the inverse error: an ingredient
    removed from a recipe for not being a pantry staple. That's never a
    valid reason to drop something. A real instance of this was found and
    fixed in the KB while doing this work.

Test plan

  • .github/scripts/validate-plugins.sh — 301 checks, 0 failures
  • .github/scripts/validate-frontmatter.sh — 103 checks, 0 failures
  • rumdl check on the changed file — no issues
  • tests/test.sh — full suite run, see CI/comment for result

…n add-recipe

The staples document was restructured from a single do-not-stock list into
three lists that do different jobs: a ban list that changes a recipe, pantry
staples that decide a shopping line's class, and preferred substitutes that
are offerable defaults. add-recipe was still reading it as one list and
applying it as one instruction, which is what caused recipes to have
ingredients wrongly deleted -- pantry-staple status was being treated as a
reason to drop an ingredient instead of just a shopping classification.

- Step 2 now distinguishes the three lists and states the rule that an
  ingredient absent from all of them is simply bought, never omitted
- the preflight role-search fallback names the three lists instead of the
  old "pantry staples and do-not-stock"
- retrofit mode gained a check for the inverse error: an ingredient removed
  from a recipe for not being a pantry staple, which is never valid -- a
  real instance was found and fixed in the KB during this work

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0168tytbpHtdv621gFmipKbZ
Copilot AI lite review requested due to automatic review settings September 2, 2026 00:09
@St0nefish St0nefish self-assigned this Sep 2, 2026
@st0nefish-ci
st0nefish-ci Bot enabled auto-merge September 2, 2026 00:09

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The updates are internally consistent, remove outdated staples-doc references, and correctly separate “ban list” vs “pantry staples” behavior to address the described silent deletion bug.

Pull request overview

Updates the meal-planning plugin’s add-recipe skill instructions to match the KB staples document’s new three-list structure, preventing pantry-staple guidance from being misapplied as an ingredient-removal rule during recipe authoring and retrofits.

Changes:

  • Updates the preflight fallback role-search wording to reference the three staples lists (pantry staples, ban list, preferred substitutes).
  • Rewrites Step 2 (“Conform it to the profile”) to explicitly distinguish what each staples list does, including the rule that unlisted ingredients are bought (not omitted).
  • Extends retrofit guidance to detect and correct the “ingredient removed for not being a pantry staple” error case.
File summaries
File Description
plugins-claude/meal-planning/skills/add-recipe/SKILL.md Aligns add-recipe instructions with the staples doc restructure to prevent incorrect ingredient deletion and improve retrofit checks.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@st0nefish-ci
st0nefish-ci Bot merged commit 1b0edec into master Sep 2, 2026
7 checks passed
@st0nefish-ci
st0nefish-ci Bot deleted the fix/add-recipe-staples-three-lists branch September 2, 2026 00:13
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.

2 participants