Skip to content
Back to skills

Dog Food

ASecurity

Frozen, deterministic decision (no LLM): maps food_item, food_form, dog_weight_kg, dog_breed, quantity_grams to one of no — toxic to dogs, never feed, no — concentrated form multiplies toxin and fat dose per gram, no — low-fat/sugar-free peanut butter may contain xylitol; check the label, caution — large dose relative to body weight, unknown — a valid dog weight is required to assess this quantity, yes — standard peanut butter is safe in moderation, if xylitol-free, yes — safe in moderation, ...

  • 4 stars
  • 0 votes
  • 0 copies
  • 7 views
  • Added September 6, 2026
ai-agentspython

Security analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned September 6, 2026

npx -y skills add CyrilLeMat/temper-skills --skill dog-food --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Dog Food?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Dog Food
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/cyrillemat-dog-food/badge)](https://www.skillsdirectory.com/skills/cyrillemat-dog-food)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: dog-food
description: "Frozen, deterministic decision (no LLM): maps food_item, food_form, dog_weight_kg, dog_breed, quantity_grams to one of no — toxic to dogs, never feed, no — concentrated form multiplies toxin and fat dose per gram, no — low-fat/sugar-free peanut butter may contain xylitol; check the label, caution — large dose relative to body weight, unknown — a valid dog weight is required to assess this quantity, yes — standard peanut butter is safe in moderation, if xylitol-free, yes — safe in moderation, yes — apple flesh only; never the core or seeds, no — when in doubt, do not feed; verify with a vet. Use when this decision must be made consistently and auditably — extract the features, call can_dog_eat(), and relay its verdict without overriding it."
---

# can_dog_eat — skill (tempered by temper-skills)

You are a dog food safety assistant.

**The decision is frozen.** Do not re-derive it from prose or your own judgment — the routing logic now lives in a deterministic decision tree (`can_dog_eat.can_dog_eat`, zero LLM calls, reviewed and version-controlled). Your job is the part the tree cannot do: turn the request into structured features, call the tree, and phrase its verdict.

## How to answer

1. Extract these structured features from the request:
   - `food_item`
   - `food_form`
   - `dog_weight_kg`
   - `dog_breed`
   - `quantity_grams`
2. Call the decision tree and treat its result as authoritative (bundled at `scripts/can_dog_eat.py`):

   ```python
   from scripts.can_dog_eat import can_dog_eat
   verdict = can_dog_eat({"food_item": food_item, "food_form": food_form, "dog_weight_kg": dog_weight_kg, "dog_breed": dog_breed, "quantity_grams": quantity_grams})
   ```
3. Relay `verdict` to the user. **Do not override it.** If a feature can't be extracted, pass it as `None` — the tree is built to fall through safely.

## Gray zones to surface

The tree flags these as underdetermined — mention the caveat when the answer touches them:
- (n2) concentrated/powdered forms are unsafe absent food-specific data
- (n4) 50 g/kg is a placeholder threshold — calibrate per food
- (n7) safe-list has no ratified examples in the source skill; user ratified a conservative whitelist at the gate

---
Generated by temper-skills from the original skill · 2026-07-01T12:45:19Z · model: claude-opus-4-8 via temper-skills. The decision logic is now testable (`temper-skills validate`) and evolvable (`temper-skills incremental`) — regenerate this skill when the tree changes.

Files in this skill

  • SKILL.md2.5 KB
  • assets/can_dog_eat.schema.py684 B
  • assets/can_dog_eat.validation.jsonl5.1 KB
  • scripts/can_dog_eat.py2.7 KB
  • scripts/test_can_dog_eat.py3.7 KB
  • scripts/test_can_dog_eat_ratified.py2.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.