usage-kernel

使用六种 Codex 使用量追踪工具以获取精确的本地使用情况数据、限定范围的探索、许可观察以及证据时间线。

仓库最近推送
GitHub Stars
197
Forks
18
Issues / PRs
5

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "usage-kernel":https://skillpi.com/zh/skills/deepskill-41afeeb13b5309241127a8efee4b095468a72e4f1e51fb0a1a4becfc00fc545b。安装前核对上游来源和版本:https://github.com/douglasmonsky/codex-usage-tracker。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

github.com

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

使用六种 Codex 使用量追踪工具以获取精确的本地使用情况数据、限定范围的探索、许可观察以及证据时间线。

0 下载

介绍来源: third_party · douglasmonsky · 0.0.1 参考来源

SkillPi 解读

能完成的任务
翻译待完成,请参阅来源文档。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: usage-kernel
description: Use the six Codex Usage Tracker tools for exact local usage facts, bounded exploration, allowance observations, and evidence timelines.

Codex Usage Tracker

Use the tracker as a factual local data plane. The tools return exact or explicitly graded facts; the model owns inference, explanation, and recommendations.

Use the three-step loop scope → batch → evidence:

  1. Scope. Start with the needed usage_query whenever the question maps to a curated template or a known typed request. The result carries its generation, grade, history coverage, and cache state. Call usage_status only when the query reports an absent or insufficiently fresh index, or when the user explicitly asks about operational state. A committed generation remains queryable while refresh is active or recommended. When the needed fields are unfamiliar, set include_guidance=true on the same usage_query call that carries the first batch; use an empty batch only for standalone capability discovery.
  2. Batch. Prefer one batched usage_query call. Its arguments always wrap one or more query requests in the requests array. Execute a curated server-side template with {"requests":[{"template":"<name>"}]}; for the common thread leaderboard use {"requests":[{"template":"top_threads"}]}. Templates query the hydrated snapshot and report its coverage; refresh complete history only when the user asks. For same five ranked threads, use result 1 for labels, selectors, totals, shares, and token classes; use result 2 only for cost/credits. Do not query again unless user asks for evidence. Use {"requests":[{"template":"weekly_drivers"}]} for the latest indexed seven-day thread leaderboard, {"requests":[{"template":"week_over_week"}]} for that window versus the immediately preceding seven days, and {"requests":[{"template":"latest_incremental_change"}]} for the active generation's inserted calls and leading affected thread. These templates derive their anchors from the committed snapshot; do not discover dates or generation numbers first. Use {"requests":[{"template":"model_effort"}]} for model/effort mix and {"requests":[{"template":"tools"}]} for structural tool facts. Do not repeat a successful curated template or request guidance after it returns rows. Supply parameters only when the selected template requires them. Otherwise send only the typed dataset, operation, dimensions, measures, filters, and limits needed for the question. Do not copy or reconstruct a returned template body. Preserve the returned generation, grade, coverage, counts, and explicit row/byte limits. Compose filters as {field, operator, value} using only the dataset fields and operators in filter_grammar; in takes an array of 1–25 values. Phase queries require one returned scope-filter template for a thread, turn, or time window.
  3. Evidence. Rank candidates from the facts first. Call usage_evidence only after ranking, and only with an exact returned logical selector. Use live=true for the same timeline in live mode.

Label every claim:

  • fact — returned exact/deterministic data; for partial, state the hydration preset/cutoff and never generalize to all history;
  • estimate — returned estimated data with coverage and provenance;
  • hypothesis — model inference that still needs evidence;
  • unsupported — unavailable from the returned scope and not asserted.

The optional context dataset is aggregate-only private local evidence. Its observed_bytes and events measures are exact for the structurally observed payload strings that were indexed. estimated_tokens is available only when an explicit tokenizer populated it; always preserve its estimator identity and coverage. Never describe category bytes or estimates as exact billed input tokens, and keep unattributed_input_tokens unsupported when the response reports it as null. If context composition is disabled, continue with the base accounting datasets instead of starting hidden work.

Call usage_refresh only when freshness matters. Reuse the returned job; never start a duplicate. Use usage_job_status with a bounded wait_seconds value so the host waits; do not short-interval poll from the model. Use usage_allowance for observed allowance facts and preserve its provenance and limitations. Do not infer waste or productivity from token totals alone.

Never inspect raw logs as a fallback, invent missing selectors, claim narrative findings the tools did not return, or expose prompts, reasoning, tool arguments/output, secrets, or local paths.

版本历史

  1. v0.28.0 GitHub ↗
    原版更新说明

    Feature-free stabilization and pre-1.0 contract freeze. - Freezes the six-tool MCP, versioned HTTP/SSE, primary CLI, logical evidence, cache lifecycle, calculation-grade, four-token-class, JSON export, privacy, installation, and upgrade contracts. - Qualifies fault recovery, scale, concurrent reads, rollback, and direct upgrades from public 0.26.0 and 0.27.0. - Keeps optional context composition experimental and the overlay as a read-only contract without a shipped runtime. Publication is performed only by the protected build-once Trusted Publishing workflow.

  2. v0.27.0 GitHub ↗
    原版更新说明

    Codex Usage Tracker 0.27.0 ships the lean product kernel guided-exploration release. - Adds bounded, schema-driven guided data exploration. - Keeps optional context composition isolated, owner-only, and disabled by default. - Freezes the read-only overlay adapter boundary without shipping overlay assets. - Strengthens protected publication with merged-main tag fencing and exact sdist source-byte checks. - Preserves the six-tool MCP surface and fast incremental kernel workflows.

  3. v0.26.0 GitHub ↗
    原版更新说明

    Codex Usage Tracker 0.26.0 replaces the beta analysis and compatibility product with a lean local data kernel built for exact, incremental, model-driven exploration. Highlights: - Exact incremental facts with explicit refresh, atomic generation promotion, and preserved rollback metadata. - Six focused MCP tools, ten operational CLI commands, and seven kernel HTTP routes. - A focused Evidence Console with bounded queries, exact timelines, live reconnect, and no implicit refresh. - Side-by-side cache cutover that leaves the 0.25 cache untouched. - Removal of narrative analysis jobs, OTel, telemetry, compression, diagnostics, recommendations, content indexing, compatibility profiles, and legacy dashboard assets. - Protected build-once promotion through TestPyPI, PyPI, and GitHub Release assets. See `CHANGELOG.md` and the Product Kernel Reset roadmap for the complete contract and migration details.

  4. v0.25.1 GitHub ↗
    原版更新说明

    # Release 0.25.1 Release 0.25.1 removes the experimental local telemetry sidecar and hardens the incremental refresh lifecycle used by the seven-tool MCP surface. ## Refresh reliability - Stale analysis reuses an already-running compatible refresh, including while append-active JSONL source revisions continue moving. - Job polling derives outer status and detailed progress from one durable row, preventing mixed running/failed snapshots. - Detached refresh startup returns the durable post-handshake state instead of a stale queued snapshot. - Completed refresh and analysis results remain available after an MCP restart. - Refresh remains incremental after the initial index build and preserves concurrent reads from the last committed generation. - Append-safe allowance and thread-link maintenance updates only the moving tail. Schema 38 removes low-selectivity revision indexes, and reset-aware model v5 extends the deterministic source revision for new observations. - `execution="auto"` routes large-history analysis through a durable asynchronous job instead of blocking one MCP request on the full analysis. ## Telemetry sunset - The telemetry parser, exporter cursor, staging tables, reconciliation pass, refresh phase, diagnostics, and support-bundle fields are removed. - Schema 38 drops retired staging tables in place without rebuilding canonical usage rows. - Shared `service_tier`, `fast`, pricing, export, and Evidence Console fields remain because live product surfaces still use them. The core MCP catalog remains exactly seven tools. No legacy telemetry runtime, compatibility flag, or fallback path is retained. ## Qualification - The full Python suite passed with 2,058 tests and 88.07% coverage. Ruff, MyPy, configured Pyright, Tach, release-readiness, and product-complexity checks passed. - All 599 frontend tests, lint, typecheck, dependency, dead-code, style, source-governance, deterministic-asset, and bundle gates passed. - All 14 Chromium release-candidate tests passed, including Home startup without hidden heavy analysis. - The 100,000-row synthetic gate completed a 45-row append in `1.416816s`, a one-row moving-tail refresh in `1.027582s`, a no-change refresh in `0.003999s`, and a concurrent committed read in `0.003857s`. - At 216,000 rows, post-build work remained bounded: `3.871973s` for 45 appended rows, `2.290849s` for one moving-tail row, `0.004112s` for no changes, and `0.006584s` for a concurrent committed read. The one-time cold build was `54.356171s`. - Clean installed-wheel probes exposed exactly seven tools and completed 39–40 MCP calls across two independent tasks. They hydrated a moving tail, preserved completed refresh and analysis results across restart, and reused the durable repeated-analysis result. - Five consecutive clean installed-wheel stress runs passed after the startup state contract was tightened. The maximum server-reported MCP call time was `604.045ms`.

  5. v0.25.0 GitHub ↗
    原版更新说明

    ## Highlights Codex Usage Tracker 0.25.0 makes the MCP/plugin and live Evidence Console the dependable central product. - MCP and Evidence Console startup is read-only against the committed usage index. Equivalent refreshes from separate Codex tasks now join one durable cross-process job in the operational sidecar instead of competing for the usage database writer lock. - Incremental refreshes capture a fixed newline-aligned source boundary, leave concurrent appends for one bounded follow-up, expose generation/tail/progress timing, and reuse compatible durable analysis results. - Home now reads current call, token, and cache totals from compact summaries even while optional recommendation materialization catches up. The persisted Recent findings section and its load-path query are removed. - The legacy static dashboard product is removed: static generator/assets, `dashboard` and `open-dashboard` aliases, MCP `generate_usage_dashboard`, and configured static serving. `/dashboard.html` returns a data-free 410 migration page for 0.25, while `/` redirects to `/react-dashboard.html`. - CSV/JSON exports, Evidence Console deep links, React/locales, canonical accounting, privacy/raw-context controls, schema integrity, and focused Home/Limits/Calls/Threads/thread-call query plans remain supported. - Release gates now fail closed on stale static-only JavaScript syntax globs, and package/plugin/runtime versions share one deterministic bundle identity. ## Upgrade ```bash pipx upgrade codex-usage-tracking codex-usage-tracker setup --force-plugin ``` Then restart Codex so it loads the 0.25.0 plugin/MCP bundle. Reopening the browser against an already running service does not rebuild the index; use `service serve --no-refresh` when you want to serve the last committed generation while a separate refresh is running. See the [0.25.0 release guide](https://github.com/douglasmonsky/codex-usage-tracker/blob/v0.25.0/docs/releases/0.25.0.md) and [upgrade guide](https://github.com/douglasmonsky/codex-usage-tracker/blob/v0.25.0/docs/upgrading-to-0.25.0.md).

此处仅展示最近 5 个版本。 在原站查看完整版本历史 ↗

当前收录版本

0.0.1

核对来源版本 ↗

安全与评测信息

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

原始报告中有 2/4 项可核验的维度分数。

场景价值75/100

亮点

  • 提供六种 Codex 使用量追踪工具,支持精确本地数据查询、许可观察和证据时间线
触发精准78/100

待提升项

  • 触发词示例不足 原报告严重程度:轻微

    description 描述完整但缺乏具体触发词示例(如'查看本周线程排行'等常见指令)

    改进建议:补充典型使用场景的具体触发词示例以提升触发准确性

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。