بنقرة واحدة
sr-config-domain-based-skill
Generate an optimized Semantic Router configuration from model benchmark results
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Generate an optimized Semantic Router configuration from model benchmark results
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
| name | sr-config-domain-based-skill |
| description | Generate an optimized Semantic Router configuration from model benchmark results |
This skill allows the agent to automatically generate and deploy an optimal Semantic Router configuration (config.yaml) based on model benchmark results.
The routing logic computes the best model per domain using categorical accuracy, latency, and token throughput.
Use this skill when the user asks to:
This skill expects model benchmark results in JSON format. The benchmarks must first be retrieved using the available get_model_benchmarks MCP tool.
Example benchmark format:
[
{
"model": "gpt-3.5-turbo",
"results": {
"avgResponseTime": 0.6834,
"categoryAccuracy": {
"biology": 0.6,
"business": 0.4
},
"overallAccuracy": 0.4143,
"tokensPerSecond": 20.59
}
}
]
To use this skill, you MUST follow these exact steps in order:
sr-llm-backends MCP tool to fetch the current model benchmarks.generate-router-config.py passing the benchmark JSON directly as a string argument.
python scripts/generate-router-config.py '[{"model": "qwen2.5:3b", "results": ...}]'
stdout. Capture this output, save it or pass it directly to your Kubernetes MCP tools to apply it to the cluster (e.g. kubernetes.apply).In write-enabled environments, scripts/generate-router-config.py outputs:
config.yaml: The raw semantic router configuration.temp-router-manifest.yaml: The Kubernetes ConfigMap defining the configurations.routing-summary.json: A summary of which models were selected for each domain.
(If the filesystem is read-only, it skips generating physical files and pushes only the complete manifest to stdout)