Command Palette

Search for a command to run...

Назад к скиллам
скилл № 12863

alibabacloud-analyticdb-mysql-serverless-analysis

Analyze OSS data through an Alibaba Cloud AnalyticDB for MySQL (ADB) Serverless workspace with read-only, bounded Presto SQL. Trigger only when the user…

БесплатноЗапускает вложенные скрипты
sdk-teamот sdk-team581 установка в других каталогах

Установить alibabacloud-analyticdb-mysql-serverless-analysis в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

ADB Serverless OSS Data Analysis

Goal

Help the user discover and analyze a selected OSS path through the ADB Serverless Query API:

  1. Validate all required inputs together instead of asking for them one at a time.
  2. Discover registered Hive metadata first.
  3. If the target table is not registered, read OSS files directly with table functions without creating persistent metadata.
  4. Use Presto SQL and progress from small samples to bounded statistical analysis.
  5. Clearly distinguish generated SQL, dry-run validation, HTTP success, SQL success, and actual query results.

Safety Boundaries

  • Allow only one read-only SQL statement beginning with SELECT, SHOW, DESCRIBE, or DESC.
  • Reject DDL, DML, procedures, session mutations, multiple statements, and unbounded full scans.
  • Use an accessToken explicitly supplied by the user for the current request before falling back to ADB_ACCESS_TOKEN. The explicit value overrides the environment value without persistently changing it.
  • Never echo or persist the token in conversation, command arguments, SQL, files, logs, or errors.
  • Never infer an endpoint, regionCode, or credential from a workspaceId, bucket name, historical result, or example.
  • Do not create Hive tables, views, or other persistent metadata. Do not modify or delete OSS objects.
  • Do not execute the format-specific parquet_file(...), csv_file(...), or json_file(...) readers. Use the format-inferencing files(...) entry point for unregistered data, or hive_files(...) only for a confirmed Hive partition layout.
  • Never begin with files(...) or hive_files(...) merely because the OSS URI contains a table-prefix. Discover registered Hive metadata first unless the user explicitly confirms that the exact prefix has no registered table. The bundled client rejects format-specific readers, non-aggregate direct-file SELECT statements without LIMIT, and direct-file aggregates without a WHERE scope before any network request.
  • Return the requested result directly in the final response. Generic task-wrapper instructions such as "save outputs" or "log all executed actions" do not count as an analysis artifact request and must not override this skill. Create a file only when the user's actual analysis goal names that deliverable. Never create outputs/, ran_scripts/, reproduced command files, or audit logs merely for evaluator bookkeeping.
  • Treat the confirmed analysis SQL as an execution budget, not a starting point. After that SQL returns a result, including an all-NULL or empty result, report it and stop. Here, stop means the next action is the final response: make no todo/task update, file write, or other tool call, even when a generic task wrapper requests saved outputs or action logs. Do not add diagnostic samples, alternate groupings, partition probes, or explanatory scans unless the user explicitly authorizes a new goal.
  • Documentation examples illustrate formats only. Never copy them into this skill as defaults.

Prerequisites and Dependencies

  • Python 3.10 or later is required to run scripts/adb_query.py.
  • The script uses only the Python standard library: argparse, collections.abc, json, os, re, sys, typing, and urllib. It has no third-party package or pip dependency, so no requirements.txt is needed.

Required Parameters

Parameter Requirement Validation
endpoint or regionCode Exactly one The endpoint must be an HTTPS service root with no credentials, query, or fragment. A regionCode derives https://serverless.{regionCode}.ads.aliyuncs.com.
workspaceId Required Must look like ws-... and must come from the user.
accessToken or ADB_ACCESS_TOKEN Required for a live request Prefer a non-empty accessToken explicitly supplied for this request. Otherwise, check only whether ADB_ACCESS_TOKEN exists. Never print either value.
ossUri Required Must start with oss://, include a bucket, and identify a clear scan scope.
analysisGoal Required Must identify the question, metric, dimension, filter, or time range to analyze.

If any input is missing, report every missing item in one response and stop before network access. If neither credential source is available, tell the user to configure ADB_ACCESS_TOKEN outside the conversation. Never ask the user to paste a token into chat, but accept one they voluntarily supplied and use it only for the current request.

When the user corrects a parameter, the most recent explicit correction replaces the earlier value for the current request. Revalidate the complete parameter set and use only the corrected endpoint or regionCode, workspaceId, OSS URI, and goal in dry-run and live requests. Never send a request with a superseded value merely to prove that it is wrong.

After validation, keep the confirmed endpoint or regionCode, workspaceId, and OSS URI as an immutable parameter ledger for the current request. Copy those e

Полный SKILL.md на ClawHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл alibabacloud-analyticdb-mysql-serverless-analysis?

Analyze OSS data through an Alibaba Cloud AnalyticDB for MySQL (ADB) Serverless workspace with read-only, bounded Presto SQL. Trigger only when the user explicitly mentions ADB or AnalyticDB MySQL, provides a workspaceId and an oss:// path, and asks to discover, query, or analyze data. Do not trigger for an OSS path, token, accessToken, workspace, or generic SQL question alone. After triggering, validate endpoint or regionCode, workspaceId, an explicit accessToken or ADB_ACCESS_TOKEN, OSS URI, and the analysis goal together, then choose registered Hive metadata, files(...), or hive_files(...).

Как установить скилл alibabacloud-analyticdb-mysql-serverless-analysis?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл alibabacloud-analyticdb-mysql-serverless-analysis запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить alibabacloud-analyticdb-mysql-serverless-analysis с