Skip to content
Agentmart
Submit a tool

googletranslate-debug

排查翻译失败 / 慢 / 限流 / 多 Key 切换 / 熔断,用 X-Trace-Summary、/v1/traces、/metrics 定位。

Skill by lza6

IndexedApache-2.0★ 49
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/lza6-googletranslate-debug

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

排查翻译失败 / 慢 / 限流 / 多 Key 切换 / 熔断,用 X-Trace-Summary、/v1/traces、/metrics 定位。

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 26, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/googletranslate-debug

What's inside

Skill name
googletranslate-debug
Description
排查翻译失败 / 慢 / 限流 / 多 Key 切换 / 熔断,用 X-Trace-Summary、/v1/traces、/metrics 定位。
License
Apache-2.0
Instructions
11 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# 调试

- **先看链路摘要**:非流式响应头 `X-Trace-Summary: cache=... upstream=... 123ms key=<hash> retries=...`;流式拿 `X-Trace-Id` 后 `GET /v1/traces/{id}`。
- **502 上游错误**:`upstream=403/400` -> key 失效,检查轮换;`upstream=429` -> 配额,看重试/冷却;`upstream=5xx` -> 上游抖动,重试已兜底。
- **429**:`RATE_LIMIT_ENABLED` 开启时按 IP+key 限流,响应含 `Retry-After`;上游 429 会走多 Key 切换 + 退避。
- **熔断 503**:`/ready` 503,观察连续失败;失败恢复后自动闭合。
- **多 Key**:`GOOGLE_API_KEYS="k1,k2"` 自动切换;`/metrics` 的 `translate_key_switches_total` / `translate_upstream_errors_by_key_hash_total{code}` 定位坏 key(只暴露哈希)。
- **慢**:压测参考 `docs/loadtest-2026-09-22.md`;调 `HTTPX_MAX_CONNECTIONS` / 多 worker / 多 key;生产取消彩色日志(`LOG_FORMAT=json`)。
- **完全不通**:`/health` 是否 200、启动日志是否有弱 key 告警/占位符拒启。

From lza6/googletranslate-2api, Apache-2.0.

Signals

Stars
49
Forks
19
Open issues
1
Last commit (this folder)
Sep 21, 2026 (1 month ago)
Last release
Sep 22, 2026 (1 month ago)

From GitHub (fetched Oct 24, 2026).

Details

License
Apache-2.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from lza6

Cite this page

googletranslate-debug skill. Agent Mart. https://agentmart.dev/skills/lza6-googletranslate-debug (last updated 2026-10-24)