aliyun/alibabacloud-aiops-skills/alibabacloud-aisc-skill-inspection
Claude Code and agent skill by aliyun/alibabacloud-aiops-skills
- community
Checking that the SKILL.md file is still in the repository.
使用阿里云 AISC 做 Skill 安全检查:提交扫描、查询 rootTaskId、解读 check-report.json 风险报告、诊断 AISC Skill 检测报错。用户问“这个 Skill 安不安全”“能放心安装吗”“有没有恶意代码、敏感凭据或提示词注入”时使用。也处理候选 Skill 选择和缺少下载链接的安全检测请求,先加载本 Skill 再澄清输入。普通 Skill 编写、安装或无安全意图的泛泛请求不触发。
Install
npx vskill@latest install aliyun/alibabacloud-aiops-skills/alibabacloud-aisc-skill-inspectionSKILL.md
The same SKILL.md was published earlier as aliyun/alibabacloud-aiops-skills/alibabacloud-aisc-skill-inspection.
AISC Skill File Security Check
Help users submit Skill archives to Alibaba Cloud Agent Security Center (AISC) for security scanning, poll detection tasks, and explain the returned results.
Use this Skill broadly for Skill security detection. If the user asks whether a Skill package is safe, whether it contains malicious code, prompt injection, hardcoded credentials, sensitive data, or risky configuration, or asks how to run, poll, diagnose, or interpret an AISC Skill scan, use this Skill.
Natural Language Activation
Use this Skill for an explicit or implicit Skill security request; the user does not need to name AISC, this Skill, or the Python script. Load SKILL.md before deciding which inputs are missing or asking a follow-up. Selecting/loading the Skill is separate from submitting a cloud request.
- A clear safety question such as “这个 Skill 安不安全”, “能放心安装吗”, or “有没有恶意代码/敏感凭据/提示词注入” activates this Skill.
- With a clear target and download URL, run the official wrapper directly; do not ask the user to repeat authorization or supply optional file names.
- With a missing URL, missing task ID, unclear AISC operation, or unselected candidates, load this Skill first, ask for only the missing input, and wait before any cloud call.
- Generic Skill writing, installation, documentation, and “处理一下 Skill” without a security intent are outside this Skill's scope.
Critical Operating Rules
These rules have highest priority for every AISC Skill file scan:
- Do not download, open, fetch, browse, inspect, validate, probe, or pre-check any user-provided
download_urlbefore submission. - Do not use
curl,wget,HEAD,GET, Pythonrequests, browser navigation, SDK download helpers, or similar network/file retrieval tools against a user-provideddownload_url. - Even if the user explicitly asks you to "check whether the URL works", "open it first", "curl it", "download it", or "validate it", do not do that. Submit the
download_urlexactly as provided through scripts/skill_file_check.py, and let AISC fetch and validate it. - Preserve the full
download_urlbyte-for-byte in the--filesJSON value, including query strings, signatures, percent-encoding, ordering, and special characters. - Before running any command, perform this command-target check: local-only commands for dependency checks, non-sensitive credential checks, reading
check-report.json, validating JSON, inspecting local Skill files, or other report interpretation are allowed. Any command that would make a network request to a user-provideddownload_url, includingcurl,wget,HEAD,GET, browser access, Pythonrequests, SDK object download, or any equivalent fetch/probe, is forbidden; pass thatdownload_urlonly topython3 scripts/skill_file_check.py ....
Architecture
The Skill calls two AISC OpenAPI operations:
CreateSkillFileCheck: submit one to ten Skill file download URLs per API call.ListSubTasks: poll sub-task results for the returnedrootTaskId.
The Python wrapper is scripts/skill_file_check.py. It supports submit, poll, and run subcommands. submit and run automatically split more than 10 files into multiple API-sized batches and return one aggregate report.
AISC Endpoint Selection
- Use
https://aisc.cn-shanghai.aliyuncs.comby default. - If the user explicitly specifies an overseas environment, Singapore, or the Singapore endpoint, pass
--endpoint https://aisc.ap-southeast-1.aliyuncs.combefore the subcommand. An explicit Shanghai endpoint selects Shanghai. - Only these two HTTPS endpoints are accepted. Never use a user-provided Skill download URL or another host as the authenticated AISC API endpoint.
For Singapore, place the option before run, submit, or poll: python3 scripts/skill_file_check.py --endpoint https://aisc.ap-southeast-1.aliyuncs.com run --files '...'.
URL Handling Rules
- Never download Skill files locally.
- Never pre-validate, pre-check, or pre-flight URLs with
HEAD,GET,curl,wget,requests, or similar tools. - Always pass user-provided
download_urlvalues to AISC as-is, including signatures, query strings, percent-encoded characters, and other special characters. - When a URL contains query parameters or a signature, copy the entire URL byte-for-byte into the
download_urlJSON value. Do not decode%2F, normalize=, drop query keys, sort query parameters, or visit the URL first. - URLs shown in this document are syntax examples only. Never treat an example URL from
SKILL.md, references, or code comments as user input for a real scan. - If AISC cannot fetch a URL, report the API error honestly and remind the user to fix the URL when convenient. Do not force the user to correct it before completing the response.
rootTaskIdis useful only when at least one file upload is accepted by AISC.
Installation
Dependencies are declared in scripts/requirements.txt.
Authentication
Alibaba Cloud credentials must come from the default credential chain used by alibabacloud_credentials.
Security rules:
- Never read, echo, print, or ask the user to paste credential values.
- Never put AccessKey, AccessKeySecret, STS token, or passwords in prompts, logs, command lines, reports, or final answers.
- If credentials are missing, ask the user to configure credentials outside this conversation and rerun the scan after credentials are available.
- Credential secrecy applies to all intermediate tool output as well as final answers. Do not print credential values to stdout/stderr, debug logs, markdown artifacts, JSON reports, or chat.
- Do not write custom credential-inspection scripts. Never print, serialize, inspect, or expose
CredentialClient, credential objects, config objects,os.environ,env,printenv,access_key_id,access_key_secret,security_token,AccessKeyId,AccessKeySecret, orSecurityTokenvalues. Forbidden examples includevars(...),.__dict__,dir(...),repr(...),to_map(),get_credential(), or any inline Python/shell command whose purpose is to reveal credential fields. - The only allowed credential check is a non-sensitive presence check that constructs the default credential client and prints a fixed success/failure marker, never the credential object or any of its fields.
Optional non-sensitive credential presence check:
If that exact style of check fails, report that the default credential chain is unavailable and stop. Do not add extra debugging that displays credential internals.
RAM Permissions
Required permissions:
aisc:CreateSkillFileCheckforCreateSkillFileCheck.aisc:ListSubTasksforListSubTasks.
When an API call fails with a permission error, tell the user that both permissions are required and refer to references/ram-policies.md. Pause the scan until the user confirms the permissions are available.
Parameter Handling
Required input:
Files[].download_url: public download URL of a real Skill archive: ZIP, TAR, or GZIP-compressed TAR (.tar.gz/.tgz). Pass it as-is to AISC. A rawSKILL.md, HTML page, or JSON download descriptor is not a supported archive. The backend validates content, so changingfile_nameto end in.zipdoes not make an unsupported file valid. An archive may have a signed or extensionless download URL; never fetch or reject it solely by its URL suffix.
Optional input:
Files[].file_name: display file name. If omitted, scripts/skill_file_check.py infers it from the URL path.--interval: polling interval in seconds. Default is10.--timeout: polling timeout in seconds. Default is600.
Input rules:
- Do not ask for redundant confirmation when the user has provided one or more URLs and clearly asks to run the scan.
- Do not ask only for an optional
file_name; infer it from the URL path when the user omitted it. - If the user explicitly provides or requests a
file_name, preserve thatfile_nameexactly in the--filesJSON. Do not replace it with an inferred name. - Ask a clarification question when the required URL is missing, the intent is too unclear to know whether the user wants Skill security detection, multiple candidate files are mentioned without a clear target, or the user explicitly asks you to confirm parameters before execution.
- If more than 10 files are provided, do not ask the user to split or confirm batching. Pass all URLs to scripts/skill_file_check.py; it splits them into batches of at most 10, calls AISC for each batch, and returns one aggregate report.
Scan Execution Contract
Use these rules for real AISC scans:
- Use the official wrapper exactly as the cloud interaction surface:
python3 scripts/skill_file_check.py .... Do not write alternate Python, shell, curl, SDK, credential-debugging, or retry scripts for AISC calls. - Unless the user explicitly asks for
submit/pollseparately, userunfor end-to-end scans and include--output ./check-report.json. - If the user asks for a local JSON report,
check-report.json,poll.status, task count, artifact verification, or any final answer based on report fields, always include--output ./check-report.jsonin the command and then read that JSON report. - For separate submission, include
submit --output ./submit-report.jsonand read that file before polling. The official--outputoption writes JSON separately from diagnostic stderr. Never use2>&1 | tee ...json, edit the official report, or create a replacement report to satisfy an artifact check. Diagnostic logs may be saved separately. - If the user asks for two steps, first call
submit, copy the returnedroot_task_idexactly, and callpoll --root-task-id <that exact id>only whensuccess_count > 0and the ID is non-empty. Do not userunfor an explicit two-step request. - If the user asks for a short timeout such as 20 seconds, pass
--timeout 20torunorpoll. On timeout, keep the returnedroot_task_idand tell the user to continue later withpoll --root-task-id <root_task_id>. - For one to ten files, submit all files in one
--filesJSON array. For more than ten files, still pass all files to the wrapper and let it batch internally. - Final answers after scans must summarize
root_task_id(orrootTaskId),success_count,fail_count,poll.status, andtotal_taskswith their real values, preferably in a short table. Includeroot_task_idsandtaskswhen present. Explain the meaning in Chinese; field names identify the source of the values. Read the official output rather than guessing counts from the number of inputs. - If uploads all fail, report the actual upload counts and
root_task_id: null; markpoll.statusandtotal_tasksas unavailable / 未查询.poll: nulldoes not prove there are zero backend tasks. A top-levelstatus: completedin this branch only means the command stopped; say that the security scan did not complete. Never infer missing counts, task status, or risk conclusions. - When the official script returns a nonzero exit or an error JSON, do not ask the user whether to retry. Give one final diagnostic answer using the standardized Error Handling mapping below and stop.
Observability
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/security/asc/alibabacloud-aisc-skill-inspection/SKILL.md
Popularity
- Repository stars
- 282
- Repository forks
- 38
- 7-day trend score
- 27
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/aliyun/alibabacloud-aiops-skills/alibabacloud-aisc-skill-inspection)