ワンクリックで
request-routing
Canonical, compact request-routing strategy for SAS Viya requests.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Canonical, compact request-routing strategy for SAS Viya requests.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
| name | request-routing |
| description | Canonical, compact request-routing strategy for SAS Viya requests. |
Purpose: single source-of-truth for routing SAS Viya actions (read, query, score, describe, list).
Quick workflow
Important Reminder: If the category is "Find resource" do not use the list-* rules below, use the specific find-* tool for that resource type. The list-* tools are for discovery when the user does not have a specific resource in mind.
Classification
| Category | Triggers | Primary Action | Primary Tool(s) |
|---|---|---|---|
| Find resource | "find", "does X exist", "locate", "verify" | Verify resource | sas-score-find-library, sas-score-find-table, sas-score-find-mas, sas-score-find-job, sas-score-find-jobdef |
| Read / Query | "read", "show rows", "how many", "count", "average", "query" | Read / aggregate | sas-score-read-table, sas-score-sas-query |
| Score | "score", "predict", "run model" | Score inputs | sas-score-mas-score, sas-score-run-job, sas-score-run-jobdef, sas-score-scr-score |
| List / Discover | "list", "show all", "browse" | List resources | list-* tools (e.g., list-mas, list-jobs) |
| Describe | "describe", "what inputs", "metadata" | Return metadata | sas-score-*-info (mas/job/jobdef/scr), sas-score-table-info |
Verification rules
find-* tool before executing actionsExecution rules
sas-score-sas-query for aggregations and groupings.sas-score-read-table for row reads.Defaults & exceptions
find-* verification for SCR models; SCR endpoints may be scored directly.Execute mapping (concise)
sas-score-read-table (lib, table, server)sas-score-sas-query (lib.table, query)sas-score-mas-score (mas, scenario)sas-score-run-job (job, scenario)sas-score-run-jobdef (jobdef, scenario)sas-score-scr-score (url, scenario)sas-score-*-info, sas-score-table-infoCombined Read + Score (short)
Strategy Summary:
Error handling (short)
Examples (minimal)
Notes: Keep this SKILL as the canonical, compact router; agent wrappers should be short and reference this document for details and examples.
Verify that a SAS Viya library exists and determine which server (CAS or SAS) hosts it. Always checks CAS first, then SAS. Returns the confirmed library name and server. Use whenever you need to confirm a library exists before listing tables or performing any library-scoped operation.
Unified resource verification skill. Use the appropriate find tool before any execution. Determines server for tables (CAS vs SAS). Never use list tools for verifying or finding specific resources; list tools are for discovery and exploration only.
Scoring workflow for Job (.job) and JobDef (.jobdef) model types. Use when the model suffix is .job or .jobdef. Handles both inline scenario scoring and table row scoring.
Scoring workflow for MAS (Micro Analytic Score) and SCR (Score Code Runtime) models. Use when the model type is .mas or .scr, or when no suffix is given (default is MAS). Handles both inline scenario scoring and table row scoring.
List SAS Viya libraries. Calls sas-score-list-libraries with the appropriate server parameter. Use only when the user explicitly wants to browse or enumerate libraries, not to verify a specific library exists. User must specify server (CAS or SAS) in their request to trigger this skill;
List MAS models, Jobs, or JobDefs in SAS Viya. Routes to the correct list tool based on resource type. Use only when the user explicitly wants to browse or enumerate models, jobs, or jobdefs.