跳到正文
Skillpedia
智能体7.6k · #13208

context-xray

它能做什么

这项技能生成一份本地报告,说明 Codex 或 Claude Code 聊天如何使用其上下文,并附有警告和提示。适合长时间编码会话变慢或难以管理的开发者。

适用场景

  • ✓当本地编码聊天变得非常庞大的时候。
  • ✓当你想查看聊天的上下文都用在了哪里的时候。
  • ✓当你想每周查看上下文使用趋势的时候。

技能链接

https://github.com/BuilderIO/agent-native/blob/main/skills/context-xray/SKILL.md

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

使用方法

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

可直接粘贴的消息

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

可以这样问 AI

“我的编码聊天越来越慢。请显示所有上下文都去了哪里,以及如何修剪。”

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

工作原理

一条本地命令读取已保存的对话记录文件,并打开一份 HTML 报告。报告列出占用上下文最多的部分、警告和建议的修改,无需运行服务器。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Context X-Ray

Use Context X-Ray when a local coding-agent thread is getting large or the user wants to understand where context is going.

Setup

Recommended install path:

npx @agent-native/core@latest skills add context-xray --client all

That installs a local context-xray command plus Codex/Claude skills and slash commands. It does not need hosted auth or a remote MCP connector to read local transcript files.

Use --scope project when you only want project .agents skill and command artifacts added to the current repo.

Run

Current or most recent local thread:

context-xray --open

Recent thread picker:

context-xray threads --open

Weekly trends:

context-xray trends --since 7d --open

--open opens the generated local HTML file directly in the browser; it does not keep a background server running.

After running, summarize the report link, sessions analyzed, largest context buckets, warnings, and concrete optimizations.

常见问题

它需要账户吗?

不需要。它读取本地对话记录文件,不需要托管的登录。

它支持哪些工具?

本地的 Codex 和 Claude Code 会话线程。

报告打开后,它还会继续运行吗?

不会。它直接打开生成的文件,不会保持后台服务器运行。

详情

作者的原始描述

Visualize local Codex and Claude Code context usage, open a report, flag warnings, and suggest prompt/tooling optimizations.

repo: BuilderIO/agent-native

热度

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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能