一键导入
token-efficiency-report
현재 세션의 캐리어 오케스트레이션 실사용량을 실측 집계하고, 제독 단독 수행 가정 대비 In/Output 토큰·컨텍스트 윈도우 절감 효과를 정량 보고하는 스킬입니다.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
현재 세션의 캐리어 오케스트레이션 실사용량을 실측 집계하고, 제독 단독 수행 가정 대비 In/Output 토큰·컨텍스트 윈도우 절감 효과를 정량 보고하는 스킬입니다.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | token-efficiency-report |
| description | 현재 세션의 캐리어 오케스트레이션 실사용량을 실측 집계하고, 제독 단독 수행 가정 대비 In/Output 토큰·컨텍스트 윈도우 절감 효과를 정량 보고하는 스킬입니다. |
Use this skill to produce a quantitative token-efficiency report for a Fleet operation: measure the Admiral session's actual Claude Code usage, collect per-carrier usage from each engine's own session logs, compute the coordination overhead, and model the counterfactual cost of the Admiral doing the same work solo (subagents included). The entire skill is read-only — it never modifies any file.
Replace each <placeholder> before running.
<admiral-session-jsonl> — Optional. Absolute path to the Admiral session transcript under ~/.claude/projects/<sanitized-cwd>/<session-id>.jsonl. Default: the current session's transcript (the harness exposes the path in context; otherwise identify it by matching carrier_dispatch records against the operation being measured — never by mtime alone).<operation-window> — Optional. Start/end timestamps bounding the operation. Default: derive it — start = first carrier_dispatch timestamp in the transcript, end = last operation commit time (git log) or last carrier result, whichever is later.<worktree-path> — Optional. The operation's git checkout used to measure deliverable size. Default: the current working directory.<base-ref> — Optional. Git ref the deliverable diff is measured against (e.g., origin/canary). Default: the repository's main integration branch.Report, with verifiable evidence: (1) measured token consumption split between the Admiral plane (Claude Code) and the carrier plane (per engine), (2) the orchestration coordination overhead in tokens, (3) a clearly-labeled counterfactual estimate of solo execution, and (4) the resulting savings percentages and context-window preservation. Estimates must never be presented as measurements.
pwd, confirm the OS/shell, and read the repository root AGENTS.md (and any subdirectory AGENTS.md later touched).<admiral-session-jsonl>, <worktree-path>, <base-ref>.jq -s '[.[] | select(.message.usage) | .message.usage] |
{turns: length,
input: ([.[].input_tokens]|add),
output: ([.[].output_tokens]|add),
cache_read: ([.[].cache_read_input_tokens // 0]|add),
cache_creation: ([.[].cache_creation_input_tokens // 0]|add)}' <admiral-session-jsonl>
input + cache_creation (tokens newly loaded into context) separately from cache_read (total reprocessed volume).grep -c '"isCompactSummary":true'.input_tokens + cache_read_input_tokens + cache_creation_input_tokens).carrier_dispatch call with timestamp and carrier id:
jq -r 'select(.message.content[]?.type=="tool_use" and (.message.content[]?.name | tostring | test("carrier_dispatch"))) |
.timestamp + " " + ([.message.content[] | select(.type=="tool_use" and (.name|tostring|test("carrier_dispatch"))) | .input.carrier_id // "?"] | join(","))' <admiral-session-jsonl>
<operation-window> per Inputs. Cross-check the end bound with git -C <worktree-path> log <base-ref>..HEAD --format='%h %ci %s'.Map each dispatched carrier to its engine via ~/.fleet/carriers.json (agentCliType, plus taskforce members where present). Note that the file reflects the current configuration — if a session found below contradicts it (e.g., a rollout exists for an opencode-configured carrier), trust the logs and flag the mapping as inferred.
~/.codex/sessions/YYYY/MM/DD/rollout-*.jsonl):
session_meta payload.cwd (the main checkout or the worktree both count — fleet may spawn carriers from either) AND session start inside the window. Resumed sessions may carry later waves without producing new rollout files.token_count event's cumulative figure:
grep '"token_count"' <rollout> | tail -1 | jq '.payload.info.total_token_usage // .payload.total_token_usage'
input_tokens - cached_input_tokens.~/.claude/projects/<dir-for-cwd>/*.jsonl): find files whose first event falls in the window (check both the main-checkout project dir and the worktree project dir), then sum usage with the same jq as step 2.1.~/.local/share/opencode/storage/): include only if records exist inside the window.Concurrent user sessions contaminate the sample. For every candidate carrier session:
local-command-caveat lines). A carrier job opens with a dispatch-format prompt or an injected AGENTS.md preamble; a human session opens with free-form text or slash commands unrelated to the dispatch ledger.message.model field against the carrier's configured model as corroborating evidence.[unattributed] with their usage shown separately.From the Admiral transcript, measure the full round-trip cost of delegation:
carrier_dispatch tool_use inputs.carrier:result.git -C <worktree-path> diff <base-ref>...HEAD --shortstat plus commit count, review rounds, and any other scope markers from the operation record.
Model: the carrier plane's work is transferred 1:1 onto the Admiral's Claude usage at equal output quality.
Produce the final report with:
[verified]/[deferred]/[unresolved] 형식으로 데이터 소스와 매핑 근거 명시.Diagnose over-abstraction in a package, then consolidate files by domain and deduplicate functional logic.
git worktree 생성과 제거 라이프사이클을 하나의 절차로 통합해 실행하는 스킬입니다.
Per-carrier request-block contracts and dispatch composition rules for carrier_dispatch requests. Load before the first dispatch of the session; skip reloading if already in context.
Host-owned Fleet Plan authoring and mutation workflow. Load before the first host plan_write call in a session and skip reloading when already in context. Use it for the required Plan template, optional Nimitz Plan assurance, Genesis Plan-driven handoff, host completion marking after artifact inspection, and Plan-state verification boundaries.
Drive a headless real-browser end-to-end test or diagnosis of the Fleet Console web UI with agent-browser. Use for Console SPA behavior such as blank screens, terminal rendering, Theater or Operation interactions, modal and keyboard boundaries, responsive layout, browser errors, HTTP requests, WebSockets, or final browser verification after a Console change. Do not use for Electron lifecycle, native menus or dialogs, Desktop security policy, packaging, or installed-app behavior; use desktop-e2e instead.
Use the coordinated Fleet protocol mode for multi-carrier or parallel ownership work.