alibabacloud-waf-checkresponse-intercept-query — Claude Code skill
alibabacloud-waf-checkresponse-intercept-query diagnoses Alibaba Cloud WAF blocks: retrieves the rule that blocked a request, shows logs, and disables problematic rules.
no license 167 installs ★ 300 updated 2026-10-23
npx skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-waf-checkresponse-intercept-query -a claude-codeWhat alibabacloud-waf-checkresponse-intercept-query does
The skill queries SLS logs for block causes using the Request ID from a 405 error page. It identifies which rule triggered, and can disable it. Before querying logs, it checks whether WAF log collection is enabled in SLS, and turns it on after user confirmation if needed.
Requires Aliyun CLI 3.3.3 or later. It auto-discovers WAF instances in both regions (mainland China and overseas), fetches SLS configuration, and searches block logs. Without the correct CLI version, the skill will not run.
Request ID comes from the WAF response HTML body or the 405 page in the browser. SLS logs may reside in a different region than the WAF instance — the skill accounts for this when querying.
What it helps with
- find out why WAF blocked a user request
- identify the WAF rule that triggered for a given Request ID
- disable a protection rule after diagnosing the block
- enable WAF log collection in SLS for further analysis
Example prompts for the agent
- Why did WAF block my request? Request ID is
a1b2c3d4e5f67890 - Find the WAF rule that caused a 405 error for traceid
f8e7d6c5b4a39281 - Enable WAF logs for the instance in
cn-hangzhouand locate the block
How to install alibabacloud-waf-checkresponse-intercept-query
1Skills CLI (Vercel)
npx skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-waf-checkresponse-intercept-query -a claude-code2Manually: put the files in place
~/.claude/skills/alibabacloud-waf-checkresponse-intercept-query/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/alibabacloud-waf-checkresponse-intercept-query/
1Skills CLI (Vercel)
npx skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-waf-checkresponse-intercept-query -a codex2Manually: put the files in place
.agents/skills/alibabacloud-waf-checkresponse-intercept-query/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-waf-checkresponse-intercept-query -a cursor2Manually: put the files in place
.cursor/skills/alibabacloud-waf-checkresponse-intercept-query/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install aliyun/alibabacloud-aiops-skills skills/security/waf/alibabacloud-waf-checkresponse-intercept-query2Manually: put the files in place
.github/skills/alibabacloud-waf-checkresponse-intercept-query/SKILL.md1Skills CLI (Vercel)
npx skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-waf-checkresponse-intercept-query -a gemini-cli2Platform CLI
gemini skills install https://github.com/aliyun/alibabacloud-aiops-skills --path skills/security/waf/alibabacloud-waf-checkresponse-intercept-queryManually: put the files in place
.devin/skills/alibabacloud-waf-checkresponse-intercept-query/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-waf-checkresponse-intercept-query -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about alibabacloud-waf-checkresponse-intercept-query
How to install alibabacloud-waf-checkresponse-intercept-query in Claude Code?
Run npx skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-waf-checkresponse-intercept-query -a claude-code, then open ~/.claude/skills/alibabacloud-waf-checkresponse-intercept-query/SKILL.md.
What does alibabacloud-waf-checkresponse-intercept-query do?
It retrieves block causes from SLS logs by Request ID, shows the triggered rule, and can disable it. Before querying logs, it verifies that log collection is enabled in SLS.
What does the skill need to run?
Aliyun CLI version 3.3.3 or higher, a Request ID from the block page, and Alibaba Cloud credentials. The skill auto-discovers WAF instances and SLS configuration.