AGENT SKILL

dog-day

Tempered orchestrator: chains frozen, deterministic decision trees (decide_walk, decide_meal, decide_vet) and keeps only the generative note. Use to run a daily dog-care flow with each decision made by code (no LLM) and only the prose left to the model.

License 许可
Apache-2.0
最近更新
2026-08-13
Stars
★ 4
Forks
0

01 前言 Front Matter

name
dog-day
description
Tempered orchestrator: chains frozen, deterministic decision trees (decide_walk, decide_meal, decide_vet) and keeps only the generative note. Use to run a daily dog-care flow with each decision made by code (no LLM) and only the prose left to the model.

02 资源文件 12

03 SKILL.md 正文

dog-day — orchestrator (tempered by temper-skills)

You are an assistant.

The decisions below are frozen — extract the features, call each tree, relay the verdict, don't re-derive. Only the generative step(s) are yours to phrase. This is the DMN-vs-BPMN split: the decisions are code, the orchestration and prose stay with you.

1. decide_walk — frozen

Extract hours_since_last_walk, weather, temperature_c, dog_energy, owner_available, is_late, then:

from scripts.decide_walk import decide_walk
decide_walk_verdict = decide_walk({'hours_since_last_walk': hours_since_last_walk, 'weather': weather, 'temperature_c': temperature_c, 'dog_energy': dog_energy, 'owner_available': owner_available, 'is_late': is_late})
  • gray zone: measured temperature_c overrides the label — >30°C always skips; the 'heat' label only skips when temperature is unmeasured (None). snow/cold carry no branch (source is silent) and degrade to normal_walk.
  • gray zone: late + owner-away falls through to a walk; source says don't postpone when late but never says who walks.

2. decide_meal — frozen

Chained: feed the outcome of decide_walk into the matching feature below. Extract hours_since_last_meal, time_of_day, last_meal_size, just_exercised, minutes_since_exercise, had_full_meal_today, then:

from scripts.decide_meal import decide_meal
decide_meal_verdict = decide_meal({'hours_since_last_meal': hours_since_last_meal, 'time_of_day': time_of_day, 'last_meal_size': last_meal_size, 'just_exercised': just_exercised, 'minutes_since_exercise': minutes_since_exercise, 'had_full_meal_today': had_full_meal_today})
  • gray zone: Evening skip keys on the whole-day had_full_meal_today (added via schema re-gate r1); last_meal_size=='full' is only the fallback when the flag is None. Overlap case [evening + already_full + just_exercised + minutes<30] resolves to treat_only, not wait_then_full_meal, because promising a full meal would violate the 'a treat at most' cap — the four-outcome set can't say 'wait, then a treat', so offer the treat once the dog settles.
  • gray zone: Within 30 min of exercise (or unknown timing) rest first; None minutes_since_exercise is treated as still-resting (conservative, honors 'never feed within 30 min').
  • gray zone: just_exercised is the governing exercise predicate; a stale minutes_since_exercise with just_exercised False is correctly ignored.
  • gray zone: Ate nothing today -> a real meal, not the token light_meal default.

3. decide_vet — frozen

Extract symptom, severity, duration_hours, age_years, then:

from scripts.decide_vet import decide_vet
decide_vet_verdict = decide_vet({'symptom': symptom, 'severity': severity, 'duration_hours': duration_hours, 'age_years': age_years})
  • gray zone: puppy(<1)/senior(>8) lower threshold applies even to a mild & brief symptom, so they never reach the monitor branch.

Then — generation, yours

  • Write the owner a short, warm summary: the walk call, the meal plan, any vet guidance, and anything to watch. This step is not frozen — phrase it naturally.

Generated by temper-skills decompose --temper-each. Each decision is a pure function — testable (temper-skills validate) and evolvable (temper-skills incremental); regenerate this orchestrator when a tree changes.

04 同仓库更多 Skills

CyrilLeMat
CyrilLeMat/temper-skills

temper-skills

Give an agent skill's decision logic a test suite and a deterministic implementation — a labeled validation dataset plus versionable Python — by driving the installed temper-skills CLI (never reimplementing the logic in prose). Use in agents without a native subagent primitive (Cursor, Hermes, generic tools) when the user wants to test, eval, audit, temper, freeze, or harden the routing/decision logic of a prompt, skill.md, or playbook ("test my skill", "what is this skill deciding?"), including auditing a whole skills directory; requires `pip install temper-skills` and a model backend (a logged-in claude/opencode CLI or an API key). Not for continuous scoring, text generation, or logic with no documentation the model can reach.

★ 4
CyrilLeMat
CyrilLeMat/temper-skills

ticket-routing

Frozen, deterministic decision (no LLM): maps priority, security_score, customer_tier, category, sla_breached to one of human_review, escalate_security, escalate_urgent, route_billing, route_engineering, route_default. Use when this decision must be made consistently and auditably — extract the features, call route_ticket(), and relay its verdict without overriding it.

★ 4
CyrilLeMat
CyrilLeMat/temper-skills

input

暂无简介

★ 4
CyrilLeMat
CyrilLeMat/temper-skills

parking

Frozen, deterministic decision (no LLM): maps zone_type, day, hour, is_public_holiday, has_resident_permit to one of prohibited, no_parking_street_cleaning, pay_and_display_2h, free, permit_required. Use when this decision must be made consistently and auditably — extract the features, call can_i_park(), and relay its verdict without overriding it.

★ 4
CyrilLeMat
CyrilLeMat/temper-skills

input

暂无简介

★ 4
CyrilLeMat
CyrilLeMat/temper-skills

license-compat

Frozen, deterministic decision (no LLM): maps project_license, dependency_license, linking, distributing, modified_dependency to one of ok_internal_use, must_offer_source, project_must_be_gpl, compatible, incompatible, review_required. Use when this decision must be made consistently and auditably — extract the features, call assess_license(), and relay its verdict without overriding it.

★ 4