AGENT SKILL

ankle-sprain

Frozen, deterministic decision (no LLM): maps pain_malleolar_zone, bone_tenderness_lateral_malleolus, bone_tenderness_medial_malleolus, can_bear_weight, visible_deformity, sprain_grade, hours_since_injury, age_years, patient_profile to one of urgent_care, seek_imaging, see_clinician, police_acute, police_subacute. Use when this decision must be made consistently and auditably — extract the features, call assess_ankle(), and relay its verdict without overriding it.

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

01 前言 Front Matter

name
ankle-sprain
description
Frozen, deterministic decision (no LLM): maps pain_malleolar_zone, bone_tenderness_lateral_malleolus, bone_tenderness_medial_malleolus, can_bear_weight, visible_deformity, sprain_grade, hours_since_injury, age_years, patient_profile to one of urgent_care, seek_imaging, see_clinician, police_acute, police_subacute. Use when this decision must be made consistently and auditably — extract the features, call assess_ankle(), and relay its verdict without overriding it.

02 资源文件 5

03 SKILL.md 正文

assess_ankle — skill (tempered by temper-skills)

You are an 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 (assess_ankle.assess_ankle, 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:

    • pain_malleolar_zone
    • bone_tenderness_lateral_malleolus
    • bone_tenderness_medial_malleolus
    • can_bear_weight
    • visible_deformity
    • sprain_grade
    • hours_since_injury
    • age_years
    • patient_profile
  2. Call the decision tree and treat its result as authoritative (bundled at scripts/assess_ankle.py):

    from scripts.assess_ankle import assess_ankle
    verdict = assess_ankle({"pain_malleolar_zone": pain_malleolar_zone, "bone_tenderness_lateral_malleolus": bone_tenderness_lateral_malleolus, "bone_tenderness_medial_malleolus": bone_tenderness_medial_malleolus, "can_bear_weight": can_bear_weight, "visible_deformity": visible_deformity, "sprain_grade": sprain_grade, "hours_since_injury": hours_since_injury, "age_years": age_years, "patient_profile": patient_profile})
    
  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) Ottawa Rules are validated for ages ~18–55; outside that, escalate (handled below)
  • (n6) ice for symptom relief is fine briefly; the harm is prolonged/aggressive icing and immobilization

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.

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