技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
sap-command-runner【数据与研究】Runs allowlisted read-only commands on SAP VMs via a secure MCP command proxy (Container App + Azure VM Run Command API). 14 read-only commands — zero changes to SAP environment. Users invoke directly for live VM queries; other skills invoke it for data collection.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
All environment-specific values (MCP endpoint URL, API key, SAP landscape) are provided via the Team Onboarding instructions. The agent reads these from the onboarding context at runtime. Do not hardcode environment values in this skill.
Data Reuse (AAU Optimization): If the same command was already run on this VM earlier in this conversation, return the cached result instead of re-executing. Only re-execute if the user explicitly asks to refresh or re-run.
This skill requires the MCP command proxy (live-command broker), registered as the sap-sre-proxy MCP connector (from the sap-sre-proxy-ops plugin's .mcp.json).
list_allowed_commands, run_command, run_batch. The agent invokes these natively; no Python/HTTP needed. The MCP server enforces the allowlist and runs commands under its own managed identity.infra/deploy-mcp-proxy.ps1, add the sap-sre-proxy MCP connector, then re-paste team onboarding. Until then, this skill is unavailable." Then stop.Display command output exactly as it appears on the VM — preserve formatting, alignment, and whitespace. Do not summarize or reformat unless the user explicitly asks for interpretation.
Call the sap-sre-proxy MCP connector's tools directly:
list_allowed_commands() — discover the allowlist.run_command(vm, resource_group, command_id, subscription_id, sid, sidadm, instance) — run one command. Always pass subscription_id — the proxy runs in a different subscription than the SAP VMs.run_batch(vm, resource_group, command_ids, ...) — run up to 6 commands.Show the returned output verbatim. The MCP server enforces the same allowlist and runs commands under its own managed identity.
Some systems have different SIDs for SAP and HANA. Check the landscape inventory for sap_sidadm and hana_sidadm fields:
hdb_info, hdb_version, hsr_state, landscape_host_config): use hana_sidadm and db_sidsapcontrol_getprocesslist, sapcontrol_getinstancelist): use sap_sidadm and sidsap_sidadm=ab1adm (SID=AB1) and hana_sidadm=db1adm (DB SID=DB1)All commands are read-only. None modify SAP state, HANA data, cluster config, or OS settings.
| Command ID | Description | Requires sidadm |
|---|---|---|
crm_mon | Pacemaker cluster status (crm_mon -r -1) | No |
crm_status | Pacemaker resource status (crm status) | No |
saphanasr_showattr | HANA SR site attributes (SAPHanaSR-showAttr) | No |
sapcontrol_getprocesslist | SAP process list (sapcontrol -function GetProcessList) | Yes |
hdb_info | HANA process information (HDB info) | Yes |
hdb_version | HANA version/revision (HDB version) | Yes |
hsr_state | HSR replication state (hdbnsutil -sr_state) | Yes |
systemctl_cluster | Pacemaker/corosync/SBD service status | No |
df_hana | HANA filesystem usage (df -h /hana/*) | No |
free_mem | Memory usage (free -h) | No |
uptime | System uptime and load average | No |
os_release | OS version (cat /etc/os-release) | No |
sapcontrol_getinstancelist | SAP instance list (sapcontrol -function GetSystemInstanceList) | Yes |
landscape_host_config | HANA landscape host configuration | Yes |
Use the SAP landscape inventory (Knowledge Source) to resolve:
AB1vm)RG_SAP_CUS_AB1)40050ff9-...)hana_sidadm vs sap_sidadm in the inventory (e.g., db1adm for HANA, ab1adm for SAP)00) or ASCS instance (usually 01)When the user says "run crm_mon on AB1", look up AB1 in the landscape inventory to find the VM name, resource group, and subscription, then call run_command().
If the MCP command proxy is unreachable or returns an error, inform the user:
sap-sre-proxy MCP connector and that the Container App is running."