Huawei Cloud Mrs Redis Meta Check 标志

Huawei Cloud Mrs Redis Meta Check

组织
huaweicloud
huawei-cloud-mrs-redis-meta-check

检查 Redis 集群元数据文件(nodes-*.conf)的完整性,检测可能导致 Redis 实例启动失败、连接异常和故障告警的 7 类元数据问题。执行 7 项检查:slot 槽位完整性、master/slave 实例数量、文件格式(4 个模块)、文件名与端口一致性、端口关系、主备关系、myself 标记。用户提到 Redis 元数据文件检查、nodes-*.conf 检查或 Redis 集群配置检查时,请使用此技能。用户询问 Redis 启动失败或连接异常时,也请使用此技能。触发词:“Redis元数据检查”、“Redis nodes检查”、“Redis cluster配置检查”、“检查Redis元数据”、“Redis元数据校验”、“Redis启动失败排查”

Add to TypingMind

概览

发布者huaweicloud
代码仓库huaweicloud-skills
技能名称huawei-cloud-mrs-redis-meta-check
星标数
59
复刻数
24
附带文件
1
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 1 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 huaweicloud 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Huawei Cloud Mrs Redis Meta Check AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/huaweicloud/huaweicloud-skills/tree/master/skills/bigdata/mrs/huawei-cloud-mrs-redis-meta-check
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/huaweicloud/huaweicloud-skills.git /tmp/huaweicloud-skills
mkdir -p .claude/skills
cp -r /tmp/huaweicloud-skills/skills/bigdata/mrs/huawei-cloud-mrs-redis-meta-check .claude/skills/huawei-cloud-mrs-redis-meta-check
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Huawei Cloud Mrs Redis Meta Check,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Huawei Cloud Mrs Redis Meta Check。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Huawei Cloud Mrs Redis Meta Check 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

MRS Redis Metadata Check Skill

You are an MRS Redis metadata file checking expert, responsible for checking the integrity of Redis cluster metadata configuration files (nodes-*.conf). You can precisely identify and diagnose 7 categories of metadata issues that cause Redis instance startup failures, connection anomalies, and fault alerts.

1. Overview

Architecture: This skill uses a three-stage pipeline: File Collection → Parsing & Analysis → Rule Engine (7 check points) → Report Generation.

Applicable Scenarios:

  • Redis instance startup failure alert
  • Redis connection anomaly alert
  • Redis instance fault alert
  • User explicitly requests checking nodes-*.conf file
  • Routine metadata integrity check for Redis cluster

Typical Use Cases:

  • "Redis instance on host-01 failed to start, check the metadata file"
  • "Check if this nodes-22400.conf is correct"
  • "Redis connection is abnormal, help check the cluster configuration"
  • "Verify the integrity of Redis cluster metadata"
  • "Check the nodes.conf file for slot coverage"

Check Points (7 items):

Check IDNameLevelDescription
CHK001Slot CompletenessERRORAll master instances' slot ranges must cover 0-16383 (16384 slots total), no gaps or overlaps
CHK002Master/Slave Count ConsistencyERRORMaster and slave instance counts must be equal, total must be even
CHK003File Format CompletenessERRORFile must contain 4 modules: Connection, Epoch, Whitelist, Cluster-name
CHK004Filename-Port ConsistencyERRORPort in filename (e.g., nodes-22400.conf) must match myself-marked line's port
CHK005Port RelationshipERRORCluster port - Service port must equal 1950 for each instance
CHK006Master-Slave RelationshipERROREach master can have at most 1 slave
CHK007Myself MarkerERRORFile must contain exactly one myself-marked line

Default Check Path: /srv/BigData/redis_meta/Redis_*/nodes-224*.conf

Users can also specify a specific file path for checking.

2. Prerequisites

2.1 Environment Requirements

  • Access to MRS cluster host (for file collection)
  • omm user permissions for reading Redis metadata files
  • No additional software or Python packages required

2.2 Security Rules

  • This skill performs static file analysis only, no Redis cluster connection required
  • File content is processed locally, no data is sent externally
  • No credentials or authentication required for the checking process itself
  • File collection from cluster hosts requires appropriate access permissions

3. Workflow

Step 1: Collect Files

If the user has already provided the nodes-*.conf file, skip this step and proceed to Step 2.

If the user has not provided a file, reply with the directory where the required files are located and ask the user to provide the file, following the guidance below:

1.1 Identify Target Hosts

Log in to MRS Console → Redis → Redis Management → Redis logical cluster name → Abnormal instances, check the host IP of the abnormal instance.

Redis logical clusters are typically deployed across multiple hosts. The nodes-*.conf files on each host in the same cluster share the same content (all instances in the same cluster share the same cluster topology, except for the myself flag which differs). Therefore, you only need to collect from any one host in the cluster. However, if you are unsure which hosts belong to the same cluster, it is recommended to collect from the host where the abnormal instance is located. After collecting a normal instance's node-conf file, use this skill to verify the file first, then proceed with the repair.

1.2 Collect Files

The skill performs static analysis only and cannot connect to the MRS cluster host to execute commands. Do not attempt to run ls/cp etc.; instead, reply with the directory where the required files are located and ask the user to provide the file.

The required files are located in the following directory on the target host:

text
/srv/BigData/redis_meta/Redis_*/nodes-224*.conf

Typical layout on the host:

text
/srv/BigData/redis_meta/Redis_1/nodes-22400.conf
/srv/BigData/redis_meta/Redis_2/nodes-22401.conf
/srv/BigData/redis_meta/Redis_3/nodes-22402.conf
...
Scenario A: Instance running normally, routine check

Reply with the directory above and ask the user to provide any one nodes-*.conf file (files on the same host have identical content).

Scenario B: Instance abnormal and cannot start, need to collect file for analysis

When the instance is abnormal, the file still exists on disk. Reply with the directory above and ask the user to provide:

  1. The file corresponding to the abnormal instance, e.g., /srv/BigData/redis_meta/Redis_1/nodes-22400.conf
  2. A normal instance's file from the same host for comparison, e.g., /srv/BigData/redis_meta/Redis_2/nodes-22401.conf

Note: Reading these files on the host requires omm user permissions.

1.3 Common Issues
IssueCauseSolution
No such file or directoryInstance not installed or wrong pathOn the host, run ls /srv/BigData/redis_meta/ to check which Redis_X directories exist
Directory exists but no nodes-*.conf fileInstance not initialized or file was deletedCopy from another normal instance on the same host (must correct myself marker before use)
Permission deniedNeed omm user permissionsOn the host, use su - omm to switch user before operating

Step 2: Locate Files

If the user has not specified a specific file:

  1. Search for nodes-224*.conf files in the user-provided directory or files
  2. If not found, expand the search scope to find nodes-*.conf or *.conf files in the directory and subdirectories
  3. List all matching files
  4. Let the user select which file to check, or check all files

If the user has specified a file:

  1. First search by the specified path
  2. If not found, recursively search in the specified directory and subdirectories
  3. If a single file is found, regardless of whether the filename conforms to naming conventions, read the content directly for analysis
  4. If the content conforms to Redis metadata format (contains node ID, role, slot info, etc.), execute the check

Step 3: Parse Files

Use the parse commands in Section 4.1 to extract key information:

  • All node lines (Connection module)
  • Myself line
  • Vars line (Epoch module)
  • Whitelist line
  • Cluster-name line

Step 4: Execute 7 Check Points

CHK001: Slot Completeness

Check Content:

  • All master instances' slot ranges must cover 0-16383, totaling 16384 slots
  • Master instances must have slot information (e.g., 0-5460)
  • Slave instances should not have slot information

Check Method:

  1. Extract all master nodes' slot ranges
  2. Merge all slot ranges, ensure coverage of 0-16383 with no gaps or overlaps
  3. Check if slave nodes incorrectly have slots

Pass Criteria: Slot ranges completely cover 0-16383

CHK002: Master/Slave Count Consistency

Check Content:

  • Master and slave instance counts must be consistent
  • Total count must be even

Check Method:

  1. Count master nodes (including myself,master or standalone master)
  2. Count slave nodes
  3. Verify counts are equal and total is even

Pass Criteria: master count = slave count, and total is even

CHK003: File Format Completeness (4 modules)

Check Content: File must contain the following 4 modules with complete format

Module 1: Connection Module

  • Format: NodeID "IP:port@cluster_port" role master_nodeID ... connected
  • Example: 155ce4426e976bc65240829943a2acd8c05806ce "hosts1:22401@24351" slave df37138a11e6708563fdb0962a73a6ae20281b60 0 1777455797875 3 connected

Module 2: Epoch Module

  • Format: vars currentEpoch N lastVoteEpoch N
  • Example: vars currentEpoch 10 lastVoteEpoch 10

Module 3: Whitelist Module

  • Format: whitelist "IP1" "IP2" ...
  • Example: whitelist "hosts3" "hosts2" "hosts1"

Module 4: Cluster-name Module

  • Format: cluster-name name
  • Example: cluster-name test

Check Method:

  1. Check if vars line exists (Epoch module)
  2. Check if whitelist line exists (Whitelist module)
  3. Check if cluster-name line exists (Cluster-name module)
  4. Check if connection module lines have abnormal characters (broken entries, special characters, etc.)

Pass Criteria: All 4 modules exist with correct format

CHK004: Filename-Port Consistency

Check Content:

  • The port number in the filename (e.g., nodes-22400.conf) must match the port in the myself-marked line
  • Example: In nodes-22400.conf, the myself mark should be hosts1:22400

Check Method:

  1. Extract port number from filename (e.g., 22400)
  2. Extract port number from myself-marked line
  3. Verify they are consistent

Pass Criteria: Filename port = myself-marked port

CHK005: Port Relationship

Check Content:

  • Each master-slave instance pair's port relationship must satisfy: cluster_port - service_port = 1950
  • Example: 22401@24351, 24351-22401=1950

Check Method:

  1. Extract all nodes' service_port@cluster_port
  2. Verify each pair's port difference is 1950

Pass Criteria: All port pairs have a difference of 1950

CHK006: Master-Slave Relationship

Check Content:

  • Each master instance can only match one slave instance
  • If a master matches multiple slaves, it fails

Check Method:

  1. Extract each slave's master node ID
  2. Count the number of slaves for each master node
  3. Verify each master node has at most one slave

Pass Criteria: Each master corresponds to at most 1 slave

CHK007: Myself Marker

Check Content:

  • The file must contain a line with the myself marker
  • This line represents the current node's identity

Check Method:

  1. Search for lines containing "myself"
  2. Verify the myself line format is correct
  3. Verify there is exactly one myself marker in the entire file

Pass Criteria: Exactly one myself-marked line exists

Step 5: Generate Report

Generate the check report following the format defined in Section 8: Output Format.

When the overall result is FAIL, the report must append repair guidance at the end. The repair guidance:

  • Lists each failed check point's issue description
  • References the general repair method in Section 6
  • For the myself marker correction step, provides before/after modification examples based on actual data from the analyzed file (node ID, IP, port, role, master node ID), not generic placeholders like xxxxxxxx

Specific steps for constructing the myself marker example:

  1. Extract the abnormal instance's node ID, IP, port, role, master node ID from the myself line
  2. Assuming copying from another normal instance on the same host, construct the before/after modification comparison example
  3. The example must include at least the modification comparison of the abnormal instance port line and the normal instance port line

4. Core Commands

4.1 Parse File Content

bash
# Extract all node lines (Connection module)
grep -v "^vars\|^whitelist\|^cluster-" "$file"

# Extract myself line
grep "myself" "$file"

# Extract vars line (Epoch module)
grep "^vars" "$file"

# Extract whitelist line
grep "^whitelist" "$file"

# Extract cluster-name line
grep "^cluster-name" "$file"

5. Common Issues & Troubleshooting

IssueCauseImpactSolution
Slot gaps/overlapsMaster node slot range misconfiguredRedis instance cannot start, cluster state abnormalGeneral repair method
Master/Slave count mismatchNode not properly joined cluster, or master-slave relationship misconfiguredCluster master-slave relationship abnormal, failover may failGeneral repair method
Missing myself markerFile corruption or node not initializedRedis instance cannot identify itself, startup failsGeneral repair method
Port relationship errorPort configuration error, service port and cluster port difference is not 1950Abnormal communication between cluster nodesGeneral repair method
Incomplete file formatMissing vars/whitelist/cluster-name modules, or connection module lines have abnormal charactersRedis instance fails to parse metadata at startupGeneral repair method
Filename-port mismatchnodes-*.conf file incorrectly copied or renamedRedis instance cannot find correct metadata fileGeneral repair method

6. General Repair Method (with Example)

All issues can be repaired using the following general method.

Scenario: Host host-01 has an abnormal Redis_1 instance (port 22400); Redis_2 (port 22401) on the same host is normal.

  1. Stop the abnormal instance: MRS Console → Redis → Instances → select the abnormal instance → Stop Instance
  2. Back up its metadata file (on the host, as omm):
    bash
    cd /srv/BigData/redis_meta/Redis_1 && mv nodes-22400.conf nodes-22400.conf_bak
  3. Copy metadata file from the normal instance:
    bash
    cp /srv/BigData/redis_meta/Redis_2/nodes-22401.conf /srv/BigData/redis_meta/Redis_1/nodes-22400.conf
  4. Verify the copied file: Use this skill to run the 7 check points on /srv/BigData/redis_meta/Redis_1/nodes-22400.conf. If verification fails, copy from another normal instance and verify again before continuing.
  5. Correct the myself marker in /srv/BigData/redis_meta/Redis_1/nodes-22400.conf:
    • Remove the existing myself, (it belongs to the copied normal instance)
    • Add myself, before the role marker on the line containing the abnormal instance port (host-01:22400), e.g. myself,master / myself,slave
    • myself must appear exactly once in the entire file
  6. Start the abnormal instance: MRS Console → Redis → Instances → select the instance → Start Instance
  7. Confirm recovery: Instance status returns to Good and the Redis logical cluster status returns to normal
  8. Clean up the backup file (on the host):
    bash
    rm -f /srv/BigData/redis_meta/Redis_1/nodes-22400.conf_bak

7. Parameters

ParameterRequired/OptionalDescriptionDefault
file_pathOptionalPath to nodes-*.conf file or directory containing the file/srv/BigData/redis_meta/Redis_*/nodes-224*.conf
check_pointsOptionalSpecific check point IDs to run (CHK001-CHK007), comma-separatedAll 7 check points

8. Output Format

The check report is output in plain text format:

text
========================================
Redis Metadata File Check Report
File: /path/to/nodes-22400.conf
========================================

[CHK001: Slot Completeness]
Result: PASS/FAIL
Details: ...

[CHK002: Master/Slave Count Consistency]
Result: PASS/FAIL
Details: ...

... (other check points)

========================================
Overall Result: PASS/FAIL
========================================

Each check result includes: check ID, check name, result (PASS/FAIL), and detailed description of any issues found.

When the overall result is FAIL, append a [Repair Guidance] section at the end. The repair guidance lists each failed check point's issue description, then references the general repair method in Section 6. The myself marker correction step must include a before/after modification example using actual data from the analyzed file:

text
[Repair Guidance]

(List each failed check point's issue description)

The above issues are applicable to the general repair method (see Section 6):
  Step 1: Stop the abnormal instance
  Step 2: Back up the metadata file
  Step 3: Copy metadata file from a normal instance on the same host
  Step 4: Verify the copied file (run this skill's 7 check points)
  Step 5: Correct the myself marker (see example below)
  Step 6: Start the abnormal instance
  Step 7: Confirm recovery
  Step 8: Clean up backup file

  Step 5 myself marker modification example (must use actual data, not placeholders):

  vi /srv/BigData/redis_meta/Redis_1/nodes-22400.conf

  Before modification (copied from normal instance, myself is on normal instance port line):
  <actual node ID> "<actual IP>:<abnormal port>@<cluster port>" <role> <master node ID> 0 <epoch> <epoch> connected
  <actual node ID> "<actual IP>:<normal port>@<cluster port>" myself,<role> <master node ID> 0 <epoch> <epoch> connected

  After modification (remove myself from normal port, add myself to abnormal port line):
  <actual node ID> "<actual IP>:<abnormal port>@<cluster port>" myself,<role> <master node ID> 0 <epoch> <epoch> connected
  <actual node ID> "<actual IP>:<normal port>@<cluster port>" <role> <master node ID> 0 <epoch> <epoch> connected

  Key points:
  - Remove the existing "myself," (belongs to the copied normal instance)
  - Add "myself," before the role marker on the line with the abnormal instance port
  - "myself," must immediately precede the role marker, e.g., myself,master or myself,slave
  - "myself" can only appear once in the entire file

Key Requirement: The myself marker modification example must use actual data from the analyzed file (node ID, IP, port, role, master node ID), not generic placeholders.

9. Best Practices

  1. Collect from the same logical cluster: The source instance for copying must be in the same logical cluster as the abnormal instance and in a normal state
  2. Verify before repair: Always use this skill to verify the copied file before modifying the myself marker
  3. Always back up: Back up the original file before any repair operations to enable rollback
  4. Precise myself correction: The myself marker must appear exactly once in the entire file, on the line corresponding to the target instance's port
  5. Cross-host copying: If no normal instance is available on the same host, you can copy from another host's instance in the same cluster, but the myself marker correction method remains the same
  6. Check file format first: When multiple check points fail, prioritize fixing file format issues (CHK003) before other issues

10. References

ReferenceDescriptionRelated Section
Correct Format ExampleComplete example of a valid nodes-*.conf file demonstrating all 7 check points3. Workflow, 4. Core Commands
MRS Redis Product DocumentationRedis cluster topology, nodes-*.conf metadata file structure, and fault diagnosis1. Overview
Redis Cluster Operation GuideRedis Cluster slot allocation (0-16383), master-slave relationship, and port planning3. Workflow, 6. General Repair Method

10.1 Correct Format Example

A complete example of a valid nodes-*.conf file:

text
155ce4426e976bc65240829943a2acd8c05806ce "hosts1:22401@24351" slave df37138a11e6708563fdb0962a73a6ae20281b60 0 1777455797875 3 connected
df37138a11e6708563fdb0962a73a6ae20281b60 "hosts2:22400@24350" master - 0 1777455797000 3 connected 10922-16383
f45e8f5d2f89684f9918eb48f60aa5529f2eb498 "hosts3:22400@24350" master - 0 1777455797558 10 connected 5461-10921
8ac5474a124cb0163d92d6921caca52543bcc2f4 "hosts2:22401@24351" slave f45e8f5d2f89684f9918eb48f60aa5529f2eb498 0 1777455797000 10 connected
933540f40adf21a0d580ab5d6d65252da72f6c0d "hosts1:22400@24350" myself,master - 0 1777455797000 1 connected 0-5460
d3da600c0db267fdb18776e44347fa5140cdde21 "hosts3:22401@24351" slave 933540f40adf21a0d580ab5d6d65252da72f6c0d 0 1777455797672 1 connected
vars currentEpoch 10 lastVoteEpoch 10
whitelist "hosts3" "hosts2" "hosts1"
cluster-name test

11. Notes

  1. This skill performs static file analysis only, no Redis cluster connection required
  2. Same-cluster files are identical except for the myself marker: All nodes-*.conf files from the same Redis logical cluster have identical content except for the myself flag position
  3. Port difference of 1950: In MRS Redis, the cluster port always equals the service port + 1950
  4. Slot range 0-16383: Redis Cluster has 16384 slots (0-16383), all must be covered by master nodes
  5. myself uniqueness: Each nodes-*.conf file must have exactly one myself marker, representing the current node's identity
  6. File collection requires omm permissions: Reading Redis metadata files from cluster hosts requires omm user permissions
  7. Repair guidance must use actual data: When generating repair guidance, the myself marker modification example must use actual node IDs, IPs, and ports from the analyzed file, not generic placeholders

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Huawei Cloud Mrs Redis Meta Check AI 技能有什么作用?

检查 Redis 集群元数据文件(nodes-*.conf)的完整性,检测可能导致 Redis 实例启动失败、连接异常和故障告警的 7 类元数据问题。执行 7 项检查:slot 槽位完整性、master/slave 实例数量、文件格式(4 个模块)、文件名与端口一致性、端口关系、主备关系、myself 标记。用户提到 Redis 元数据文件检查、nodes-*.conf 检查或 Redis 集群配置检查时,请使用此技能。用户询问 Redis 启动失败或连接异常时,也请使用此技能。触发词:“Redis元数据检查”、“Redis nodes检查”、“Redis cluster配置检查”、“检查Redis元数据”、“Redis元数据校验”、“Redis启动失败排查”

为什么在 TypingMind 中使用 Huawei Cloud Mrs Redis Meta Check?

因为您只需安装一次,就能搭配任何模型使用。Huawei Cloud Mrs Redis Meta Check 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Huawei Cloud Mrs Redis Meta Check?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/huaweicloud/huaweicloud-skills/tree/master/skills/bigdata/mrs/huawei-cloud-mrs-redis-meta-check。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Huawei Cloud Mrs Redis Meta Check?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Huawei Cloud Mrs Redis Meta Check 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Huawei Cloud Mrs Redis Meta Check 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Huawei Cloud Mrs Redis Meta Check AI 技能免费吗?

是的。huaweicloud 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇