Token导航 LogoToken导航TokenDH.com
待分类敏感数据github未标认证来源可访问许可证需确认审计提醒

alibabacloud-tablestore-ops阿里巴巴云表存储操作

Agent Skill

alibabacloud-tablestore-ops 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,247

周安装

53

GitHub Stars

79

下载量

437
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:alibabacloud-tablestore-ops(阿里巴巴云表存储操作)
来源仓库:https://github.com/aliyun/alibabacloud-aiops-skills
仓库路径:skills/alibabacloud-tablestore-ops
安装命令:
npx skills add https://github.com/aliyun/alibabacloud-aiops-skills --skill alibabacloud-tablestore-ops
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/aliyun/alibabacloud-aiops-skills --skill alibabacloud-tablestore-ops

简介

用于只读方式查询阿里云 Tablestore(OTS)实例与数据表信息。

  • 支持通过 otsutil 工具获取实例列表、表结构、行数据及索引详情。
  • 适用于监控、排查与数据分析等只读操作场景。
  • 安装命令为 npx skills add https://github.com/aliyun/alibabacloud-aiops-skills --skill alibabacloud-tablestore-ops。
  • 需激活 Tablestore 服务并配置 AccessKey ID 与 Secret 凭据。

SKILL.md

Tablestore Read-Only Operations

This skill provides CLI-based read-only operations for querying Alibaba Cloud Tablestore (OTS) instances and data tables. Tablestore is a fully managed NoSQL database service that supports storing and accessing large amounts of structured data.

Architecture: Aliyun CLI (otsutil) → Tablestore Instance → Data Tables (Wide Table / TimeSeries)

Scope: This skill only covers read/query operations. No create, update, or delete operations are included.

Prerequisites

Pre-check: Aliyun CLI Required (Version 3.3.0+) Tablestore operations are performed via aliyun otsutil command, which is part of the Aliyun CLI. IMPORTANT: The otsutil subcommand is only available in Aliyun CLI version 3.3.0 or later. The Homebrew version may be outdated - download directly from the official CDN. See references/cli-installation-guide.md for installation instructions.

Installation

Install Aliyun CLI (Version 3.3.0+)

WARNING: The Homebrew version (brew install aliyun-cli) may not include otsutil. Always download from the official CDN to ensure you get version 3.3.0+ with otsutil support.

Option 1: Download Binary (Recommended)

PlatformDownload
Mac (Universal)Mac Universal
Linux (AMD64)Linux AMD64
Linux (ARM64)Linux ARM64
Windows (64-bit)Windows

Option 2: Mac GUI Installer

Download Mac PKG and double-click to install.

macOS / Linux Binary Setup

# Download (example for macOS Universal)
curl -L -o aliyun-cli.tgz https://aliyuncli.alicdn.com/aliyun-cli-macosx-latest-universal.tgz

# Extract
tar -xzf aliyun-cli.tgz

# Move to PATH
sudo mv aliyun /usr/local/bin/

# Verify installation and version (must be 3.3.0+)
aliyun version

# Verify otsutil is available
aliyun otsutil help

Windows Setup

  1. Download the zip file from the download link above
  2. Extract the zip file to get aliyun.exe
  3. Add the directory to your PATH environment variable
  4. Verify: aliyun version (must show 3.3.0 or later)

Parameter Confirmation

IMPORTANT: Parameter Confirmation — Before executing any command, ALL user-customizable parameters (e.g., RegionId, instance names, AccessKey, endpoint, etc.) MUST be confirmed with the user. Do NOT assume or use default values without explicit user approval.
ParameterRequiredDescriptionDefault
--endpointYes (for table ops)Instance endpoint URL-
--instanceYes (for table ops)Instance name-
-n (instanceName)Yes (for describe_instance)Instance name-
-r (regionId)Yes (for instance ops)Region ID (e.g., cn-hangzhou)-
-t (tableName)Yes (for table ops)Data table name-
Note: AccessKey credentials are configured via aliyun configure, not passed as command parameters.

Authentication

Pre-check: Alibaba Cloud Credentials Required Security Rules: - NEVER echo or print AccessKey values - NEVER ask the user to input AccessKey directly in plain text - ONLY configure credentials using aliyun configure If no valid credentials exist: 1. Obtain AccessKey from Alibaba Cloud Console 2. For security, use RAM user credentials with AliyunOTSReadOnlyAccess permission 3. Configure credentials using Aliyun CLI

Configure Credentials (Aliyun CLI)

# Interactive configuration (recommended)
aliyun configure

# Follow prompts:
# Aliyun Access Key ID [None]: <YOUR_ACCESS_KEY_ID>
# Aliyun Access Key Secret [None]: <YOUR_ACCESS_KEY_SECRET>
# Default Region Id [None]: cn-hangzhou
# Default output format [json]: json
# Default Language [zh]: en

Configure with Specific Profile

# Create a named profile
aliyun configure --profile tablestore-user

# Use the profile for otsutil commands
aliyun otsutil --profile tablestore-user list_instance -r cn-hangzhou

Supported Authentication Modes

ModeDescriptionConfigure Command
AKAccessKey ID/Secret (default)aliyun configure --mode AK
RamRoleArnRAM role assumptionaliyun configure --mode RamRoleArn
EcsRamRoleECS instance rolealiyun configure --mode EcsRamRole
OIDCOIDC role assumptionaliyun configure --mode OIDC

RAM Policy

Required permissions for Tablestore read-only operations:

{
  "Version": "1",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": [
        "ots:GetInstance",
        "ots:ListInstance",
        "ots:ListTable",
        "ots:DescribeTable"
      ],
      "Resource": "acs:ots:*:*:instance/*"
    }
  ]
}

Or use the managed policy: AliyunOTSReadOnlyAccess

See references/ram-policies.md for detailed permissions.

Core Workflow

Part 1: Instance Read Operations

Task 1: Configure Instance (Connect to Instance)

Configure the endpoint to select which instance to operate on.

Important: You must configure the instance before performing any table operations.

Command Format:

aliyun otsutil config --endpoint <endpoint> --instance <instanceName>

Endpoint Format:

  • Public: https://<instance_name>.<region_id>.ots.aliyuncs.com
  • VPC: https://<instance_name>.<region_id>.vpc.tablestore.aliyuncs.com

Example:

aliyun otsutil config --endpoint https://myinstance.cn-hangzhou.ots.aliyuncs.com --instance myinstance

Response:

{
  "Endpoint": "https://myinstance.cn-hangzhou.ots.aliyuncs.com",
  "AccessKeyId": "NTS**********************",
  "AccessKeySecret": "7NR2****************************************",
  "AccessKeySecretToken": "",
  "Instance": "myinstance"
}

Task 2: Describe Instance

View instance details including name, creation time, status, and quota.

Command Format:

aliyun otsutil describe_instance -r <regionId> -n <instanceName>

Example:

aliyun otsutil describe_instance -r cn-hangzhou -n myinstance

Response:

{
  "ClusterType": "ssd",
  "CreateTime": "2024-07-18 09:15:10",
  "Description": "First instance created by CLI.",
  "InstanceName": "myinstance",
  "Network": "NORMAL",
  "Quota": { "EntityQuota": 64 },
  "ReadCapacity": 5000,
  "Status": 1,
  "TagInfos": {},
  "UserId": "1379************",
  "WriteCapacity": 5000
}

Status Values: 1 = Running. Other values indicate abnormal status.

Task 3: List Instances

Get all instances in a specified region.

Command Format:

aliyun otsutil list_instance -r <regionId>

Example:

aliyun otsutil list_instance -r cn-hangzhou

Response:

["myinstance", "another-instance"]
Note: Returns empty array [] if no instances exist in the region.

Part 2: Data Table Read Operations

Prerequisite: You must first configure an instance endpoint using aliyun otsutil config (Task 1) before running table operations.

Task 4: Select Table (use)

Select a data table for subsequent operations.

Command Format:

aliyun otsutil use --wc -t <tableName>
ParameterRequiredDescription
--wcNoIndicates the target is a data table (wide column) or index table
-t, --tableYesTable name

Example:

aliyun otsutil use -t mytable

Task 5: List Tables (list)

List table names under the current instance.

Command Format:

aliyun otsutil list [options]
ParameterRequiredDescription
-a, --allNoList all table names (data tables + timeseries tables)
-d, --detailNoList tables with detailed information
-w, --wcNoList only data table (wide column) names
-t, --tsNoList only timeseries table names

Examples:

# List tables of the current type
aliyun otsutil list

# List all tables
aliyun otsutil list -a

# List only data tables
aliyun otsutil list -w

# List only timeseries tables
aliyun otsutil list -t

Task 6: Describe Table (desc)

View detailed table information including primary keys, TTL, max versions, and throughput.

Command Format:

aliyun otsutil desc [-t <tableName>] [-f <format>] [-o <outputPath>]
ParameterRequiredDescription
-t, --tableNoTable name. If omitted, describes the currently selected table (via use)
-f, --print_formatNoOutput format: json (default) or table
-o, --outputNoSave output to a local JSON file

Examples:

# Describe the currently selected table
aliyun otsutil desc

# Describe a specific table
aliyun otsutil desc -t mytable

# Output in table format
aliyun otsutil desc -t mytable -f table

# Save table info to file
aliyun otsutil desc -t mytable -o /tmp/table_meta.json

Example Response:

{
  "Name": "mytable",
  "Meta": {
    "Pk": [
      { "C": "uid", "T": "string", "Opt": "none" },
      { "C": "pid", "T": "integer", "Opt": "none" }
    ]
  },
  "Option": {
    "TTL": -1,
    "Version": 1
  },
  "CU": {
    "Read": 0,
    "Write": 0
  }
}

Response Fields:

FieldDescription
NameTable name
Meta.PkPrimary key columns: C=name, T=type (string/integer/binary), Opt=option (none/auto)
Option.TTLData time-to-live in seconds (-1 = never expire)
Option.VersionMax attribute column versions retained
CU.Read / CU.WriteReserved read/write capacity units

Success Verification

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

Quick Verification:

  1. After aliyun otsutil config: Response should show correct Endpoint and Instance
  2. After aliyun otsutil list_instance: Verify expected instance names appear in the list
  3. After aliyun otsutil describe_instance: Verify Status=1 (Running)
  4. After aliyun otsutil list: Verify expected table names appear
  5. After aliyun otsutil desc: Verify table schema and configuration are correct

Related APIs

CLI CommandDescription
aliyun otsutil configConfigure CLI access (endpoint, instance)
aliyun otsutil describe_instanceGet instance details
aliyun otsutil list_instanceList all instances in a region
aliyun otsutil useSelect a data table for subsequent operations
aliyun otsutil listList tables under the current instance
aliyun otsutil descView detailed table information

See references/related-apis.md for complete API reference.

Best Practices

  1. Use RAM Users: Create RAM users with read-only permissions instead of using root account credentials
  2. Use ReadOnly Policy: Apply AliyunOTSReadOnlyAccess for query-only workflows
  3. Region Selection: Choose the region closest to your application for lower latency
  4. Network Type: Use VPC endpoint for better security in production environments
  5. Credential Security: Use aliyun configure for credential management; never hardcode credentials
  6. Use Profiles: Create dedicated profiles for different environments using aliyun configure --profile <name>
  7. Export Table Schema: Use aliyun otsutil desc -o <file> to export and backup table definitions

Reference Links

ReferenceDescription
cli-installation-guide.mdAliyun CLI installation guide
related-apis.mdComplete CLI command reference
verification-method.mdVerification steps for each operation
ram-policies.mdRAM permission requirements
Aliyun CLI GitHubAliyun CLI source code and documentation
Instance Operations DocInstance operations reference
Data Table Operations DocData table operations reference

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.91%
按下载量换算153

Claude

31.88%
按下载量换算139

Cursor

20.89%
按下载量换算91

Gemini CLI

8.71%
按下载量换算38

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills