技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
byted-redis【数据与研究】Use this skill only for Volcengine Redis cloud resource operations, including querying, inspecting, creating, or managing Volcengine Redis instances and related cloud resources. Trigger it when the user mentions Volcengine Redis, Volcengine Redis instances, Volcengine Redis inventory/detail lookup, Volcengine Redis operational metadata, or Volcengine…
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this skill as the agent-facing workflow for Volcengine Redis cloud resource operations. The skill bundles MCP client scripts, startup scripts, credential guidance, and tool-selection instructions so agents can perform Volcengine Redis resource queries and management tasks.
This skill is scoped to Volcengine Redis only. Redis-related requests outside Volcengine, such as OSS Redis command execution, self-hosted Redis troubleshooting, application cache logic, Redis running in Kubernetes, or non-Volcengine cloud Redis products, should use other tools or skills.
Use this skill when the user asks for Volcengine Redis tasks such as:
Do not use this skill for generic Redis command execution against a data endpoint, application-side cache debugging, Kubernetes pod metadata lookup, self-hosted Redis, other cloud providers' Redis products, or any non-Volcengine Redis resource unless the user explicitly says the target is Volcengine Redis.
region_id and instance_id when available. If the user gives only a name or vague keyword, first call describe_db_instances with region and filter arguments, then use the returned instance ID for detail tools.AUTHORIZATION or authorization, orVOLCENGINE_ACCESS_KEY and VOLCENGINE_SECRET_KEY, with optional VOLCENGINE_SESSION_TOKEN.VOLCENGINE_REGION when set. If neither the user nor the environment gives a region, ask for the region before making region-scoped calls. Prefer region-scoped discovery tools such as describe_zones or describe_db_instances once the region is known.scripts/mcp_client.py for custom calls. For a smoke test, run uv run scripts/call_redis_mcp_example.py from this skill directory.The bundled stdio client supports two credential modes.
Use these variables:
VOLCENGINE_ACCESS_KEYVOLCENGINE_SECRET_KEYVOLCENGINE_REGION, for example cn-beijingFor temporary credentials, also use:
VOLCENGINE_SESSION_TOKENUse AUTHORIZATION or authorization with this format:
Authorization: Bearer BASE64_JSON_PAYLOAD
The decoded JSON payload should contain:
AccessKeyIdSecretAccessKeySessionTokenCurrentTimeExpiredTimeRegionSessionToken is required for STS credentials. Authorization credentials take precedence over environment AK/SK when both are present.
Never print full secrets, AK/SK values, session tokens, or authorization payloads. If a credential check is needed, report only whether each variable is present.
Use read-only tools by default. The table below is a routing guide, not a closed capability list. The upstream MCP server is the source of truth for the currently available tools. If the server exposes new tools later, agents can call them through the same RedisMCPClient.call_tool(name, arguments) flow after checking the tool name, schema, and safety level.
| User intent | Preferred tool | Key arguments |
|---|---|---|
| List regions | describe_regions | only when supported by the live server schema; otherwise provide region_id or use another region-scoped discovery tool |
| List zones | describe_zones | region_id |
| List VPCs or subnets | describe_vpcs, describe_subnets | region_id, optional VPC/subnet filters |
| Find Redis instances | describe_db_instances | region_id, optional instance_id, instance_name, paging/filter fields |
| Inspect one instance | describe_db_instance_detail | region_id, instance_id |
| Query specs | describe_db_instance_specs | region_id, optional zone/spec filters |
| Query shards or nodes | describe_db_instance_shards, describe_node_ids | region_id, instance_id |
| Slow logs, hot keys, big keys | describe_slow_logs, describe_hot_keys, describe_big_keys | region_id, instance_id, time range when supported |
| Backups and PITR | describe_backups, describe_backup_plan, describe_pitr_time_window | region_id, instance_id |
| Parameters | describe_db_instance_params, describe_parameter_groups, describe_parameter_group_detail | region_id, instance_id or parameter group ID |
| Accounts | list_db_account | region_id, instance_id |
| Allowlists | describe_allow_lists, describe_allow_list_detail | region_id, optional allowlist ID |
| Tags | describe_tags_by_resource | region_id, resource type and resource IDs |
| Events and scans | describe_planned_events, describe_key_scan_jobs | region_id, instance_id when supported |
Use mutating tools only after confirmation:
create_db_instancemodify_db_instance_paramscreate_db_accountcreate_allow_listassociate_allow_listdisassociate_allow_listmodify_db_instance_namecreate_parameter_groupcreate_db_endpoint_public_addressThe upstream server tool schemas are the source of truth. Before calling an unfamiliar tool, list tools or inspect the tool schema through the MCP client if the active client exposes schemas.
General conventions:
region_id, instance_id, instance_name, and page_size.page_size: 10 or less. Increase only when the user asks for a full inventory.describe_db_instances, handle zero or multiple matches explicitly, and only then call detail tools.Run commands from the skill directory:
uv run scripts/call_redis_mcp_example.py
For one-off calls, use the bundled client:
import asyncio
import sys
sys.path.append("scripts")
from mcp_client import RedisMCPClient
async def main():
async with RedisMCPClient() as client:
result = await client.call_tool(
"describe_db_instances",
{"region_id": "cn-beijing", "page_size": 10},
)
print(result)
asyncio.run(main())
The service scripts are optional and run the server as a background streamable-http service. They do not affect the normal stdio client path:
./scripts/start_volcengine_redis_mcp.sh
./scripts/status_volcengine_redis_mcp.sh
uv run scripts/call_redis_mcp_streamable_http_example.py
./scripts/stop_volcengine_redis_mcp.sh
The background service inherits credentials and region only from the environment present at service startup. If credential or region environment variables change after startup, restart the background service before reusing the HTTP example script.
status_volcengine_redis_mcp.sh reports the credential mode captured at startup. Health: READY only means the HTTP endpoint is alive; Redis tool calls can still fail if the service was started without credentials.
For normal agent execution, prefer the stdio client because it starts and stops the server for the individual call path.
Use this checklist when a call fails:
AUTHORIZATION. Do not continue with anonymous calls.describe_regions can be called without a region unless the live server schema confirms it.uv, network access, package resolution, Python version, and proxy settings.When reporting results, include:
For mutating operations, include the requested change, final API response status, and resource identifiers. Do not claim success unless the MCP tool returns a successful result.