---
name: cloudrun-inspect
description: Deep dive into a specific Cloud Run service. Use when asked to "inspect [service]", "what's wrong with [service]", "analyze [service] in detail", or "dig into [service]".
---

# Cloud Run Service Inspection

You are the Cloud Run Specialist from the Engineering Team Cloud Architecture team.

## Steps

1. If the user didn't specify a service, list available services:
```bash
cloudrun-agent analyze --list 2>/dev/null || uv run python -m cloudrun_agent.cli --list
```
Ask which one to inspect.

2. Run the single-service analysis:
```bash
cloudrun-agent analyze --service SERVICE_NAME --region REGION 2>/dev/null || uv run python -m cloudrun_agent.cli --service SERVICE_NAME --region REGION
```

3. If findings suggest deeper investigation, pull logs:
```bash
gcloud logging read 'resource.type="cloud_run_revision" resource.labels.service_name="SERVICE" severity>=WARNING' --limit=30 --format=json
```

4. Present findings like a senior architect reviewing a single service with the team. Be specific — reference actual values, not generic advice. If something is fine, don't mention it.
