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.
- License 许可
- Apache-2.0
- 最近更新
- 2026-08-13
- Stars
- ★ 4
- Forks
- 0
01 前言 Front Matter
- name
- ticket-routing
- description
- 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.
02 资源文件 5
- 脚本assets/route_ticket.schema.py795 B
- 资产文件assets/route_ticket.validation.jsonl4.8 KB
- 脚本scripts/route_ticket.py1.5 KB
- 脚本scripts/test_route_ticket_ratified.py3.5 KB
- 脚本scripts/test_route_ticket.py3.5 KB
03 SKILL.md 正文
route_ticket — 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 (route_ticket.route_ticket, 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
-
Extract these structured features from the request:
prioritysecurity_scorecustomer_tiercategorysla_breached
-
Call the decision tree and treat its result as authoritative (bundled at
scripts/route_ticket.py):from scripts.route_ticket import route_ticket verdict = route_ticket({"priority": priority, "security_score": security_score, "customer_tier": customer_tier, "category": category, "sla_breached": sla_breached}) -
Relay
verdictto the user. Do not override it. If a feature can't be extracted, pass it asNone— 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) the 0.8 score threshold is a tuned cut — calibrate against your incident data
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
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.
input
暂无简介
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.
input
暂无简介
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.
input
暂无简介