alibabacloud-adb-smart-analyst

alibabacloud-adb-smart-analyst is a skill for Claude Code, Codex from aliyun/alibabacloud-adb-mysql-mcp-server. It costs 106 tokens per session (6,837 once invoked), scanned A, original, Apache-2.0.

A data-analysis assistant for Alibaba Cloud AnalyticDB MySQL, a cloud database service. It can use SQL or Alibaba Cloud interfaces to work with semantic views and explore table metadata.

In plain words
What is it for?
Use it to analyze sales or order data, search semantic views, run semantic SQL, manage semantic-view definitions, and inspect database tables.
Why use it?
It helps translate questions about database data into queries while keeping the final data access through a configured MySQL connection.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to analyze sales or order data, search semantic views, run semantic SQL, manage semantic-view definitions, and inspect database tables.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aliyun/alibabacloud-adb-mysql-mcp-server/alibabacloud-adb-smart-analyst
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add aliyun/alibabacloud-adb-mysql-mcp-server --skill alibabacloud-adb-smart-analyst
Clone the repo
git clone --depth 1 https://github.com/aliyun/alibabacloud-adb-mysql-mcp-server

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for alibabacloud-adb-smart-analyst

README.md
[![agentmods](https://agentmods.dev/badge/skills/aliyun/alibabacloud-adb-mysql-mcp-server/alibabacloud-adb-smart-analyst/github.svg)](https://agentmods.dev/skills/aliyun/alibabacloud-adb-mysql-mcp-server/alibabacloud-adb-smart-analyst)
Your own site
<a href="https://agentmods.dev/skills/aliyun/alibabacloud-adb-mysql-mcp-server/alibabacloud-adb-smart-analyst"><img src="https://agentmods.dev/badge/skills/aliyun/alibabacloud-adb-mysql-mcp-server/alibabacloud-adb-smart-analyst/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for alibabacloud-adb-smart-analyst

Your own site · 80×15
<a href="https://agentmods.dev/skills/aliyun/alibabacloud-adb-mysql-mcp-server/alibabacloud-adb-smart-analyst"><img src="https://agentmods.dev/badge/skills/aliyun/alibabacloud-adb-mysql-mcp-server/alibabacloud-adb-smart-analyst.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 106 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,837 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00106 $0.06837
Opus 5 $0.00053 $0.03419
Sonnet 5 $0.00021 $0.01367
Haiku 4.5 $0.00011 $0.00684

Measured 12d ago against content hash b45c1758bb10, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

alibabacloud-adb-smart-analyst scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/adb_analyst.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

/bin/bash -c "$(curl -fsSL https://aliyuncli.alicdn.com/install.sh)"
skill/alibabacloud-adb-smart-analyst/SKILL.md · 512 lines

How it starts

The opening of the file, as written. The whole thing — 512 lines — stays where its author put it; the contents beside it link to each section on GitHub.

ADB MySQL 智能分析师 Skill

使用时机

  • 用户提出数据分析问题(如 "帮我看看销售数据"、"查一下北京的订单"、"最近一周的发货量")
  • 用户想创建、修改或删除语义视图
  • 用户想探索数据库表结构或元数据
  • 用户提到 ADB MySQL、AnalyticDB 或语义视图

前置条件

ADB 连接(所有方式必须)

  • Python 3.6+,并已安装 pymysql
  • 安装依赖:uv pip install pymysql
  • 可选依赖:cryptography(仅在以下场景需要,按需安装 uv pip install cryptography):
    • 服务端使用 caching_sha2_password(MySQL 8.0 默认)或 sha256_password 鉴权插件
    • 连接走 TLS/SSL
    • 默认的 ADB MySQL 多采用 mysql_native_password,通常无需安装;若连接时报 RuntimeError: 'cryptography' package is required ...,再补装即可
  • 必须设置以下环境变量(无论使用哪种方式都需要,因为最终 SQL 执行均通过 SQL 连接):
    • ADB_MYSQL_HOST - ADB MySQL 集群地址
    • ADB_MYSQL_PORT - ADB MySQL 端口(默认:3306)
    • ADB_MYSQL_DATABASE - 默认数据库名
    • ADB_MYSQL_USER - 数据库用户名
    • ADB_MYSQL_PASSWORD - 数据库密码

OpenAPI 方式附加条件(当语义层 SQL 方式不可用时)

当 SQL 方式的语义功能不可用(如缺少 semantic_views 元数据表、SQL hint 语义操作失败)时,语义操作切换到 OpenAPI 方式。数据查询执行仍通过上述 SQL 连接完成。

  • aliyun CLI 已安装
  • adb CLI 插件已安装
  • aliyun CLI 凭证已由用户配置完成。可通过 aliyun configure 配置 AK/SK,但不建议 Agent 主动执行配置命令或代用户录入密钥;Agent 只做检测和使用。
  • 必须设置:
    • ADB_CLUSTER_ID - ADB 集群 ID(必须,如 am-bp1xxxxxxxx
    • ADB_REGION - 地域(可选,CLI profile 已含时可省略,如 cn-hangzhou
  • 凭证检测优先使用 aliyun configure list 或轻量级 OpenAPI 探测;不要仅依赖 ALIBABA_CLOUD_* 环境变量,因为默认 profile 也可提供有效凭证。
  • RAM 权限要求(需为当前 AK/SK 对应的 RAM 用户或角色授权以下 Action):
    • adb:CreateSemanticView
    • adb:DeleteSemanticView
    • adb:ReplaceSemanticView
    • adb:GenerateSqlBySemanticSql
    • adb:RenameSemanticView
    • adb:SearchSemanticViews
    • adb:GetSemanticView

架构

方式 A(主方式 - 全 SQL):
  用户 → Agent → Skill → PyMySQL → ADB Engine

方式 B(OpenAPI 语义 + SQL 执行):
  语义操作:用户 → Agent → Skill → aliyun CLI → OpenAPI Gateway → ADB Engine
  数据执行:用户 → Agent → Skill → PyMySQL → ADB Engine

两种方式均通过 SQL 连接执行最终查询,区别仅在于语义操作的实现方式(SQL hint vs aliyun CLI)。Skill 优先 SQL 方式,SQL 语义功能不可用时自动切换 OpenAPI(详见下方「方式选择策略」)。

OpenAPI 方式下 alter_semantic_view --operation set_comment 不可用(计划补齐)。Skill 脚本自动添加 SQL hint,Agent 生成 SQL 时无需加 hint。

方式选择策略

Read the full file on GitHub · 512 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 512 lines · 106 tokens per session scan A b45c1758bb10

Subscribe to this mod's changes

alibabacloud-adb-smart-analyst is a skill published in the GitHub repository aliyun/alibabacloud-adb-mysql-mcp-server (32 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 106 tokens to every session and 6,837 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

create-pr

Creates a GitHub PR with a Linear-ticket-prefixed title and a decision-led, narrative description for Prisma 8. Use when the user wants to create a pull request, open a PR, or submit changes for review.

prisma/orm · 48 tokens

schema-exploration

Lists tables, describes columns and data types, identifies foreign key relationships, and maps entity relationships in a database. Use when the user asks about database schema, table structure, column types, what tables exist, ERD, foreign keys, or how entities relate.

langchain-ai/deepagents · 57 tokens

ha-data-stores

Map of Hope Agent's local data stores and safe read-only query workflow. Use when the user asks where Hope Agent stores data, wants to inspect sessions/messages/memory/logs/background jobs/knowledge indexes/settings, asks the model to query local app data, or debugging requires checking persisted state. Trigger…

shiwenwen/hope-agent · 115 tokens

nornicdb-cypher-queries

Pick fast, predictable Cypher query shapes in NornicDB — point lookups, batch retrieval, pagination, search, traversal, batched UNWIND/MERGE writes, cleanup, multi-tenant isolation. Use when writing or reviewing Cypher whose latency or throughput matters; maps user intent to the executor's hot-path query templates.

orneryd/NornicDB · 79 tokens

supabase

Supabase / PostgREST Row-Level-Security playbook — pull the anon (or leaked servicerole) key out of the frontend JS, map tables from the auto-generated OpenAPI spec, test anonymous RLS READ disclosures (PII/secret leaks), and anonymous RLS WRITE abuse (insert/update/delete — e.g. forging…

PentesterFlow/agent · 120 tokens

volcengine-rds-postgresql

A tool for operating PostgreSQL databases hosted by Volcano Engine's managed database service. PostgreSQL is a relational database used to store structured application data.

bytedance/agentkit-samples · 63 tokens