원클릭으로
resource-compliance
Resource compliance skill. Analyze one or more SmartCMP resources with componentType-driven cloud/software/OS analyzers.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Resource compliance skill. Analyze one or more SmartCMP resources with componentType-driven cloud/software/OS analyzers.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Cost optimization skill. Review FinOps and optimization recommendations, analyze savings opportunities with multi-dimensional insights plus datasource-enriched resource context, risk assessment, and best practices guidance. Execute native day2 remediation and track remediation state.
Use when creating, reading, normalizing, regenerating, or modifying SmartCMP Angular form schema JSON, including dynamic JavaScript behavior, catalog context values, visibility, selects, tables, and form edit URLs.
Alarm operations skill. List alerts, analyze alert rule context with datasource-enriched resource facts, and perform alert status operations with remediation guidance.
Approval workflow skill. View pending approval tasks and approve or reject service requests.
Discovery skill. Browse SmartCMP reference data such as service catalogs, business groups, tenant/租户/部门/BU/项目 scopes, applications, OS templates, images, and generic resource details before submitting a request. Standalone business-group discovery belongs here; standalone resource-pool and resource browsing still use their dedicated skills.
Self-service request skill. Request cloud resources, application environments, ticket/work order services, or check submitted request status by Request ID. Keywords: request, provision, deploy, create VM, apply resources, submit ticket, request status, 申请资源, 创建虚拟机, 提交工单, 申请状态.
| name | resource-compliance |
| description | Resource compliance skill. Analyze one or more SmartCMP resources with componentType-driven cloud/software/OS analyzers. |
| provider_type | smartcmp |
| instance_required | true |
| triggers | ["resource compliance","compliance analysis","security analysis","analyze resource","resource risk","mysql version","windows patch","linux security","tomcat lifecycle","alicloud oss security","资源合规","合规分析","合规检查","安全分析","资源风险","版本检查","生命周期分析","补丁检查"] |
| use_when | ["User wants to analyze one or more resources by resource name or selected table `#` item for compliance or security risk","User wants to check whether a resource version is outdated, unsupported, or risky","Webhook payload includes resource IDs that need review as an internal compatibility path"] |
| avoid_when | ["User wants to browse general catalog data only (use datasource skill)","User wants to browse a resource list, virtual-machine list, or cloud-host detail/attribute view only (use resource skill)","User wants to submit a provisioning request (use request skill)","User wants to approve or reject requests (use approval skill)"] |
| related | ["datasource","resource"] |
| tool_analyze_name | smartcmp_analyze_resource_compliance |
| tool_analyze_description | Analyze one or more SmartCMP resources by exact resource name or by a selected table `#` item for compliance, security risk, lifecycle, and configuration posture. Prefer resource_name or resource_index with recent smartcmp_list_all_resource metadata; resource IDs are internal compatibility inputs only and should not be requested from or shown to users. |
| tool_analyze_entrypoint | scripts/analyze_resource.py |
| tool_analyze_groups | ["cmp","compliance"] |
| tool_analyze_capability_class | provider:smartcmp |
| tool_analyze_priority | 110 |
| tool_analyze_cli_split | ["resource_ids"] |
| tool_analyze_parameters | { "type": "object", "properties": { "resource_name": { "type": "string", "description": "Exact visible SmartCMP resource name selected by the user. Prefer this over UUIDs." }, "resource_index": { "type": "integer", "description": "Visible table # value from the latest smartcmp_list_all_resource result, for example 1 or 2." }, "resource_directory_json": { "type": "string", "description": "Hidden JSON metadata from the latest smartcmp_list_all_resource result or Current Workflow Context. Pass this when resolving a visible table # value or validating a listed resource name." }, "trigger_source": { "type": "string", "description": "Source of this analysis request. Default: user.", "default": "user" }, "payload_json": { "type": "string", "description": "Webhook-style JSON payload. Compatibility path for backend events." }, "resource_ids": { "type": "string", "description": "Compatibility-only SmartCMP resource IDs for backend/webhook flows. Do not ask users for this value and do not show it in replies." } } } |
Analyze one or more SmartCMP resources for lifecycle, patch, security, and configuration posture by resource name or visible list selection.
This skill fetches resource facts from SmartCMP, consumes the shared
normalized type + properties view from list_resource.py, routes analysis by
componentType, and then performs explainable checks with optional live
internet validation.
| Script | Description | Location |
|---|---|---|
analyze_resource.py | Analyze one or more resources by name, selected table #, or internal compatibility ID | scripts/ |
python scripts/analyze_resource.py --resource-name e2e-newrole-linux3-0501
python scripts/analyze_resource.py --resource-index 2 --resource-directory-json '[{"index":2,"id":"internal-id","name":"e2e-newrole-linux3-0501"}]'
python scripts/analyze_resource.py --payload-json '{"resourceIds":["id-1"],"triggerSource":"webhook"}'
resource_name or a visible resource_index from the latest resource table.smartcmp_list_all_resource metadata to resolve table # values and validate selected names.##RESOURCE_COMPLIANCE_START## metadata.type (componentType) and emits analysisTargets.See references/WORKFLOW.md for the supported workflow.