跳到正文
TakoAPI
返回技能列表

zown-gemini-governor

由 gtovd 提供

Coding Agents & IDEs
758下载量由 clawskills.sh 提供
1浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

A high-fidelity token management and model stabilization skill.

描述

该技能的功能

Manages Gemini token usage to prevent TPM rate limit errors during long or complex tasks. Implements context pruning and enforced cool-downs between heavy prompts. Each task step is executed and verified independently under an atomic pipeline model.

Prevents mid-task Gemini TPM errors that would otherwise interrupt long-running pipelines and require manual recovery.

何时使用

  • Avoiding 429 rate limit errors during multi-step code generation
  • Compacting agent context files before a long engineering session
  • Enforcing cool-down pauses between back-to-back heavy prompts
  • Syncing agent memory across restarts or context compactions
  • Running one-shot Q&A queries without accumulating session context

示例工作流

输入

User asks: Run a multi-stage refactor of the authentication module

智能体
  1. 1

    Check current TPM usage via session_status

  2. 2

    Prune SOUL.md and IDENTITY.md, summarizing history into MEMORY.md under 500 tokens

  3. 3

    Execute stage 1 as a single atomic step and verify output before proceeding

  4. 4

    If TPM usage exceeds 50%, run python3 scripts/cooldown.py 60 before the next stage

  5. 5

    Repeat atomic execution and threshold checks for each remaining stage

输出

All pipeline stages completed without hitting Gemini TPM rate limits

安装

clawhub install gtovd/zown-gemini-governor

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接