alibabacloud-tair-ai-assistant
Alibaba Cloud Tair (Redis OSS-Compatible) Database AI Assistant. For Tair/Redis instance management, performance diagnostics, memory analysis, hotspot key detection, latency troubleshooting, parameter tuning, connection session analysis. Use when user questions involve Tair, Redis, instance IDs starting with r-, memory analysis, hotspot keys, eviction policy, big key detection, etc.
What this skill does
# Tair Database AI Assistant This Skill focuses on **Alibaba Cloud Tair (Redis OSS-Compatible) database** intelligent O&M, invoking the get-yao-chi-agent API through the aliyun CLI DAS plugin for diagnostics and analysis. **Architecture**: `Aliyun CLI` → `DAS Plugin (Signature V3)` → `get-yao-chi-agent API` → Tair Intelligent Diagnostics ### Supported Capabilities | Capability | Description | |------------|-------------| | Instance List Query | List and filter Tair/Redis instances by region, type, status | | Memory Usage Analysis | Memory consumption breakdown, fragmentation ratio, eviction statistics | | Hotspot Key Detection | Hot key identification, access frequency analysis, cache optimization | | Big Key Analysis | Large key detection, memory distribution analysis, optimization suggestions | | Latency Diagnostics | Command latency analysis, slow command detection, network latency troubleshooting | | Slow Log Analysis | Slow command log query, high-latency operation identification | | Parameter Tuning | Instance parameter explanation, configuration suggestions, performance impact analysis | | Connection Session Analysis | Connection count monitoring, client session troubleshooting, connection pool optimization | | Backup Status Check | Backup completion verification, retention policy, recovery point in time | | Performance Monitoring | QPS/TPS/hit rate/bandwidth and other core metrics analysis | | Expiring Instance Query | Subscription instance expiration reminder | | Security Configuration Audit | Whitelist, SSL/TLS, password policy, security audit | | Storage Optimization | Data structure optimization, TTL strategy, memory efficiency improvement | | Proxy Diagnostics | Proxy layer performance analysis, connection routing, bandwidth bottleneck detection | ## Installation > **Pre-check: Aliyun CLI >= 3.3.1 required** > Run `aliyun version` to verify >= 3.3.1. If not installed or version too low, > see [references/cli-installation-guide.md](references/cli-installation-guide.md) for installation instructions. > Then **[MUST]** run `aliyun configure set --auto-plugin-install true` to enable automatic plugin installation. ```bash # Install aliyun CLI curl -fsSL https://aliyuncli.alicdn.com/install.sh | bash aliyun version # Verify >= 3.3.1 # Enable automatic plugin installation aliyun configure set --auto-plugin-install true # Install DAS plugin (get-yao-chi-agent requires plugin for Signature V3 support) aliyun plugin install --names aliyun-cli-das # Update all installed plugins to latest version aliyun plugin update # Install jq (for JSON response parsing) # macOS: brew install jq # Ubuntu/Debian: # sudo apt-get install jq ``` ## Parameter Confirmation > **IMPORTANT: Parameter Confirmation** — Before executing any command or API call, > ALL user-customizable parameters (e.g., RegionId, instance names, CIDR blocks, > passwords, domain names, resource specifications, etc.) MUST be confirmed with the > user. Do NOT assume or use default values without explicit user approval. | Parameter | Required/Optional | Description | Default | |-----------|-------------------|-------------|---------| | `query` | Required | Natural language query content (including region, instance info) | - | | `--session-id` | Optional | Session ID for multi-turn conversation | - | | `--profile` | Optional | aliyun CLI profile name | default | ## Authentication This Skill relies on the **aliyun CLI default credential chain** for authentication — no explicit AK/SK handling is required in the Skill workflow. The CLI automatically resolves credentials in the following priority order: 1. `--profile` flag on the command line 2. `ALIBABA_CLOUD_PROFILE` environment variable 3. `ALIBABA_CLOUD_ACCESS_KEY_ID` / `ALIBABA_CLOUD_ACCESS_KEY_SECRET` environment variables 4. Configuration file `~/.aliyun/config.json` (current profile) 5. ECS Instance RAM Role (if running on ECS) For credential setup and configuration modes (OAuth, AK, StsToken, RamRoleArn, EcsRamRole, etc.), see [references/cli-installation-guide.md](references/cli-installation-guide.md). ## RAM Policy See [references/ram-policies.md](references/ram-policies.md) ## Core Workflow All intelligent O&M operations are invoked through `scripts/call_yaochi_agent.sh`, which wraps `aliyun das get-yao-chi-agent` (DAS plugin kebab-case command, supports Signature V3) with streaming response parsing. **Before executing any CLI command, AI-Mode must be enabled; after workflow ends, it must be disabled:** ```bash # [MUST] Enable AI-Mode before executing CLI commands aliyun configure ai-mode enable aliyun configure ai-mode set-user-agent --user-agent "AlibabaCloud-Agent-Skills/alibabacloud-tair-ai-assistant" ``` ```bash # Instance management bash $SKILL_DIR/scripts/call_yaochi_agent.sh "List Tair instances in Hangzhou region" bash $SKILL_DIR/scripts/call_yaochi_agent.sh "Show detailed configuration of instance r-xxx" # Performance diagnostics bash $SKILL_DIR/scripts/call_yaochi_agent.sh "Analyze instance r-xxx performance in the last hour" bash $SKILL_DIR/scripts/call_yaochi_agent.sh "Show slow commands of instance r-xxx" # Memory analysis bash $SKILL_DIR/scripts/call_yaochi_agent.sh "Analyze memory usage of instance r-xxx" bash $SKILL_DIR/scripts/call_yaochi_agent.sh "Detect big keys in instance r-xxx" # Hotspot key detection bash $SKILL_DIR/scripts/call_yaochi_agent.sh "Find hotspot keys in instance r-xxx" # Parameter tuning bash $SKILL_DIR/scripts/call_yaochi_agent.sh "How to tune maxmemory-policy for instance r-xxx" bash $SKILL_DIR/scripts/call_yaochi_agent.sh "Explain hz parameter" # Connection and session bash $SKILL_DIR/scripts/call_yaochi_agent.sh "How to troubleshoot high connection count in instance r-xxx" # Backup recovery bash $SKILL_DIR/scripts/call_yaochi_agent.sh "Show backup status of instance r-xxx" # Multi-turn conversation (use session ID from previous response) bash $SKILL_DIR/scripts/call_yaochi_agent.sh "Continue analysis" --session-id "<session-id>" # Specify profile bash $SKILL_DIR/scripts/call_yaochi_agent.sh "List instances" --profile myprofile # Read from stdin echo "List instances" | bash $SKILL_DIR/scripts/call_yaochi_agent.sh - ``` ```bash # [MUST] Disable AI-Mode after workflow ends aliyun configure ai-mode disable ``` ### Example Questions | Scenario | Example Question | |----------|------------------| | Instance Management | List Tair instances in Beijing region | | Performance Diagnostics | How to troubleshoot high CPU usage in instance r-xxx | | Slow Log Analysis | Show slow commands in instance r-xxx in the last hour | | Memory Analysis | Analyze memory fragmentation of instance r-xxx | | Big Key Detection | Detect big keys in instance r-xxx and suggest optimization | | Hotspot Key | Find hotspot keys in instance r-xxx | | Parameter Tuning | What does maxmemory-policy parameter mean | | Master-Replica | How to handle high replication delay in instance r-xxx | | Backup Recovery | When was the latest backup of instance r-xxx | | Connection Troubleshooting | Instance r-xxx connections are full | | Security Audit | Check security configuration of instance r-xxx | ## Success Verification See [references/verification-method.md](references/verification-method.md) ## Cleanup This Skill focuses on **query and diagnostics** capabilities, does not create any resources, no cleanup required. The following operations are NOT within the scope of this Skill: - Create/delete Tair instances - Change instance specifications - Purchase/renew instances ## API and Command Tables See [references/related-apis.md](references/related-apis.md) ## Best Practices 1. **Instance ID Format**: Tair/Redis instance IDs typically start with `r-`, include the full instance ID in queries 2. **Region Specification**: Explicitly specify region in natural language queries (e.g., "Hangzhou region", "Beijing region") to improve query accuracy 3. **Multi-turn Conversation**: Use `--session-id` for com
Related in Backend & APIs
jfrog
IncludedInteract with the JFrog Platform via the JFrog CLI and REST/GraphQL APIs. Use this skill when the user wants to manage Artifactory repositories, upload or download artifacts, manage builds, configure permissions, manage users and groups, work with access tokens, configure JFrog CLI servers, search artifacts, manage properties, set up replication, manage JFrog Projects, run security audits or scans, look up CVE details, query exposures scan results from JFrog Advanced Security, manage release bundles and lifecycle operations, aggregate or export platform data, or perform any JFrog Platform administration task. Also use when the user mentions jf, jfrog, artifactory, xray, distribution, evidence, apptrust, onemodel, graphql, workers, mission control, curation, advanced security, exposures, or any JFrog product name.
cupynumeric-migration-readiness
IncludedPre-migration readiness assessor for porting NumPy to cuPyNumeric. Use BEFORE substantial porting work begins when the user asks whether code will scale on GPU, whether they should migrate to cuPyNumeric, which NumPy patterns transfer cleanly, what must be refactored before porting, or mentions pre-port assessment, scaling analysis, or refactor planning. Inspect the user's source code, look up NumPy usage, cross-reference the cuPyNumeric API support manifest, and distinguish distributed-scaling-friendly patterns from blockers such as unsupported APIs, scalar synchronization, host round-trips, Python/object-heavy control flow, shape/data-dependent branching, and in-place mutation hazards. Produce a verdict of READY, LIGHT REFACTOR, SIGNIFICANT REFACTOR, or NOT RECOMMENDED, with concrete refactor pointers.
alibabacloud-data-agent-skill
IncludedInvoke Alibaba Cloud Apsara Data Agent for Analytics via CLI to perform natural language-driven data analysis on enterprise databases. Data Agent for Analytics is an intelligent data analysis agent developed by Alibaba Cloud Database team for enterprise users. It automatically completes requirement analysis, data understanding, analysis insights, and report generation based on natural language descriptions. This tool supports: discovering data resources (instances/databases/tables) managed in DMS, initiating query or deep analysis sessions, real-time progress tracking, and retrieving analysis conclusions and generated reports. Use this Skill when users need to query databases, analyze data trends, generate data reports, ask questions in natural language, or mention "Data Agent", "data analysis", "database query", "SQL analysis", "data insights".
token-optimizer
IncludedReduce OpenClaw token usage and API costs through smart model routing, heartbeat optimization, budget tracking, and native 2026.2.15 features (session pruning, bootstrap size limits, cache TTL alignment). Use when token costs are high, API rate limits are being hit, or hosting multiple agents at scale. The 4 executable scripts (context_optimizer, model_router, heartbeat_optimizer, token_tracker) are local-only — no network requests, no subprocess calls, no system modifications. Reference files (PROVIDERS.md, config-patches.json) document optional multi-provider strategies that require external API keys and network access if you choose to use them. See SECURITY.md for full breakdown.
resend-cli
IncludedUse this skill when the task is specifically about operating Resend from an AI agent, terminal session, or CI job via the official resend CLI: installing/authenticating the CLI, sending/listing/updating/cancelling emails, batch sends, domains and DNS, webhooks and local listeners, inbound receiving, contacts, topics, segments, broadcasts, templates, API keys, profiles, or debugging Resend CLI/API failures. Trigger on mentions of Resend CLI, `resend`, `resend doctor`, `resend emails send`, `resend domains`, `resend webhooks listen`, `resend emails receiving`, or agent-friendly terminal automation.
alibabacloud-odps-maxframe-coding
IncludedUse this skill for MaxFrame SDK development and documentation navigation on Alibaba Cloud MaxCompute (ODPS). Helps answer MaxFrame API, concept, official example, and supported pandas API questions; create data processing programs; read/write MaxCompute tables; debug jobs (remote or local); and build custom DPE runtime images. Trigger when users mention MaxFrame, MaxCompute with MaxFrame, ODPS table processing, DPE runtime, MaxFrame docs/examples, DataFrame/Tensor operations, or GPU runtime setup. Works for both English and Chinese queries about Alibaba Cloud data processing with MaxFrame.