凡自治之物 · LGD 治理学 · 创造术家族 | 评测协议:skill-quality-gate
English
When to use
Use this skill when the user explicitly says large-model costs are too high, requests queue behind big models, or the user is pursuing cost optimization. It also applies when the conversation concerns choosing model tiers by task complexity or configuring an agent's model lineup, and the default routing logic has not already kicked in. Trigger on keywords such as "small task on big model", "save money" or specific LLM routing-strategy needs, whenever there is an implicit quality bar for reasoning.
Usage
Invoke model_router.py directly from Python, passing a JSON-formatted request_payload containing task_type, complexity_score and budget_limit. Alternatively, activate the internal module via natural-language triggers such as "model routing" or "cost optimization". The system reads the configuration automatically and outputs the recommended tier together with a fallback plan.
Workflow
- Identify user intent and parse keywords and context.
- Estimate task complexity and resource demand, and build a cost-assessment matrix.
- Match the "flagship / mid / small / local" tier per the LGD Three Laws.
- Compute the cost-performance of each model tier and produce a comparison report.
- Choose the primary target model and the backup degradation strategy.
- Execute the call and monitor output quality; notify the user when the fallback mechanism triggers.
Evidence & safety statement
- Evidence: TBD (no evaluation / badge link yet; update here once produced)
- Version: 1.1.1
- Safety: no independent security scan has been performed (TBD); the conclusion is pending and no endorsement is given until it is completed.
中文
何时用
用户明确表达大模型费用过高、排队等待或追求成本优化时。当对话涉及如何按任务复杂度选择模型梯队或配置 Agent 模型组合,且未触发默认路由逻辑时。检测到关键词如「小任务大模型」「省钱」或特定 LLM 路由策略需求,同时存在对质询/推理质量有隐性要求时。
用法
支持 Python 脚本直接调用 model_router.py,传入 JSON 格式的 request_payload 参数包含 task_type, complexity_score, budget_limit。或通过自然语言触发指令「模型路由」「成本优化」来激活内部模块。系统自动读取配置并输出推荐档位与回退方案。
流程
- 用户输入意图识别,解析关键词与上下文语境。
- 估算任务复杂度与资源需求,建立成本评估矩阵。
- 依据 LGD 三律匹配「旗舰/中端/小模型/本地」档位。
- 计算不同模型的推理性价比并生成对比报告。
- 确定主路由目标模型与备用降级策略。
- 执行调用并监控输出质量,触发回退机制时通知用户。
证据与安全声明
- 证据:TBD(暂无评测/徽章链接;产生后在此更新实际链接)
- 版本:1.1.1
- 安全:未做独立安全扫描(TBD),结论待补;补全前不作推荐背书。
