Agent Skills › pollinations/pollinations › model-debugging

model-debugging

GitHub

用于诊断 Pollinations 模型故障、错误激增、超时及输出异常。通过监控、日志和 Tinybird 数据分析根因,区分上游问题与客户端噪声,定位受影响请求并提供修复建议。

.claude/skills/model-debugging/SKILL.md pollinations/pollinations

Trigger Scenarios

模型故障排查 错误率激增分析 特定请求失败诊断

Install

npx skills add pollinations/pollinations --skill model-debugging -g -y
More Options

Non-standard path

npx skills add https://github.com/pollinations/pollinations/tree/main/.claude/skills/model-debugging -g -y

Use without installing

npx skills use pollinations/pollinations@model-debugging

指定 Agent (Claude Code)

npx skills add pollinations/pollinations --skill model-debugging -a claude-code -g -y

安装 repo 全部 skill

npx skills add pollinations/pollinations --all -g -y

预览 repo 内 skill

npx skills add pollinations/pollinations --list

SKILL.md

Frontmatter
{
    "name": "model-debugging",
    "description": "Diagnose Pollinations model failures, error spikes, timeouts, and incorrect output using current gen\/enter logs and Tinybird data. Use for incidents or specific failed requests; use model-management for catalog, routing, or pricing changes."
}

Model debugging

Read the repository AGENTS.md and inspect the current route before diagnosing a live issue. Treat a reported cause as a hypothesis. Establish the affected model, request shape, environment, time window, and user-visible symptom first.

Trace the failure

  1. Check the Model Monitor and the current definitions of enter.pollinations.ai/observability/endpoints/model_health.pipe and recent_server_errors.pipe. The monitor shows aggregated health; the error pipe contains recent actionable server-side failures.
  2. Trace a request ID through the enter and gen Workers, then the provider. Use the relevant Worker's logs or wrangler tail for live events. Verify the target environment before querying it.
  3. For production SQL, use enter.pollinations.ai/observability/scripts/tb-prod.sh. It loads the existing read token without printing it. Use --check to verify access and fresh events. Keep queries bounded by time and row count.
  4. Compare the affected user's requests with other users of the same model and route. Group by status, upstream status, provider, request shape, and time. Reproduce the exact request with an existing authorized test credential when needed; use a unique prompt to avoid mistaking a cached response for a healthy upstream.
  5. Report the evidence, impact, remaining uncertainty, and smallest fix. If a code fix is requested, follow the relevant repository skill and testing instructions.

Interpret the data

  • generation_event_v2 contains authenticated, non-cached requests. Check its current datasource definition before writing SQL. It can contain several upstream-attempt rows per request; is_final identifies the user-visible result. A successful fallback can hide a broken primary if you only count final responses.
  • In model_health, total_requests and status counts use final results; own_calls, primary_5xx, primary_retried_503s, and fallback_rescues describe upstream health and recovery. Check both views.
  • A 401, 402, 403, 400, or 429 can originate at different layers. Check error_source and error_response_code in generation_event_v2; check upstream_status, upstream_body, and upstream_host in error_event through recent_server_errors.pipe (24-hour retention) before treating it as caller noise or a model outage.
  • A server-side 200 can still arrive after the client's timeout. Inspect the latency tail per user and request shape, not just status rates or p95.
  • For streaming failures or missing usage, inspect the final SSE chunks and the original transport error across provider, adapter, and validator before blaming the provider.
  • A provider 500 can originate from invalid caller input, such as a seed above signed INT32 range. Compare failures by request shape before declaring an upstream outage.
  • Azure Content Safety returns a safe result when its configuration is missing or its request fails. If image moderation appears absent, check the current configuration and gen logs; a successful image response does not prove the safety check ran.
  • An immediate queue-full or rate-limit error can come from limiter state or many clients sharing one proxy IP while the backend is idle. Compare limiter and backend counters before restarting a worker.
  • If a suspected deploy or proxy caused timeouts, compare the symptom before and after the change and inspect the outermost hop. Use sequential direct-versus-proxy probes from a relevant region; parallel bursts can create misleading client failures.

Targeted helpers

The scripts in scripts/ query production Tinybird through the repository's read-only helper. They accept bounded numeric windows and should be run from the repository root:

.claude/skills/model-debugging/scripts/find-402-users.sh 24 10
.claude/skills/model-debugging/scripts/find-403-users.sh 24 10
.claude/skills/model-debugging/scripts/find-500-errors.sh 24
.claude/skills/model-debugging/scripts/check-user-errors.sh USER_ID 24

These reports contain user identifiers and error details. Inspect only the rows needed for the task and keep sensitive values out of shared output.

Secret changes and production deployments follow the approval and CI rules in AGENTS.md; an incident diagnosis does not authorize either operation.

Version History

  • 5cb4f4b Current 2026-10-19 13:08

    刷新技能内容,明确错误来源分类,澄清模型调试流程。

  • 55af554 2026-09-22 18:00

    根据 task-observer skill 审查意见更新,包括调试方法论、部署指南、CI 工作流优化及脚本查询逻辑简化。

  • 8303332 2026-08-20 04:57
  • 99bce92 2026-07-25 10:38

Same Skill Collection

.agents/skills/pollinations-sdk/SKILL.md
.claude/skills/abuse-detection/SKILL.md
.claude/skills/bring-your-own-pollen/SKILL.md
.claude/skills/candidate-evaluation/SKILL.md
.claude/skills/code-formatting/SKILL.md
.claude/skills/community-leaderboard/SKILL.md
.claude/skills/economics-provider-collection/SKILL.md
.claude/skills/enter-services/SKILL.md
.claude/skills/grilling/SKILL.md
.claude/skills/issue-maker/SKILL.md
.claude/skills/manage-vast-gpu-fleet/SKILL.md
.claude/skills/model-management/SKILL.md
.claude/skills/monitor-services/SKILL.md
.claude/skills/news-pipeline/SKILL.md
.claude/skills/polli-video/SKILL.md
.claude/skills/polli/SKILL.md
.claude/skills/pollinations-api/SKILL.md
.claude/skills/pollinations-sdk/SKILL.md
.claude/skills/pollinations-support-triage/SKILL.md
.claude/skills/quest-contributor/SKILL.md
.claude/skills/quest-solution-review/SKILL.md
.claude/skills/r2-glacier-migration/SKILL.md
.claude/skills/spending-analysis/SKILL.md
.claude/skills/sync-production/SKILL.md
.claude/skills/tinybird-deploy/SKILL.md
.claude/skills/voting-status/SKILL.md
.claude/skills/web-research/SKILL.md
apps/openclaw/skills/founder-meditation/SKILL.md
packages/polli-cli/SKILL.md
.agents/skills/ponytail/SKILL.md
.claude/skills/ponytail/SKILL.md
.agents/skills/source-command-review/SKILL.md
.claude/skills/grill-me/SKILL.md

Metadata

Files
0
Version
5cb4f4b
Hash
33933156
Indexed
2026-07-25 10:38

Accueil - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-11-01 14:17
浙ICP备14020137号-1