team-multirepo-audit

team-multirepo-audit is a skill for Claude Code from ketor/cto-fleet. It costs 223 tokens per session (8,983 once invoked), scanned A, original, Apache-2.0.

A workflow for auditing many Git repositories belonging to one organisation or product. It groups repositories by business area, analyzes those areas in parallel, and produces reports ranging from repository summaries to detailed troubleshooting guides.

In plain words
What is it for?
Use it to inventory and assess 10 or more repositories, review architecture and shared risks, compare business domains, and generate repository cards, reports, or runbooks.
Why use it?
It gives a consistent view of a large collection of codebases instead of requiring separate manual reviews. It also checks architecture diagrams by parsing the Mermaid diagram language.

Skill for Claude Code

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

Good fit Use it to inventory and assess 10 or more repositories, review architecture and shared risks, compare business domains, and generate repository cards, reports, or runbooks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ketor/cto-fleet/team-multirepo-audit
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-multirepo-audit
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-multirepo-audit

README.md
[![agentmods](https://agentmods.dev/badge/skills/ketor/cto-fleet/team-multirepo-audit/github.svg)](https://agentmods.dev/skills/ketor/cto-fleet/team-multirepo-audit)
Your own site
<a href="https://agentmods.dev/skills/ketor/cto-fleet/team-multirepo-audit"><img src="https://agentmods.dev/badge/skills/ketor/cto-fleet/team-multirepo-audit/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-multirepo-audit

Your own site · 80×15
<a href="https://agentmods.dev/skills/ketor/cto-fleet/team-multirepo-audit"><img src="https://agentmods.dev/badge/skills/ketor/cto-fleet/team-multirepo-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 223 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 8,983 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 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.00223 $0.08983
Opus 5 $0.00112 $0.04491
Sonnet 5 $0.00045 $0.01797
Haiku 4.5 $0.00022 $0.00898

Measured 11d ago against content hash 17da2d66596e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

team-multirepo-audit scanned grade A 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 11d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (bin/scan-inventory.sh, bin/validate-mermaid.mjs), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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 rootlowPrivilege 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}`)

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

team-multirepo-audit/SKILL.md · 548 lines

How it starts

The opening of the file, as written. The whole thing — 548 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:单轮确认模式(仅在阶段 1 域分组结果后确认一次,后续全程自动执行)
  • --depth=cards|standard|deep:输出深度(默认 standard
    • cards:仅卡片(300-600 字/仓)+ 域综合(1500-3000 字/域)。轻量、最快
    • standard:cards + 顶层全景架构 + 总报告 + 横切 4 章(技术栈/业务流程/风险/术语)。推荐默认值
    • deep:standard + 每仓库 runbook 级深度报告(3000-6000 字 / 14 节,可独立支撑线上 debug)
  • --parallel=N:并行域 analyst 数(默认 6;--auto 时 8;上限受单批次资源约束)
  • --out=path:输出目录(默认 ~/docs/research/<YYYY-MM-DD>-<slug>/,slug 由仓库根目录推导)
  • --repos=glob:限定仓库 glob(默认 <cwd>/**/.git 递归发现的所有 git 仓库)
  • --focus=domainA,domainB:仅深挖指定域;其他域只做 cards-only
  • --validate-mermaid=true|false:Mermaid v10.9.5 真实 parser 验证(默认 true,强制开启)
  • --lang=zh|en:输出语言(默认 zh 中文)
模式 用户确认范围 条件节点处理
标准模式(默认) 域分组确认 + 深度选项确认 + 综合阶段确认 + 最终交付确认 正常询问用户
单轮确认模式--once 仅阶段 1 域分组+深度+并行度合并提问一轮 自动决策 + 收尾汇总
完全自主模式--auto 不询问用户 全部自动决策,收尾汇总所有决策

单轮 / 自主模式下自动决策规则

  • 域数自动决策:grouper 给出的域数若在 6-14 之间则采纳;超出范围则按"主路径仓库 ≥ 5 → 独立成域;< 5 → 合并到最近邻"重组
  • 重点深挖仓库自动选择:每域选 LOC 最大的 1-3 个 + 最近 6 个月活跃的 1-2 个,去重后取前 4
  • 并行度--auto 默认 8;--once 默认 6
  • --focus 处理:被 focus 的域走 deep;未被 focus 的域走 cards
  • 熔断机制(无论何种模式都触发)
    • 仓库总数 > 250 仓:必须暂停,建议 --repos= 拆分
    • 单域仓库数 > 30:警告并提示拆分该域为 sub-domain
    • 总 LOC > 5M:警告耗时长(预估 2-4 小时)
    • Mermaid parser 失败 > 5 块在自动修复 2 轮后仍未通过:暂停人工 review
    • 任何域 analyst 连续 2 次失败:暂停 + 询问是否换批次或减重

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

Read the full file on GitHub · 548 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 11d ago First seen · 548 lines · 0 tokens per session scan A 17da2d66596e

Subscribe to this mod's changes

team-multirepo-audit is a skill published in the GitHub repository ketor/cto-fleet (5 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 223 tokens to every session and 8,983 once invoked, about $0.0011 per session on Opus 5. A static security scan graded it A 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.