跳到正文
Skillpedia
智能体8.5k · #12442

quota-array-dispatch

它能做什么

这项技能讲解 Firstmate 如何根据可用的用量,在多个允许的助手配置之间进行选择。适合设置了多个 AI 账户、并希望选择过程公平的人。

适用场景

  • ✓当一条分派规则可能匹配多个助手配置的时候。
  • ✓当你的主目录设置为所有提供商共享一个用量额度时。
  • ✓当你想知道为什么选择了某个助手配置而不是另一个的时候。

技能链接

https://github.com/kunchenguid/firstmate/blob/main/.agents/skills/quota-array-dispatch/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/kunchenguid/firstmate/blob/main/.agents/skills/quota-array-dispatch/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“当有多个配置都符合任务要求时,请解释我的助手是如何被选中的。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会读取每个符合条件的配置,依据允许的规则进行检查,然后用一个可比较的简单分数选出一个。它不会创造新的路由,也不会更改政策。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

quota-array-dispatch

This skill is the single owner of the completion-aware profile-array selection procedure. AGENTS.md section 4 owns the always-loaded intake boundary, load trigger, malformed-config refusal, every-candidate accounting, and strongest-reasoning/tie safety rules. harness-adapters owns harness verification, model/provider discovery, and effort fallback. quota-axi remains data-only: it publishes spendPriority as a comparable scalar and never recommends, selects, ranks, or infers a route. Do not add a daemon, opaque composite score, routing wrapper, hard-coded model-specific policy, or producer-side route recommendation. The worker helper and typed resolver own their deterministic mapping boundaries.

Shared-quota opt-out

When the home's config/crew-dispatch.json declares a top-level "shared_quota": true, this home draws every provider's usage from one single shared budget, so per-provider quota rows do not describe what is left, and this skill's quota snapshot, the quota parts of the eligibility and runway gates, and spendPriority ranking are off by home declaration. Make no quota-axi call, apply no quota row, quota floor, runway gate, or spendPriority rank, and choose the matched rule's first declared profile that its authoritative catalog supports and that meets the required reasoning class; catalog eligibility and reasoning-class fit still apply. preferred_provider is not a quota signal, so it still applies: preferred_provider still narrows the pool; declared order then picks within it. Account for every candidate as always, stating in place of quota evidence that quota ranking is off by home declaration. The declared value must be a boolean; anything else is an actionable configuration error.

Worker-side quota helper

The canonical shell helper for a worker that has already performed its model-selection reasoning and now needs to pick the first viable candidate is bin/fm-quota-choose.sh. Pass it the intake's already-captured default TOON or permitted JSON fallback through stdin or --snapshot; it never takes another quota snapshot, so it selects from the same quota state as the intake. Pass each candidate as harness:model, with earlier candidates preferred. The helper's header owns its provider mapping and quota selection mechanics. An exhausted_now runway vetoes the candidate. The helper selects a candidate only when its applicable quota has a known effectivePercentRemaining greater than zero. This is an optional narrow helper with a known limitation: it maps each harness to one primary provider family only, so a candidate whose established provider differs from that primary family is checked against the wrong quota row. omp has no primary family, so the helper keys an omp: candidate on its model prefix, mapping only openai-codex/ and claude-bridge/ and refusing every other prefix; the helper's header owns that mapping. Authoritative multi-provider routing - including provider discovery from the harness catalog and quota matching by that explicit provider - stays owned by this skill's intake procedure above and AGENTS.md section 4, not by the helper. Use it only when the brief already fixed the candidate order and every candidate's provider is the harness's primary family. It does not replace the reasoning-class, runway-feasibility, or authentication gates above. Firstmate can optionally arm bin/fm-procevent-quota.sh for a recurring mid-task check that wakes when the tracked provider drops below its configured threshold or its runway becomes exhausted_now. The opt-in typed resolver has its own documented gates. It never removes this skill's authority, and its ambiguous, escalate, and error outcomes return here.

Read the default TOON

When the home declares the shared-quota opt-out, skip this section's quota reading and every quota-derived check built on it (quota rows, floors, runway, and spendPriority); catalog eligibility and reasoning-class fit still apply. Start each intake by running quota-axi once with no --json, and reuse that TOON for every candidate. Post-consolidation quota-axi (the floor owned by bin/fm-quota-axi-lib.sh) puts spendPriority in the default

常见问题

如果设置文件格式有误会怎样?

这项技能会拒绝分派,而不是猜测该使用哪个配置。

它能自行选择模型吗?

不能。用量数据提供可比较的数字,而选择遵循你声明的规则。

如果我在所有提供商之间共享一个额度怎么办?

主目录可以声明共享额度,这会关闭基于用量的排序。

详情

作者的原始描述

Load when a crew-dispatch rule or default resolves to more than one profile candidate.

repo: kunchenguid/firstmate

热度

GitHub 星标
8.5k
排名
#12442
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能