media-lens-gcp-debug
Debug and diagnose media-lens production issues on Google Cloud Platform
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Debug and diagnose media-lens production issues on Google Cloud Platform
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
Use when the user mentions "gavel", "gavel-ai", or asks for help running, configuring, or interpreting AI evaluations with the gavel-ai framework. Covers eval setup, golden dataset preparation, scenario formatting, CLI execution, judge selection, debugging, and results interpretation. Does NOT trigger on general requests to "evaluate" code, bugs, or written documents that are unrelated to the gavel-ai eval system.
Debug and diagnose media-lens production issues on Google Cloud Platform
استنادا إلى تصنيف SOC المهني
| name | media-lens-gcp-debug |
| type | diagnostic |
| description | Debug and diagnose media-lens production issues on Google Cloud Platform |
| domain | Media Lens Infrastructure |
| triggers | ["debug gcp","gcp debug","check gcp status","media lens isn't running"] |
Comprehensive debugging and diagnostics skill for media-lens production issues on Google Cloud Platform. Helps investigate VM status, container logs, job execution history, Cloud Storage, and scheduling configuration.
Activate this skill when:
gcloud) installed and authenticatedmedialensus-central1-amedia-lensmedia-lens-data mounted at /app/working⚠️ The VM and container are NOT continuously running. They follow this schedule:
When debugging:
All commands follow this pattern:
# Check VM status
gcloud compute instances describe media-lens-vm --zone=us-central1-a --format="get(status)"
# Start VM (if needed for diagnostics)
gcloud compute instances start media-lens-vm --zone=us-central1-a
# SSH and run commands
gcloud compute ssh media-lens-vm --zone=us-central1-a --command="docker logs media-lens --tail=50"
# Stop VM (after diagnostics)
gcloud compute instances stop media-lens-vm --zone=us-central1-a
# GCS operations
gsutil ls gs://media-lens-storage/
On VM (/app/working/out/):
jobs/YYYY/MM/DD/HHmmss/ (structured by date/time)intermediate/, staging/format_cursor.txt, deploy_cursor.txtdocker logs media-lensIn GCS (gs://media-lens-storage/):
/app/working/out/jobs/ structureCheck VM Lifecycle State
Quick Status Check (if VM is running or started)
Deep Dive (if issues found)
Root Cause Analysis
Remediation
Cleanup (Critical)
gcloud compute instances stop media-lens-vm --zone=us-central1-a/run, GET /status, GET /healthpython -m src.media_lens.runner commands.env file or Secret Manager (GCP)| Pattern | Likely Cause | Debug Steps |
|---|---|---|
| No jobs since date X | Cloud Scheduler disabled, cron misconfigured, startup script failed | Start VM (if stopped), check scheduler jobs + cron, review startup logs |
| VM won't start | GCP quota issue, disk corruption, startup script error | Check GCP quotas, try manual restart, review google-startup-scripts.service logs |
| Container crashed | Out of memory, missing dependencies, unhandled exception | Start VM, SSH in, run docker logs media-lens, check disk space (df -h) |
| Jobs run but not deployed | Deploy step fails, SFTP connectivity, permissions | Check deploy_cursor age vs last job, search logs for "upload|deploy" errors |
| Partial output (few sites) | Scraping failures, Cloudflare blocks, API quota | Check harvest logs for specific site errors, verify rate limits |
| Cannot SSH to VM when running | Network security groups, VM not actually running | Verify VM status, check firewall rules, wait for startup to complete |
| VM is stopped (expected state) | Not an error - normal behavior | Only start if needed for diagnostics; remember to stop it after |
This skill provides:
This skill does:
This skill does not:
Cost Warning: Starting the VM enables billing for Compute Engine. Always stop when diagnostics are complete.
For application logic issues, refer to code review and testing workflows.
"Debug the media-lens GCP deployment - tell me why there are no results for Monday"
"Check if the VM is running and what state the container is in"
"I want to know the full timeline: when did each step last run, what's in storage, any errors?"
"media-lens production is broken, help me figure out what went wrong"
"Manually trigger a test run and show me the output"
Version: 1.0 Last Updated: 2026-03-25 Skill Type: Diagnostic / Operational Support Domain: Media Lens GCP Infrastructure