Agent Skills
› mksglu/context-mode
mksglu/context-mode
GitHubAntigravity CLI的上下文模式路由规则,提供代码库探索、文件分析、批量执行、索引搜索及Web内容获取等MCP工具的使用指南与最佳实践。
Install All Skills
npx skills add mksglu/context-mode --all -g -y
Skills in Collection (11)
Antigravity CLI的上下文模式路由规则,提供代码库探索、文件分析、批量执行、索引搜索及Web内容获取等MCP工具的使用指南与最佳实践。
用户需要探索代码库结构或内容
需要对单个或多个文件进行读取、分析、统计或摘要
需要搜索已索引的知识库或会话记忆
需要获取并处理网页内容
npx skills add mksglu/context-mode --skill context-mode -g -y
强制路由规则,指导通过代码执行和索引工具处理数据、网络请求及搜索,防止原始数据污染上下文窗口。
分析或处理大量数据
需要获取网页内容
执行重型命令
npx skills add mksglu/context-mode --skill context-mode -g -y
运行上下文模式诊断,检查运行时、钩子、FTS5、插件注册及版本状态。通过MCP工具或CLI执行并展示结果。
/context-mode:ctx-doctor
npx skills add mksglu/context-mode --skill ctx-doctor -g -y
将本地文件或目录索引至持久化知识库,以便后续快速检索片段而无需重新读取原始文件。
用户需要索引项目内容以支持后续搜索
/context-mode:ctx-index
npx skills add mksglu/context-mode --skill ctx-index -g -y
通过调用MCP工具在浏览器中打开Context Mode Insight分析仪表板,展示AI工程团队的效能数据如生产力、重试浪费及阻塞检测。
/context-mode:ctx-insight
npx skills add mksglu/context-mode --skill ctx-insight -g -y
用于永久删除上下文模式知识库和会话数据的破坏性操作。支持按项目或会话范围清理索引、数据库行及统计信息,需用户确认并指定作用域。
/context-mode:ctx-purge
npx skills add mksglu/context-mode --skill ctx-purge -g -y
用于在持久化知识库中搜索已索引的项目内容、文档或会话记忆,避免重新加载原始上下文。支持通过 MCP 工具或 CLI 执行批量查询。
用户需要检索历史项目信息
用户询问已索引的文档或会话记忆
npx skills add mksglu/context-mode --skill ctx-search -g -y
展示当前会话上下文模式节省的 token 消耗、节省比例及工具明细。通过调用 MCP 工具获取数据,原样输出完整结果并高亮关键节省指标,用于监控上下文窗口使用情况。
/context-mode:ctx-stats
npx skills add mksglu/context-mode --skill ctx-stats -g -y
用于升级 Context Mode 插件,包括拉取最新代码、构建安装及配置钩子。通过 MCP 工具或 Shell 命令执行,并提示用户重启会话以生效新版本。
/context-mode:ctx-upgrade
npx skills add mksglu/context-mode --skill ctx-upgrade -g -y
管理上下文模式下的GitHub Issue、PR、发布及营销任务,协调多智能体并行处理。适用于问题分类、代码审查、版本发布、Bug修复、测试适配器及分支同步等复杂工程与运营场景。
Issue triage and bug fixing
PR review and merging
Version release and announcement
Testing adapters and syncing branches
npx skills add mksglu/context-mode --skill context-mode-ops -g -y
Dependencies:
mksglu/context-mode
https://github.com/mksglu/context-mode/tree/main/skills/context-mode-ops
规范 Agent 处理命令输出时的上下文模式,默认使用 ctx_execute/file 替代 Bash 以优化大输出处理。涵盖日志分析、测试、API 调用及浏览器自动化等场景,通过白名单限制直接 Bash 执行范围,提升会话效率。
analyze logs
summarize output
process data
parse JSON
filter results
extract errors
check build output
analyze dependencies
process API response
large file analysis
page snapshot
browser snapshot
DOM structure
inspect page
accessibility tree
Playwright snapshot
run tests
test output
coverage report
git log
recent commits
diff between branches
list containers
pod status
disk usage
fetch docs
API reference
index documentation
call API
check response
query results
find TODOs
count lines
codebase statistics
security audit
outdated packages
dependency tree
cloud resources
CI/CD output
npx skills add mksglu/context-mode --skill context-mode -g -y


