Alibabacloud Tair Devtoolset

v0.0.1

Alicloud Service Scenario-Based Skill. Create Tair Enterprise Edition instance and configure public network access using Aliyun CLI. Triggers: "tair", "creat...

0· 113·0 current·0 all-time
byalibabacloud-skills-team@sdk-team

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for sdk-team/alibabacloud-tair-devtoolset.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "Alibabacloud Tair Devtoolset" (sdk-team/alibabacloud-tair-devtoolset) from ClawHub.
Skill page: https://clawhub.ai/sdk-team/alibabacloud-tair-devtoolset
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install alibabacloud-tair-devtoolset

ClawHub CLI

Package manager switcher

npx clawhub@latest install alibabacloud-tair-devtoolset
Security Scan
Capability signals
CryptoRequires walletCan make purchasesRequires OAuth token
These labels describe what authority the skill may exercise. They are separate from suspicious or malicious moderation verdicts.
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
Name/description, SKILL.md and the included shell script all focus on creating Tair instances and configuring networking via the aliyun CLI. The required binaries (aliyun, jq) and RAM permissions referenced match the stated cloud operations.
Instruction Scope
Runtime instructions constrain the agent to use the provided script and to confirm all parameters with the user. The script runs aliyun r-kvstore commands, checks dependencies, validates parameters, obtains a local IP, writes the created INSTANCE_ID to /tmp/tair_instance_id.txt, and polls for status. These actions are within the stated purpose, but the script reads local network interface output (via ifconfig) to infer a public IP — this can be inaccurate behind NAT and may require the user to manually set MY_PUBLIC_IP.
Install Mechanism
This is instruction-only (no install spec); the included documentation instructs installing aliyun CLI from official aliyuncdn URLs or brew. The skill does not download third-party code during install and the script itself runs locally. No high-risk download/extract operations are present.
Credentials
The registry metadata lists no required env vars or primary credential, while SKILL.md and the CLI docs clearly require an existing Alibaba Cloud CLI configuration or environment credentials (AK/SK, STS, or ECS RAM role). This is coherent for this cloud automation use-case, but the metadata omission could mislead users who expect required credentials to be declared at install time.
Persistence & Privilege
The skill is not always-enabled, does not request system-wide persistence, and will not modify other skills. Its only on-disk write is a temporary file (/tmp/tair_instance_id.txt) to record the created instance ID, which is consistent with its purpose.
Assessment
This skill appears to do exactly what it says: it automates Tair instance creation and public endpoint configuration via the aliyun CLI and a provided script. Before installing or running it: 1) Be prepared to supply/confirm VPC_ID and VSWITCH_ID and other parameters — the script will stop if those are missing. 2) Ensure you have an Alibaba Cloud profile configured (AK/SK, STS, or ECS RAM role); the metadata doesn't list credentials, but SKILL.md requires them. 3) Grant only the RAM permissions the skill needs (see references/ram-policies.md) and follow least privilege — creating instances and allocating public endpoints can incur cost and permissions risk. 4) If you are behind NAT, manually set MY_PUBLIC_IP rather than relying on local ifconfig output to avoid misconfiguring the IP whitelist. 5) Review the script yourself (it is included) and confirm you are comfortable with it writing a temp instance ID file and calling aliyun commands. 6) Install aliyun CLI from official sources and keep your access keys secure (do not paste them into chat).

Like a lobster shell, security has layers — review code before you run it.

latestvk97359d5mrvbt9qshc3avm14s584hbwr
113downloads
0stars
2versions
Updated 2w ago
v0.0.1
MIT-0

Tair DevToolset — Instance Creation and Public Network Configuration

Automate Tair Enterprise Edition cloud-native instance creation, public network access configuration, and IP whitelist setup using Aliyun CLI.

Architecture: VPC + VSwitch + Tair Enterprise Instance + Public Endpoint


1. 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 for installation instructions. Then [MUST] run aliyun configure set --auto-plugin-install true to enable automatic plugin installation.

# Verify CLI version
aliyun version

# Enable automatic plugin installation
aliyun configure set --auto-plugin-install true

# Verify jq
jq --version

If jq is not installed:

brew install jq   # macOS

2. Authentication

Pre-check: Alibaba Cloud Credentials Required

All credential configurations follow existing aliyun CLI settings, no separate configuration needed in scripts.

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 line
  • NEVER use aliyun configure set with literal credential values
  • ONLY use aliyun configure list to check credential status
aliyun configure list

Check the output for a valid profile (AK, STS, or OAuth identity).

If no valid profile exists, STOP here.

  1. Obtain credentials from Alibaba Cloud Console
  2. Configure credentials outside of this session (via aliyun configure in terminal or environment variables in shell profile)
  3. Return and re-run after aliyun configure list shows a valid profile

3. RAM Policy

See references/ram-policies.md for RAM permissions required by this Skill.

Core permissions:

RAM ActionDescription
r-kvstore:CreateTairInstanceCreate Tair instance
r-kvstore:DescribeInstanceAttributeQuery instance status
r-kvstore:ModifySecurityIpsModify IP whitelist
r-kvstore:AllocateInstancePublicConnectionAllocate public endpoint
r-kvstore:DescribeDBInstanceNetInfoQuery network info

[MUST] Permission Failure Handling: When any command or API call fails due to permission errors at any point during execution, follow this process:

  1. Read references/ram-policies.md to get the full list of permissions required by this SKILL
  2. Use ram-permission-diagnose skill to guide the user through requesting the necessary permissions
  3. Pause and wait until the user confirms that the required permissions have been granted

4. 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.

ParameterRequiredDescriptionDefault
VPC_IDYesVPC ID, e.g. vpc-bp1xxx
VSWITCH_IDYesVSwitch ID, e.g. vsw-bp1xxx
REGION_IDNoRegion IDcn-hangzhou
ZONE_IDNoZone IDcn-hangzhou-h
INSTANCE_TYPENoInstance seriestair_rdb
INSTANCE_CLASSNoInstance specificationtair.rdb.1g
INSTANCE_NAMENoInstance nametair-benchmark-<timestamp>

Common Specifications

Standard Architecture

InstanceClassMemoryBandwidthMax ConnectionsQPS Reference
tair.rdb.1g1 GB768 Mbps30,000300,000
tair.rdb.2g2 GB768 Mbps30,000300,000
tair.rdb.4g4 GB768 Mbps40,000300,000
tair.rdb.8g8 GB768 Mbps40,000300,000
tair.rdb.16g16 GB768 Mbps40,000300,000
tair.rdb.24g24 GB768 Mbps50,000300,000
tair.rdb.32g32 GB768 Mbps50,000300,000
tair.rdb.64g64 GB768 Mbps50,000300,000

5. Core Workflow

[MUST] Execution Constraints

  • MUST and ONLY use scripts/create-and-connect-test.sh script to complete instance creation, whitelist configuration, public endpoint allocation, etc.
  • DO NOT bypass the script to directly call aliyun r-kvstore CLI commands for the above operations
  • DO NOT write or concatenate aliyun CLI commands to replace script functionality
  • Model's responsibility is: collect parameters → set environment variables → run script. No improvisation allowed.

Set environment variables with collected parameters and run the all-in-one script:

export VPC_ID="<user-confirmed VPC_ID>"
export VSWITCH_ID="<user-confirmed VSWITCH_ID>"

# Optional parameters
export REGION_ID="cn-hangzhou"
export ZONE_ID="cn-hangzhou-h"
export INSTANCE_TYPE="tair_rdb"
export INSTANCE_CLASS="tair.rdb.1g"
# For NAT environment, manually set public IP
# export MY_PUBLIC_IP="your-public-ip"

bash scripts/create-and-connect-test.sh

The script will automatically complete: Create instance → Wait for ready → Configure whitelist → Allocate public endpoint → Get public connection info.


6. Success Verification

See references/verification-method.md for detailed verification steps.

Quick instance status verification:

aliyun r-kvstore describe-instance-attribute \
  --instance-id "${INSTANCE_ID}" \
  --user-agent AlibabaCloud-Agent-Skills

Confirm InstanceStatus is Normal and public endpoint is allocated.


7. Troubleshooting

IssueSolution
Connection timeoutCheck if whitelist includes current public IP (must be IPv4)
Public endpoint emptyConfirm allocate-instance-public-connection executed successfully and wait for instance to recover to Normal

8. Best Practices

  1. Use pay-as-you-go (PostPaid) for testing
  2. Only add test machine's public IP to whitelist, follow least privilege principle

9. Reference Links

ReferenceDescription
references/cli-installation-guide.mdAliyun CLI Installation and Configuration Guide
references/ram-policies.mdRAM Permission Policy Document
references/related-commands.mdRelated CLI Commands and Parameters
references/verification-method.mdSuccess Verification Method
references/acceptance-criteria.mdAcceptance Criteria

Comments

Loading comments...