Xpersona
A

Alibabacloud Tair Devtoolset

CLAWHUB · Unverified

Alibaba Cloud Tair development toolkit — 7 capabilities covering architecture selection, data structure design, instance creation & configuration, connection... Skill: Alibabacloud Tair Devtoolset Owner: sdk-team Summary: Alibaba Cloud Tair development toolkit — 7 capabilities covering architecture selection, data structure design, instance creation & configuration, connection... Tags: latest:0.0.3 Version history: v0.0.3 | 2026-05-21T09:17:34.005Z | auto **Version 0.0.3 Changelog** - Greatly expanded documentation: Added comprehensive guides on architecture selection, data

62
Rank
84
Safety
1.0k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: medium.

clawhub skill install s173swjet2yrebzqrp6hjkvmy583mxef:alibabacloud-tair-devtoolset
  1. Setup complexity is MEDIUM. Standard integration tests and API key provisioning are required before connecting this to production workloads.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-sdk-team-alibabacloud-tair-devtoolset/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

145,027 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: alibabacloud-tair-devtoolset
description: |
  Alibaba Cloud Tair development toolkit — 7 capabilities covering architecture selection, data structure design, instance creation & configuration, connection management, performance monitoring, error troubleshooting, and backup & recovery.
  Executes real cloud operations via aliyun CLI (creating instances, modifying whitelists, managing backups, restoring data). Restore operations are high-risk and will overwrite current data. Ensure the RAM account has required permissions (see references/ram-policies.md).
  Triggers: "tair", "create tair instance", "tair instance", "redis", "data structure", "backup", "PITR", "tair architecture", "tair connection", "tair error".
---

# Tair DevToolset — Full-Lifecycle Tair Development Assistant

This Skill provides operational capabilities and development guidelines for **Alibaba Cloud Tair (Redis OSS-Compatible)** database, covering architecture selection, data structure design, instance creation, connection management, performance monitoring, error troubleshooting, and backup & recovery.

> **Note:** This Skill executes real cloud operations via aliyun CLI. Restore operations are high-risk and will overwrite current data. Ensure the RAM account has the [required permissions](references/ram-policies.md) before use.

### Supported Capabilities

| Capability | Description |
|------------|-------------|
| Architecture Selection | Choose the right Tair architecture (Standard vs Cluster) and edition (Memory-optimized, Persistent memory, Disk-based) |
| Data Structure Design | Select optimal Redis and Tair extended data structures for your use case |
| Instance Creation | Create and configure Tair instances via aliyun CLI |
| Connection Management | Connect via standalone/proxy/cluster modes with TLS support |
| Performance Monitoring | Intelligent diagnostics via alibabacloud-tair-ai-assistant skill |
| Error Troubleshooting | Diagnose and resolve common Tair connection, cluster, memory, and client errors |
| Backup and Recovery | Configure backup policies, perform PITR, and restore data |

---

# Part I — Cross-Cutting Concerns

## 1. Prerequisites

### 1.1 CLI Installation & Version

**Aliyun CLI >= 3.3.3 required.** Run `aliyun version` to verify. If not installed or version too low, see [references/cli-installation-guide.md](references/cli-installation-guide.md) for installation instructions.

```bash
# Enable automatic plugin installation (required for r-kvstore plugin)
aliyun configure set --auto-plugin-install true

# Update existing plugins to latest version
aliyun plugin update

# Verify jq is installed (required for JSON parsing in scripts)
jq --version
```

### 1.2 Authentication

All credential configurations follow existing aliyun CLI settings.

**Security Rules:**
- **NEVER** read, echo, or print AK/SK values (e.g., `echo $ALIBABA_CLOUD_ACCESS_KEY_ID` is FORBIDDEN)
- **NEVER** ask the user to input AK/SK directly in the conversation or command l

_meta.json

{
  "ownerId": "kn74p5w8ywv6prh40g0s82gmqh83nw54",
  "slug": "alibabacloud-tair-devtoolset",
  "version": "0.0.3",
  "publishedAt": 1779355054005
}

references/acceptance-criteria.md

# Acceptance Criteria: alibabacloud-tair-devtoolset

**Scenario**: Create Tair Enterprise Edition Instance
**Purpose**: Skill Test Acceptance Criteria

---

# Correct CLI Command Patterns

## 1. Product — Product name must be `r-kvstore`

#### CORRECT
```bash
aliyun r-kvstore create-tair-instance ...
```

#### INCORRECT
```bash
# Error: Incorrect product name
aliyun redis create-tair-instance ...
aliyun tair create-tair-instance ...
aliyun kvstore create-tair-instance ...
```

## 2. Command — Must use plugin mode (lowercase with hyphens)

#### CORRECT
```bash
aliyun r-kvstore create-tair-instance ...
aliyun r-kvstore describe-instance-attribute ...
aliyun r-kvstore modify-security-ips ...
aliyun r-kvstore allocate-instance-public-connection ...
aliyun r-kvstore describe-db-instance-net-info ...
```

#### INCORRECT
```bash
# Error: Using legacy API PascalCase format
aliyun r-kvstore CreateTairInstance ...
aliyun r-kvstore DescribeInstanceAttribute ...
aliyun r-kvstore ModifySecurityIps ...
```

## 3. Parameters — Parameter names must use hyphen format

#### CORRECT
```bash
aliyun r-kvstore create-tair-instance \
  --biz-region-id cn-hangzhou \
  --instance-class tair.rdb.1g \
  --instance-type tair_rdb \
  --vpc-id vpc-bp1xxx \
  --vswitch-id vsw-bp1xxx \
  --password "YourPassword123!" \
  --charge-type PostPaid \
  --auto-pay true \
  --shard-type MASTER_SLAVE \
  --zone-id cn-hangzhou-h \
  --instance-name my-tair-test \
  --user-agent AlibabaCloud-Agent-Skills
```

#### INCORRECT
```bash
# Error: Using PascalCase parameter names
aliyun r-kvstore create-tair-instance \
  --RegionId cn-hangzhou \
  --InstanceClass tair.rdb.1g

# Error: Incorrect region parameter name (should be --biz-region-id)
aliyun r-kvstore create-tair-instance \
  --region-id cn-hangzhou
```

## 4. user-agent — Must be included in every aliyun command

#### CORRECT
```bash
aliyun r-kvstore describe-instance-attribute \
  --instance-id r-bp1xxx \
  --user-agent AlibabaCloud-Agent-Skills
```

#### INCORRECT
```bash
# Error: Missing --user-agent
aliyun r-kvstore describe-instance-attribute \
  --instance-id r-bp1xxx
```

## 5. InstanceType Enum Values

#### CORRECT
```bash
--instance-type tair_rdb    # DRAM memory type
--instance-type tair_scm    # Persistent memory type
--instance-type tair_essd   # ESSD/SSD disk type
```

#### INCORRECT
```bash
--instance-type rdb         # Error: Incomplete
--instance-type TAIR_RDB    # Error: Uppercase
--instance-type redis       # Error: Invalid enum
```

## 6. ShardType Enum Values

#### CORRECT
```bash
--shard-type MASTER_SLAVE   # Master-slave high availability
--shard-type STAND_ALONE    # Single node
```

#### INCORRECT
```bash
--shard-type master_slave   # Error: Should be uppercase
--shard-type MasterSlave    # Error: Incorrect format
```

## 7. ChargeType Enum Values

#### CORRECT
```bash
--charge-type PostPaid      # Pay-as-you-go
--charge-type PrePaid       # Subscription
```

#### INCORRECT
```bash
--charge-type postpaid      #

references/architecture-selection/arch-compare-oss-redis.md

## Tair vs Open Source Redis Comparison

Tair (Redis OSS-compatible) is fully compatible with Redis open source protocols, providing enhanced enterprise features.

### Tair vs Self-managed Redis

| Item | Tair | Self-managed Redis |
|------|------|-------------------|
| Security | VPC isolation, whitelists, custom accounts, TLS encryption, TDE, audit logs | Self-managed network security, no built-in auth, requires third-party SSL |
| Backup | Point-in-time recovery (data flashback) | Full data restoration only |
| O&M | 10+ metric groups, 5s monitoring, alert rules, large key analysis | Complex third-party tools required |
| Scaling | Elastic scaling, instant creation | Hardware procurement, manual node management |
| HA | Single-zone HA, zone-disaster recovery, independent central module | Sentinel mode, higher cost, potential split-brain issues |
| Memory | 100% available (overhead handled by Alibaba Cloud) | 25-40% reserved for DR/O&M |

### Tair Edition Selection Guide

| Series | Performance | Cost | Best For |
|--------|-------------|------|----------|
| Memory-optimized | 300% vs Redis OSS | ~117% | Performance-critical, mission-critical workloads |
| Persistent memory | 90% vs Redis OSS | ~70% | High persistence, cost-effective storage |
| Disk-based (ESSD/SSD) | 40-60% vs Redis OSS | 15-20% | Large storage, low access density, cost-primary |
| Redis Open-Source Edition | Baseline | 100% | Standard Redis use, migration scenarios |

### Tair Enterprise vs Redis Open-Source Edition

| Feature | Tair Enterprise | Redis Open-Source |
|---------|-----------------|-------------------|
| Extended data structures | exString, exHash, exZset, GIS, Bloom, Doc, TS, Cpc, Roaring, Search, Vector | Not supported |
| TDE (Transparent Data Encryption) | ✔️ | ❌ |
| Data flashback (PITR) | ✔️ | ❌ |
| Global Distributed Cache | ✔️ | ❌ |
| Proxy query cache | ✔️ | ❌ |
| Semi-synchronous mode | ✔️ | ❌ |
| Max connections per node | 30,000 | 10,000 |
| Single-key QPS | 450,000 | 140,000-160,000 |

### When to Use

**Use Tair Enterprise (Memory-optimized):**
- Ultra-high performance required (3x throughput)
- Need extended data structures (Vector, Search, etc.)
- Enterprise security (TDE, data flashback)

**Use Tair Enterprise (Persistent memory):**
- Cost-effective with high data persistence
- Command-level persistence without data loss

**Use Tair Enterprise (Disk-based):**
- Large storage needs (hundreds of TB)
- Low access density, cost-primary scenarios

**Use Redis Open-Source Edition:**
- Standard Redis workloads
- Migration from self-managed Redis
- Cost-sensitive with baseline performance needs

**References:**
- [Tair vs Self-managed Redis](https://www.alibabacloud.com/help/en/redis/product-overview/comparison-between-apsaradb-for-redis-and-self-managed-redis)
- [Tair Enterprise vs Redis Open-Source](https://www.alibabacloud.com/help/en/redis/product-overview/comparison-between-apsaradb-for-redis-enhanced-edition-and-apsaradb-for-redis-community-editio

references/architecture-selection/arch-selection.md

## Architecture Selection

Choose the right Tair architecture based on data volume, throughput requirements, and read/write ratio.

### Key Concepts

| Component | Description |
|-----------|-------------|
| Node | Smallest unit, runs Redis-compatible process |
| Shard | Group of nodes storing a subset of data |
| Master node | Handles write operations |
| Replica node | Copy of master, provides failover |
| Read-only node | Serves read traffic only (read/write splitting) |
| Proxy node | Routes requests to appropriate nodes |

### Architecture Comparison

| Dimension | Standard | Cluster |
|-----------|----------|---------|
| Structure | One master + replicas | Multiple shards, each with master + replicas |
| Data partitioning | No (single shard) | Yes (distributed across shards) |
| Best for | Small data, stable QPS | Large data, high QPS, throughput-intensive |
| Read/write splitting | Supported | Supported |

### Standard Architecture

Master-replica architecture where master handles all reads/writes, replica maintains real-time copy.

**When to use:**
- Data fits on single instance
- Stable query rate within single-node capacity
- Need persistent storage with high availability

**Standard + Read/Write Splitting:**
- Add proxy nodes + read-only nodes
- Proxy routes writes to master, distributes reads
- Use when: high QPS with read-heavy workload

### Cluster Architecture

Data partitioned across multiple shards. Each shard uses master-replica for HA.

**When to use:**
- Large data volumes exceeding single-node capacity
- High QPS requirements
- Throughput-intensive workloads

**Cluster + Read/Write Splitting:**
- Each shard adds dedicated read-only nodes
- Use when: read traffic exceeds master node capacity per shard

### Selection Decision Tree

**Example:**

```
Data volume > single-node capacity?
├── Yes → Cluster architecture
│   └── Read-heavy? → Enable read/write splitting
└── No → Standard architecture
    └── Read-heavy? → Enable read/write splitting
```

**Reference:** [Tair Product Architecture](https://www.alibabacloud.com/help/en/redis/product-overview/product-architecture)

Sponsored

Ads related to Alibabacloud Tair Devtoolset and adjacent AI workflows.