llm-d/llm-d-benchmark/add-metadata-to-results-in-gcs

Claude Code and agent skill by llm-d/llm-d-benchmark

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Add stack metadata to existing benchmark results in Google Cloud Storage (GCS). Use when the user wants to backfill or enrich previous reports with stack metadata from a specific serving cluster endpoint.

Install

npx vskill@latest install llm-d/llm-d-benchmark/add-metadata-to-results-in-gcs

SKILL.md

Add Stack Metadata to Benchmark Results in GCS

Purpose

Inject stack metadata (discovered from a live Kubernetes service or provided explicitly) into previously generated benchmark report files in Google Cloud Storage. This skill performs surgical text-replacement to append metadata to the YAML files without causing floating-point precision loss or indentation churn.

Usage

/add-metadata <gcs-bucket-path> with endpoint <url>
Defaults
  • Default File Pattern: benchmark_report*.yaml / benchmark_report*.json.yaml
Examples
bash
# Add stack metadata to a specific benchmark run folder in GCS
/add-metadata gs://my-bucket/benchmark_results with endpoint http://192.0.2.1

Workflow

Step 1: Parse the Input

Extract from the user's command:

  • GCS Source: Path to the benchmark results folder in GCS (e.g., gs://my-bucket/benchmark_results)
  • Endpoint: URL of the ModelService or GAIE endpoint serving the benchmarked model (e.g., http://192.0.2.1)
Step 2: Verify Cluster Context

Ensure that the current Kubernetes context (kubectl config current-context) corresponds to the serving cluster for the specified endpoint. Ask the user for confirmation before proceeding.

Step 3: Download & Backup
  1. Download the benchmark folder from GCS to a local temporary directory.
  2. Create a backup copy of the downloaded folder to allow for safe diff generation and rollback if needed.
Step 4: Stack Discovery

Run discovery against the provided endpoint to extract stack metadata:

bash
source .venv/bin/activate
python -m llm_d_stack_discovery.cli <endpoint-url> -f benchmark-report -o /tmp/stack_metadata.json
Step 5: Surgical Injection

Create and execute a non-destructive Python script to append the stack metadata block to the end of the benchmark report YAML files. The script should:

  1. Read the generated JSON metadata.
  2. Convert it into standard YAML lines matching the benchmark report format (under a stack: block).
  3. Locate each target benchmark report file (benchmark_report*_metrics.json.yaml).
  4. Append the standard YAML lines natively to prevent ruamel/yaml from stripping comments, trailing spaces, or altering float representations of unrelated metrics.
Step 6: Review & Confirm
  1. Generate a diff between the backup folder and the modified folder.
  2. Present the diff to the user to prove that only the stack: section was appended and no other metrics were modified.
  3. Ask for user confirmation before uploading back to GCS.
Step 7: Push to GCS

Upload the modified files back to their original GCS location:

bash
gcloud storage cp -r /tmp/modified_folder/* <gcs-bucket-path>/

Validation Plan

  • Local Diff: Verify with a local diff patch that only the stack metadata was added and metrics were untouched.
  • Log Files: Ensure non-report files (e.g., config.yaml) are excluded from injection.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
62
Repository forks
98
7-day trend score
21

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/llm-d/llm-d-benchmark/add-metadata-to-results-in-gcs/badge)](https://verified-skill.com/skills/llm-d/llm-d-benchmark/add-metadata-to-results-in-gcs)

Something wrong with this skill or its page? Tell us.