[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7E6FZNFFX9WJAZ39X7Z3RY2":3,"skill-same:01M7E6FZNFFX9WJAZ39X7Z3RY2":97},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":31,"commitSha":32,"skillDirectory":33,"forksCount":14,"repositoryHtmlUrl":34,"repositoryHomepageUrl":6,"ownerHtmlUrl":35,"ownerBlogUrl":36,"ownerDescription":37,"updatedAt":38,"install":39,"resources":52},"01M7E6FZNFFX9WJAZ39X7Z3RY2","alibabacloud-waf-rule-management",null,"Alibaba Cloud WAF 3.0 read-only diagnostic assistant for interception diagnosis, rule queries, and configuration guidance. Use when: query WAF logs (405 errors, blocked requests), troubleshoot rules not taking effect, configure WAF rules (whitelist\u002Fblacklist\u002FIP access control), diagnose via traceid or matched_host+status. Provides TEXT-ONLY console guidance. Uses `aliyun sls get-logs-v2` (SLS plugin required).\nAll output is human-readable guidance for users to manually configure in the Alibaba Cloud Console.","Jane-o-O-o-O\u002Fpersonal-agent","Jane-o-O-o-O","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F179437561?v=4","01M7E4A2T6D0QNC04YPW4P0E9F","Jin Zhangzheng","01M7E4A2TRHBYJEQJM6FZKKZ1X",1,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FJane-o-O-o-O\u002Fpersonal-agent\u002Fblob\u002Fmain\u002Fresources\u002Fecosystem\u002Fupstream\u002Faliyun-aiops-skills\u002Fd22aa735c7e5\u002Fskills\u002Fothers\u002Fdevopsimpl\u002Falibabacloud-waf-rule-management\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: alibabacloud-waf-rule-management\ndescription: >\n  Alibaba Cloud WAF 3.0 read-only diagnostic assistant for interception diagnosis, rule queries, and configuration guidance.\n  Use when: query WAF logs (405 errors, blocked requests), troubleshoot rules not taking effect,\n  configure WAF rules (whitelist\u002Fblacklist\u002FIP access control), diagnose via traceid or matched_host+status.\n  Provides TEXT-ONLY console guidance. Uses `aliyun sls get-logs-v2` (SLS plugin required).\n  \n  All output is human-readable guidance for users to manually configure in the Alibaba Cloud Console.\nlicense: Apache-2.0\ncompatibility: >\n  Requires Alibaba Cloud CLI (aliyun).\n  Requires AccessKey credentials, RAM permission statement see references\u002Fram-policies.md.\n  All CLI commands rely on default credential chain, WITHOUT using --profile parameter.\n  All Alibaba Cloud service calls must set User-Agent to AlibabaCloud-Agent-Skills\u002Falibabacloud-waf-rule-management\u002F{{SESSION_ID}}.\nmetadata:\n  domain: aiops\n  owner: waf-team\n  contact: waf-agent@alibaba-inc.com\nallowed-tools: Bash Read\n---\n\n## 🚫 ABSOLUTE PROHIBITIONS (Critical - Read First)\n\n**⚠️ THIS IS A READ-ONLY DIAGNOSIS ASSISTANT. STRICTLY PROHIBITED:**\n\n### ❌ ABSOLUTELY FORBIDDEN ACTIONS (TOP 1 PRIORITY)\n1. **NEVER execute configuration commands** - Do NOT use `run_in_terminal` for ANY write operations (create\u002Fmodify\u002Fdelete)\n2. **NEVER provide executable configuration commands** - Do NOT output complete CLI commands with specific parameter values\n3. **NEVER provide configuration command examples** - Do NOT show \"you can execute this command\" format\n4. **NEVER modify any resources** - Only execute read-only query commands (List\u002FDescribe\u002FGet)\n5. **NO Write Operations** - Never call Create*\u002FUpdate*\u002FDelete* APIs\n6. **NO Script Generation** - Never generate scripts, JSON examples, or save files\n7. **NO Configuration Execution** - Never ask for IDs or offer to configure\n8. **NO Credential Exposure** - Never use `--profile`, read credential files\n\n**CRITICAL: Even if user requests \"profile as default\", you MUST NOT use --profile parameter in ANY command execution.**\n\n### ✅ CORRECT APPROACH\n- **ONLY provide configuration guidance** (text descriptions)\n- **List configuration parameters** (what needs to be filled)\n- **Describe operation path** (which console menu)\n- **Warn about precautions** (risks\u002Fdependencies)\n\n### 📋 STANDARD DECLARATION\nAll diagnosis reports MUST start with:\n```\n⚠️ Disclaimer: This tool is a read-only diagnostic assistant, only providing analysis and configuration suggestions, and will NOT execute any configuration changes.\nAll configuration changes must be manually completed by users in the Alibaba Cloud Console.\n```\n\n### 🔍 ALLOWED COMMANDS (Read-Only Only)\n- ✅ `aliyun waf-openapi describe-*` (query WAF info)\n- ✅ `aliyun sls get-logs-v2` (query logs)\n- ❌ ALL create\u002Fmodify\u002Fdelete commands are STRICTLY PROHIBITED\n\n### 📋 Output Verification Checklist\n\n**BEFORE outputting, MUST verify:**\n- [ ] No Create\u002FUpdate\u002FDelete API calls\n- [ ] No scripts, JSON, or file saves\n- [ ] No requests for INSTANCE_ID\u002FTEMPLATE_ID\n- [ ] NO `--profile` parameter\n- [ ] NO credential exposure or file reading\n- [ ] ONLY text-based console guidance\n- [ ] **ALL IP addresses match user input exactly**\n- [ ] **ALL rule IDs, traceids verified against user prompt**\n\n**If ANY item is unchecked, REMOVE violating content immediately.**\n\n---\n\n## 🔄 Portability & Self-Containment\n\nThis Skill is self-contained: ALL information in `references\u002F` and `scripts\u002F` directories. NO external experience required. `scripts\u002Frule_matcher.py` performs ALL checks automatically. **For AI Agents**: MUST read reference files, MUST follow Section 3.2 exactly.\n\n---\n\n## Usage Instructions\n\n### 0. Prerequisite Checks\n\n**CRITICAL: MUST verify aliyun CLI is installed before any operations.**\n\n## Observability\n\n### User-Agent Template\n\nAll Alibaba Cloud service CLI commands within this Skill MUST include the following User-Agent header:\n\n```text\nAlibabaCloud-Agent-Skills\u002Falibabacloud-waf-rule-management\u002F{{SESSION_ID}}\n```\n\nUsage in CLI commands:\n\n```bash\n--user-agent \"AlibabaCloud-Agent-Skills\u002Falibabacloud-waf-rule-management\u002F{{SESSION_ID}}\"\n```\n\n### Session-ID Generation Rule\n\n1. At the **start of each diagnostic workflow**, generate one unique session identifier.\n2. Format: 32-char lowercase hex (e.g., `a1b2c3d4e5f67890abcdef1234567890`).\n3. Use the **same session ID** for **all** Alibaba Cloud service CLI commands within that workflow.\n4. Do NOT reuse a session ID across different workflows.\n5. Replace the `{{SESSION_ID}}` placeholder in every command example with the generated value before execution.\n6. Generation command: `python3 -c \"import uuid; print(uuid.uuid4().hex)\"` or `openssl rand -hex 16`.\n\n#### 0.1 Verify CLI Installation (REQUIRED)\n\n```bash\nwhich aliyun\n```\n\n**If the CLI tool is not found**:\n- ❌ **STOP immediately** - cannot proceed without aliyun CLI\n- ✅ **Guide user to install**: `brew install aliyun-cli` (macOS) or download from https:\u002F\u002Faliyuncli.alicdn.com\u002F\n- ✅ **Wait for user confirmation** before proceeding\n\n**If the CLI tool is available**:\n- ✅ **Proceed to check SLS plugin**\n\n#### 0.2 Verify Configuration\n\n**Check if the CLI is configured**:\n```bash\naliyun version\n```\n\n**If not configured**:\n- ✅ **Guide user**: Run `aliyun configure` and follow prompts\n- ✅ **Wait for confirmation**\n\n**If configured**:\n- ✅ **Ready to diagnose** - will use `aliyun sls get-logs-v2` for log queries (plugin required)\n\n**Required Tools**:\n- Alibaba Cloud CLI (aliyun) - ONLY this, no plugins needed\n\n**See complete setup guide**: [references\u002Fcli_guide.md](references\u002Fcli_guide.md) Section 1\n\n**Profile Configuration**:\n- **ALWAYS ask user to specify profile**. NEVER auto-detect or scan.\n- **DO NOT use `--profile` parameter** in any CLI command (Evaluation system forbidden rule)\n- Rely on default credential chain\n- Region: Default `cn-hangzhou` (domestic), `ap-southeast-1` (overseas)\n\n**SLS Configuration (PayType-driven naming)**:\n- Get AccountId: `aliyun sts get-caller-identity --user-agent \"AlibabaCloud-Agent-Skills\u002Falibabacloud-waf-rule-management\u002F{{SESSION_ID}}\"`\n- Get PayType: Query `describe-instance` → check `PayType` field\n- **POSTPAY (Pay-As-You-Go)**:\n  - Project: `wafnew-project-\u003CAccountId>-\u003CSLSRegion>`\n  - Logstore: `wafnew-logstore`\n- **Subscription (Annual\u002FMonthly)**:\n  - Project: `wafng-project-\u003CAccountId>-\u003CSLSRegion>`\n  - Logstore: `wafng-logstore`\n- ⚠️ **CRITICAL**: SLS Project region may DIFFER from WAF instance RegionId. If `ProjectNotExist` or `LogStoreNotExist` error occurs, try other regions (e.g., `cn-hangzhou`, `cn-shenzhen`, `cn-beijing`).\n- ⚠️ **MUST add `--region \u003CSLSRegion>`** to ALL `aliyun sls get-logs-v2` commands, otherwise CLI uses default region and returns 404.\n- See [references\u002Fcli_traps.md](references\u002Fcli_traps.md) Section 8 for detailed naming rules and traps.\n\n**User-Agent**: ALL commands MUST include `--user-agent \"AlibabaCloud-Agent-Skills\u002Falibabacloud-waf-rule-management\u002F{{SESSION_ID}}\"`\n\n---\n\n### 1. Interception Diagnosis (Core Feature)\n\n> ⚠️ **CRITICAL: MUST read `references\u002Fcli_traps.md` BEFORE executing any CLI commands. DO NOT guess command formats.**\n\n#### 1.0 Pre-Execution Checklist\n\n**Before running any commands, verify:**\n- [ ] Step 0.1 & 0.2 completed (CLI installed and configured)\n- [ ] Read `references\u002Fcli_traps.md` (common traps, especially Section 7 & 8)\n- [ ] Read `references\u002Fcli_commands.md` for correct command examples\n- [ ] NO `--profile`, NO `aliyun configure get`, NO reading credential files\n- [ ] Forbidden actions: see ABSOLUTE PROHIBITIONS at top of this file\n\n#### 1.1 Identify User Intent\n\nInterception diagnosis supports the following query methods:\n\n| Query Method | Example | Description |\n|----------|------|------|\n| traceid | `traceid: 0bd17c2e...` | Exact query for a single request |\n| host + url_path + status | `host:api.example.com, path:\u002Flogin, status:405` | Combined condition query |\n| host + IP | `host:example.com, ip:1.2.3.4` | Query by domain and source IP |\n| Only traceid string | User directly pastes a string matching the format | Automatically recognized as traceid |\n\n#### 1.2 Traceid Extraction Rules\n\n**Format Definition**:\n- Allowed characters: lowercase letters (a-z), digits (0-9), hyphens (-)\n- Must contain at least one letter and one digit\n- Valid length: 26, 30, 32, 35, 36 characters\n\n**Extraction Priority** (from highest to lowest, take the most recent occurrence):\n1. The `request_traceid` field value from WAF logs provided by the user\n2. User explicitly states \"traceid: xxx\", \"Request ID is: xxx\", \"This flow xxx\"\n3. Raw string directly provided by the user that matches the format definition above\n\n**Exclusion Rules** (must not be extracted as traceid):\n- Values after the \"event id\" keyword\n- Content values in HTML meta tags (e.g., content of aliyun_waf_aa)\n- Pure hexadecimal hash values without letter-digit mixing\n\n#### 1.3 Time Parameter Handling\n\n- User-provided time must be converted to Unix timestamp (seconds)\n- Timestamp (int or str): `1774345200` → use directly\n- Date time: `2026-03-24 17:50` → convert to timestamp\n- Relative time: `1h` (1 hour ago), `30m` (30 minutes ago), `1d` (1 day ago) → calculate based on current time\n- **If not provided, default to query the last 7 days** (covers WAF log default retention period)\n\n> **Important**: When querying logs, verify timezone and date to avoid missing data.\n\n#### 1.4 Log Query\n\n> ⚠️ **CRITICAL: MUST reference `references\u002Fcli_traps.md` Section 7 for correct format.**\n\n**Key Fields**: `matched_host`, `host`, `real_client_ip`, `request_path`, `status`, `final_plugin`, `final_rule_id`, `waf_action`, `bypass_matched_ids`\n\n**Correct Format**: See `references\u002Fcli_commands.md` Section 1.1\n\n**Common Traps** (see `references\u002Fcli_traps.md` Section 7):\n- ❌ Does NOT support `--profile` (use `--region-endpoint`)\n- ✅ Use `aliyun sls get-logs-v2` (SLS plugin required)\n- ✅ Parameters: `--from`, `--to`, `--line`\n\n**Query Conditions** (adjust `--query` parameter):\n- By traceid: `request_traceid:\u003Ctraceid> | select ...`\n- By host+path+status: `host:\u003Cdomain> and request_path:\u003Cpath> and status:\u003Cstatus_code> | select ...`\n- By host+IP: `host:\u003Cdomain> and real_client_ip:\u003Cip> | select ...`\n\n#### 1.5 Result Handling\n\n- **Query failed\u002Ferror**: Check if `aliyun` is installed, credentials configured, Region matches\n- **0 results**: Prompt user \"No logs found, please confirm if conditions are correct, or if the request was within 15 days\"\n- **1 result**: Directly analyze and output conclusions\n- **Multiple results**: Analyze each one, then summarize and output\n- **Missing\u002Ftruncated fields**: If key fields like `matched_host`, `real_client_ip` are empty or not returned, re-query using explicit field query method\n\n#### 1.6 Analysis Output Format\n\nOutput to users in the following structure:\n\n1. **Request Basic Information**: Protection object (matched_host), domain (host), source IP (real_client_ip), request path, time\n2. **Blocking Reason**: Triggered module (final_plugin), rule ID (final_rule_id), rule type\n3. **Handling Suggestions**: Specific operation steps\n4. **Context Information**: Add at end (for AI use only):\n   > Available configuration info: Protection object={matched_host}, source IP={real_client_ip}, rule ID={final_rule_id}\n\n#### 1.7 Provide Configuration Guidance After Diagnosis\n\n**After providing interception diagnosis conclusions and suggestions, must provide configuration guidance to users:**\n\n> Diagnosis complete. To resolve this issue, I can provide you with detailed configuration guidance.\n\n- If user chooses **no configuration guidance needed**, process ends\n- If user chooses **needs configuration guidance**, proceed to Chapter 2 \"Rule Configuration Guidance\"\n\n---\n\n### 2. Rule Configuration Guidance (Pure Text Guidance Mode)\n\n> ⚠️ **CRITICAL: TEXT-ONLY guidance. NEVER generate scripts, save files, execute write APIs, or ask for IDs to \"help configure\".**\n\n#### 2.0 Absolute Prohibitions (Critical - Zero Tolerance)\n\n**MUST NOT** (see complete list in references\u002Fsecurity_rules.md):\n- ❌ Say \"configuration script saved\" or \"generate configuration plan\"\n- ❌ Ask for INSTANCE_ID\u002FTEMPLATE_ID to execute configuration\n- ❌ Generate scripts, JSON, or write API examples\n- ❌ Use `--profile` parameter or expose credentials\n\n**MUST ONLY**:\n- ✅ Provide text console instructions\n- ✅ Explain configuration steps in plain text\n\n**Correct Pattern Example:**\n```\n[Configuration Target] Temporarily allow scanner IP 116.62.56.98 to access \u002Fassets\u002Fscanner\u002Fcheck\n\n[Console Operation Steps]\n1. Log in to WAF 3.0 Console → Protection Configuration → Whitelist\n2. Click \"Add Whitelist Rule\"\n3. Fill in:\n   - Rule name: scanner-temp-whitelist\n   - Protection object: Select domain\n   - Match condition: IP contains 116.62.56.98, URL equals \u002Fassets\u002Fscanner\u002Fcheck\n   - Skip rule: Specific Rule ID → 900904\n4. Click \"OK\"\n\n[Precautions] Delete this rule after scanning is complete, takes effect in about 1 minute\n```\n\n**Wrong Pattern Examples (NEVER do this):**\n\n❌ Wrong 1 - Offering to execute: \"I can generate the config for you, please provide INSTANCE_ID\"\n\n❌ Wrong 2 - Generating JSON: outputting rule JSON examples\n\n❌ Wrong 3 - Saving to file: \"Configuration saved to outputs\u002Fconfig.json\"\n\n❌ Wrong 4 - Using --profile: `aliyun cmd --profile default` (FORBIDDEN)\n\n❌ Wrong 5 - Exposing credentials: `aliyun configure get` or `cat ~\u002F.aliyun\u002Fconfig.json`\n\n#### 2.1 Context Awareness (Important)\n\nWhen handling user configuration requests, follow these priorities:\n\n1. **Auto-extract**: Prioritize extracting known parameters from current conversation context\n2. **Already have required info**: Use directly, **do not ask user again**\n3. **Insufficient info**: Only ask when key information is truly unknown\n\n#### 2.2 Generate Configuration Guidance Plan\n\nAnalyze and generate detailed configuration guidance plan based on user requirements.\n\n**Output Format**:\n- ✅ Text-described configuration (table or list)\n- ❌ NO JSON, NO scripts, NO write CLI commands\n- Must include detailed console steps\n\n**Rule Constraints**:\n- No spaces in rule\u002Ftemplate names (use _ or -)\n- Whitelist IP: use `contain` only (NO `eq`)\n- No numeric priority (order by list position)\n- Custom rules: NO \"pass\" action (block\u002Fcaptcha\u002Fjs\u002Fmonitor only)\n\n**See complete guide**: [references\u002Fconfiguration_guide.md](references\u002Fconfiguration_guide.md)\n\n#### 2.3 Query Existing Configuration (Read-Only)\n\n> ⚠️ **ONLY describe-* APIs. NEVER create-*\u002Fupdate-*\u002Fdelete-*.**\n\n- Query WAF Instance: `describe-instance` (see `references\u002Fcli_commands.md` Section 2.1)\n- Query Templates: `describe-defense-resource-templates` (see `references\u002Fcli_commands.md` Section 2.2)\n- Query Rules: `describe-defense-rules` (see `references\u002Fcli_commands.md` Section 2.3)\n  - Trap: Whitelist must add `--RuleType whitelist` (see `references\u002Fcli_traps.md` Section 1)\n\n#### 2.4 Output Configuration Guidance Plan\n\nMust include: configuration overview, rule details (TEXT ONLY), console steps, precautions.\n\n**WAF 3.0 Console Paths** (Default - All paths are for WAF 3.0):\n- Whitelist: `Protection Configuration` → `Whitelist`\n- Custom rules: `Protection Configuration` → `Web Core Protection` → `Custom Rules`\n- CC protection: `Protection Configuration` → `Web Core Protection` → `CC Protection`\n- IP blacklist: `Protection Configuration` → `IP Blacklist`\n\n**Output Template**:\n```\n[Configuration Target] \u003Cconfiguration description>\n[Console Operation Steps]\n1. Log in to WAF 3.0 Console → left navigation: \u003Cpath>\n2. Click \"\u003Cbutton>\"\n3. Fill in: field1=\u003Ccontent>, field2=\u003Ccontent>\n4. Click \"OK\"\n[Precautions] \u003Crisk warning>, \u003Ceffective time>\n```\n\n**See security warnings**: [references\u002Fconfiguration_guide.md](references\u002Fconfiguration_guide.md) Section 3\n\n---\n\n### 3. Rule Not Effective Diagnosis (Extended Feature)\n\nWhen users report configured rules not matching traffic, use the following process to diagnose.\n\n> ⚠️ **CRITICAL: MUST follow this process strictly. DO NOT skip any steps. DO NOT make assumptions based on partial information.**\n\n#### 3.0 Pre-Diagnosis Checklist\n\n**Before starting diagnosis, verify:**\n- [ ] Step 0.1 & 0.2 completed (CLI installed and configured)\n- [ ] Read `references\u002Fcli_traps.md` and `references\u002Fcli_commands.md`\n- [ ] Prepared to use `scripts\u002Frule_matcher.py` for systematic diagnosis\n\n#### 3.1 Information Collection\n\n| Field | Required | Description |\n|-------|----------|-------------|\n| rule_id | Yes | Rule ID not effective |\n| flow_info | Yes | traceid \u002F IP+time \u002F domain+path+time |\n| issue_type | Yes | Not blocking \u002F whitelist not allowing |\n| resource | No | Protection object |\n| full_check | No | Enable full check mode to output all issues at once (default: false) |\n\n**Context**: Auto-extract from previous diagnosis (host, matched_host, real_client_ip, traceid).\n\n#### 3.2 Diagnosis Process (MUST Execute in Strict Order)\n\n> ⚠️ **CRITICAL: Execute steps 1-5 in EXACT order. DO NOT skip step 4 (Pre-checks).**\n> \n> **Full command examples**: See `references\u002Fcli_commands.md`\n\n**Step 1: Query Instance** → `describe-instance` → Extract `InstanceId` (cli_commands.md 2.1)\n\n**Step 2: Query Rule** → `describe-defense-rules --RuleType '\u003Cscene>'` → Extract `TemplateId`, `Config` (cli_commands.md 2.3)\n- ⚠️ Whitelist: add `--RuleType whitelist` (cli_traps.md Section 1)\n\n**Step 3: Query Logs** → `aliyun sls get-logs-v2` → Extract `matched_host`, `real_client_ip` (cli_commands.md 1.1)\n- ⚠️ SLS plugin required: install via `aliyun plugin install --names aliyun-cli-sls`\n\n**Step 4: Pre-checks (MUST NOT SKIP)**\n\n**4.1 Template Binding** → `describe-defense-resource-templates --Resource '\u003Chost>'`\n- Check: Rule's `TemplateId` in bound templates? If NOT → **Conclusion: `template_not_bound`**\n\n**4.2 Whitelist Conflicts** → If `bypass_matched_ids` non-empty → whitelist bypassing rule\n\n**4.3 XFF Configuration** → If `real_client_ip` doesn't match expected → XFF misconfigured\n\n**Step 5: Call Diagnosis Engine**\n\n```bash\n# Quick Mode (first critical issue)\npython scripts\u002Frule_matcher.py --rule-file rule.json --log-file log.json\n\n# Full Check Mode (all issues)\npython scripts\u002Frule_matcher.py --rule-file rule.json --log-file log.json --full-check\n```\n\n**Input**: `rule.json` (Step 2), `log.json` (Step 3)\n\n#### 3.3 Diagnosis Conclusion Interpretation\n\n| conclusion | Meaning | Suggestion |\n|-----------|------|------|\n| `template_not_bound` | Template not bound | Bind template |\n| `condition_mismatch` | Conditions don't match | Check path, IP |\n| `whitelist_bypass` | Whitelist bypassing | Adjust whitelist |\n| `all_match_timing` | All match, wait time | Wait ~1 minute |\n| `all_match_cc` | Match, frequency low | Check CC frequency |\n| `module_mismatch` | Skip module wrong | Adjust modules |\n| `already_matched` | Whitelist effective | Inform user |\n| `not_matched` | IP\u002Fregion not in config | Check config, XFF |\n\n**Severity Levels**:\n- `critical`: Must-fix (whitelist bypass, condition mismatch)\n- `warning`: Important (unrecorded fields, XFF)\n- `info`: Informational (timing delay, monitor mode)\n\n#### 3.5 Execution Checklist\n\nBefore providing diagnosis results:\n- [ ] Steps 1-5 completed in order (Section 3.2)\n- [ ] Template binding checked\n- [ ] Diagnosis engine called\n- [ ] No forbidden actions (see ABSOLUTE PROHIBITIONS at top)\n\n**If any unchecked, MUST complete first.**\n\n---\n\n### 4. Troubleshooting\n\nWhen encountering issues, consult [references\u002Ftroubleshooting.md](references\u002Ftroubleshooting.md) for detailed solutions.\n\n---\n\n### Appendix: Reference Files\n\n| File | Purpose |\n|------|------|\n| `references\u002Fcli_commands.md` | Complete CLI command examples |\n| `references\u002Fcli_traps.md` | Common CLI pitfalls and errors |\n| `references\u002Fsecurity_rules.md` | Complete security prohibitions |\n| `references\u002Fapi_reference.md` | WAF 3.0 OpenAPI parameter specs |\n| `references\u002Fconfiguration_guide.md` | Configuration procedures |\n| `references\u002Ftroubleshooting.md` | Issue resolution |\n| `references\u002Fcli_guide.md` | CLI setup guide |\n| `references\u002Fram-policies.md` | RAM permissions |\n| `scripts\u002Frule_matcher.py` | Diagnosis engine |","## 🚫 ABSOLUTE PROHIBITIONS (Critical - Read First)\n\n**⚠️ THIS IS A READ-ONLY DIAGNOSIS ASSISTANT. STRICTLY PROHIBITED:**\n\n### ❌ ABSOLUTELY FORBIDDEN ACTIONS (TOP 1 PRIORITY)\n1. **NEVER execute configuration commands** - Do NOT use `run_in_terminal` for ANY write operations (create\u002Fmodify\u002Fdelete)\n2. **NEVER provide executable configuration commands** - Do NOT output complete CLI commands with specific parameter values\n3. **NEVER provide configuration command examples** - Do NOT show \"you can execute this command\" format\n4. **NEVER modify any resources** - Only execute read-only query commands (List\u002FDescribe\u002FGet)\n5. **NO Write Operations** - Never call Create*\u002FUpdate*\u002FDelete* APIs\n6. **NO Script Generation** - Never generate scripts, JSON examples, or save files\n7. **NO Configuration Execution** - Never ask for IDs or offer to configure\n8. **NO Credential Exposure** - Never use `--profile`, read credential files\n\n**CRITICAL: Even if user requests \"profile as default\", you MUST NOT use --profile parameter in ANY command execution.**\n\n### ✅ CORRECT APPROACH\n- **ONLY provide configuration guidance** (text descriptions)\n- **List configuration parameters** (what needs to be filled)\n- **Describe operation path** (which console menu)\n- **Warn about precautions** (risks\u002Fdependencies)\n\n### 📋 STANDARD DECLARATION\nAll diagnosis reports MUST start with:\n```\n⚠️ Disclaimer: This tool is a read-only diagnostic assistant, only providing analysis and configuration suggestions, and will NOT execute any configuration changes.\nAll configuration changes must be manually completed by users in the Alibaba Cloud Console.\n```\n\n### 🔍 ALLOWED COMMANDS (Read-Only Only)\n- ✅ `aliyun waf-openapi describe-*` (query WAF info)\n- ✅ `aliyun sls get-logs-v2` (query logs)\n- ❌ ALL create\u002Fmodify\u002Fdelete commands are STRICTLY PROHIBITED\n\n### 📋 Output Verification Checklist\n\n**BEFORE outputting, MUST verify:**\n- [ ] No Create\u002FUpdate\u002FDelete API calls\n- [ ] No scripts, JSON, or file saves\n- [ ] No requests for INSTANCE_ID\u002FTEMPLATE_ID\n- [ ] NO `--profile` parameter\n- [ ] NO credential exposure or file reading\n- [ ] ONLY text-based console guidance\n- [ ] **ALL IP addresses match user input exactly**\n- [ ] **ALL rule IDs, traceids verified against user prompt**\n\n**If ANY item is unchecked, REMOVE violating content immediately.**\n\n---\n\n## 🔄 Portability & Self-Containment\n\nThis Skill is self-contained: ALL information in `references\u002F` and `scripts\u002F` directories. NO external experience required. `scripts\u002Frule_matcher.py` performs ALL checks automatically. **For AI Agents**: MUST read reference files, MUST follow Section 3.2 exactly.\n\n---\n\n## Usage Instructions\n\n### 0. Prerequisite Checks\n\n**CRITICAL: MUST verify aliyun CLI is installed before any operations.**\n\n## Observability\n\n### User-Agent Template\n\nAll Alibaba Cloud service CLI commands within this Skill MUST include the following User-Agent header:\n\n```text\nAlibabaCloud-Agent-Skills\u002Falibabacloud-waf-rule-management\u002F{{SESSION_ID}}\n```\n\nUsage in CLI commands:\n\n```bash\n--user-agent \"AlibabaCloud-Agent-Skills\u002Falibabacloud-waf-rule-management\u002F{{SESSION_ID}}\"\n```\n\n### Session-ID Generation Rule\n\n1. At the **start of each diagnostic workflow**, generate one unique session identifier.\n2. Format: 32-char lowercase hex (e.g., `a1b2c3d4e5f67890abcdef1234567890`).\n3. Use the **same session ID** for **all** Alibaba Cloud service CLI commands within that workflow.\n4. Do NOT reuse a session ID across different workflows.\n5. Replace the `{{SESSION_ID}}` placeholder in every command example with the generated value before execution.\n6. Generation command: `python3 -c \"import uuid; print(uuid.uuid4().hex)\"` or `openssl rand -hex 16`.\n\n#### 0.1 Verify CLI Installation (REQUIRED)\n\n```bash\nwhich aliyun\n```\n\n**If the CLI tool is not found**:\n- ❌ **STOP immediately** - cannot proceed without aliyun CLI\n- ✅ **Guide user to install**: `brew install aliyun-cli` (macOS) or download from https:\u002F\u002Faliyuncli.alicdn.com\u002F\n- ✅ **Wait for user confirmation** before proceeding\n\n**If the CLI tool is available**:\n- ✅ **Proceed to check SLS plugin**\n\n#### 0.2 Verify Configuration\n\n**Check if the CLI is configured**:\n```bash\naliyun version\n```\n\n**If not configured**:\n- ✅ **Guide user**: Run `aliyun configure` and follow prompts\n- ✅ **Wait for confirmation**\n\n**If configured**:\n- ✅ **Ready to diagnose** - will use `aliyun sls get-logs-v2` for log queries (plugin required)\n\n**Required Tools**:\n- Alibaba Cloud CLI (aliyun) - ONLY this, no plugins needed\n\n**See complete setup guide**: [references\u002Fcli_guide.md](references\u002Fcli_guide.md) Section 1\n\n**Profile Configuration**:\n- **ALWAYS ask user to specify profile**. NEVER auto-detect or scan.\n- **DO NOT use `--profile` parameter** in any CLI command (Evaluation system forbidden rule)\n- Rely on default credential chain\n- Region: Default `cn-hangzhou` (domestic), `ap-southeast-1` (overseas)\n\n**SLS Configuration (PayType-driven naming)**:\n- Get AccountId: `aliyun sts get-caller-identity --user-agent \"AlibabaCloud-Agent-Skills\u002Falibabacloud-waf-rule-management\u002F{{SESSION_ID}}\"`\n- Get PayType: Query `describe-instance` → check `PayType` field\n- **POSTPAY (Pay-As-You-Go)**:\n  - Project: `wafnew-project-\u003CAccountId>-\u003CSLSRegion>`\n  - Logstore: `wafnew-logstore`\n- **Subscription (Annual\u002FMonthly)**:\n  - Project: `wafng-project-\u003CAccountId>-\u003CSLSRegion>`\n  - Logstore: `wafng-logstore`\n- ⚠️ **CRITICAL**: SLS Project region may DIFFER from WAF instance RegionId. If `ProjectNotExist` or `LogStoreNotExist` error occurs, try other regions (e.g., `cn-hangzhou`, `cn-shenzhen`, `cn-beijing`).\n- ⚠️ **MUST add `--region \u003CSLSRegion>`** to ALL `aliyun sls get-logs-v2` commands, otherwise CLI uses default region and returns 404.\n- See [references\u002Fcli_traps.md](references\u002Fcli_traps.md) Section 8 for detailed naming rules and traps.\n\n**User-Agent**: ALL commands MUST include `--user-agent \"AlibabaCloud-Agent-Skills\u002Falibabacloud-waf-rule-management\u002F{{SESSION_ID}}\"`\n\n---\n\n### 1. Interception Diagnosis (Core Feature)\n\n> ⚠️ **CRITICAL: MUST read `references\u002Fcli_traps.md` BEFORE executing any CLI commands. DO NOT guess command formats.**\n\n#### 1.0 Pre-Execution Checklist\n\n**Before running any commands, verify:**\n- [ ] Step 0.1 & 0.2 completed (CLI installed and configured)\n- [ ] Read `references\u002Fcli_traps.md` (common traps, especially Section 7 & 8)\n- [ ] Read `references\u002Fcli_commands.md` for correct command examples\n- [ ] NO `--profile`, NO `aliyun configure get`, NO reading credential files\n- [ ] Forbidden actions: see ABSOLUTE PROHIBITIONS at top of this file\n\n#### 1.1 Identify User Intent\n\nInterception diagnosis supports the following query methods:\n\n| Query Method | Example | Description |\n|----------|------|------|\n| traceid | `traceid: 0bd17c2e...` | Exact query for a single request |\n| host + url_path + status | `host:api.example.com, path:\u002Flogin, status:405` | Combined condition query |\n| host + IP | `host:example.com, ip:1.2.3.4` | Query by domain and source IP |\n| Only traceid string | User directly pastes a string matching the format | Automatically recognized as traceid |\n\n#### 1.2 Traceid Extraction Rules\n\n**Format Definition**:\n- Allowed characters: lowercase letters (a-z), digits (0-9), hyphens (-)\n- Must contain at least one letter and one digit\n- Valid length: 26, 30, 32, 35, 36 characters\n\n**Extraction Priority** (from highest to lowest, take the most recent occurrence):\n1. The `request_traceid` field value from WAF logs provided by the user\n2. User explicitly states \"traceid: xxx\", \"Request ID is: xxx\", \"This flow xxx\"\n3. Raw string directly provided by the user that matches the format definition above\n\n**Exclusion Rules** (must not be extracted as traceid):\n- Values after the \"event id\" keyword\n- Content values in HTML meta tags (e.g., content of aliyun_waf_aa)\n- Pure hexadecimal hash values without letter-digit mixing\n\n#### 1.3 Time Parameter Handling\n\n- User-provided time must be converted to Unix timestamp (seconds)\n- Timestamp (int or str): `1774345200` → use directly\n- Date time: `2026-03-24 17:50` → convert to timestamp\n- Relative time: `1h` (1 hour ago), `30m` (30 minutes ago), `1d` (1 day ago) → calculate based on current time\n- **If not provided, default to query the last 7 days** (covers WAF log default retention period)\n\n> **Important**: When querying logs, verify timezone and date to avoid missing data.\n\n#### 1.4 Log Query\n\n> ⚠️ **CRITICAL: MUST reference `references\u002Fcli_traps.md` Section 7 for correct format.**\n\n**Key Fields**: `matched_host`, `host`, `real_client_ip`, `request_path`, `status`, `final_plugin`, `final_rule_id`, `waf_action`, `bypass_matched_ids`\n\n**Correct Format**: See `references\u002Fcli_commands.md` Section 1.1\n\n**Common Traps** (see `references\u002Fcli_traps.md` Section 7):\n- ❌ Does NOT support `--profile` (use `--region-endpoint`)\n- ✅ Use `aliyun sls get-logs-v2` (SLS plugin required)\n- ✅ Parameters: `--from`, `--to`, `--line`\n\n**Query Conditions** (adjust `--query` parameter):\n- By traceid: `request_traceid:\u003Ctraceid> | select ...`\n- By host+path+status: `host:\u003Cdomain> and request_path:\u003Cpath> and status:\u003Cstatus_code> | select ...`\n- By host+IP: `host:\u003Cdomain> and real_client_ip:\u003Cip> | select ...`\n\n#### 1.5 Result Handling\n\n- **Query failed\u002Ferror**: Check if `aliyun` is installed, credentials configured, Region matches\n- **0 results**: Prompt user \"No logs found, please confirm if conditions are correct, or if the request was within 15 days\"\n- **1 result**: Directly analyze and output conclusions\n- **Multiple results**: Analyze each one, then summarize and output\n- **Missing\u002Ftruncated fields**: If key fields like `matched_host`, `real_client_ip` are empty or not returned, re-query using explicit field query method\n\n#### 1.6 Analysis Output Format\n\nOutput to users in the following structure:\n\n1. **Request Basic Information**: Protection object (matched_host), domain (host), source IP (real_client_ip), request path, time\n2. **Blocking Reason**: Triggered module (final_plugin), rule ID (final_rule_id), rule type\n3. **Handling Suggestions**: Specific operation steps\n4. **Context Information**: Add at end (for AI use only):\n   > Available configuration info: Protection object={matched_host}, source IP={real_client_ip}, rule ID={final_rule_id}\n\n#### 1.7 Provide Configuration Guidance After Diagnosis\n\n**After providing interception diagnosis conclusions and suggestions, must provide configuration guidance to users:**\n\n> Diagnosis complete. To resolve this issue, I can provide you with detailed configuration guidance.\n\n- If user chooses **no configuration guidance needed**, process ends\n- If user chooses **needs configuration guidance**, proceed to Chapter 2 \"Rule Configuration Guidance\"\n\n---\n\n### 2. Rule Configuration Guidance (Pure Text Guidance Mode)\n\n> ⚠️ **CRITICAL: TEXT-ONLY guidance. NEVER generate scripts, save files, execute write APIs, or ask for IDs to \"help configure\".**\n\n#### 2.0 Absolute Prohibitions (Critical - Zero Tolerance)\n\n**MUST NOT** (see complete list in references\u002Fsecurity_rules.md):\n- ❌ Say \"configuration script saved\" or \"generate configuration plan\"\n- ❌ Ask for INSTANCE_ID\u002FTEMPLATE_ID to execute configuration\n- ❌ Generate scripts, JSON, or write API examples\n- ❌ Use `--profile` parameter or expose credentials\n\n**MUST ONLY**:\n- ✅ Provide text console instructions\n- ✅ Explain configuration steps in plain text\n\n**Correct Pattern Example:**\n```\n[Configuration Target] Temporarily allow scanner IP 116.62.56.98 to access \u002Fassets\u002Fscanner\u002Fcheck\n\n[Console Operation Steps]\n1. Log in to WAF 3.0 Console → Protection Configuration → Whitelist\n2. Click \"Add Whitelist Rule\"\n3. Fill in:\n   - Rule name: scanner-temp-whitelist\n   - Protection object: Select domain\n   - Match condition: IP contains 116.62.56.98, URL equals \u002Fassets\u002Fscanner\u002Fcheck\n   - Skip rule: Specific Rule ID → 900904\n4. Click \"OK\"\n\n[Precautions] Delete this rule after scanning is complete, takes effect in about 1 minute\n```\n\n**Wrong Pattern Examples (NEVER do this):**\n\n❌ Wrong 1 - Offering to execute: \"I can generate the config for you, please provide INSTANCE_ID\"\n\n❌ Wrong 2 - Generating JSON: outputting rule JSON examples\n\n❌ Wrong 3 - Saving to file: \"Configuration saved to outputs\u002Fconfig.json\"\n\n❌ Wrong 4 - Using --profile: `aliyun cmd --profile default` (FORBIDDEN)\n\n❌ Wrong 5 - Exposing credentials: `aliyun configure get` or `cat ~\u002F.aliyun\u002Fconfig.json`\n\n#### 2.1 Context Awareness (Important)\n\nWhen handling user configuration requests, follow these priorities:\n\n1. **Auto-extract**: Prioritize extracting known parameters from current conversation context\n2. **Already have required info**: Use directly, **do not ask user again**\n3. **Insufficient info**: Only ask when key information is truly unknown\n\n#### 2.2 Generate Configuration Guidance Plan\n\nAnalyze and generate detailed configuration guidance plan based on user requirements.\n\n**Output Format**:\n- ✅ Text-described configuration (table or list)\n- ❌ NO JSON, NO scripts, NO write CLI commands\n- Must include detailed console steps\n\n**Rule Constraints**:\n- No spaces in rule\u002Ftemplate names (use _ or -)\n- Whitelist IP: use `contain` only (NO `eq`)\n- No numeric priority (order by list position)\n- Custom rules: NO \"pass\" action (block\u002Fcaptcha\u002Fjs\u002Fmonitor only)\n\n**See complete guide**: [references\u002Fconfiguration_guide.md](references\u002Fconfiguration_guide.md)\n\n#### 2.3 Query Existing Configuration (Read-Only)\n\n> ⚠️ **ONLY describe-* APIs. NEVER create-*\u002Fupdate-*\u002Fdelete-*.**\n\n- Query WAF Instance: `describe-instance` (see `references\u002Fcli_commands.md` Section 2.1)\n- Query Templates: `describe-defense-resource-templates` (see `references\u002Fcli_commands.md` Section 2.2)\n- Query Rules: `describe-defense-rules` (see `references\u002Fcli_commands.md` Section 2.3)\n  - Trap: Whitelist must add `--RuleType whitelist` (see `references\u002Fcli_traps.md` Section 1)\n\n#### 2.4 Output Configuration Guidance Plan\n\nMust include: configuration overview, rule details (TEXT ONLY), console steps, precautions.\n\n**WAF 3.0 Console Paths** (Default - All paths are for WAF 3.0):\n- Whitelist: `Protection Configuration` → `Whitelist`\n- Custom rules: `Protection Configuration` → `Web Core Protection` → `Custom Rules`\n- CC protection: `Protection Configuration` → `Web Core Protection` → `CC Protection`\n- IP blacklist: `Protection Configuration` → `IP Blacklist`\n\n**Output Template**:\n```\n[Configuration Target] \u003Cconfiguration description>\n[Console Operation Steps]\n1. Log in to WAF 3.0 Console → left navigation: \u003Cpath>\n2. Click \"\u003Cbutton>\"\n3. Fill in: field1=\u003Ccontent>, field2=\u003Ccontent>\n4. Click \"OK\"\n[Precautions] \u003Crisk warning>, \u003Ceffective time>\n```\n\n**See security warnings**: [references\u002Fconfiguration_guide.md](references\u002Fconfiguration_guide.md) Section 3\n\n---\n\n### 3. Rule Not Effective Diagnosis (Extended Feature)\n\nWhen users report configured rules not matching traffic, use the following process to diagnose.\n\n> ⚠️ **CRITICAL: MUST follow this process strictly. DO NOT skip any steps. DO NOT make assumptions based on partial information.**\n\n#### 3.0 Pre-Diagnosis Checklist\n\n**Before starting diagnosis, verify:**\n- [ ] Step 0.1 & 0.2 completed (CLI installed and configured)\n- [ ] Read `references\u002Fcli_traps.md` and `references\u002Fcli_commands.md`\n- [ ] Prepared to use `scripts\u002Frule_matcher.py` for systematic diagnosis\n\n#### 3.1 Information Collection\n\n| Field | Required | Description |\n|-------|----------|-------------|\n| rule_id | Yes | Rule ID not effective |\n| flow_info | Yes | traceid \u002F IP+time \u002F domain+path+time |\n| issue_type | Yes | Not blocking \u002F whitelist not allowing |\n| resource | No | Protection object |\n| full_check | No | Enable full check mode to output all issues at once (default: false) |\n\n**Context**: Auto-extract from previous diagnosis (host, matched_host, real_client_ip, traceid).\n\n#### 3.2 Diagnosis Process (MUST Execute in Strict Order)\n\n> ⚠️ **CRITICAL: Execute steps 1-5 in EXACT order. DO NOT skip step 4 (Pre-checks).**\n> \n> **Full command examples**: See `references\u002Fcli_commands.md`\n\n**Step 1: Query Instance** → `describe-instance` → Extract `InstanceId` (cli_commands.md 2.1)\n\n**Step 2: Query Rule** → `describe-defense-rules --RuleType '\u003Cscene>'` → Extract `TemplateId`, `Config` (cli_commands.md 2.3)\n- ⚠️ Whitelist: add `--RuleType whitelist` (cli_traps.md Section 1)\n\n**Step 3: Query Logs** → `aliyun sls get-logs-v2` → Extract `matched_host`, `real_client_ip` (cli_commands.md 1.1)\n- ⚠️ SLS plugin required: install via `aliyun plugin install --names aliyun-cli-sls`\n\n**Step 4: Pre-checks (MUST NOT SKIP)**\n\n**4.1 Template Binding** → `describe-defense-resource-templates --Resource '\u003Chost>'`\n- Check: Rule's `TemplateId` in bound templates? If NOT → **Conclusion: `template_not_bound`**\n\n**4.2 Whitelist Conflicts** → If `bypass_matched_ids` non-empty → whitelist bypassing rule\n\n**4.3 XFF Configuration** → If `real_client_ip` doesn't match expected → XFF misconfigured\n\n**Step 5: Call Diagnosis Engine**\n\n```bash\n# Quick Mode (first critical issue)\npython scripts\u002Frule_matcher.py --rule-file rule.json --log-file log.json\n\n# Full Check Mode (all issues)\npython scripts\u002Frule_matcher.py --rule-file rule.json --log-file log.json --full-check\n```\n\n**Input**: `rule.json` (Step 2), `log.json` (Step 3)\n\n#### 3.3 Diagnosis Conclusion Interpretation\n\n| conclusion | Meaning | Suggestion |\n|-----------|------|------|\n| `template_not_bound` | Template not bound | Bind template |\n| `condition_mismatch` | Conditions don't match | Check path, IP |\n| `whitelist_bypass` | Whitelist bypassing | Adjust whitelist |\n| `all_match_timing` | All match, wait time | Wait ~1 minute |\n| `all_match_cc` | Match, frequency low | Check CC frequency |\n| `module_mismatch` | Skip module wrong | Adjust modules |\n| `already_matched` | Whitelist effective | Inform user |\n| `not_matched` | IP\u002Fregion not in config | Check config, XFF |\n\n**Severity Levels**:\n- `critical`: Must-fix (whitelist bypass, condition mismatch)\n- `warning`: Important (unrecorded fields, XFF)\n- `info`: Informational (timing delay, monitor mode)\n\n#### 3.5 Execution Checklist\n\nBefore providing diagnosis results:\n- [ ] Steps 1-5 completed in order (Section 3.2)\n- [ ] Template binding checked\n- [ ] Diagnosis engine called\n- [ ] No forbidden actions (see ABSOLUTE PROHIBITIONS at top)\n\n**If any unchecked, MUST complete first.**\n\n---\n\n### 4. Troubleshooting\n\nWhen encountering issues, consult [references\u002Ftroubleshooting.md](references\u002Ftroubleshooting.md) for detailed solutions.\n\n---\n\n### Appendix: Reference Files\n\n| File | Purpose |\n|------|------|\n| `references\u002Fcli_commands.md` | Complete CLI command examples |\n| `references\u002Fcli_traps.md` | Common CLI pitfalls and errors |\n| `references\u002Fsecurity_rules.md` | Complete security prohibitions |\n| `references\u002Fapi_reference.md` | WAF 3.0 OpenAPI parameter specs |\n| `references\u002Fconfiguration_guide.md` | Configuration procedures |\n| `references\u002Ftroubleshooting.md` | Issue resolution |\n| `references\u002Fcli_guide.md` | CLI setup guide |\n| `references\u002Fram-policies.md` | RAM permissions |\n| `scripts\u002Frule_matcher.py` | Diagnosis engine |",{"name":5,"license":15,"metadata":24,"description":28,"allowed-tools":29,"compatibility":30},{"owner":25,"domain":26,"contact":27},"waf-team","aiops","waf-agent@alibaba-inc.com","Alibaba Cloud WAF 3.0 read-only diagnostic assistant for interception diagnosis, rule queries, and configuration guidance. Use when: query WAF logs (405 errors, blocked requests), troubleshoot rules not taking effect, configure WAF rules (whitelist\u002Fblacklist\u002FIP access control), diagnose via traceid or matched_host+status. Provides TEXT-ONLY console guidance. Uses `aliyun sls get-logs-v2` (SLS plugin required).\nAll output is human-readable guidance for users to manually configure in the Alibaba Cloud Console.\n","Bash Read","Requires Alibaba Cloud CLI (aliyun). Requires AccessKey credentials, RAM permission statement see references\u002Fram-policies.md. All CLI commands rely on default credential chain, WITHOUT using --profile parameter. All Alibaba Cloud service calls must set User-Agent to AlibabaCloud-Agent-Skills\u002Falibabacloud-waf-rule-management\u002F{{SESSION_ID}}.\n","main","b08d387cde83fdd23ca4a75f0a74173f810967ec","resources\u002Fecosystem\u002Fupstream\u002Faliyun-aiops-skills\u002Fd22aa735c7e5\u002Fskills\u002Fothers\u002Fdevopsimpl\u002Falibabacloud-waf-rule-management","https:\u002F\u002Fgithub.com\u002FJane-o-O-o-O\u002Fpersonal-agent","https:\u002F\u002Fgithub.com\u002FJane-o-O-o-O","https:\u002F\u002Fjane-zz.me\u002F","金张政 Jane-zz | Agent Engineer · AI Native Builder | Runtime · Context · Evals · GraphRAG | 官方作品集 jane-zz.me","2026-10-04 16:27:52",{"source":8,"skillName":5,"commands":40,"prompt":50,"zipAvailable":51},[41,44,47],{"tool":42,"command":43},"npx","npx skills add Jane-o-O-o-O\u002Fpersonal-agent --skill alibabacloud-waf-rule-management",{"tool":45,"command":46},"bunx","bunx skills add Jane-o-O-o-O\u002Fpersonal-agent --skill alibabacloud-waf-rule-management",{"tool":48,"command":49},"pnpm","pnpm dlx skills add Jane-o-O-o-O\u002Fpersonal-agent --skill alibabacloud-waf-rule-management","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FJane-o-O-o-O\u002Fpersonal-agent\u002Fblob\u002Fmain\u002Fresources\u002Fecosystem\u002Fupstream\u002Faliyun-aiops-skills\u002Fd22aa735c7e5\u002Fskills\u002Fothers\u002Fdevopsimpl\u002Falibabacloud-waf-rule-management\u002FSKILL.md",true,[53,59,63,67,71,75,79,83,87,91],{"path":54,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":57,"sourceHtmlUrl":58},"references\u002Fapi_reference.md","REFERENCE","参考文档",6091,"https:\u002F\u002Fgithub.com\u002FJane-o-O-o-O\u002Fpersonal-agent\u002Fblob\u002Fmain\u002Fresources\u002Fecosystem\u002Fupstream\u002Faliyun-aiops-skills\u002Fd22aa735c7e5\u002Fskills\u002Fothers\u002Fdevopsimpl\u002Falibabacloud-waf-rule-management\u002Freferences\u002Fapi_reference.md",{"path":60,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":61,"sourceHtmlUrl":62},"references\u002Fcli_commands.md",7616,"https:\u002F\u002Fgithub.com\u002FJane-o-O-o-O\u002Fpersonal-agent\u002Fblob\u002Fmain\u002Fresources\u002Fecosystem\u002Fupstream\u002Faliyun-aiops-skills\u002Fd22aa735c7e5\u002Fskills\u002Fothers\u002Fdevopsimpl\u002Falibabacloud-waf-rule-management\u002Freferences\u002Fcli_commands.md",{"path":64,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":65,"sourceHtmlUrl":66},"references\u002Fcli_guide.md",5722,"https:\u002F\u002Fgithub.com\u002FJane-o-O-o-O\u002Fpersonal-agent\u002Fblob\u002Fmain\u002Fresources\u002Fecosystem\u002Fupstream\u002Faliyun-aiops-skills\u002Fd22aa735c7e5\u002Fskills\u002Fothers\u002Fdevopsimpl\u002Falibabacloud-waf-rule-management\u002Freferences\u002Fcli_guide.md",{"path":68,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":69,"sourceHtmlUrl":70},"references\u002Fcli_traps.md",10833,"https:\u002F\u002Fgithub.com\u002FJane-o-O-o-O\u002Fpersonal-agent\u002Fblob\u002Fmain\u002Fresources\u002Fecosystem\u002Fupstream\u002Faliyun-aiops-skills\u002Fd22aa735c7e5\u002Fskills\u002Fothers\u002Fdevopsimpl\u002Falibabacloud-waf-rule-management\u002Freferences\u002Fcli_traps.md",{"path":72,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":73,"sourceHtmlUrl":74},"references\u002Fconfiguration_guide.md",5314,"https:\u002F\u002Fgithub.com\u002FJane-o-O-o-O\u002Fpersonal-agent\u002Fblob\u002Fmain\u002Fresources\u002Fecosystem\u002Fupstream\u002Faliyun-aiops-skills\u002Fd22aa735c7e5\u002Fskills\u002Fothers\u002Fdevopsimpl\u002Falibabacloud-waf-rule-management\u002Freferences\u002Fconfiguration_guide.md",{"path":76,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":77,"sourceHtmlUrl":78},"references\u002Fprofile_setup_guide.md",6742,"https:\u002F\u002Fgithub.com\u002FJane-o-O-o-O\u002Fpersonal-agent\u002Fblob\u002Fmain\u002Fresources\u002Fecosystem\u002Fupstream\u002Faliyun-aiops-skills\u002Fd22aa735c7e5\u002Fskills\u002Fothers\u002Fdevopsimpl\u002Falibabacloud-waf-rule-management\u002Freferences\u002Fprofile_setup_guide.md",{"path":80,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":81,"sourceHtmlUrl":82},"references\u002Fram-policies.md",2096,"https:\u002F\u002Fgithub.com\u002FJane-o-O-o-O\u002Fpersonal-agent\u002Fblob\u002Fmain\u002Fresources\u002Fecosystem\u002Fupstream\u002Faliyun-aiops-skills\u002Fd22aa735c7e5\u002Fskills\u002Fothers\u002Fdevopsimpl\u002Falibabacloud-waf-rule-management\u002Freferences\u002Fram-policies.md",{"path":84,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":85,"sourceHtmlUrl":86},"references\u002Fsecurity_rules.md",3061,"https:\u002F\u002Fgithub.com\u002FJane-o-O-o-O\u002Fpersonal-agent\u002Fblob\u002Fmain\u002Fresources\u002Fecosystem\u002Fupstream\u002Faliyun-aiops-skills\u002Fd22aa735c7e5\u002Fskills\u002Fothers\u002Fdevopsimpl\u002Falibabacloud-waf-rule-management\u002Freferences\u002Fsecurity_rules.md",{"path":88,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":89,"sourceHtmlUrl":90},"references\u002Ftroubleshooting.md",8824,"https:\u002F\u002Fgithub.com\u002FJane-o-O-o-O\u002Fpersonal-agent\u002Fblob\u002Fmain\u002Fresources\u002Fecosystem\u002Fupstream\u002Faliyun-aiops-skills\u002Fd22aa735c7e5\u002Fskills\u002Fothers\u002Fdevopsimpl\u002Falibabacloud-waf-rule-management\u002Freferences\u002Ftroubleshooting.md",{"path":92,"resourceType":93,"resourceTypeDesc":94,"sizeBytes":95,"sourceHtmlUrl":96},"scripts\u002Frule_matcher.py","SCRIPT","脚本",52813,"https:\u002F\u002Fgithub.com\u002FJane-o-O-o-O\u002Fpersonal-agent\u002Fblob\u002Fmain\u002Fresources\u002Fecosystem\u002Fupstream\u002Faliyun-aiops-skills\u002Fd22aa735c7e5\u002Fskills\u002Fothers\u002Fdevopsimpl\u002Falibabacloud-waf-rule-management\u002Fscripts\u002Frule_matcher.py",[98,106,113,120,127,134],{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":102,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":19},"01M7EA3ZT5SZYH1DMJ9XHGK0JK","style-extract","Analyze Yuque documents to extract vocabulary, sentence, and tone patterns into a reusable writing-style profile. Use when the user wants to understand or reproduce their voice or keep documents consistent; trigger phrases include “分析一下我的写作风格”, “用我的风格写一篇...”, “帮我生成一个风格画像”, “extract my writing style”, and “write like me”.","MIT","https:\u002F\u002Fgithub.com\u002FJane-o-O-o-O\u002Fpersonal-agent\u002Fblob\u002Fmain\u002Fresources\u002Fecosystem\u002Fupstream\u002Fyuque-skills\u002F2959228ad3e8\u002Fskills\u002Fstyle-extract\u002FSKILL.md",[],[],{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":102,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":19},"01M7EA3TK8GT3V1E166QX3B0G0","stale-detector","Scan a Yuque knowledge base for stale or outdated documents and recommend updates or archiving. Use when the user is cleaning up, maintaining, or periodically reviewing a knowledge base; trigger phrases include “帮我检查哪些文档过期了”, “知识库体检”, and “find stale docs”.","https:\u002F\u002Fgithub.com\u002FJane-o-O-o-O\u002Fpersonal-agent\u002Fblob\u002Fmain\u002Fresources\u002Fecosystem\u002Fupstream\u002Fyuque-skills\u002F2959228ad3e8\u002Fskills\u002Fstale-detector\u002FSKILL.md",[],[],{"skillNo":114,"name":115,"nameZh":6,"description":116,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":102,"licenseFileUrl":6,"sourceHtmlUrl":117,"categories":118,"keywords":119,"publishedAt":19},"01M7EA3PEWR596VVPAN0XW3ZFR","smart-summary","Summarize a Yuque document or knowledge base at one-line, key-point, or detailed granularity. Use when the user wants a quick overview of a document or repo; trigger phrases include “帮我总结一下这篇文档”, “这个知识库讲了什么”, and “summarize this doc”.","https:\u002F\u002Fgithub.com\u002FJane-o-O-o-O\u002Fpersonal-agent\u002Fblob\u002Fmain\u002Fresources\u002Fecosystem\u002Fupstream\u002Fyuque-skills\u002F2959228ad3e8\u002Fskills\u002Fsmart-summary\u002FSKILL.md",[],[],{"skillNo":121,"name":122,"nameZh":6,"description":123,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":102,"licenseFileUrl":6,"sourceHtmlUrl":124,"categories":125,"keywords":126,"publishedAt":19},"01M7EA3JCBX7BVSSF0TEZXDJ47","smart-search","Search personal Yuque knowledge bases with natural-language queries and synthesize answers with source links. Use when the user wants to find information in their own documents; trigger phrases include “搜一下我的文档”, “我的知识库里有没有...”, “搜索我的语雀\u002F知识库”, and “search my Yuque”.","https:\u002F\u002Fgithub.com\u002FJane-o-O-o-O\u002Fpersonal-agent\u002Fblob\u002Fmain\u002Fresources\u002Fecosystem\u002Fupstream\u002Fyuque-skills\u002F2959228ad3e8\u002Fskills\u002Fsmart-search\u002FSKILL.md",[],[],{"skillNo":128,"name":129,"nameZh":6,"description":130,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":102,"licenseFileUrl":6,"sourceHtmlUrl":131,"categories":132,"keywords":133,"publishedAt":19},"01M7EA3DDETPJYVCDHAXFBRRG6","reading-digest","Extract core insights, golden quotes, and action items from articles, then create structured Yuque reading notes. Use when the user wants key takeaways or a personal reading-notes base; trigger phrases include “帮我做阅读笔记”, “读书笔记”, and “extract key points from this article”.","https:\u002F\u002Fgithub.com\u002FJane-o-O-o-O\u002Fpersonal-agent\u002Fblob\u002Fmain\u002Fresources\u002Fecosystem\u002Fupstream\u002Fyuque-skills\u002F2959228ad3e8\u002Fskills\u002Freading-digest\u002FSKILL.md",[],[],{"skillNo":135,"name":136,"nameZh":6,"description":137,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":102,"licenseFileUrl":6,"sourceHtmlUrl":138,"categories":139,"keywords":140,"publishedAt":19},"01M7EA37RF6AY0KCX9KQC1Q2YY","note-refine","Polish rough Yuque notes into structured, readable documents while preserving their meaning. Use when the user wants to clean up a draft, improve layout, or turn fragments into a document; trigger phrases include “帮我整理一下这篇笔记”, “把这个文档排版优化一下”, and “polish my notes”.","https:\u002F\u002Fgithub.com\u002FJane-o-O-o-O\u002Fpersonal-agent\u002Fblob\u002Fmain\u002Fresources\u002Fecosystem\u002Fupstream\u002Fyuque-skills\u002F2959228ad3e8\u002Fskills\u002Fnote-refine\u002FSKILL.md",[],[]]