llm-d/llm-d-benchmark/add-metadata-to-results-in-gcs
Claude Code and agent skill by llm-d/llm-d-benchmark
- community
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-gcsSKILL.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
Defaults
- Default File Pattern:
benchmark_report*.yaml/benchmark_report*.json.yaml
Examples
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
- Download the benchmark folder from GCS to a local temporary directory.
- 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:
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:
- Read the generated JSON metadata.
- Convert it into standard YAML lines matching the benchmark report format (under a
stack:block). - Locate each target benchmark report file (
benchmark_report*_metrics.json.yaml). - 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
- Generate a diff between the backup folder and the modified folder.
- Present the diff to the user to prove that only the
stack:section was appended and no other metrics were modified. - Ask for user confirmation before uploading back to GCS.
Step 7: Push to GCS
Upload the modified files back to their original GCS location:
Validation Plan
- Local Diff: Verify with a local diff patch that only the
stackmetadata 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
- SKILL.md in the repositoryCheckingskills/add-metadata-to-results-in-gcs/SKILL.md
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
[](https://verified-skill.com/skills/llm-d/llm-d-benchmark/add-metadata-to-results-in-gcs)