team-cost

team-cost is a skill for Claude Code from ketor/cto-fleet. It costs 110 tokens per session (8,269 once invoked), scanned B, original, Apache-2.0.

A coordinated review process that uses several specialised agents to inspect infrastructure and code for ways to reduce costs.

In plain words
What is it for?
Scanning a project or infrastructure, identifying expensive resources or code areas, estimating savings, and producing a cost-reduction report and action plan.
Why use it?
It combines separate analyses and estimates their likely return, so cost-cutting decisions are based on more than one inspection.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: reads .claude/ paths; names the AskUserQuestion tool.

Good fit Scanning a project or infrastructure, identifying expensive resources or code areas, estimating savings, and producing a cost-reduction report and action plan.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ketor/cto-fleet/team-cost
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ketor/cto-fleet --skill team-cost
Clone the repo
git clone --depth 1 https://github.com/ketor/cto-fleet

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for team-cost

README.md
[![agentmods](https://agentmods.dev/badge/skills/ketor/cto-fleet/team-cost/github.svg)](https://agentmods.dev/skills/ketor/cto-fleet/team-cost)
Your own site
<a href="https://agentmods.dev/skills/ketor/cto-fleet/team-cost"><img src="https://agentmods.dev/badge/skills/ketor/cto-fleet/team-cost/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for team-cost

Your own site · 80×15
<a href="https://agentmods.dev/skills/ketor/cto-fleet/team-cost"><img src="https://agentmods.dev/badge/skills/ketor/cto-fleet/team-cost.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 110 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 8,269 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00110 $0.08269
Opus 5 $0.00055 $0.04134
Sonnet 5 $0.00022 $0.01654
Haiku 4.5 $0.00011 $0.00827

Measured 8d ago against content hash 0b0e2a93d07e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade B, and why

team-cost scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

- 目录路径:`/tmp/{team-name}/`(team lead 在 TeamCreate 后执行 `mkdir -p /tmp/{team-name} && chmod 700 /tmp/{team-name}`)
team-cost/SKILL.md · 604 lines

How it starts

The opening of the file, as written. The whole thing — 604 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Preamble (run first)

_UPD=$(~/.claude/skills/cto-fleet/bin/cto-fleet-update-check 2>/dev/null || true)
[ -n "$_UPD" ] && echo "$_UPD" || true

If output shows UPGRADE_AVAILABLE <old> <new>: read ~/.claude/skills/cto-fleet/cto-fleet-upgrade/SKILL.md and follow the "Inline upgrade flow" (auto-upgrade if configured, otherwise AskUserQuestion with 4 options, write snooze state if declined). If JUST_UPGRADED <from> <to>: tell user "Running cto-fleet v{to} (just updated!)" and continue.

参数解析:从 $ARGUMENTS 中检测以下标志:

  • --auto:完全自主模式(不询问用户任何问题,全程自动决策)
  • --once:单轮确认模式(将所有需要确认的问题合并为一轮提问,确认后全程自动执行)
  • --scope=infra|code|full:分析范围(默认 full
  • --lang=zh|en:输出语言(默认 zh 中文)

解析后将标志从成本优化目标或项目路径中移除。

模式 用户确认范围 条件节点处理
标准模式(默认) 范围确认 + 分歧仲裁 + 最终报告确认 正常询问用户
单轮确认模式--once 仅最终报告确认 自动决策 + 收尾汇总
完全自主模式--auto 不询问用户 全部自动决策,收尾汇总所有决策

单轮确认模式下条件节点自动决策规则:

  • 分析范围不确定 → team lead 根据项目配置文件自行判断,在最终报告中说明
  • 两位 analyzer 分歧 → analyst 标注分歧,team lead 综合论证后裁决,收尾时汇总
  • 分歧超过 50%不可跳过,必须暂停问用户(熔断机制,单轮确认模式和完全自主模式均适用)
  • 项目过大无法完整分析 → scanner 识别核心资源和高成本模块,analyzer 聚焦高成本区域
  • --scope 参数处理
    • infra:仅启动 analyzer-1(基础设施分析),跳过 analyzer-2
    • code:仅启动 analyzer-2(代码/应用分析),跳过 analyzer-1
    • full:两路分析均启动

完全自主模式下:所有节点均自动决策,不询问用户。熔断机制仍然生效——触发熔断条件时是唯一会暂停询问用户的情况。

成本优化分类:

类别 范围 示例
计算资源 infra GPU/CPU 实例超配、未使用的预留实例、可降级的实例类型
存储 infra 过期数据未清理、存储类型不匹配(SSD vs HDD)、未压缩
网络 infra 跨区域流量、CDN 未启用、API 调用冗余
数据库 both 慢查询、索引缺失、连接池配置、读写分离
缓存 code 缓存命中率低、缓存穿透、无缓存的热点查询
算法 code O(n^2) 可优化为 O(n log n)、重复计算、批处理化
CI/CD infra 构建时间过长、测试并行度不足、镜像过大
GPU 利用率 infra GPU 空闲率高、batch size 不合理、显存利用不足

ROI 评分标准:

ROI 等级 比率 优先级
高 ROI 投入小,节省大 (>5x) P0 - 立即执行
中 ROI 投入与节省相当 (2-5x) P1 - 计划执行
低 ROI 投入较大,节省有限 (1-2x) P2 - 有余力时
负 ROI 投入大于预期节省 (<1x) 不建议

使用 TeamCreate 创建 team(名称格式 team-cost-{YYYYMMDD-HHmmss},如 team-cost-20260308-143022,避免多次调用冲突),你作为 team lead 按以下流程协调。

Read the full file on GitHub · 604 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 604 lines · 0 tokens per session scan B 0b0e2a93d07e

Subscribe to this mod's changes

team-cost is a skill published in the GitHub repository ketor/cto-fleet (5 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 110 tokens to every session and 8,269 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

next-cache-components-optimizer

Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components / PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route at a time; the shipped test then…

vercel/next.js · 170 tokens

next-partial-prefetching-adoption

Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…

vercel/next.js · 103 tokens

chronicle

Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…

microsoft/vscode · 72 tokens