一键导入
logs
Query Cloud Run logs for any monorepo app. Use when the user wants to check service logs, errors, or request patterns in staging or prod.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Query Cloud Run logs for any monorepo app. Use when the user wants to check service logs, errors, or request patterns in staging or prod.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Drive a changed API endpoint or app flow end-to-end in this monorepo — build/launch recipe, auth bypass in dev, and local DB seeding for evidence capture
Start and manage f3-nation development servers. Use when the user wants to start dev servers, check if services are running, or troubleshoot the local development environment.
Git workflow for f3-nation with feature branches and merge commits. Use when the user wants to merge changes to dev/staging, create feature branches, bump versions, or push to remotes.
基于 SOC 职业分类
| name | logs |
| description | Query Cloud Run logs for any monorepo app. Use when the user wants to check service logs, errors, or request patterns in staging or prod. |
| argument-hint | [app] [prod|staging] [errors|warnings] [count] [timerange] |
Query Cloud Run logs for any app in this monorepo. Defaults to auth on staging if no app is specified.
See apps.conf for the full registry. Currently:
| App | Staging Project | Prod Project | Region |
|---|---|---|---|
auth | f3-authentication-staging | f3-authentication | us-central1 |
api | f3-api-app-staging | f3-api-app | us-central1 |
map | pin-mastery | pin-mastery | us-central1 |
When the user runs this skill, use the helper scripts in scripts/ to fetch and format logs. Pass through all user arguments verbatim.
Run the fetch script with the user's arguments:
bash .agents/skills/logs/scripts/fetch-logs.sh $ARGS > /tmp/f3-logs.json
The script handles all argument parsing (app, environment, severity, time range, limit, custom filters) and writes JSON to stdout. Metadata (app, env, project, service, limit, filter) is printed to stderr.
Pipe the JSON through the format script:
cat /tmp/f3-logs.json | bash .agents/skills/logs/scripts/format-logs.sh
This produces a Markdown table with columns: Timestamp, Severity, Method + URL, Status, Latency, Remote IP — plus a summary footer with counts and status code breakdown.
If there are errors, offer to dig deeper into specific log entries by their insertId.
Basic queries (default app is auth, default env is staging):
/logs — 20 most recent auth staging entries/logs prod — 20 most recent auth prod entries/logs errors — Auth staging errors only/logs warnings 1h — Auth staging warnings from the last hourSpecifying an app:
/logs api — 20 most recent api staging entries/logs map prod — 20 most recent map prod entries/logs auth prod errors 1h — Auth prod errors from the last hourAdjusting volume and time range:
/logs api errors 50 30m — 50 api staging errors from the last 30 minutes/logs 100 2h — 100 auth staging entries from the last 2 hours/logs map prod 10 7d — 10 map prod entries from the last weekCustom gcloud filters (advanced):
/logs httpRequest.status>=500 — Auth staging 5xx errors/logs api prod httpRequest.status>=400 — Api prod 4xx+ errors/logs map httpRequest.requestMethod=POST — Map staging POST requestsSupported time units: s (seconds), m (minutes), h (hours), d (days), w (weeks)
The following app + environment combinations have been verified working:
| App | Staging | Prod | Notes |
|---|---|---|---|
auth | ✅ | ✅ | Primary use case — originally built for this app |
api | ✅ | ✅ | GCP projects f3-api-app-staging / f3-api-app, region us-central1 |
map | ✅ | ✅ | GCP project pin-mastery, Cloud Run service is f3-2 / f3-2-staging |
apps.conf (staging + prod) with the format: APP:ENV:GCP_PROJECT:SERVICE_NAME:REGION/logs <app> and /logs <app> prod to verify both environments work