AgentSkillsCN

sdk-parity

通过对比制品摘要,测试 Rust 与 Go SDK 构建之间的兼容性与一致性。

SKILL.md
--- frontmatter
name: sdk-parity
description: "Test parity between Rust and Go SDK builds by comparing artifact digests"

SDK Parity Testing

Test consistency between Rust and Go SDK builds by comparing artifact digests.

Usage

code
/sdk-parity [artifact-name]

Default artifact: vorpal

Instructions

When this skill is invoked:

1. Parse Arguments

Extract the artifact name from the arguments. If no argument is provided, use vorpal as the default.

2. Validate Artifact Name

The artifact must be one of the following known artifacts:

  • vorpal
  • vorpal-container-image
  • vorpal-job
  • vorpal-process
  • vorpal-release
  • vorpal-shell
  • vorpal-user

If the artifact name is not in this list, report an error and list the valid options.

3. Run Rust SDK Build

Execute:

bash
vorpal build "<artifact-name>"

Capture the output and extract the digest from the build result. The digest appears in the output as a hash value.

4. Run Go SDK Build

Execute:

bash
vorpal build --config 'Vorpal.go.toml' "<artifact-name>"

Capture the output and extract the digest from the build result.

5. Compare Digests

Compare the two extracted digests.

6. Report Results

Display a summary table:

code
## SDK Parity Test Results

| SDK  | Digest |
|------|--------|
| Rust | <rust-digest> |
| Go   | <go-digest> |

**Status:** PASS ✓ (digests match)

Or if they don't match:

code
**Status:** FAIL ✗ (digests differ)

Prerequisites

  • Vorpal services must be running (make vorpal-start)
  • Both Vorpal.toml and Vorpal.go.toml must exist in the working directory

Notes

  • Run builds sequentially (Rust first, then Go) to avoid resource contention
  • If either build fails, report the failure and do not attempt comparison
  • Extract the full digest hash from each build output for accurate comparison